/* ============================================
   CSS Custom Properties & Reset
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0c0c0c;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --accent: #d4a853;
  --accent-rgb: 212, 168, 83;
  --text-bright: #f5f5f5;
  --text-light: #d4d4d4;
  --text-muted: #8a8a8a;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --nav-height: 70px;
  --section-padding: 100px 0;
}

html {
  scroll-behavior: auto; /* Lenis handles this */
}

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

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

a:hover {
  color: var(--text-bright);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px;
}

section {
  padding: var(--section-padding);
}

.section-heading {
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-heading .number {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--accent);
  font-weight: 400;
}

.section-heading::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: rgba(100, 255, 218, 0.2);
  max-width: 300px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 50px;
  max-width: 600px;
}

/* ============================================
   Preloader
   ============================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.preloader-initials {
  font-family: var(--font-mono);
  font-size: 48px;
  color: var(--accent);
  letter-spacing: 8px;
  font-weight: 500;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.08);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 2px;
}

.logo-bracket {
  color: var(--accent);
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-light);
  transition: color var(--transition);
  letter-spacing: 0.5px;
}

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

.link-number {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  margin-right: 4px;
}

.nav-cta {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background var(--transition);
  margin-left: 8px;
}

.nav-cta:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}

.hamburger .bar {
  width: 28px;
  height: 2px;
  background: var(--accent);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 400px;
  height: 100vh;
  background: rgba(16, 16, 16, 0.97);
  backdrop-filter: blur(10px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: right var(--transition);
}

.mobile-nav-overlay.open {
  right: 0;
}

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

  .hamburger {
    display: flex;
  }
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
}

.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Ambient light bleed — warm engineering feel */
.hero-bg-grid::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
  animation: ambientDrift 15s ease-in-out infinite alternate;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  animation: ambientDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Subtle diagonal architectural lines */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(30deg, transparent 49.5%, rgba(212, 168, 83, 0.02) 49.5%, rgba(212, 168, 83, 0.02) 50.5%, transparent 50.5%),
    linear-gradient(-30deg, transparent 49.5%, rgba(212, 168, 83, 0.015) 49.5%, rgba(212, 168, 83, 0.015) 50.5%, transparent 50.5%);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: clamp(14px, 3vw, 16px);
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
}

.hero-name {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 10px;
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.1;
  margin-bottom: 25px;
  opacity: 0;
}

.hero-description {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 15px;
  line-height: 1.7;
  opacity: 0;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 40px;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 16px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}

.btn-outline {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
}

.about-image {
  width: 320px;
  flex-shrink: 0;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-image-wrapper {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating accent ring */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    transparent 25%,
    transparent 50%,
    var(--accent) 75%,
    transparent 100%
  );
  animation: ringRotate 8s linear infinite;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.about-image-wrapper:hover::before {
  opacity: 1;
}

/* Dark ring behind image to mask the gradient */
.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: 1;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(var(--accent-rgb), 0.2);
  filter: grayscale(20%) contrast(1.05);
  transition: all var(--transition);
}

.about-image-wrapper:hover .about-photo {
  filter: grayscale(0%) contrast(1);
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: scale(1.03);
}

/* Certification logo strip under photo */
.cert-strip {
  margin-top: 28px;
  text-align: center;
}

.cert-strip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 14px;
}

.cert-strip-track {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.cert-strip-inner {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: certScroll 18s linear infinite;
}

.cert-strip-track:hover .cert-strip-inner {
  animation-play-state: paused;
}

.cert-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.cert-strip-item:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.cert-strip-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
}

.cert-strip-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  white-space: nowrap;
}

.cert-strip-item:hover span {
  color: var(--accent);
}

.cert-strip-dark {
  filter: brightness(0.4);
}

@keyframes certScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.stat-number {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  color: var(--accent);
  display: inline;
}

