/* ═══════════════════════════════════════════════════
   GTICKX — DESIGN SYSTEM v2
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Variables — Dark (default) ── */
:root {
  --color-bg:            #0a0d14;
  --color-bg-2:          #111827;
  --color-bg-3:          #1a2234;
  --color-surface:       #151d2e;
  --color-surface-2:     #1e2b3f;
  --color-border:        rgba(37,99,235,0.15);
  --color-border-hover:  rgba(37,99,235,0.40);
  --color-text:          #f0f4ff;
  --color-text-muted:    #9CA3AF;
  --color-text-faint:    #4b5563;
  --color-accent:        #2563EB;
  --color-accent-light:  #3b82f6;
  --color-accent-hover:  #1d4ed8;
  --color-accent-glow:   rgba(37,99,235,0.30);
  --color-accent-2:      #06b6d4;
  --color-white:         #ffffff;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --font-primary: 'Poppins', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.30);
  --shadow-sm:    0 2px 8px  rgba(0,0,0,0.20);
  --shadow-glow:  0 0 40px rgba(37,99,235,0.20);
  --transition:   all 0.3s cubic-bezier(0.4,0,0.2,1);
  --navbar-h:     72px;
}

/* ── CSS Variables — Light ── */
[data-theme="light"] {
  /* Backgrounds */
  --color-bg:            #f8fafc;
  --color-bg-2:          #f1f5f9;
  --color-bg-3:          #e8edf5;
  /* Surfaces */
  --color-surface:       #ffffff;
  --color-surface-2:     #f0f6ff;
  /* Borders */
  --color-border:        #e2e8f0;
  --color-border-hover:  #93c5fd;
  /* Text */
  --color-text:          #0f172a;
  --color-text-muted:    #475569;
  --color-text-faint:    #94a3b8;
  /* Accents */
  --color-accent:        #1d4ed8;
  --color-accent-light:  #2563eb;
  --color-accent-hover:  #1e40af;
  --color-accent-glow:   rgba(29,78,216,0.12);
  --color-accent-2:      #0891b2;
  /* Shadows */
  --shadow-card:  0 4px 24px rgba(15,23,42,0.08);
  --shadow-sm:    0 2px 8px  rgba(15,23,42,0.06);
  --shadow-glow:  0 0 40px rgba(29,78,216,0.10);
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--color-text); }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
section { padding: clamp(4rem, 8vw, 8rem) 0; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10,13,20,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(37,99,235,0.15);
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

[data-theme="light"] #navbar {
  background: rgba(255, 255, 250, 0.95);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(248,250,252,0.95);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 16px rgba(15,23,42,0.08);
}

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

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.logo-g    { color: var(--color-text); }
.logo-tick { color: var(--color-accent); }
.logo-x    { color: var(--color-accent-2); }

[data-theme="light"] .logo-g { color: #0f172a; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 2px;
  background: var(--color-accent);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { right: 0; }

[data-theme="light"] .nav-links a { color: #64748b; }
[data-theme="light"] .nav-links a:hover { color: #0f172a; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
  background: var(--color-surface);
}
.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg)  translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h); left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500; font-size: 1.1rem;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}
.mobile-menu a:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.mobile-menu .btn-primary { margin-top: 1rem; text-align: center; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-primary);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 30px rgba(37,99,235,0.50);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--color-border-hover);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Light mode outline btn */
[data-theme="light"] .btn-outline {
  border-color: #cbd5e1;
  color: #334155;
}
[data-theme="light"] .btn-outline:hover {
  background: #f0f6ff;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-white  { background: white; color: var(--color-accent); font-weight: 700; }
.btn-white:hover { background: #f0f6ff; transform: translateY(-2px); }

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.5);
  color: white; background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; border-radius: var(--radius-lg); }

/* ══════════════════════════════════════
   BADGE
══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(37,99,235,0.10);
  color: var(--color-accent-light);
  border: 1px solid rgba(37,99,235,0.20);
}
.badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s infinite;
}

[data-theme="light"] .badge {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ══════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════ */
.section-header {
  text-align: center; max-width: 640px; margin: 0 auto 4rem;
}
.section-header .badge { margin-bottom: 1rem; }
.section-header h2   { margin-bottom: 1rem; }
.section-header p    { font-size: 1.05rem; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--navbar-h);
}
.hero-bg    { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-grid  {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-glow-1, .hero-glow-2 {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15;
}
.hero-glow-1 { width: 600px; height: 600px; background: var(--color-accent); top: -100px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: var(--color-accent-2); bottom: -100px; left: -50px; }

.hero-content    { position: relative; z-index: 1; max-width: 800px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 100px; font-size: 0.8rem;
  font-family: var(--font-mono); color: var(--color-accent-2);
  margin-bottom: 1.5rem; animation: fadeInDown 0.6s ease both;
}

[data-theme="light"] .hero-tag {
  background: white;
  border-color: #e2e8f0;
  color: var(--color-accent-2);
  box-shadow: var(--shadow-sm);
}

.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-2); animation: pulse 2s infinite;
}

