@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');

/* --- CSS VARIABLES & THEME DEFINITIONS --- */
:root {
  --bg-dark: #07090e;
  --bg-deep: #0b0f19;
  --bg-card: #121824;
  --bg-card-hover: #192132;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-glow: rgba(0, 242, 254, 0.15);
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  
  --text-white: #f8fafc;
  --text-primary: #e2e8f0;
  --text-muted: #8a99ad;
  --text-dark: #475569;
  
  --border-muted: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(0, 242, 254, 0.25);
  
  --font-headings: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- VERCEL-STYLE TECH BACKGROUND GRID --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}

body.modal-open, body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

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


/* --- ACCESSIBILITY BASELINE --- */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #020617;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 242, 254, 0.28);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(0, 242, 254, 0.16);
}

#main-content:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ambient-glow {
    filter: blur(60px);
  }
}

/* --- GLOWING BACKGROUND DECORATIONS --- */
.ambient-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.07) 0%, rgba(79, 172, 254, 0.02) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}

.glow-1 { top: -10%; right: -10%; }
.glow-2 { top: 35%; left: -25%; }
.glow-3 { bottom: 5%; right: -15%; }

/* --- REVEAL ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 120px 0;
  position: relative;
}

/* --- HEADER / NAVIGATION (GLASSMORPHISM) --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background-color: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-muted);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45), inset 0 0 10px rgba(255,255,255,0.2);
  color: var(--bg-dark);
}

/* MOBILE TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  z-index: 110;
  padding: 5px;
}

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 50px);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
  display: inline-block;
  font-weight: 700;
  position: relative;
}

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

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 242, 254, 0.15);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  box-shadow: 0 4px 25px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border-muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-badge-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-photo-wrapper {
  position: relative;
  width: 330px;
  height: 330px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  background: var(--bg-card);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 15%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-photo-wrapper:hover .hero-photo {
  transform: scale(1.05);
}

.hero-photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: rgba(18, 24, 36, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 1.1rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon {
  background: var(--accent-gradient);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
}

.badge-text div:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.badge-text div:last-child {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

/* --- SECTION GENERAL HEADINGS --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 70px;
}

.section-subtitle {
  font-family: var(--font-headings);
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* --- ABOUT ME SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.05rem;
}

.security-panel {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(79, 172, 254, 0.02) 100%);
  border: 1px dashed var(--border-glow);
  padding: 1.75rem;
  border-radius: 16px;
  margin-top: 2.5rem;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.security-panel:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(79, 172, 254, 0.04) 100%);
  border-style: solid;
}

.security-panel svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
}

.security-panel h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.security-panel p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.about-visual {
  background: var(--bg-deep);
  border: 1px solid var(--border-muted);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.stat-box-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-muted);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-spring);
}

.stat-box:hover {
  background: var(--bg-card);
  border-color: var(--border-glow);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.08);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.75rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- WHAT I DO (SERVICES) SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 24px;
  padding: 3rem 2.2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.07);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  background: rgba(0, 242, 254, 0.06);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(0, 242, 254, 0.1);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.service-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

.section-cta {
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-muted);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--border-glow);
  border-radius: 50px;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
  transform: translateY(-2px);
  gap: 0.75rem;
}

/* --- TIMELINE (EXPERIENCE) SECTION --- */
.timeline-wrapper {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: var(--border-muted);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 60px;
  transition: var(--transition-smooth);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 20px;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 4px solid var(--text-muted);
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-item.active .timeline-dot {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
}

.timeline-meta {
  margin-bottom: 0.65rem;
}

.timeline-year {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
}

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

.timeline-title {
  font-size: 1.55rem;
  margin-bottom: 1.1rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  padding: 2.2rem;
  border-radius: 24px;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.03);
}

.timeline-card ul {
  list-style: none;
  margin-top: 1.25rem;
}

.timeline-card li {
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 300;
}

.timeline-card li:last-child {
  margin-bottom: 0;
}

.timeline-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 50px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.portfolio-grid-wrapper {
  transition: var(--transition-smooth);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  border: 1px solid var(--border-glow);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 242, 254, 0.06);
}

.project-card:hover::after {
  opacity: 1;
}

.card-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #030508;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .card-image-wrapper img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.view-btn {
  background: var(--text-white);
  color: var(--bg-dark);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-card:hover .view-btn {
  transform: translateY(0);
}