.stat-plus {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--accent);
  font-weight: 300;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-mono);
}

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

  .about-image {
    width: 100%;
    order: -1;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

/* ============================================
   Education Section
   ============================================ */
.edu-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.edu-card {
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(2, 12, 27, 0.4);
}

.edu-accent-bar {
  width: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.edu-content {
  padding: 30px;
}

.edu-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.edu-degree {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.edu-school {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  padding: 3px 10px;
  border-radius: 3px;
}

.edu-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Certifications */
.cert-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 25px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.cert-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.cert-badge:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.05);
}

.cert-icon {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cert-logo-link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.cert-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-logo-dark {
  filter: brightness(0.4);
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  display: block;
  margin-bottom: 3px;
}

.cert-detail {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .edu-timeline {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Experience Timeline
   ============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(var(--accent-rgb), 0.15);
}

.timeline-item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 60px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 3px solid var(--accent);
  border-radius: 50%;
  top: 30px;
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.5); }
}

.timeline-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(2, 12, 27, 0.4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  padding: 3px 10px;
  border-radius: 3px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-list {
  text-align: left;
}

.timeline-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.timeline-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 15px 15px 15px 55px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
    padding-left: 55px;
    padding-right: 15px;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
    right: auto;
  }
}

/* ============================================
   Research Projects
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.project-card:hover {
  box-shadow: 0 25px 50px rgba(2, 12, 27, 0.5);
}

.project-image {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image::after {
  content: '🏗️';
  font-size: 48px;
  opacity: 0.3;
}

.project-content {
  padding: 25px;
}

.project-location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

.project-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  transition: all var(--transition);
}

.project-link:hover {
  letter-spacing: 1px;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   Graphics & Media — Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s ease;
}

/* When you add real images, use: <img src="..." class="gallery-thumb-img"> */
.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.05);
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  font-size: 28px;
  color: var(--accent);
  width: 50px;
  height: 50px;
  border: 2px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
  border-color: var(--accent);
  transform: scale(1.1);
}

.gallery-placeholder-label {
  font-family: var(--font-mono);
  font-size: 24px;
  color: rgba(var(--accent-rgb), 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.graphics-behance-cta {
  text-align: center;
  margin-top: 40px;
}

/* Placeholder patterns */
.gfx-pattern-1 { background: linear-gradient(160deg, #111 0%, #1a1a1a 50%, #111 100%); }
.gfx-pattern-2 { background: linear-gradient(135deg, #0e0e0e 0%, #1c1c1c 40%, #0e0e0e 100%); }
.gfx-pattern-3 { background: linear-gradient(145deg, #0a0a0a 0%, #181818 50%, #0a0a0a 100%); }
.gfx-pattern-4 { background: linear-gradient(150deg, #0d0d0d 0%, #1b1b1b 50%, #0d0d0d 100%); }
.gfx-pattern-5 { background: linear-gradient(140deg, #0b0b0b 0%, #191919 50%, #0b0b0b 100%); }
.gfx-pattern-6 { background: linear-gradient(155deg, #0c0c0c 0%, #1a1a1a 50%, #0c0c0c 100%); }

/* ============================================
   Lightbox Modal
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(20px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-placeholder {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
  border: 1px dashed rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 36px;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  z-index: 5001;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--text-light);
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 5001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ============================================
   Construction Materials Lab
   ============================================ */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.lab-card {
  background: var(--bg-card);
  padding: 35px 30px;
  border-radius: 8px;
  border-top: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.lab-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent);
  box-shadow: 0 20px 40px rgba(2, 12, 27, 0.4);
}

.lab-icon {
  font-size: 36px;
  margin-bottom: 18px;
}

.lab-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.3;
}

.lab-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  color: var(--text-light);
}

a.contact-value:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 6px;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.btn-submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: var(--bg-primary);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
#footer {
  padding: 40px 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
  position: relative;
}

.footer-content {
  text-align: center;
}

.footer-credit {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-accent {
  color: var(--accent);
}

.footer-links {
  display: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 20px;
  transition: transform var(--transition);
}

.footer-links a:hover {
  transform: translateY(-3px);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

.back-to-top {
  position: absolute;
  right: 25px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-3px);
}

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