/* ════════════════════════════════════════
   ARIK MUKHERJEE — PORTFOLIO CSS
   ════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Dark theme (default) */
  --bg:         #060818;
  --bg-2:       #0b1029;
  --bg-3:       #0f1535;
  --surface:    rgba(255,255,255,0.04);
  --surface-h:  rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.08);
  --text:       #e2e8f8;
  --text-m:     #94a3c0;
  --text-l:     #5a6a88;

  --accent-1:   #6366f1;   /* indigo */
  --accent-2:   #a855f7;   /* purple */
  --accent-3:   #06b6d4;   /* cyan */
  --grad:       linear-gradient(135deg, #6366f1, #a855f7);
  --grad-r:     linear-gradient(135deg, #a855f7, #06b6d4);

  --radius:     16px;
  --radius-sm:  8px;
  --shadow:     0 8px 40px rgba(0,0,0,0.5);
  --shadow-sm:  0 4px 20px rgba(0,0,0,0.3);
  --trans:      0.3s ease;

  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

/* Light theme */
[data-theme="light"] {
  --bg:        #f0f2fc;
  --bg-2:      #e8eaf8;
  --bg-3:      #dde0f5;
  --surface:   rgba(255,255,255,0.7);
  --surface-h: rgba(255,255,255,0.9);
  --border:    rgba(0,0,0,0.08);
  --text:      #0f1535;
  --text-m:    #374166;
  --text-l:    #6b7db3;
  --shadow:    0 8px 40px rgba(80,80,180,0.12);
  --shadow-sm: 0 4px 20px rgba(80,80,180,0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--trans), color var(--trans);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }

/* ── Custom Cursor ── */
.cursor, .cursor-follower {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: opacity 0.3s;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent-1);
  top: -4px; left: -4px;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent-1);
  top: -16px; left: -16px;
  transition: transform 0.15s ease, opacity 0.3s;
  opacity: 0.5;
}
@media (pointer: coarse) { .cursor, .cursor-follower { display: none; } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 2px; }

/* ── Glass morphism ── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

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

/* ── Section base ── */
.section { padding: 100px 0; position: relative; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-1);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 30px; height: 1.5px;
  background: var(--grad); display: inline-block;
}
.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 20px;
}
.section-heading.centered { text-align: center; }
.section-sub {
  text-align: center; color: var(--text-m);
  font-size: 1.05rem; margin-bottom: 60px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  transition: all var(--trans); cursor: pointer;
}
.btn-primary {
  background: var(--grad);
  color: #fff; border: none;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent-1); color: var(--accent-1); background: rgba(99,102,241,0.08); }
.btn-ghost {
  background: transparent; color: var(--text-m);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-m); }
.full-width { width: 100%; justify-content: center; }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: all var(--trans);
}
.navbar.scrolled {
  background: rgba(6,8,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(240,242,252,0.85);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 800; color: var(--text);
}
.dot { color: var(--accent-1); }
.nav-links {
  display: flex; gap: 36px;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 400; color: var(--text-m);
  transition: color var(--trans); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--grad);
  transition: width var(--trans);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-m); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.theme-toggle:hover { color: var(--accent-1); border-color: var(--accent-1); }
