/* ═══════════════════════════════════════════════
   ByteEdu Tech — style.css
   Dark, Premium, Tech-Forward Design System
═══════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --bg-primary:    #080b14;
  --bg-secondary:  #0d1121;
  --bg-card:       #111827;
  --bg-card-hover: #161d2f;

  --accent-purple: #7c3aed;
  --accent-blue:   #3b82f6;
  --accent-cyan:   #06b6d4;
  --accent-pink:   #ec4899;

  --grad-primary:  linear-gradient(135deg, #7c3aed, #3b82f6);
  --grad-cyan:     linear-gradient(135deg, #06b6d4, #7c3aed);
  --grad-glow:     linear-gradient(135deg, rgba(124,58,237,.4), rgba(59,130,246,.4));

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;

  --border:        rgba(255,255,255,.08);
  --border-hover:  rgba(124,58,237,.5);

  --glass-bg:      rgba(17,24,39,.6);
  --glass-border:  rgba(255,255,255,.06);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;

  --shadow-card: 0 4px 32px rgba(0,0,0,.45);
  --shadow-glow: 0 0 48px rgba(124,58,237,.25);

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: .6s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea { font-family: var(--font-body); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s, opacity .3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(124,58,237,.7);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .15s, width .3s, height .3s, border-color .3s;
}
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent-cyan); }

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity .6s, visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: .1em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block; margin-bottom: 24px;
}
.loader-logo span { color: var(--accent-cyan); -webkit-text-fill-color: var(--accent-cyan); }
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 99px; overflow: hidden; margin: 0 auto;
}
.loader-fill {
  height: 100%; width: 0;
  background: var(--grad-primary);
  border-radius: 99px;
  animation: loadFill 1.8s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SECTION SHARED ── */
section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.2);
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0; transition: var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,.55); }
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.btn i { transition: transform .3s; }
.btn:hover i { transform: translateX(3px); }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background .4s, box-shadow .4s, padding .4s;
}
#navbar.scrolled {
  background: rgba(8,11,20,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,.4);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s;
}
#navbar.scrolled .nav-container { padding: 14px 24px; }

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.01em;
}
.logo-bracket { color: var(--text-muted); }
.logo-accent { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--text-secondary);
  padding: 8px 14px; border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }
.nav-links .nav-cta {
  background: var(--grad-primary); color: #fff;
  padding: 9px 20px;
  box-shadow: 0 2px 16px rgba(124,58,237,.35);
}
.nav-links .nav-cta:hover { box-shadow: 0 4px 24px rgba(124,58,237,.5); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 32px; padding: 4px;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(8,11,20,.95);
  backdrop-filter: blur(24px);
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu.open { display: flex; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}

/* Grid background */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .25;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--accent-purple);
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent-blue);
  bottom: -100px; left: -100px;
  animation-delay: -3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--accent-cyan);
  top: 50%; left: 40%;
  animation-delay: -5s; opacity: .15;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(.97); }
}

.hero-content {
  max-width: 680px;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.25);
  padding: 7px 16px; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-cyan); margin-bottom: 24px;
}
.hero-badge i { animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 36px;
}
.br-desk { display: none; }
@media (min-width: 768px) { .br-desk { display: block; } }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; gap: 28px;
}
.stat-num {
  display: block;
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800;
  background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-lbl { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Floating code card */
.hero-card {
  position: absolute; right: max(24px, calc(50% - 560px));
  top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: codeFloat 6s ease-in-out infinite;
  min-width: 280px;
}
@keyframes codeFloat {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-16px)}
}
.code-card-header {
  background: rgba(255,255,255,.04);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ef4444; }
