@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@200;300;400;500;600&display=swap');

:root {
  --bg: hsl(0,0%,7%);
  --fg: hsl(0,0%,95%);
  --card: hsl(0,0%,10%);
  --secondary: hsl(0,0%,15%);
  --secondary-fg: hsl(0,0%,85%);
  --muted: hsl(0,0%,18%);
  --muted-fg: hsl(0,0%,55%);
  --accent: hsl(40,70%,50%);
  --accent-fg: hsl(0,0%,7%);
  --border: hsl(0,0%,20%);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
  --gradient-overlay: linear-gradient(180deg, hsla(0,0%,0%,0.4) 0%, hsla(0,0%,0%,0.15) 50%, hsla(0,0%,0%,0.6) 100%);
  --shadow-glow: 0 0 40px hsla(40,70%,50%,0.15);
  --shadow-glow-lg: 0 0 80px hsla(40,70%,50%,0.12), 0 0 120px hsla(40,70%,50%,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media(min-width:768px) { .container { padding: 0 48px; } }

/* ── Utility ── */
.line-accent { width: 48px; height: 2px; background: var(--accent); }
.line-accent.center { margin-left: auto; margin-right: auto; }

.text-shimmer {
  background: linear-gradient(120deg, var(--fg) 0%, var(--fg) 40%, var(--accent) 50%, var(--fg) 60%, var(--fg) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}

.cta-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
  transition: all 0.3s;
}
.cta-outline:hover {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-glow-lg);
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  font-weight: 300;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--accent); }

.watermark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: hsla(0,0%,100%,0.07);
  user-select: none;
  pointer-events: none;
}

/* ── Glow Divider ── */
.glow-divider {
  width: 100%; height: 1px; position: relative;
  background: linear-gradient(90deg, transparent 0%, hsla(40,70%,50%,0.3) 30%, hsla(40,70%,50%,0.6) 50%, hsla(40,70%,50%,0.3) 70%, transparent 100%);
}
.glow-divider::after {
  content: ""; position: absolute; inset: 0;
  background: inherit; filter: blur(8px);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: hsl(0,0%,25%); border-radius: 3px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  transition: background 0.5s, backdrop-filter 0.5s;
}
@media(min-width:768px) { .navbar { padding: 16px 48px; } }
.navbar.scrolled { background: hsla(0,0%,7%,0.9); backdrop-filter: blur(12px); }
.navbar .logo { height: 40px; filter: brightness(2); object-fit: cover;width: 80px; }
.navbar .desktop-nav { display: none; gap: 32px; align-items: center; }
@media(min-width:768px) { .navbar .desktop-nav { display: flex; } }
.navbar .burger { display: flex; flex-direction: column; gap: 6px; z-index: 50; }
@media(min-width:768px) { .navbar .burger { display: none; } }
.navbar .burger span { display: block; width: 24px; height: 2px; background: var(--fg); transition: all 0.3s; }
.navbar .burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.navbar .burger.open span:nth-child(2) { opacity: 0; }
.navbar .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: hsla(0,0%,7%,0.95); backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu button { font-family: var(--font-display); font-size: 1.875rem; color: var(--fg); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero .bg-wrap { position: absolute; inset: 0; }
.hero .bg-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg-wrap .overlay { position: absolute; inset: 0; background: var(--gradient-overlay); }
.hero .content { position: relative; z-index: 10; padding: 0 24px; }
.hero h1 { font-size: clamp(3rem,8vw,7rem); line-height: 0.95; font-weight: 400; }
.hero h1 > span { display: block; }
.hero h1 .bold { font-weight: 700; }
.hero .subtitle { margin-top: 32px; max-width: 560px; margin-left: auto; margin-right: auto; color: var(--muted-fg); font-size: 0.875rem; }
.hero .scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); text-align: center; }
.hero .scroll-hint span { color: var(--muted-fg); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero .scroll-hint .line { width: 1px; height: 24px; background: hsla(0,0%,55%,0.5); margin: 8px auto 0; animation: scrollBounce 2s infinite; }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ── ABOUT ── */
.about { padding: 96px 0; overflow: hidden; }
@media(min-width:768px) { .about { padding: 128px 0; } }
.about .title { text-align: center; margin-bottom: 64px; }
.about .title h2 { font-size: clamp(2rem,5vw,4.5rem); line-height: 1.05; }
.about .title .accent-text { color: var(--accent); }
.about .text-block { max-width: 896px; margin: 0 auto 80px; text-align: center; }
.about .text-block p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.about .gallery { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px) { .about .gallery { grid-template-columns: repeat(3,1fr); } }
.about .gallery .img-card {
  position: relative; overflow: hidden; border-radius: 24px; cursor: pointer; height: 300px;
}
.about .gallery .img-card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 24px;
  transition: transform 0.7s;
}
.about .gallery .img-card:hover img { transform: scale(1.1); }
.about .gallery .img-card .hover-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  transform: translateY(100%); transition: transform 0.5s;
  background: linear-gradient(to top, hsla(0,0%,7%,0.6), transparent);
}
.about .gallery .img-card:hover .hover-info { transform: translateY(0); }
.about .gallery .img-card .hover-info .bar { height: 2px; width: 32px; background: var(--accent); margin-bottom: 8px; }
.about .gallery .img-card .hover-info p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; }