.btn-hire {
  padding: 9px 22px; border-radius: 50px;
  background: var(--grad); color: #fff;
  font-size: 0.88rem; font-weight: 500;
  transition: all var(--trans);
  box-shadow: 0 2px 16px rgba(99,102,241,0.3);
}
.btn-hire:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(99,102,241,0.4); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--trans);
}
/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 0;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.mobile-menu.open { max-height: 400px; padding: 16px 0; }
.mobile-menu ul { padding: 0 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--text-m); font-size: 1rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--accent-1); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
/* Animated orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18; animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent-1); top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: var(--accent-2); top: 50%; right: -200px; animation-delay: 3s; }
.orb-3 { width: 400px; height: 400px; background: var(--accent-3); bottom: -100px; left: 40%; animation-delay: 6s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px;
}
.hero-greeting {
  font-size: 1.1rem; color: var(--text-m);
  margin-bottom: 12px; animation: fadeSlideUp 0.6s ease both;
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s 0.1s ease both;
}
.hero-title-wrap {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-m); margin-bottom: 24px;
  animation: fadeSlideUp 0.6s 0.2s ease both;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hero-typed { color: var(--accent-1); font-weight: 500; }
.cursor-blink { color: var(--accent-1); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-m); max-width: 540px;
  margin: 0 auto 36px;
  animation: fadeSlideUp 0.6s 0.3s ease both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-bottom: 52px;
  animation: fadeSlideUp 0.6s 0.4s ease both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; animation: fadeSlideUp 0.6s 0.5s ease both;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat p { font-size: 0.8rem; color: var(--text-m); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-l); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: fadeSlideUp 0.6s 0.8s ease both;
}
.scroll-line {
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about { background: var(--bg-2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: center;
}
.about-image-wrap { position: relative; }
.about-img-frame {
  width: 100%; aspect-ratio: 1;
  max-width: 380px; border-radius: 24px;
  background: var(--grad); padding: 3px;
  margin: 0 auto;
}
.about-img-placeholder {
  width: 100%; height: 100%;
  border-radius: 22px; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--text-l);
}
.about-img-badge {
  position: absolute; bottom: -16px; right: 16px;
  background: var(--grad); color: #fff;
  padding: 10px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.about-exp-card {
  position: absolute; top: 24px; left: -24px;
  padding: 16px 20px; max-width: 160px; text-align: center;
}
.exp-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.exp-label { font-size: 0.75rem; color: var(--text-m); line-height: 1.4; }
.about-bio {
  color: var(--text-m); margin-bottom: 18px; font-size: 1rem;
}
.about-highlights { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.highlight {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 12px;
  transition: all var(--trans);
}
.highlight:hover { background: var(--surface-h); transform: translateX(4px); }
.highlight i { font-size: 1.1rem; color: var(--accent-1); width: 20px; text-align: center; }
.highlight strong { display: block; font-size: 0.95rem; }
.highlight span { font-size: 0.8rem; color: var(--text-m); }

/* ════════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
.skills { background: var(--bg); }
.skills-categories {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 48px;
}
.skills-cat {
  padding: 28px; border-radius: var(--radius);
  transition: transform var(--trans), box-shadow var(--trans);
}
.skills-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.cat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.frontend-icon { background: rgba(99,102,241,0.15); color: var(--accent-1); }
.backend-icon  { background: rgba(168,85,247,0.15); color: var(--accent-2); }
.db-icon       { background: rgba(6,182,212,0.15);  color: var(--accent-3); }
.cat-header h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.skill-bars { display: flex; flex-direction: column; gap: 16px; }
.skill-item {}
.skill-info {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; margin-bottom: 6px;
  color: var(--text-m);
}
.skill-info span:first-child { display: flex; align-items: center; gap: 8px; }
.skill-info i { width: 16px; }
.pct { font-weight: 600; color: var(--text); font-size: 0.8rem; }
.bar-track {
  height: 6px; background: var(--surface-h);
  border-radius: 3px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 3px; width: 0;
  background: var(--clr, var(--grad));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px var(--clr, rgba(99,102,241,0.5));
}
.tech-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.badge {
  padding: 6px 16px; border-radius: 50px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-m);
  transition: all var(--trans);
}
.badge:hover {
  background: rgba(99,102,241,0.12);
  border-color: var(--accent-1); color: var(--accent-1);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   PROJECTS
════════════════════════════════════════ */
.projects { background: var(--bg-2); }
.project-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 22px; border-radius: 50px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-m); font-size: 0.88rem;
  transition: all var(--trans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 2px 16px rgba(99,102,241,0.35);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--trans);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card.hidden { display: none; }
