/* 
 * Premium Solutions Architecture Portfolio stylesheet
 * Umar Abdulaziz Jada (Adzumr) | Senior Software Engineer & Solutions Architect
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CUSTOM PROPERTIES & THEMES --- */
:root {
  /* Fonts */
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --container-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Default Theme: Deep Space Dark Mode */
  --bg-primary: hsl(222, 47%, 7%);
  --bg-secondary: hsl(222, 47%, 11%);
  --bg-glass: hsla(222, 47%, 12%, 0.65);
  --bg-glass-hover: hsla(222, 47%, 16%, 0.8);
  --border-color: hsla(222, 47%, 25%, 0.4);
  --border-color-hover: hsla(190, 100%, 50%, 0.4);
  
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 15%, 55%);
  
  --accent-cyan: hsl(190, 100%, 50%);
  --accent-purple: hsl(265, 100%, 65%);
  --accent-green: hsl(145, 80%, 50%);
  --accent-glow: hsla(190, 100%, 50%, 0.15);
  --accent-interactive: var(--accent-cyan);
  --accent-interactive-glow: hsla(190, 100%, 50%, 0.15);
  
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-bg: radial-gradient(circle at 10% 20%, hsl(222, 47%, 12%) 0%, var(--bg-primary) 90%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --backdrop-blur: blur(16px);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: hsl(210, 40%, 98%);
  --bg-secondary: hsl(210, 40%, 94%);
  --bg-glass: hsla(210, 40%, 98%, 0.75);
  --bg-glass-hover: hsla(210, 40%, 92%, 0.9);
  --border-color: hsla(210, 30%, 80%, 0.5);
  --border-color-hover: hsla(265, 100%, 65%, 0.4);

  --text-primary: hsl(222, 47%, 12%);
  --text-secondary: hsl(215, 25%, 35%);
  --text-muted: hsl(215, 20%, 55%);

  --accent-cyan: hsl(195, 90%, 45%);
  --accent-purple: hsl(265, 85%, 55%);
  --accent-glow: hsla(265, 100%, 65%, 0.08);
  --accent-interactive: var(--accent-purple);
  --accent-interactive-glow: hsla(265, 85%, 55%, 0.08);

  --gradient-accent: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  --gradient-bg: radial-gradient(circle at 10% 20%, hsl(210, 40%, 96%) 0%, var(--bg-primary) 90%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--gradient-bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Elements */
body::before, body::after {
  content: "";
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
body::before {
  top: 5%;
  right: -10%;
  background: var(--accent-cyan);
}
body::after {
  bottom: 20%;
  left: -10%;
  background: var(--accent-purple);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
}

/* Gradient Text Effect */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 7rem 0 5rem;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 650px;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-family: var(--font-header);
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: inline-block;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Grid helper */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 3rem; }
}

/* --- BUTTONS & CONTROLS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-header);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: hsl(222, 47%, 7%);
  box-shadow: 0 8px 20px -6px var(--accent-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px var(--accent-cyan);
  color: hsl(222, 47%, 7%);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: var(--backdrop-blur);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* --- COMPONENT STYLES --- */

/* 1. Frosted Sticky Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: hsla(222, 47%, 7%, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
[data-theme="light"] .header {
  background: hsla(210, 40%, 98%, 0.75);
}

.header-scrolled {
  padding: 0.5rem 0;
  background: var(--bg-glass);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-primary);
}
.theme-toggle:hover {
  border-color: var(--accent-cyan);
  transform: rotate(15deg);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.sun-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* Menu Toggle for Mobile */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
  display: block;
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile Navigation Dropdown */
.mobile-nav {
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
  overflow: hidden;
  transition: var(--transition-medium);
}
.mobile-nav.open {
  height: 260px;
  padding: 1.5rem;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav-link {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
}
.mobile-nav-link:hover {
  color: var(--accent-cyan);
}

/* 2. Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-tag {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Stats Badges */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-header);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Portrait Frame */
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: center;
  aspect-ratio: 1;
}

.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
  filter: grayscale(10%) contrast(105%);
}
.hero-portrait:hover .portrait-img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.portrait-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--gradient-accent);
  z-index: 1;
  border-radius: calc(var(--radius-lg) + 8px);
  opacity: 0.3;
  filter: blur(15px);
  transition: var(--transition-medium);
}
.hero-portrait:hover .portrait-glow {
  opacity: 0.6;
  filter: blur(25px);
}

.hero-floating-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-medium);
}

.card-top-left {
  top: 15%;
  left: -15%;
}
.card-bottom-right {
  bottom: 15%;
  right: -15%;
}

.hero-portrait:hover .hero-floating-card {
  transform: translateY(-5px);
}

.floating-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