.card-content {
  padding: 2.2rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-year {
  color: var(--accent-cyan);
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  transition: var(--transition-smooth);
  letter-spacing: -0.3px;
}

.project-card:hover .card-title {
  color: var(--accent-cyan);
}

.card-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.project-card:hover .tag {
  border-color: rgba(0, 242, 254, 0.15);
  color: var(--text-primary);
}

/* --- CONTACT SECTION --- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.95rem;
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  max-width: 480px;
  font-weight: 300;
}

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

.channel {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  padding: 1.35rem 1.6rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.channel-button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.channel:hover {
  border-color: var(--border-glow);
  transform: translateX(6px);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.04);
}

.channel-icon {
  width: 46px;
  height: 46px;
  background: rgba(0, 242, 254, 0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  border: 1px solid rgba(0, 242, 254, 0.1);
  transition: var(--transition-smooth);
}

.channel:hover .channel-icon {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  box-shadow: 0 5px 12px rgba(0, 242, 254, 0.35);
}

.channel-content span {
  display: block;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.channel-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 2px;
}

.contact-form-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-muted);
  padding: 3.5rem 3rem;
  border-radius: 28px;
  box-shadow: 0 25px 55px rgba(0,0,0,0.4);
}

.contact-form-card h4 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.form-kicker {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-submit {
  width: 100%;
  border-radius: 8px;
}

.form-assurance {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

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

select.form-input {
  color-scheme: dark;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

body.light-theme select.form-input {
  color-scheme: light;
}

body.light-theme select.form-input option {
  background: #ffffff;
  color: #0f172a;
}

/* --- FOOTER --- */
.main-footer {
  border-top: 1px solid var(--border-muted);
  background: var(--bg-dark);
  padding: 50px 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 400;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.06);
  transform: translateY(-3px) scale(1.05);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dark);
  align-items: center;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-legal-links a:hover {
  color: var(--accent-cyan);
}

.footer-legal-links span {
  color: var(--text-dark);
  font-size: 0.6rem;
  user-select: none;
}

/* --- LIGHTBOX POPUP (CASE STUDY MODAL) --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.lightbox-wrapper {
  width: 100%;
  max-width: 1150px;
  max-height: calc(100vh - 5rem);
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 28px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.7);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal:not(.hidden) .lightbox-wrapper {
  transform: scale(1);
}

.lightbox-modal.gallery-mode .lightbox-wrapper {
  grid-template-columns: 1fr;
  max-width: min(1120px, calc(100vw - 3rem));
}

.lightbox-modal.gallery-mode .lightbox-carousel {
  border-right: none;
  min-height: min(72vh, 680px);
}

.lightbox-modal.gallery-mode .carousel-slide img {
  max-height: min(66vh, 620px);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-muted);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  border-color: transparent;
  transform: rotate(90deg) scale(1.05);
}

/* CAROUSEL LEFT PANEL */
.lightbox-carousel {
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  border-right: 1px solid var(--border-muted);
}

.carousel-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 580px;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid var(--border-muted);
  color: var(--text-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 5;
}

.carousel-nav:hover {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  border-color: transparent;
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev { left: 24px; }
.carousel-nav.next { right: 24px; }

.carousel-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0) 100%);
  padding: 40px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-caption {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  padding-right: 20px;
}

.carousel-counter {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* DETAILS RIGHT PANEL */
.lightbox-details {
  padding: 4rem 3rem;
  overflow-y: auto;
}

.lb-category {
  font-family: var(--font-headings);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: block;
}

.lb-title {
  font-size: 2.2rem;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.lb-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.lb-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 2.5rem;
}

.lb-meta-item span {
  display: block;
}

.lb-meta-label {
  font-size: 0.75rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.lb-meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 4px;
}

.lb-section-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-headings);
  position: relative;
  padding-left: 14px;
}

.lb-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.lb-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.lb-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.lb-features li {
  color: var(--text-muted);
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
}