.hero-content h1 { margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease 0.1s both; }
.hero-content h1 span { color: var(--color-accent); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem); max-width: 520px;
  margin-bottom: 2.5rem; animation: fadeInUp 0.8s ease 0.2s both;
}

[data-theme="light"] .hero-content h1 { color: #ffffff; }
[data-theme="light"] .hero-content p  { color: rgba(255,255,255,0.80); }
[data-theme="light"] .hero-stats      { border-top-color: rgba(255,255,255,0.15); }
[data-theme="light"] .stat-num        { color: #ffffff; }
[data-theme="light"] .stat-label      { color: rgba(255,255,255,0.65); }

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 2.5rem; border-top: 1px solid var(--color-border);
  animation: fadeInUp 0.8s ease 0.4s both;
}
.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num  { font-size: 2rem; font-weight: 800; color: var(--color-text); line-height: 1; }
.stat-num span { color: var(--color-accent); }
.stat-label    { font-size: 0.8rem; color: var(--color-text-muted); }

.hero-visual {
  position: relative; z-index: 1; flex: 1;
  display: flex; justify-content: flex-end;
  animation: fadeInRight 1s ease 0.2s both;
}
.hero-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 2rem; min-width: 320px;
  backdrop-filter: blur(10px);
}
.hero-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.card-dot { width: 12px; height: 12px; border-radius: 50%; }
.card-dot.red    { background: #ff5f57; }
.card-dot.yellow { background: #ffbd2e; }
.card-dot.green  { background: #28c840; }
.hero-code { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.8; color: var(--color-text-muted); }
.code-line { display: flex; gap: 1rem; }
.code-num  { color: var(--color-text-faint); min-width: 20px; }
.code-key  { color: #7dd3fc; }
.code-val  { color: #86efac; }
.code-str  { color: #fbbf24; }
.code-op   { color: var(--color-text-muted); }

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
#services { background: var(--color-bg-2); position: relative; overflow: hidden; }

[data-theme="light"] #services { background: #f1f5f9; }

.services-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(37,99,235,0.06) 1px, transparent 0);
  background-size: 32px 32px; pointer-events: none;
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
}
.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }

[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .service-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 32px rgba(29,78,216,0.12);
}

.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: rgba(37,99,235,0.10); border: 1px solid rgba(37,99,235,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem; transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(37,99,235,0.20); border-color: rgba(37,99,235,0.40);
}

[data-theme="light"] .service-icon {
  background: #eff6ff; border-color: #bfdbfe;
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; color: var(--color-text); }
.service-card p  { font-size: 0.9rem; margin-bottom: 1.25rem; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.2rem 0.7rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; font-family: var(--font-mono);
  background: var(--color-bg-3); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

[data-theme="light"] .tag {
  background: #f1f5f9; color: #475569; border-color: #e2e8f0;
}

.service-arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-faint); font-size: 0.75rem; transition: var(--transition);
}
.service-card:hover .service-arrow { border-color: var(--color-accent); color: var(--color-accent); transform: rotate(45deg); }

/* ══════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════ */
.portfolio-filters {
  display: flex; justify-content: center; gap: 0.75rem;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted); background: var(--color-surface);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}

[data-theme="light"] .filter-btn {
  background: #ffffff; border-color: #e2e8f0; color: #475569;
}
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); position: relative;
}
.project-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px); box-shadow: var(--shadow-card);
}

[data-theme="light"] .project-card {
  background: #ffffff; border-color: #e2e8f0; box-shadow: var(--shadow-sm);
}
[data-theme="light"] .project-card:hover {
  border-color: #93c5fd; box-shadow: 0 8px 32px rgba(29,78,216,0.12);
}

