/* ============================================================
   TANGOSYS — style.css
   Orange-themed modern tech company website
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand */
  --orange:       #FF6B00;
  --orange-light: #FF8C38;
  --orange-dark:  #E05A00;

  /* Backgrounds */
  --dark:      #07070D;
  --off-white: #F8F8FA;
  --white:     #FFFFFF;

  /* Text */
  --text-dark: #12121A;
  --text-body: #3E3E4A;
  --gray-400:  #8B8B9A;
  --gray-600:  #6A6A7A;
  --gray-100:  #F2F2F5;

  /* Dark-section components */
  --dark-card:   rgba(255, 255, 255, 0.03);
  --dark-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter',         -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Misc */
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h:      72px;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-orange: 0 4px 20px rgba(255, 107, 0, 0.28);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;    /* Smooth scrolling for anchor links */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

strong { color: var(--text-dark); font-weight: 600; }

/* Shared container — limits max width and centers content */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared vertical padding for sections */
.section-pad {
  padding: 100px 0;
}

/* Dark background sections */
.dark-section {
  background: var(--dark);
  color: var(--white);
}


/* ============================================================
   3. TYPOGRAPHY HELPERS
   ============================================================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-label.light { color: var(--orange-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 540px;
}

.section-desc.light { color: var(--gray-400); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* gradient-text is defined in the hero section with its animation */


/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

/* Solid orange button */
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.45);
}

/* Ghost / outline button */
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  transform: translateY(-2px);
}

/* Full-width button (used in form) */
.btn.full-width {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-sm);
}


/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

/* Scrolled state — added by JS when user scrolls down */
.navbar.scrolled {
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo area */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  /* If logo image fails to load, this hides the broken image */
  display: none;
}

/* Shows logo image only if it actually loads — handled in JS */
.logo-img.loaded { display: block; }

.logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* Nav links row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }

/* LinkedIn button in navbar */
.nav-linkedin {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 0, 0.15) !important;
  color: var(--orange-light) !important;
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 7px 14px !important;
  border-radius: 6px !important;
}

.nav-linkedin:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-color: var(--orange) !important;
}

/* Hamburger (mobile menu button) */
.hamburger {
  display: none;          /* Hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Animate hamburger into X when menu is open */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   6. HERO SECTION — Premium Rewrite
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--navbar-h) + 80px) 24px 120px;
}

/* ---- Animated background layers ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}

.hero-orb--1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.14) 0%, transparent 65%);
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  /* Motion driven by JS parallax (script.js §9) */
}

.hero-orb--2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 140, 56, 0.10) 0%, transparent 65%);
  bottom: -120px;
  right: -60px;
}

.hero-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 50% 50%, rgba(120, 60, 255, 0.07) 0%, transparent 65%);
  top: 25%;
  left: -80px;
}

/* Dot-grid overlay (fades out toward edges) */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  mask-image:         radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
}

/* ---- Content ---- */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 40px;
  width: fit-content;
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

/* Pulsing live-dot inside badge */
.hero-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.22);
  flex-shrink: 0;
  animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25); }
  50%       { box-shadow: 0 0 0 7px rgba(255, 107, 0, 0);   }
}

/* Title */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

/* Sub-copy */
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 52px;
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* CTA row */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

.hero-scroll__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 107, 0, 0.6), transparent);
  animation: scrollCueDrop 2.4s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollCueDrop {
  0%      { transform: scaleY(0); opacity: 1; transform-origin: top;    }
  49%     { transform: scaleY(1); opacity: 1; transform-origin: top;    }
  50%     { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
  100%    { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

.hero-scroll__label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

/* Hero-specific button overrides */
.hero .btn-primary {
  background: linear-gradient(135deg, #FF6B00, #FF8C38);
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.4) inset,
              0 4px 24px rgba(255, 107, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.5) inset,
              0 8px 36px rgba(255, 107, 0, 0.5);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  transform: translateY(-2px);
}

/* Gradient text — animated shift */
.gradient-text {
  background: linear-gradient(135deg, #FF6B00 0%, #FF9040 50%, #FFB870 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0%   50%; }
  50%       { background-position: 100% 50%; }
}

/* Stagger reveal keyframe */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Responsive */
@media (max-width: 620px) {
  .hero { padding: calc(var(--navbar-h) + 50px) 20px 100px; }
  .hero-title { letter-spacing: -0.02em; }
  .hero-scroll { display: none; }
}


/* ============================================================
   7. ABOUT SECTION
   ============================================================ */
.about {
  position: relative;
  background: var(--off-white);
}

/* Subtle top separator from dark hero */
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.85;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 36px;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.25s ease, background 0.25s ease,
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-point:hover {
  border-color: rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.03);
  transform: translateY(-1px);
}

.about-point i {
  color: var(--orange);
  font-size: 0.875rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* Right visual — bento grid */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-card {
  border-radius: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 107, 0, 0.12);
}

.about-card:hover::before { opacity: 1; }

/* Main card spans both columns */
.main-card { grid-column: 1 / -1; }

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 107, 0, 0.08);
  border-radius: 12px;
  font-size: 1.3rem;
  color: var(--orange);
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* Side cards */
.side-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px;
}

.side-card .about-icon {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  border-radius: 10px;
  margin-bottom: 0;
}

.side-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}