/* 3. Capabilities / Skills Section */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cap-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: var(--transition-fast);
}
.cap-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}
.cap-card:hover::before {
  opacity: 1;
}

.cap-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cap-icon svg {
  width: 26px;
  height: 26px;
}

.cap-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.cap-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cap-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: hsla(222, 47%, 20%, 0.4);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
[data-theme="light"] .tech-tag {
  background: hsl(210, 40%, 90%);
  color: var(--text-primary);
}

/* 4. Enterprise Solutions Section */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  color: hsl(222, 47%, 7%);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.solution-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.solution-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.solution-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  background: radial-gradient(circle, hsla(222, 47%, 16%, 0.8) 0%, hsl(222, 47%, 8%) 100%);
  font-size: 3rem;
}
[data-theme="light"] .solution-img-placeholder {
  background: radial-gradient(circle, hsl(210, 40%, 92%) 0%, hsl(210, 40%, 88%) 100%);
}

.solution-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: hsla(222, 47%, 7%, 0.8);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.solution-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}
.solution-card:hover .solution-title {
  color: var(--accent-cyan);
}

.solution-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.solution-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
}

.solution-tech {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.solution-link.view-case-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-interactive);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-sm);
}
.solution-link.view-case-btn svg {
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
  color: var(--accent-interactive);
}
.solution-link.view-case-btn:hover {
  border-color: var(--accent-interactive);
  background: var(--accent-interactive-glow);
  box-shadow: 0 0 12px var(--accent-interactive-glow);
  transform: translateY(-2px);
}
.solution-link.view-case-btn:hover svg {
  transform: translateX(3px);
}
.solution-link.view-case-btn:active {
  transform: translateY(0);
}

/* 5. Experience Timeline Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 3.5rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 3rem;
    left: 0;
  }
  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    padding-right: 0;
  }
}

.timeline-dot {
  position: absolute;
  left: 0.95rem;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-cyan);
  z-index: 2;
  box-shadow: 0 0 8px var(--accent-cyan);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: auto;
    right: -10px;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    right: auto;
  }
}

.timeline-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: var(--backdrop-blur);
  transition: var(--transition-medium);
}
.timeline-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.timeline-date {
  font-size: 0.82rem;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 6. Credentials / Certificates Section */
.cert-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition-medium);
}
.cert-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cert-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-badge-icon svg {
  width: 22px;
  height: 22px;
}

.cert-info {
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* 7. Consultation / Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: var(--backdrop-blur);
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 0.85fr 1.15fr;
    padding: 4.5rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-header {
  margin-bottom: 2.5rem;
}

.contact-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.channel-val {
  font-weight: 600;
  color: var(--text-primary);
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Enterprise Consultation Form */
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-group-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: hsla(222, 47%, 6%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}
[data-theme="light"] .form-input, [data-theme="light"] .form-select, [data-theme="light"] .form-textarea {
  background: hsl(210, 40%, 94%);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-progress {
  display: flex;
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.form-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition-medium);
}

.form-status-msg {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}
.form-status-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

/* 8. Footer Section */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-signature {
  height: 36px;
  opacity: 0.65;
  transition: var(--transition-fast);
}
.footer-signature:hover {
  opacity: 1;
}

/* 9. Case Study Popup Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-medium);
  padding: 1.5rem;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.modal-close-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.modal-body {
  padding: 2.5rem;
}

.modal-section {
  margin-bottom: 2rem;
}
.modal-section:last-child {
  margin-bottom: 0;
}

.modal-sec-title {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.modal-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.modal-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.modal-points-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
}
.modal-points-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Utilities for active tabs */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE OPTIMIZATIONS --- */
@media (max-width: 767px) {
  #header-consult-btn {
    display: none !important;
  }
}

/* --- TECHNICAL SYSTEMS MATRIX TABLE STYLES --- */
.section-matrix {
  position: relative;
  background: transparent;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  min-width: 800px;
}

.matrix-table th {
  background: hsla(222, 47%, 16%, 0.4);
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

[data-theme="light"] .matrix-table th {
  background: hsla(210, 40%, 90%, 0.4);
}

.matrix-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
  vertical-align: middle;
  line-height: 1.5;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr {
  transition: background-color var(--transition-fast);
}

.matrix-table tr:hover {
  background-color: var(--bg-glass-hover);
}

.matrix-table strong {
  color: var(--text-primary);
}

.matrix-table small {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-top: 0.25rem;
}

/* --- FAQ ACCORDION STYLES --- */
.section-faq {
  position: relative;
  background: transparent;
}

.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.faq-item:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-align: left;
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--accent-cyan);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-medium) ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium) ease-in-out;
}

.faq-content p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-content strong {
  color: var(--text-primary);
}

