:root {
  --bg-primary: #f1f5f9;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(241, 245, 249, 0.85);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-cyan: #0ea5e9;
  --accent-blue: #0284c7;
  --gradient-glow: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  
  --border-glass: rgba(2, 132, 199, 0.12);
  --border-hover: rgba(2, 132, 199, 0.3);
  --shadow-glow: 0 15px 35px -5px rgba(2, 132, 199, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--font-body); 
  color: var(--text-primary); 
  background: var(--bg-primary); 
  line-height: 1.7; 
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 140px 0; position: relative; }

h1, h2, h3 { 
  font-family: var(--font-heading); 
  line-height: 1.1; 
  letter-spacing: -0.03em; 
}
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 700; color: var(--text-primary); }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }

em { 
  font-style: normal;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  color: var(--accent-blue); 
  font-size: 0.75rem; 
  font-weight: 800; 
  letter-spacing: 0.2em; 
  text-transform: uppercase; 
  margin-bottom: 24px;
}
.eyebrow span { width: 30px; height: 2px; background: var(--accent-blue); }
.eyebrow.dark { color: var(--accent-blue); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  z-index: -1;
  transition: opacity 0.3s ease;
}
.button-primary {
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 20px rgba(0, 68, 204, 0.25);
}
.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 68, 204, 0.4);
}
.button-dark {
  background: transparent;
  border: 2px solid var(--border-hover);
  color: var(--text-primary);
}
.button-dark::before { opacity: 0; }
.button-dark:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.button-dark:hover::before { opacity: 0.05; }

.button span { font-size: 1.2rem; transition: transform 0.3s ease; }
.button:hover span { transform: translateX(5px); }

.text-link {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}
.text-link span { color: var(--accent-blue); font-size: 1.2rem; transition: transform 0.3s ease; }
.text-link:hover { color: var(--accent-blue); }
.text-link:hover span { transform: translate(3px, -3px); }

/* Header & Glassmorphism */
.site-header { 
  position: fixed; 
  z-index: 100; 
  inset: 0 0 auto; 
  height: 85px; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { 
  display: grid; width: 44px; height: 44px; place-items: center; 
  background: var(--bg-primary); border-radius: 8px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.brand-mark img { width: 80%; height: 80%; object-fit: contain; }
.brand-type { display: grid; line-height: 1; text-transform: uppercase; }
.brand-type strong { color: var(--text-primary); font: 700 1.2rem var(--font-heading); letter-spacing: 0.05em; }
.brand-type small { margin-top: 4px; color: var(--accent-blue); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.25em; }

.main-nav { display: flex; align-items: center; gap: 40px; color: var(--text-secondary); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; }
.main-nav a { transition: color 0.3s ease; position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-glow);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--accent-blue); }
.main-nav a:hover::after { width: 100%; }

.nav-cta { 
  display: flex; gap: 8px; align-items: center; 
  padding: 10px 22px; color: var(--accent-blue); 
  border: 1px solid var(--border-hover); 
  border-radius: 100px;
  background: transparent;
  font-weight: 800;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--accent-blue); background: rgba(0, 68, 204, 0.05); }
.nav-cta span { color: var(--accent-cyan); font-size: 1.1rem; transition: transform 0.3s; }
.nav-cta:hover span { transform: translate(2px, -2px); }

.menu-toggle { display: none; cursor: pointer; border: 0; background: transparent; }

/* Hero */
.hero { 
  position: relative; 
  min-height: 100vh; 
  display: flex;
  align-items: center;
  padding: 120px 0 60px; 
  background: var(--bg-primary);
}
.hero-grid-pattern, .why-grid-pattern { 
  position: absolute; inset: 0; z-index: 1; opacity: 0.4; 
  background-image: linear-gradient(var(--border-glass) 1px, transparent 1px), linear-gradient(90deg, var(--border-glass) 1px, transparent 1px); 
  background-size: 60px 60px; 
  mask-image: radial-gradient(circle at center, black, transparent 75%); 
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; opacity: 0.6; }
.hero-glow-one { top: 5%; right: 5%; width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(0,153,255,0.15), transparent 70%); }
.hero-glow-two { bottom: 0%; left: -5%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0,68,204,0.1), transparent 70%); }

.hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 50px; position: relative; z-index: 2; }
.hero-copy h1 { margin: 20px 0 24px; text-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.hero-text { max-width: 580px; color: var(--text-secondary); font-size: 1.15rem; font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 40px; }

.hero-stats { 
  display: flex; gap: 48px; margin-top: 60px; padding-top: 32px; 
  border-top: 1px solid var(--border-glass); 
}
.hero-stats strong { display: block; color: var(--accent-blue); font: 700 2rem var(--font-heading); }
.hero-stats span { color: var(--text-muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.hero-visual { position: relative; height: 600px; z-index: 2; }
.hero-photo { 
  position: absolute; inset: 0 0 40px 40px; 
  border-radius: 24px; overflow: hidden; 
  box-shadow: 0 30px 60px rgba(0, 30, 80, 0.15);
}
.hero-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-visual:hover .hero-photo img { transform: scale(1.05); }

.hero-photo-caption { 
  position: absolute; left: -20px; bottom: 20px; 
  display: flex; align-items: center; gap: 20px; 
  padding: 24px 32px; 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent-blue);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-photo-caption span { color: var(--accent-blue); font: 700 1.5rem var(--font-heading); }
.hero-photo-caption p { color: var(--text-primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.hero-bottom { 
  position: absolute; bottom: 30px; left: 0; right: 0;
  display: flex; align-items: center; gap: 20px; 
  color: var(--text-muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; 
  z-index: 2;
}
.hero-bottom div { height: 1px; flex: 1; background: var(--border-glass); }

/* Split Heading */
.split-heading { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 40px; margin-bottom: 70px; }
.split-heading > p { color: var(--text-secondary); font-size: 1.1rem; padding-bottom: 12px; }

/* Services */
.services { background: var(--bg-secondary); }
.service-grid { 
  display: grid; grid-template-columns: repeat(3, 1fr); 
  gap: 24px;
}
.service-card { 
  padding: 45px 35px; 
  background: var(--bg-primary); 
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 102, 255, 0.04), transparent 40%);
  z-index: 0; opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { 
  transform: translateY(-8px); 
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured { 
  background: var(--gradient-glow);
  color: #fff;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 68, 204, 0.3);
}

.service-card > * { position: relative; z-index: 1; }

.service-number { color: var(--text-muted); font: 700 0.8rem var(--font-heading); letter-spacing: 0.15em; }
.featured .service-number { color: rgba(255,255,255,0.7); }

.service-icon { 
  display: grid; width: 64px; height: 64px; margin: 32px 0 24px; place-items: center; 
  border-radius: 16px; color: var(--accent-blue); 
  background: var(--bg-secondary); 
  border: 1px solid var(--border-glass);
}
.featured .service-icon { 
  background: rgba(255,255,255,0.15); 
  color: #fff;
  border: none; 
}
.service-icon svg { width: 32px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.service-card h3 { font-size: 1.45rem; margin-bottom: 16px; color: var(--text-primary); }
.featured h3 { color: #fff; }

.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.featured p { color: rgba(255,255,255,0.9); }

.service-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--accent-blue); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transition: transform 0.3s; }
.featured a { color: #fff; }
.service-card a:hover { transform: translateX(5px); }

/* Gallery */
.work-gallery { display: grid; height: 380px; margin-top: 80px; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.work-gallery figure { position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.work-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.work-gallery figure:hover img { transform: scale(1.08); }
.work-gallery figcaption { 
  position: absolute; inset: auto 0 0; padding: 40px 24px 24px; 
  background: linear-gradient(transparent, rgba(0,0,0,0.85)); 
  color: #fff;
  font-size: 1rem; font-weight: 700; 
}
.work-gallery figcaption span { display: block; margin-bottom: 8px; color: var(--accent-cyan); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* About */
.about { background: var(--bg-primary); }
.about-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: center; }
.about-visual { position: relative; }
.about-image { overflow: hidden; aspect-ratio: 4/5; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 30, 80, 0.1); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-stamp { 
  position: absolute; right: -40px; bottom: 40px; 
  display: flex; align-items: center; gap: 20px; 
  padding: 24px 32px; 
  background: #fff; 
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.about-stamp strong { 
  color: transparent; background: var(--gradient-glow); -webkit-background-clip: text; 
  font: 700 2.5rem var(--font-heading); 
}
.about-stamp span { color: var(--text-primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; line-height: 1.5; text-transform: uppercase; }

.about-copy h2 { margin: 16px 0 32px; }
.about-copy .lead { color: var(--text-primary); font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; }
.about-copy p:not(.eyebrow):not(.lead) { margin: 0 0 40px; color: var(--text-secondary); font-size: 1.05rem; }

/* Why Us */
.why-us { background: #0a1526; overflow: hidden; position: relative; color: #fff; }
.why-grid-pattern { opacity: 0.15; filter: invert(1); }
.why-us h2, .why-us h3 { color: #fff; }
.split-heading.light > p { color: #849bb3; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.why-grid article { 
  padding: 40px 32px; background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255,255,255,0.08); border-radius: 20px;
  transition: all 0.3s;
}
.why-grid article:hover { background: rgba(255,255,255,0.06); border-color: rgba(0, 153, 255, 0.4); transform: translateY(-5px); }
.why-grid span { color: var(--accent-cyan); font: 700 1rem var(--font-heading); letter-spacing: 0.15em; }
.why-grid h3 { margin: 40px 0 16px; font-size: 1.4rem; }
.why-grid p { color: #849bb3; font-size: 0.95rem; line-height: 1.7; }

/* Contact */
.contact { background: var(--bg-secondary); position: relative; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at left bottom, rgba(0,68,204,0.03), transparent 50%);
}
.contact-card { 
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; 
  padding: 80px; background: var(--bg-primary); 
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 30, 80, 0.08);
}
.contact-copy p:not(.eyebrow) { color: var(--text-secondary); font-size: 1.1rem; max-width: 480px; }
.contact-links { align-self: center; display: flex; flex-direction: column; gap: 24px; }
.contact-links a { 
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px; border: 1px solid var(--border-glass); 
  border-radius: 20px; background: var(--bg-primary);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.contact-links a:hover { border-color: var(--accent-blue); background: var(--bg-secondary); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.contact-links small { color: var(--accent-blue); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.contact-links strong { margin-top: 8px; color: var(--text-primary); font: 700 1.5rem var(--font-heading); }
.contact-icon { 
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  display: grid; width: 48px; height: 48px; place-items: center; 
  color: var(--accent-blue); background: var(--bg-secondary); 
  border: 1px solid var(--border-glass); border-radius: 50%;
  transition: all 0.3s;
}
.contact-links a:hover .contact-icon { background: var(--gradient-glow); color: #fff; border-color: transparent; box-shadow: 0 5px 15px rgba(0,68,204,0.3); }

/* Footer */
footer { padding-top: 80px; background: var(--text-primary); border-top: none; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 60px; padding-bottom: 60px; }
.footer-brand { width: max-content; }
.footer-brand .brand-type strong { color: #fff; }
.footer-main p { color: #849bb3; font: 600 1.2rem/1.5 var(--font-heading); text-transform: uppercase; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 16px 40px; justify-content: end; }
.footer-nav a { color: #849bb3; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.3s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { 
  display: flex; justify-content: space-between; padding: 24px 0; 
  border-top: 1px solid rgba(255,255,255,0.1); color: #849bb3; 
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; 
}

/* Animations JS classes */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { gap: 60px; }
  .work-gallery { grid-template-columns: 1fr; height: auto; }
  .work-gallery figure { height: 250px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .site-header { height: 70px; }
  .brand-type strong { font-size: 1rem; }
  .menu-toggle { display: grid; gap: 6px; width: 40px; padding: 8px; }
  .menu-toggle span { display: block; height: 2px; background: var(--text-primary); transition: all 0.3s; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  .main-nav { 
    position: absolute; top: 70px; left: 0; right: 0; 
    flex-direction: column; gap: 0; 
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    max-height: 0; overflow: hidden; opacity: 0; 
    transition: all 0.4s ease; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  .main-nav.open { max-height: 400px; padding: 20px; opacity: 1; }
  .main-nav a { padding: 16px; width: 100%; text-align: center; }
  .nav-cta { margin-top: 10px; width: 100%; justify-content: center; }
  
  .service-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; text-align: center; }
  .about-stamp { right: 20px; bottom: -20px; padding: 16px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
}