/* ── SERVICES ── */
.services { background: var(--secondary); padding: 96px 0; overflow: hidden; position: relative; }
@media(min-width:768px) { .services { padding: 128px 0; } }
.services .watermark-wrap {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
}
@media(min-width:768px) { .services .watermark-wrap { right: 32px; } }
.services .header { margin-bottom: 80px; }
.services .header h2 { font-size: clamp(1.875rem,4vw,3rem); font-weight: 700; }
.service-card { border-top: 1px solid var(--border); padding: 48px 0; transition: padding-left 0.5s; }
@media(min-width:768px) { .service-card { padding: 64px 0; } }
.service-card:hover { padding-left: 16px; }
.service-card .inner { display: flex; flex-direction: column; gap: 24px; }
@media(min-width:768px) { .service-card .inner { flex-direction: row; align-items: flex-start; gap: 64px; } }
.service-card .left { display: flex; align-items: center; gap: 24px; }
@media(min-width:768px) { .service-card .left { width: 33%; } }
.service-card .num {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700;
  color: var(--accent); opacity: 0.3; transition: opacity 0.5s;
}
.service-card:hover .num { opacity: 1; }
.service-card h3 {
  font-family: var(--font-display); font-size: clamp(1.125rem,2vw,1.5rem); font-weight: 700;
  transition: color 0.3s;
}
.service-card:hover h3 { color: var(--accent); }
.service-card .desc { color: var(--muted-fg); font-size: 0.875rem; max-width: 512px; }
@media(min-width:768px) { .service-card .desc { width: 66%; } }
.service-card .accent-bar { height: 2px; width: 64px; background: var(--accent); margin-top: 32px; }
.services .bottom-border { border-top: 1px solid var(--border); }

/* ── INNOVATION ── */
.innovation { padding: 112px 0 112px; overflow: hidden; position: relative; }
@media(min-width:768px) { .innovation { padding: 160px 0; } }
.innovation .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px; border-radius: 9999px;
  border: 1px solid hsla(40,70%,50%,0.3); background: hsla(40,70%,50%,0.05);
  color: var(--accent); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.innovation .badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }
.innovation .headline h2 {
  font-size: clamp(2rem,5vw,4.5rem); line-height: 1.1; font-family: var(--font-display);
}
.innovation .headline .italic { font-style: italic; color: var(--accent); }
.innovation .sub { color: var(--muted-fg); font-size: 0.875rem; max-width: 640px; margin: 0 auto 64px; text-align: center; }
.innovation .video-wrap {
  max-width: 896px; margin: 0 auto 80px; border-radius: 16px; overflow: hidden;
  border: 1px solid hsla(0,0%,20%,0.2);
  box-shadow: 0 0 80px hsla(40,70%,50%,0.08);
}
.innovation .video-wrap .aspect { position: relative; padding-top: 56.25%; background: hsla(0,0%,18%,0.1); }
.innovation .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; max-width: 768px; margin: 0 auto 80px; }
@media(min-width:768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  text-align: center; padding: 20px 10px; border-radius: 16px;
  border: 1px solid hsla(0,0%,20%,0.2); background: hsla(0,0%,15%,0.5);
  transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover { transform: scale(1.05); border-color: hsla(40,70%,50%,0.4); }
.stat-card .val { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.25rem); color: var(--accent); margin-bottom: 4px; }
.stat-card .lbl { font-size: 0.625rem; color: var(--muted-fg); letter-spacing: 0.3em; text-transform: uppercase; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1024px; margin: 0 auto; }
@media(min-width:768px) { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .features-grid { grid-template-columns: repeat(4,1fr); } }
.feature-card {
  padding: 24px; border-radius: 16px; cursor: pointer;
  border: 1px solid hsla(0,0%,20%,0.2); background: hsla(0,0%,15%,0.3);
  transition: all 0.5s; position: relative; overflow: hidden;
}
.feature-card:hover, .feature-card.active { border-color: hsla(40,70%,50%,0.4); background: hsla(40,70%,50%,0.05); transform: translateY(-8px); }
.feature-card .fnum { font-family: var(--font-display); font-size: 2.25rem; color: hsla(40,70%,50%,0.1); margin-bottom: 12px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted-fg); font-size: 0.75rem; line-height: 1.6; }
.feature-card .bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.feature-card.active .bottom-bar, .feature-card:hover .bottom-bar { transform: scaleX(1); }