/* ============================================================
   8. TEAM SECTION
   ============================================================ */
.team {
  position: relative;
  overflow: hidden;
}

/* Ambient background orb */
.team::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.team .container { position: relative; z-index: 1; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.team-card {
  --glow-x: 50%;
  --glow-y: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--glow-x) var(--glow-y),
    rgba(255, 107, 0, 0.07) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 107, 0, 0.07);
}

.team-card:hover::before { opacity: 1; }
.team-card:hover::after  { opacity: 1; }

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 107, 0, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 0, 0.1);
  color: var(--orange);
  font-size: 1.8rem;
}

.team-role-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.team-role-badge.gm {
  color: var(--orange-light);
  background: rgba(255, 140, 56, 0.08);
  border-color: rgba(255, 140, 56, 0.18);
}

.team-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.82;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.team-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}


/* ============================================================
   9. SERVICES SECTION
   ============================================================ */
.services {
  position: relative;
  overflow: hidden;
}

/* Ambient background orb */
.services::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.05) 0%, transparent 70%);
  top: -150px;
  right: -200px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.services .container { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  --glow-x: 50%;
  --glow-y: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Animated top line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Cursor-tracking glow overlay */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--glow-x) var(--glow-y),
    rgba(255, 107, 0, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 0, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 107, 0, 0.08);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--orange);
  margin-bottom: 22px;
  transition: background 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: scale(1.06);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.82;
  position: relative;
  z-index: 1;
}

/* 5th card — center it in the last row */
.services-grid > .service-card:last-child:nth-child(odd) {
  grid-column: 2;
}


/* ============================================================
   10. PROJECTS SECTION
   ============================================================ */
.projects {
  background: var(--off-white);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  --glow-x: 50%;
  --glow-y: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 34px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px circle at var(--glow-x) var(--glow-y),
    rgba(255, 107, 0, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 107, 0, 0.18);
  border-color: rgba(255, 107, 0, 0.18);
}

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

.project-icon {
  width: 52px; height: 52px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.12);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--orange);
  margin-bottom: 16px;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.project-card:hover .project-icon {
  background: rgba(255, 107, 0, 0.14);
  transform: scale(1.06);
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}


/* ============================================================
   11. CONTACT SECTION
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
}

/* Ambient background orb */
.contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  filter: blur(80px);
  pointer-events: none;
}

.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-item:hover {
  border-color: rgba(255, 107, 0, 0.22);
  background: rgba(255, 107, 0, 0.03);
}

.contact-icon {
  width: 42px; height: 42px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 3px;
}

.contact-value {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-value:hover { color: var(--orange-light); }

/* LinkedIn button */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 102, 194, 0.12);
  color: #60a5fa !important;
  border: 1px solid rgba(10, 102, 194, 0.28);
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  width: fit-content;
  margin-top: 8px;
}

.linkedin-btn:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.4);
}

.linkedin-btn i { font-size: 1.1rem; }

/* Contact form */
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.22); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 107, 0, 0.5);
  background: rgba(255, 107, 0, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.07);
}

/* Success message */
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  color: #4ade80;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 12px 16px;
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 10px;
}

.form-success.show { display: flex; }


/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: #050508;
  color: var(--gray-400);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Subtle top gradient separator */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: block;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 240px;
}

/* Social icon row */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

/* Footer column links */
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul a:hover { color: var(--orange-light); }

.footer-col ul a i { width: 14px; }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}


/* ============================================================
   13. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-orange);
  opacity: 0;                        /* Hidden by default */
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

/* JS adds .visible class when user scrolls down */
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}


/* ============================================================
   14. REVEAL ANIMATION SYSTEM
       Equivalent to Framer Motion whileInView + staggerChildren
       JS adds .revealed when element enters viewport (script.js §3)
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"]    { transform: translateY(40px);  }
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px);  }
[data-reveal="scale"] { transform: scale(0.94) translateY(16px); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delays — attach data-delay="N" to children */
[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }
[data-delay="5"] { transition-delay: 0.50s; }
[data-delay="6"] { transition-delay: 0.60s; }


/* ============================================================
   15. RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 900px) {

  .hero-actions { justify-content: center; }
  .hero-badge   { margin: 0 auto 40px; }
  .hero-sub     { max-width: 100%; margin: 0 auto 52px; }

  /* Stacked about grid */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Two-column services */
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > .service-card:last-child:nth-child(odd) { grid-column: auto; }

  /* Two-column projects */
  .projects-grid { grid-template-columns: 1fr 1fr; }

  /* Team grid stays 2 cols at tablet */
  .team-grid { max-width: 100%; }

  /* Stacked contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer: two columns */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {

  .section-pad { padding: 70px 0; }

  /* Mobile navbar */
  .hamburger { display: flex; }  /* Show hamburger */

  .nav-links {
    display: none;               /* Hide links by default on mobile */
    position: absolute;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 4px;
    border-bottom: 1px solid var(--dark-border);
  }

  .nav-links.open { display: flex; } /* JS toggles this */

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* Single column services, projects, and team */
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }

  /* Single column about points */
  .about-points { grid-template-columns: 1fr; }

  /* Single column footer */
  .footer-grid { grid-template-columns: 1fr; }

  /* Form padding */
  .contact-form { padding: 24px 20px; }

  .footer-bottom { flex-direction: column; text-align: center; }

}