.lb-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- RESPONSIVENESS (MOBILE STYLING) --- */
@media (max-width: 1024px) {
  .hero-layout {
    gap: 3rem;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .about-grid {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .lightbox-wrapper {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 2rem);
  }
  
  .lightbox-carousel {
    min-height: 360px;
    border-right: none;
    border-bottom: 1px solid var(--border-muted);
  }
  
  .carousel-slide img {
    max-height: 420px;
  }
  
  .lightbox-details {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  
  .main-header {
    height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: #090d14;
    border-left: 1px solid var(--border-muted);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 105;
  }
  
  .nav-links-wrapper.open {
    transform: translateX(0);
    box-shadow: -15px 0 35px rgba(0,0,0,0.65);
  }
  
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 3rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-badge-container {
    margin-top: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .contact-form-card {
    padding: 2.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-photo-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .about-visual {
    padding: 2rem 1.5rem;
  }
  
  .stat-box-container {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox-modal {
    padding: 0.5rem;
  }
  
  .lightbox-wrapper {
    max-height: 100vh;
    border-radius: 0;
  }
}

/* --- VISUAL ENHANCEMENTS & WEB BEST PRACTICES --- */

/* 1. Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: width 0.1s ease-out;
}

/* 2. Glassmorphic Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(7, 9, 14, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 5px;
  border: 2px solid rgba(7, 9, 14, 0.6);
  transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* 3. Contact Form Hardening & Glows */
.contact-form-card .form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
  background: rgba(25, 33, 50, 0.4);
}

/* Invalid inputs styled subtly on focus */
.contact-form-card .form-input:invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* 4. Toast Notifications UI */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.toast-notification.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 400px;
}

.toast-notification.success .toast-content {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.toast-notification.error .toast-content {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.toast-notification.success .toast-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.toast-notification.error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast-message {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.4;
}

/* Mobile toast adjustments */
@media (max-width: 576px) {
  .toast-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: translateY(50px);
  }
  .toast-content {
    max-width: 100%;
  }
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-muted);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: 1rem;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
  transform: rotate(30deg);
}

.theme-toggle-btn .sun-icon {
  display: none;
}
.theme-toggle-btn .moon-icon {
  display: block;
}

body.light-theme .theme-toggle-btn .sun-icon {
  display: block;
}
body.light-theme .theme-toggle-btn .moon-icon {
  display: none;
}

/* --- TRANSITION CONTROL ON VARIABLES --- */
body, header, .project-card, .service-card, .timeline-card, .contact-form-card, .main-header, footer, a, input, textarea, select, .stat-box, .theme-toggle-btn, .channel, .hero-badge, .credential-card {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* --- LIGHT MODE VARIABLES & RULES --- */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-deep: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #e2e8f0;
  
  --text-white: #0f172a;
  --text-primary: #334155;
  --text-muted: #64748b;
  --text-dark: #94a3b8;
  
  --border-muted: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(8, 145, 178, 0.2);
  
  --accent-cyan: #0891b2;
  --accent-blue: #2563eb;
  --accent-glow: rgba(8, 145, 178, 0.08);
}

body.light-theme .hero-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(8, 145, 178, 0.12);
}

body.light-theme::before {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

body.light-theme .ambient-glow {
  background: radial-gradient(circle, rgba(8, 145, 178, 0.05) 0%, rgba(37, 99, 235, 0.01) 60%, rgba(0,0,0,0) 100%);
}

body.light-theme .main-header.scrolled {
  background-color: rgba(248, 250, 252, 0.85);
}

body.light-theme .service-card,
body.light-theme .timeline-card,
body.light-theme .project-card,
body.light-theme .contact-form-card,
body.light-theme .channel,
body.light-theme .stat-box,
body.light-theme .project-meta-box {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
}

body.light-theme .service-card:hover,
body.light-theme .project-card:hover,
body.light-theme .contact-form-card:hover,
body.light-theme .channel:hover,
body.light-theme .project-gallery-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.06);
}

body.light-theme .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
}
body.light-theme .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

body.light-theme .lightbox-modal {
  background-color: rgba(248, 250, 252, 0.85);
}

body.light-theme .lightbox-wrapper {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

body.light-theme .toast-content {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

body.light-theme .toast-message {
  color: #0f172a;
}

body.light-theme .carousel-caption-bar {
  background: linear-gradient(0deg, rgba(241, 245, 249, 0.95) 0%, rgba(241, 245, 249, 0.4) 70%, transparent 100%);
  color: #0f172a;
}

/* --- DEDICATED CASE STUDY PAGE (project.html) --- */
.project-detail-section {
  padding: 10rem 0 6rem 0;
  position: relative;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

.project-detail-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-study-title {
  font-size: 3.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.case-study-tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-meta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.project-meta-value {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 600;
}

.project-gallery-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.75rem;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-gallery-item {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  background: var(--bg-card);
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-gallery-item:hover img,
.project-gallery-item:focus-visible img {
  transform: scale(1.05);
}

.project-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.9) 0%, rgba(7, 9, 14, 0.4) 70%, transparent 100%);
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 500;
}

body.light-theme .project-gallery-caption {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 70%, transparent 100%);
  color: #0f172a;
}

.project-specs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-specs h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.75rem;
}

.project-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-specs-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-primary);
}

.project-specs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

body.light-theme .project-specs-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .case-study-title {
    font-size: 2.5rem;
  }
}

/* --- VERIFIED CREDENTIALS SECTION --- */
.credentials-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 242, 254, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(18, 24, 36, 0.35), rgba(7, 9, 14, 0));
  border-top: 1px solid var(--border-muted);
}

.credentials-intro {
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.credentials-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.92rem;
}

.credentials-profile-link::after {
  content: '↗';
  font-size: 0.9em;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 3rem;
}

.credential-card {
  min-height: 100%;
  padding: 1.15rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-muted);
  border-radius: 22px;
  transition: var(--transition-smooth);
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1.15rem;
  align-items: center;
}

.credential-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px var(--accent-glow);
}

.credential-badge-wrap {
  width: 104px;
  min-height: 104px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-muted);
  padding: 0.65rem;
}

.credential-badge-wrap img {
  max-width: 88px;
  max-height: 88px;
  width: auto;
  height: auto;
  display: block;
}

.credential-domain {
  display: inline-flex;
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.credential-card strong,
.credential-card span,
.credential-card em {
  display: block;
}

.credential-card strong {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.credential-card span:not(.credential-domain) {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.credential-card em {
  color: var(--text-white);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 1rem;
}

body.light-theme .credentials-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(8, 145, 178, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0));
}

body.light-theme .credential-card,
body.light-theme .credential-badge-wrap {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

@media (max-width: 980px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .credentials-section {
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .credential-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