.dot.y { background: #f59e0b; }
.dot.g { background: #10b981; }
.code-filename { font-size: .72rem; color: var(--text-muted); margin-left: auto; }
.code-body { padding: 20px; font-size: .82rem; line-height: 1.8; font-family: 'Courier New', monospace; }
.c-kw  { color: #c084fc; }
.c-var { color: #93c5fd; }
.c-op  { color: #94a3b8; }
.c-key { color: #67e8f9; }
.c-str { color: #86efac; }
.c-fn  { color: #fbbf24; }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted); z-index: 2;
  animation: fadeInUp .8s 2s both;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--accent-purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { background: var(--bg-secondary); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-text p {
  color: var(--text-secondary); line-height: 1.85;
  font-size: .97rem; text-align: justify;
  margin-bottom: 18px;
}
.about-pills {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.25);
  color: var(--text-primary); font-size: .82rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-full);
}
.pill i { color: var(--accent-cyan); font-size: .75rem; }

.about-card-stack {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.acard {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.acard:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.acard i { font-size: 1.6rem; }
.acard-1 i { color: var(--accent-purple); }
.acard-2 i { color: var(--accent-cyan); }
.acard-3 i { color: #f59e0b; }
.acard-4 i { color: #10b981; }
.acard span { font-size: .85rem; font-weight: 600; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   WORK / PORTFOLIO
══════════════════════════════════════════ */
#work { background: var(--bg-primary); }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--grad-primary); color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124,58,237,.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.project-card.hidden { display: none; }

.project-img-wrap { position: relative; overflow: hidden; }
.project-img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.4);
  transition: transform .5s;
}
.project-card:hover .project-img { transform: scale(1.06); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-link {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  transition: var(--transition); transform: scale(.8);
}
.project-card:hover .overlay-link { transform: scale(1); }
.overlay-link:hover { background: var(--accent-purple); }

.project-info { padding: 20px; }
.project-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.2);
  padding: 3px 10px; border-radius: var(--radius-full);
  display: inline-block; margin-bottom: 10px;
}
.project-info h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.project-info p { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
#testimonials { background: var(--bg-secondary); overflow: hidden; }

.testimonials-slider { position: relative; }
.testimonials-track {
  display: flex; gap: 24px;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.tcard {
  flex: 0 0 calc(100% - 48px);
  max-width: 680px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.tcard-quote {
  font-size: 2rem; color: var(--accent-purple); opacity: .5;
  margin-bottom: 16px;
}
.tcard > p {
  font-size: 1rem; line-height: 1.8; color: var(--text-secondary);
  margin-bottom: 28px; font-style: italic;
}
.tcard-footer {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.tcard-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.tcard-footer > div strong { display: block; font-size: .95rem; font-weight: 700; }
.tcard-footer > div span { font-size: .8rem; color: var(--text-muted); }
.tcard-stars {
  margin-left: auto; color: #f59e0b; font-size: .9rem; display: flex; gap: 3px;
}

.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 32px;
}
.slider-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: var(--transition);
}
.slider-btn:hover { background: var(--accent-purple); color: #fff; border-color: transparent; }
.slider-dots { display: flex; gap: 8px; }
.dot-item {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted); transition: var(--transition);
}
.dot-item.active { background: var(--accent-purple); width: 24px; border-radius: 4px; }

/* ══════════════════════════════════════════
   TEAM
══════════════════════════════════════════ */
#team { background: var(--bg-primary); }

.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
  opacity: 0; transition: var(--transition);
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.team-card:hover::before { opacity: 1; }

.team-avatar-wrap {
  position: relative; width: 88px; height: 88px; margin: 0 auto 20px;
}
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.team-social {
  position: absolute; inset: 0;
  background: rgba(8,11,20,.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: var(--transition);
  z-index: 2;
}
.team-card:hover .team-social { opacity: 1; }
.team-social a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #fff;
  transition: var(--transition);
}
.team-social a:hover { background: var(--accent-purple); }

.team-info h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: .78rem; color: var(--accent-cyan); font-weight: 600; display: block; margin-bottom: 12px; }
.team-info p { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact {
  background: var(--bg-secondary);
  position: relative; overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--accent-purple); filter: blur(120px); opacity: .08;
}

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

.contact-info h3 {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  margin-bottom: 14px;
}
.contact-info > p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-purple); font-size: .9rem;
}
.contact-item > div span { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.contact-item > div a,
.contact-item > div p { font-size: .9rem; color: var(--text-secondary); }
.contact-item > div a:hover { color: var(--accent-cyan); }

.contact-socials { display: flex; gap: 10px; }
.social-chip {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-secondary);
  transition: var(--transition);
}
.social-chip:hover { background: var(--accent-purple); border-color: transparent; color: #fff; transform: translateY(-3px); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 8px; letter-spacing: .03em;
}
.form-group input,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text-primary); font-size: .92rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
  background: rgba(124,58,237,.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none; align-items: center; gap: 10px;
  color: #10b981; font-size: .9rem; font-weight: 600;
  margin-top: 16px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2);
  padding: 12px 16px; border-radius: var(--radius-sm);
}
.form-success.show { display: flex; }
.form-success i { font-size: 1.1rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.footer-glow {
  position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px;
  background: var(--accent-purple); filter: blur(100px); opacity: .06;
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand > a { display: inline-block; margin-bottom: 14px; }
.footer-brand p { font-size: .87rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--text-muted);
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--accent-purple); border-color: transparent; color: #fff; transform: translateY(-2px); }

.footer-links-group h4 {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer-links-group ul li { margin-bottom: 12px; }
.footer-links-group ul a,
.footer-links-group ul span {
  font-size: .86rem; color: var(--text-muted);
  transition: color .2s;
}
.footer-links-group ul a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }
.footer-bottom i { color: #ef4444; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: .82rem; color: var(--text-muted); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; z-index: 900;
  box-shadow: 0 4px 16px rgba(124,58,237,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding: 0; }
  .hero-stats { gap: 18px; }
  .stat-divider { height: 28px; }

  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .tcard { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .about-card-stack { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-title { font-size: 1.8rem; }
}