.project-img {
  height: 200px; background: var(--color-bg-3);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-img-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; opacity: 0.15;
}
.project-img-gradient { position: absolute; inset: 0; opacity: 0.8; }
.project-img-icon { position: relative; z-index: 1; font-size: 2.5rem; }

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(37,99,235,0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link-btn {
  padding: 0.75rem 1.5rem; background: white; color: var(--color-accent);
  border-radius: var(--radius-md); font-weight: 600; font-size: 0.875rem;
  transform: translateY(10px); transition: var(--transition);
}
.project-card:hover .project-link-btn { transform: translateY(0); }

.project-info { padding: 1.5rem; }
.project-category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-accent-2);
  font-family: var(--font-mono); margin-bottom: 0.5rem;
}
.project-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-text); }
.project-info p  { font-size: 0.875rem; margin-bottom: 1rem; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about { position: relative; overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-visual { position: relative; }
.about-main-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  position: relative; overflow: hidden;
}
.about-main-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
}

[data-theme="light"] .about-main-card {
  background: #ffffff; border-color: #e2e8f0;
  box-shadow: 0 8px 40px rgba(15,23,42,0.10);
}
[data-theme="light"] .about-main-card h3 { color: #0f172a; }
[data-theme="light"] .about-main-card p  { color: #475569; }

.about-stats-mini {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 2rem;
}
.stat-mini {
  text-align: center; padding: 1.25rem;
  background: var(--color-bg-2); border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
[data-theme="light"] .stat-mini {
  background: #f8fafc; border-color: #e2e8f0;
}
.stat-mini-num   { font-size: 1.75rem; font-weight: 800; color: var(--color-accent); }
.stat-mini-label { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.25rem; }

.about-floating-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--color-accent); color: white;
  padding: 1rem 1.5rem; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 8px 30px rgba(37,99,235,0.4);
}
.about-badge-num { font-size: 1.5rem; font-weight: 800; display: block; }

.about-content .badge { margin-bottom: 1rem; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p  { margin-bottom: 1.25rem; }

[data-theme="light"] .about-content h2 { color: #0f172a; }
[data-theme="light"] .about-content p  { color: #475569; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.value-item {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem;
  background: var(--color-surface); border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

[data-theme="light"] .value-item { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .value-item h4 { color: #0f172a; }
[data-theme="light"] .value-item p  { color: #64748b; }

.value-icon {
  font-size: 1.25rem; flex-shrink: 0;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.1); border-radius: var(--radius-sm);
}

[data-theme="light"] .value-icon { background: #eff6ff; }

.value-item h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.2rem; }
.value-item p  { font-size: 0.78rem; }

/* ══════════════════════════════════════
   TEAM
══════════════════════════════════════ */
#team { background: var(--color-bg-2); }
[data-theme="light"] #team { background: #f1f5f9; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.team-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  border-color: var(--color-border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card);
}

[data-theme="light"] .team-card {
  background: #ffffff; border-color: #e2e8f0; box-shadow: var(--shadow-sm);
}
[data-theme="light"] .team-card:hover {
  border-color: #93c5fd; box-shadow: 0 8px 32px rgba(29,78,216,0.10);
}
[data-theme="light"] .team-card h4 { color: #0f172a; }

.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: white; position: relative;
}
.team-avatar::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--color-accent); opacity: 0.5;
}
.team-card h4   { font-size: 1rem; margin-bottom: 0.25rem; }
.team-role      { font-size: 0.8rem; color: var(--color-accent-2); font-family: var(--font-mono); margin-bottom: 0.75rem; }
.team-bio       { font-size: 0.825rem; }

.team-socials { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.team-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--color-text-muted); transition: var(--transition);
}
.team-socials a:hover {
  border-color: var(--color-accent); color: var(--color-accent); background: rgba(37,99,235,0.1);
}

[data-theme="light"] .team-socials a { border-color: #e2e8f0; color: #64748b; }

/* ══════════════════════════════════════
   EXPERTISE
══════════════════════════════════════ */
#expertise { position: relative; }
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.expertise-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem; transition: var(--transition);
}
.expertise-card:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow-card); }