.project-img {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.p1 { background: linear-gradient(135deg, #6366f1, #a855f7); color: rgba(255,255,255,0.8); }
.p2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); color: rgba(255,255,255,0.8); }
.p3 { background: linear-gradient(135deg, #f59e0b, #ef4444); color: rgba(255,255,255,0.8); }
.p4 { background: linear-gradient(135deg, #10b981, #06b6d4); color: rgba(255,255,255,0.8); }
.p5 { background: linear-gradient(135deg, #ec4899, #a855f7); color: rgba(255,255,255,0.8); }
.p6 { background: linear-gradient(135deg, #06b6d4, #10b981); color: rgba(255,255,255,0.8); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(6,8,24,0.85);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity var(--trans);
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
  padding: 9px 18px; border-radius: 50px;
  background: var(--grad); color: #fff;
  font-size: 0.82rem; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: transform var(--trans);
}
.overlay-btn:hover { transform: scale(1.05); }
.overlay-btn.outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.4);
}
.project-info { padding: 20px; }
.project-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-1); margin-bottom: 8px; display: block;
}
.project-info h3 {
  font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px;
}
.project-info p { font-size: 0.85rem; color: var(--text-m); margin-bottom: 14px; }
.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.project-stack span {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 50px;
  background: var(--surface-h); border: 1px solid var(--border);
  color: var(--text-m);
}

/* ════════════════════════════════════════
   SERVICES
════════════════════════════════════════ */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px 24px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: all var(--trans);
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0;
  transition: opacity var(--trans);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.featured-service { border-color: rgba(99,102,241,0.3); background: rgba(99,102,241,0.06); }
.featured-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.7rem; font-weight: 600;
  background: var(--grad); color: #fff;
  padding: 4px 12px; border-radius: 50px;
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.s1 { background: rgba(99,102,241,0.15); color: var(--accent-1); }
.s2 { background: rgba(168,85,247,0.15); color: var(--accent-2); }
.s3 { background: rgba(245,158,11,0.15); color: #f59e0b; }
.s4 { background: rgba(6,182,212,0.15);  color: var(--accent-3); }
.service-card h3 { font-family: var(--font-head); font-size: 1.1rem; }
.service-card p { font-size: 0.88rem; color: var(--text-m); flex: 1; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  font-size: 0.83rem; color: var(--text-m);
  display: flex; align-items: center; gap: 8px;
}
.service-list i { color: var(--accent-1); font-size: 0.7rem; }
.service-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-1); font-size: 0.88rem; font-weight: 500;
  margin-top: 8px; transition: gap var(--trans);
}
.service-cta:hover { gap: 12px; }

/* ════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════ */
.testimonials { background: var(--bg-2); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex; gap: 24px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.testimonial-card {
  min-width: calc(33.333% - 16px);
  padding: 28px; border-radius: var(--radius);
  flex-shrink: 0;
}
.stars { font-size: 1rem; color: #f59e0b; margin-bottom: 16px; }
.testi-text {
  font-size: 0.92rem; color: var(--text-m); line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.a1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.a2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.a3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.a4 { background: linear-gradient(135deg, #ec4899, #a855f7); }
.testi-author strong { display: block; font-size: 0.92rem; }
.testi-author span { font-size: 0.78rem; color: var(--text-m); }
.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: var(--surface); border: 1px solid var(--border);
  color: var(--text-m); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.slider-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all var(--trans); cursor: pointer;
}
.slider-dot.active { background: var(--accent-1); width: 24px; border-radius: 4px; }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 60px; align-items: start;
}
.contact-info h3 {
  font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 12px;
}
.contact-info > p { color: var(--text-m); margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 12px;
  transition: all var(--trans);
}
.contact-item:hover { transform: translateX(4px); background: var(--surface-h); }
.ci-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; background: rgba(99,102,241,0.15); color: var(--accent-1);
  flex-shrink: 0;
}
.ci-icon.whatsapp { background: rgba(37,211,102,0.15); color: #25d366; }
.ci-icon.linkedin { background: rgba(0,119,181,0.15); color: #0077b5; }
.ci-icon.github   { background: rgba(255,255,255,0.1); color: var(--text); }
.contact-item span { font-size: 0.75rem; color: var(--text-m); display: block; }
.contact-item strong { font-size: 0.88rem; display: block; }
.availability-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 50px;
  font-size: 0.85rem; color: var(--text-m);
}
.avail-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 4px #10b981; }
  50% { box-shadow: 0 0 16px #10b981, 0 0 32px rgba(16,185,129,0.4); }
}
/* Form */
.contact-form-wrap { padding: 36px; border-radius: var(--radius); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 8px; color: var(--text-m);
}
.input-wrap {
  position: relative;
}
.input-wrap i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--text-l);
  font-size: 0.9rem; pointer-events: none;
}
.input-wrap.textarea-wrap i { top: 16px; transform: none; }
.input-wrap input, .input-wrap textarea {
  width: 100%; padding: 12px 14px 12px 40px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--trans), box-shadow var(--trans);
  resize: none;
}
.input-wrap input:focus, .input-wrap textarea:focus {
  outline: none; border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: var(--text-l); }
.field-error { font-size: 0.78rem; color: #f87171; margin-top: 4px; display: block; min-height: 16px; }
.form-success {
  display: none; align-items: center; gap: 10px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  padding: 14px 18px; border-radius: var(--radius-sm);
  color: #10b981; font-size: 0.88rem; margin-top: 16px;
}
.form-success.show { display: flex; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 14px; font-size: 1.4rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-m); max-width: 240px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-m); font-size: 0.9rem;
  transition: all var(--trans);
}
.footer-socials a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.footer-links h4 {
  font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--text-m); transition: color var(--trans); }
.footer-links a:hover { color: var(--accent-1); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 0.8rem; color: var(--text-l);
}
.heart { color: #ef4444; }

/* ── Scroll to top ── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(16px);
  transition: all var(--trans); pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .skills-categories { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-frame { max-width: 280px; }
  .about-exp-card { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card { min-width: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links { display: none; }
  .btn-hire { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .testimonial-card { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats .stat-divider { display: none; }
  .hero-stats { gap: 24px; }
  .contact-form-wrap { padding: 24px 18px; }
}