/* ── PROJECTS ── */
.projects { background: var(--secondary); padding: 112px 0; overflow: hidden; position: relative; }
@media(min-width:768px) { .projects { padding: 160px 0; } }
.projects .header { text-align: center; margin-bottom: 80px; }
.projects .header h2 { font-size: clamp(2rem,5vw,4.5rem); line-height: 1.1; font-family: var(--font-display); }
.projects .header .italic { font-style: italic; color: var(--accent); }
.projects .header .sub { color: var(--muted-fg); font-size: 0.875rem; margin-top: 16px; letter-spacing: 0.1em; }
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px) { .projects-grid { grid-template-columns: repeat(3,1fr); } }
.project-card {
  position: relative; overflow: hidden; border-radius: 32px; cursor: pointer;
  transition: transform 0.4s;
}
.project-card:hover { transform: translateY(-12px); }
.project-card .img-wrap { position: relative; height: 300px; overflow: hidden; border-radius: 32px; }
@media(min-width:768px) { .project-card .img-wrap { height: 380px; } }
.project-card img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 32px;
  transition: transform 0.7s;
}
.project-card:hover img { transform: scale(1.1); }
.project-card .accent-line {
  position: absolute; bottom: 0; left: 0; height: 3px; background: var(--accent);
  width: 0; transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.project-card.visible .accent-line { width: 100%; }
.project-card .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; }
.project-card .info .inner { transform: translateY(16px); transition: transform 0.5s; }
.project-card:hover .info .inner { transform: translateY(0); }
.project-card .cat { color: var(--accent); font-size: 0.625rem; letter-spacing: 0.4em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s; margin-bottom: 4px; }
.project-card:hover .cat { opacity: 1; }
.project-card .info h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.project-card .view-link { display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.5s 0.1s; }
.project-card:hover .view-link { opacity: 1; }
.project-card .view-link .bar { height: 1px; width: 32px; background: var(--accent); }
.project-card .view-link span { color: var(--muted-fg); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.project-card .number {
  position: absolute; top: 20px; right: 24px; font-family: var(--font-display);
  font-size: 3rem; color: hsla(0,0%,95%,0.03); transition: color 0.7s;
}
.project-card:hover .number { color: hsla(40,70%,50%,0.15); }

/* ── CONTACT ── */
.contact { padding: 96px 0; }
@media(min-width:768px) { .contact { padding: 128px 0; } }
.contact .grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media(min-width:1024px) { .contact .grid { grid-template-columns: 1fr 1fr; } }
.contact h2 { font-family: var(--font-display); font-size: clamp(1.875rem,4vw,3rem); font-weight: 700; }
.contact .intro { margin-top: 24px; color: var(--muted-fg); font-size: 0.875rem; max-width: 448px; }
.contact .details { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; font-style: normal; }
.contact .details a { color: inherit; text-decoration: none; transition: color 0.3s; }
.contact .details a:hover { color: var(--accent); }
.contact .details .label { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.contact .details .value { margin-top: 4px; }
.contact form { display: flex; flex-direction: column; gap: 24px; }
.contact form label { color: var(--muted-fg); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.contact form input, .contact form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 12px 0; color: var(--fg); font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color 0.3s; resize: none;
}
.contact form input:focus, .contact form textarea:focus { border-color: var(--accent); }
.contact .submit-btn { margin-top: 16px; align-self: flex-start; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer .inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media(min-width:768px) { .footer .inner { flex-direction: row; justify-content: space-between; } }
.footer .copy { color: var(--muted-fg); font-size: 0.875rem; }
.footer .socials { display: flex; gap: 24px; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: hsla(0,0%,7%,0.9); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox .lb-inner { max-width: 1024px; width: 100%; }
.lightbox img { max-height: 75vh; width: 100%; object-fit: contain; border-radius: 24px; }
.lightbox .lb-footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.lightbox .lb-footer .bar { height: 2px; width: 32px; background: var(--accent); margin-bottom: 8px; }
.lightbox .lb-footer h3 { font-family: var(--font-display); font-size: 1.5rem; }
.lightbox .lb-close { color: var(--muted-fg); font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; transition: color 0.3s; }
.lightbox .lb-close:hover { color: var(--fg); }

/* ── ANIMATIONS (scroll reveal) ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