[data-theme="light"] .expertise-card {
  background: #ffffff; border-color: #e2e8f0; box-shadow: var(--shadow-sm);
}
[data-theme="light"] .expertise-card:hover {
  border-color: #93c5fd; box-shadow: 0 8px 32px rgba(29,78,216,0.10);
}
[data-theme="light"] .expertise-card h3 { color: #0f172a; }
[data-theme="light"] .expertise-card p  { color: #475569; }

.expertise-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.expertise-icon {
  font-size: 1.75rem; width: 52px; height: 52px;
  background: rgba(37,99,235,0.1); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="light"] .expertise-icon { background: #eff6ff; }

.expertise-header h3 { font-size: 1.05rem; }
.expertise-header p  { font-size: 0.8rem; }

.skill-bars { display: flex; flex-direction: column; gap: 1rem; }
.skill-bar-item { display: flex; flex-direction: column; gap: 0.4rem; }
.skill-bar-header { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--color-text-muted); }
.skill-bar-track { height: 6px; background: var(--color-bg-3); border-radius: 3px; overflow: hidden; }

[data-theme="light"] .skill-bar-track { background: #e2e8f0; }

.skill-bar-fill {
  height: 100%; border-radius: 3px; width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Tech stack */
.tech-stack-section { text-align: center; }
.tech-stack-section h3 { margin-bottom: 2.5rem; }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tech-logo-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); min-width: 90px;
  transition: var(--transition);
}
.tech-logo-item:hover {
  border-color: var(--color-accent); background: var(--color-surface-2); transform: translateY(-3px);
}

[data-theme="light"] .tech-logo-item { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .tech-logo-item:hover { background: #eff6ff; border-color: #93c5fd; }

.tech-logo-icon { font-size: 1.75rem; }
.tech-logo-name { font-size: 0.7rem; font-weight: 600; color: var(--color-text-muted); }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
#testimonials { background: var(--color-bg-2); }
[data-theme="light"] #testimonials { background: #f1f5f9; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem; position: relative; transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--color-border-hover); transform: translateY(-3px); box-shadow: var(--shadow-card);
}

[data-theme="light"] .testimonial-card {
  background: #ffffff; border-color: #e2e8f0; box-shadow: var(--shadow-sm);
}
[data-theme="light"] .testimonial-card:hover { border-color: #93c5fd; }
[data-theme="light"] .testimonial-text { color: #334155; }
[data-theme="light"] .author-name { color: #0f172a; }

.quote-mark {
  font-size: 4rem; line-height: 1; color: var(--color-accent); opacity: 0.15;
  font-family: Georgia, serif; position: absolute; top: 1rem; left: 1.5rem;
}
.testimonial-text { font-size: 0.925rem; line-height: 1.7; margin-bottom: 1.5rem; margin-top: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: white; flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 700; }
.author-role { font-size: 0.75rem; color: var(--color-text-muted); }
.stars { display: flex; gap: 0.2rem; margin-bottom: 0.75rem; }
.star  { color: #f59e0b; font-size: 0.875rem; }

/* ══════════════════════════════════════
   CONTACT (inline on homepage)
══════════════════════════════════════ */
#contact { background: var(--color-bg-2); position: relative; overflow: hidden; }
[data-theme="light"] #contact { background: #f1f5f9; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}

[data-theme="light"] .contact-item { background: #ffffff; border-color: #e2e8f0; }
[data-theme="light"] .contact-item-label { color: #94a3b8; }
[data-theme="light"] .contact-item-value { color: #0f172a; }

.contact-item-icon {
  width: 40px; height: 40px; background: rgba(37,99,235,0.1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
[data-theme="light"] .contact-item-icon { background: #eff6ff; }

.contact-item-label { font-size: 0.75rem; color: var(--color-text-muted); }
.contact-item-value { font-size: 0.875rem; font-weight: 600; }

/* Form */
.contact-form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 2.5rem;
}
[data-theme="light"] .contact-form { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 4px 24px rgba(15,23,42,0.07); }
[data-theme="light"] .contact-form h3 { color: #0f172a; }
[data-theme="light"] .contact-form > p  { color: #64748b; }

.contact-form h3 { margin-bottom: 0.5rem; }
.contact-form > p { margin-bottom: 2rem; font-size: 0.875rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--color-text-muted); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
[data-theme="light"] .form-group label { color: #64748b; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--color-bg-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); color: var(--color-text);
  font-family: var(--font-primary); font-size: 0.9rem;
  transition: var(--transition); outline: none;
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #f8fafc; border-color: #e2e8f0; color: #0f172a;
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #ffffff; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(29,78,216,0.10);
}

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

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #94a3b8; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.form-group select option { background: var(--color-bg-2); color: var(--color-text); }
[data-theme="light"] .form-group select option { background: #ffffff; color: #0f172a; }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit   { width: 100%; justify-content: center; padding: 1rem; font-size: 0.95rem; }
.form-success  { display: none; text-align: center; padding: 2rem; }
.form-success.show { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3   { margin-bottom: 0.5rem; }

/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
#cta-banner {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  padding: 5rem 0; text-align: center;
  position: relative; overflow: hidden;
}
#cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 24px 24px;
}
#cta-banner .container { position: relative; z-index: 1; }
#cta-banner h2 { color: white; margin-bottom: 1rem; }
#cta-banner p  { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

/* ══════════════════════════════════════
   FOOTER — 5 colonnes, partout identique
══════════════════════════════════════ */
footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

[data-theme="light"] footer {
  background: #ffffff;
  border-top-color: #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Brand */
.footer-brand .logo { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.875rem; max-width: 260px; margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
[data-theme="light"] .footer-brand p { color: #64748b; }

.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 0.8rem; transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--color-accent); color: var(--color-accent);
  background: rgba(37,99,235,0.1);
}
[data-theme="light"] .footer-social a { border-color: #e2e8f0; color: #64748b; }

/* Columns */
.footer-col h5 {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700;
  color: var(--color-text); margin-bottom: 1.25rem;
}
[data-theme="light"] .footer-col h5 { color: #0f172a; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem; color: var(--color-text-muted); transition: var(--transition);
}
.footer-col ul a:hover { color: var(--color-accent); transform: translateX(3px); display: inline-block; }

[data-theme="light"] .footer-col ul a { color: #64748b; }
[data-theme="light"] .footer-col ul a:hover { color: var(--color-accent); }

/* Newsletter */
.footer-newsletter h5 {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700;
  color: var(--color-text); margin-bottom: 1.25rem;
}
[data-theme="light"] .footer-newsletter h5 { color: #0f172a; }

.footer-newsletter p {
  font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.5;
}
[data-theme="light"] .footer-newsletter p { color: #64748b; }

.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-newsletter-form input {
  padding: 0.6rem 0.9rem;
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); color: var(--color-text);
  font-family: var(--font-primary); font-size: 0.82rem;
  outline: none; transition: var(--transition);
}
[data-theme="light"] .footer-newsletter-form input {
  background: #f8fafc; border-color: #e2e8f0; color: #0f172a;
}
.footer-newsletter-form input:focus {
  border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
[data-theme="light"] .footer-newsletter-form input:focus {
  background: #ffffff;
}
.footer-newsletter-form input::placeholder { color: var(--color-text-faint); }
[data-theme="light"] .footer-newsletter-form input::placeholder { color: #94a3b8; }

.footer-newsletter-form button {
  padding: 0.6rem; background: var(--color-accent); border: none;
  border-radius: var(--radius-md); color: #fff;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: var(--font-primary);
}
.footer-newsletter-form button:hover { background: var(--color-accent-hover); }

/* Bottom bar */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--color-border);
  flex-wrap: wrap; gap: 1rem;
}
[data-theme="light"] .footer-bottom { border-top-color: #e2e8f0; }

.footer-bottom p   { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-bottom a   { color: var(--color-accent); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-bottom-links a:hover { color: var(--color-text); }
[data-theme="light"] .footer-bottom-links a:hover { color: #0f172a; }

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
  padding: calc(var(--navbar-h) + 4rem) 0 4rem;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
  position: relative; overflow: hidden;
}
[data-theme="light"] .page-hero { background: #f1f5f9; border-bottom-color: #e2e8f0; }

.page-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero-content .badge { margin-bottom: 1rem; }
.page-hero-content h1 { margin-bottom: 1rem; }
.page-hero-content p  { font-size: 1.05rem; }

/* Avec image de fond */
.page-hero-img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.page-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(5,8,16,0.88) 0%, rgba(5,8,16,0.65) 55%, rgba(5,8,16,0.30) 100%);
  z-index: 0;
}
.page-hero-img-bg ~ .container { position: relative; z-index: 2; }

/* Quand il y a une image de fond, le texte reste blanc même en light */
.page-hero:has(.page-hero-img-bg) .page-hero-content h1 { color: #ffffff; }
.page-hero:has(.page-hero-img-bg) .page-hero-content p  { color: rgba(255,255,255,0.82); }
.page-hero:has(.page-hero-img-bg) .badge {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.20);
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(24px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight{ from { opacity:0; transform:translateX(30px);  } to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════
   SKELETON LOADING
══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-2) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-wave { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }

/* ══════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════ */
#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; background: var(--color-accent);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition); z-index: 100;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { transform: translateY(-3px); background: var(--color-accent-hover); }

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface); border: 1px solid var(--color-accent);
  color: var(--color-text); padding: 0.875rem 1.5rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
  z-index: 9999; box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { display: none; }
  .hero-visual  { display: none; }
  .hero-stats   { gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-primary { display: none; }

  .hero-stats  { flex-wrap: wrap; gap: 1.5rem; }
  .form-grid   { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  /* Footer mobile — tout centré */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem; text-align: center;
  }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-col ul { align-items: center; }
  .footer-col ul a:hover { transform: none; }
  .footer-newsletter-form { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
}

@media (max-width: 480px) {
  .hero-stats  { gap: 1rem; }
  .stat-num    { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
