/* =========================================================
   LOGESHWARAN M — MARKETING PORTFOLIO
   style.css
   ========================================================= */

/* ── 0. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #080b14;
  color: #e2e8f0;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── 1. CSS Variables ── */
:root {
  --primary: #6c63ff;
  --primary-glow: rgba(108, 99, 255, 0.4);
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.35);
  --orange: #ff6b35;
  --bg: #080b14;
  --bg2: #0d1120;
  --bg3: #111827;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(108,99,255,0.4);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

/* ── 2. Cursor ── */
.cursor, .cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  top: -5px; left: -5px;
  transform: translate(0, 0);
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(108,99,255,0.6);
  top: -18px; left: -18px;
  transition: transform 0.12s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
body.cursor-hover .cursor { transform: scale(2); background: var(--primary); }
body.cursor-hover .cursor-follower { width: 56px; height: 56px; border-color: var(--primary); }

/* ── 3. Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── 4. Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(8,11,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #fff; background: var(--surface); }
.nav-link.active { color: var(--accent); }
.nav-link.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1.1rem;
  margin-left: 0.5rem;
}
.nav-link.nav-cta:hover {
  background: #7c75ff;
  box-shadow: 0 0 20px var(--primary-glow);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ── 5. Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 2rem;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.6;
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: floatShape 10s ease-in-out infinite;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; right: -80px;
  animation-delay: -3s;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--orange);
  top: 40%; left: 35%;
  animation-delay: -6s;
  opacity: 0.1;
}
.shape-4 {
  width: 250px; height: 250px;
  background: var(--primary);
  top: 20%; right: 30%;
  animation-delay: -4s;
  opacity: 0.08;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.97); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: var(--nav-height);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent); }
}
.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 1rem;
}
.accent-text { color: var(--accent); }
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  min-height: 1.6em;
}
.typed-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { text-align: left; }
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.stat-plus { font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.stat-label { font-size: 0.72rem; color: var(--text-subtle); letter-spacing: 0.5px; display: block; }
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-image-wrap {
  position: absolute;
  right: clamp(2rem, 8vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding-top: var(--nav-height);
}
.hero-photo {
  width: clamp(250px, 28vw, 400px);
  height: clamp(250px, 28vw, 400px);
  object-fit: cover;
  object-position: center 15%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  position: relative;
  z-index: 2;
  border: 2px solid var(--border);
  animation: morphShape 8s ease-in-out infinite;
}
@keyframes morphShape {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; }
  50% { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
  75% { border-radius: 60% 40% 50% 50% / 30% 70% 30% 70%; }
}
.hero-initials {
  width: clamp(250px, 28vw, 400px);
  height: clamp(250px, 28vw, 400px);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: white;
  border: 2px solid var(--border);
  animation: morphShape 8s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.hero-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, var(--primary-glow), transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-img-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(108,99,255,0.3);
  z-index: 1;
  animation: spin 20s linear infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: fadeInUp 1s ease 2s both;
}
.scroll-mouse {
  width: 26px; height: 40px;
  border: 2px solid var(--border);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ── 6. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: none;
  border: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b85ff);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-download {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(0, 212, 170, 0.4);
}
.btn-download:hover {
  background: rgba(0, 212, 170, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── 7. Section Base ── */
.section { padding: 7rem 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ── 8. About ── */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: center;
}
.about-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-highlights { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.highlight-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(4px);
}
.highlight-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.2); border-radius: 10px; flex-shrink: 0; color: var(--primary); }
.highlight-title { font-weight: 600; color: #fff; font-size: 0.9rem; }
.highlight-sub { font-size: 0.8rem; color: var(--text-subtle); margin-top: 2px; }
.about-card-wrap { position: relative; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.about-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.card-tag { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.card-role { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.card-org { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }
.card-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.card-meta-row { display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }
.card-meta-item { display: flex; align-items: center; gap: 6px; }
.meta-dot { width: 8px; height: 8px; border-radius: 50%; }
.meta-dot.green { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.about-floating-tag {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  animation: floatTag 5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}
.tag-1 { top: -16px; right: 30px; animation-delay: 0s; }
.tag-2 { bottom: 30px; left: -30px; animation-delay: -2s; }
.tag-3 { bottom: -16px; right: 40px; animation-delay: -4s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── 9. Experience ── */
.experience { background: var(--bg2); }
.timeline { position: relative; margin-top: 3.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg2);
  box-shadow: 0 0 16px var(--primary-glow);
  z-index: 1;
  transition: box-shadow var(--transition), background var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}
.tc-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.tc-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2); border-radius: 12px; color: var(--primary); flex-shrink: 0; }
.tc-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.tc-org { font-size: 0.85rem; color: var(--accent); margin-top: 3px; }
.tc-badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary);
  white-space: nowrap;
}
.tc-list { padding-left: 1.1rem; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tc-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
}
.tc-list li::marker { color: var(--accent); }
.tc-list { list-style: disc; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tc-tags span {
  padding: 4px 12px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── 10. Projects ── */
.projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.project-card-wide { grid-column: span 2; }
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: none;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(108,99,255,0.2);
}
.project-card:hover .project-glow { opacity: 1; }
.project-card-inner { padding: 2rem; position: relative; z-index: 1; }
.project-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.project-icon-wrap {
  margin-bottom: 1rem;
}
.project-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.2); border-radius: 14px; color: var(--primary); }
.proj-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.proj-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.proj-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.proj-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.metric { display: flex; flex-direction: column; }
.metric-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.metric-lab { font-size: 0.65rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 1px; margin-top: 1px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.proj-tags span {
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── 11. Video Edits ── */
.edits { background: var(--bg2); }
.edits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}
.reel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.reel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 20px 50px rgba(138, 43, 226, 0.2);
}
.reel-inner {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius) var(--radius) 0 0;
}
/* Force Instagram iframe to fill and clip uniformly */
.reel-inner iframe,
.reel-inner .instagram-media {
  display: block;
  min-width: 0 !important;
  width: 100% !important;
  max-height: 480px !important;
  overflow: hidden !important;
}
/* Hover overlay with play icon - sits above the embed */
.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  z-index: 10;
  border-radius: var(--radius) var(--radius) 0 0;
}
.reel-card:hover .reel-overlay {
  background: rgba(0,0,0,0.35);
}
.reel-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(253, 29, 29, 0.5);
}
.reel-play-btn svg { margin-left: 3px; }
.reel-card:hover .reel-play-btn {
  opacity: 1;
  transform: scale(1);
}
/* Invisible full-area link on top */
.reel-link {
  position: absolute;
  inset: 0;
  z-index: 11;
}
.reel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.1rem;
  border-top: 1px solid var(--border);
}
.reel-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.reel-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045);
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity var(--transition);
}
.reel-ig-link svg {
  stroke: #fd1d1d;
}
.reel-ig-link:hover { opacity: 0.8; }

/* ── 12. Skills ── */
.skills { background: var(--bg2); }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.tools-category { grid-column: span 2; }
.skills-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition);
}
.skills-category:hover { border-color: var(--border-hover); }
.sc-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.sc-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(108,99,255,0.12); border-radius: 8px; color: var(--primary); flex-shrink: 0; }
.sc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-bar-item {}
.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.skill-pct { color: var(--accent); font-weight: 600; }
.skill-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 10px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  filter: blur(3px);
}
.soft-skill-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.soft-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.soft-chip:hover {
  background: rgba(108,99,255,0.16);
  border-color: var(--primary);
  transform: scale(1.04);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.tool-logo {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}
.canva-logo { background: linear-gradient(135deg, #7B2FBE, #00C4CC); }
.capcut-logo { background: linear-gradient(135deg, #1a1a1a, #444); }
.davinci-logo { background: linear-gradient(135deg, #ff9a3c, #e74c3c); }
.tool-card span { font-weight: 600; color: #fff; font-size: 0.95rem; }
.tool-desc { font-size: 0.75rem; color: var(--text-subtle); }

/* ── 12. Education ── */
.education { background: var(--bg); }
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.edu-card-primary {
  border-color: rgba(108,99,255,0.4);
  background: rgba(108,99,255,0.07);
}
.edu-card-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.edu-card-glow {
  position: absolute;
  top: -50%; left: -20%;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse, rgba(108,99,255,0.15), transparent 70%);
  pointer-events: none;
}
.edu-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.2); border-radius: 14px; color: var(--accent); margin-bottom: 1rem; }
.edu-degree {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.edu-institution { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.5rem; }
.edu-year { font-size: 0.8rem; color: var(--text-subtle); margin-bottom: 1rem; }
.edu-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.green { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulseDot 2s infinite; }
.edu-score { margin-top: 0.5rem; }
.score-bar-wrap { display: flex; align-items: center; gap: 0.75rem; }
.score-label { font-size: 0.75rem; color: var(--text-subtle); white-space: nowrap; }
.score-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.score-value { font-size: 0.875rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ── 13. Contact ── */
.contact { background: var(--bg2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: flex-start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: none;
}
.contact-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(4px);
}
.contact-item-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.18); border-radius: 10px; color: var(--primary); flex-shrink: 0; }
.contact-item-label { font-size: 0.72rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 1px; }
.contact-item-val { font-size: 0.9rem; color: var(--text); font-weight: 500; margin-top: 2px; }
.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.avail-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.3px; }
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  color: var(--accent);
  text-align: center;
}
.form-error {
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  color: #ff6b6b;
  text-align: center;
}

/* ── 14. Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.footer-text { font-size: 0.82rem; color: var(--text-subtle); }
.footer-back-top {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: none;
}
.footer-back-top:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

/* ── 15. Reveal Animations ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.revealed {
  opacity: 1 !important;
  transform: translate(0) !important;
}
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.2s; }
.delay-4 { transition-delay: 0.28s; }
.delay-5 { transition-delay: 0.36s; }
.delay-6 { transition-delay: 0.44s; }

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

/* ── 16. Responsive ── */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card-wrap { display: none; }

  /* Hero: stack vertically, center everything */
  .hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    justify-content: flex-end;
    gap: 2rem;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 3rem;
    min-height: 100vh;
  }
  .hero-image-wrap {
    position: relative;
    right: auto; top: auto;
    transform: none;
    padding-top: 0;
    margin-top: 1rem;
  }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .hero-badge { margin: 0 auto 1.5rem; }

  /* Edits */
  .edits-grid { grid-template-columns: repeat(3, 1fr); }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card-wide { grid-column: span 2; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .edu-card-primary { grid-column: span 2; }

  /* Parallax off on touch */
  .hero-content, .hero-image-wrap { transform: none !important; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.65rem 1rem; font-size: 0.95rem; border-radius: 8px; }
  .nav-link.nav-cta { margin-left: 0; text-align: center; }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    padding: 0 1.25rem;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
    min-height: 100svh;
    gap: 1.5rem;
  }
  .hero-name { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: -1px; }
  .hero-photo, .hero-initials { width: 200px; height: 200px; }
  .hero-img-ring { display: none; }

  /* CTA buttons: stack on very small, wrap on medium mobile */
  .hero-cta { gap: 0.75rem; }
  .btn { padding: 0.7rem 1.4rem; font-size: 0.85rem; }

  /* Stats */
  .hero-stats { gap: 0.75rem; }
  .stat-divider { display: none; }
  .stat { text-align: center; min-width: 80px; }

  /* Floating tags hidden on mobile to prevent overflow */
  .about-floating-tag { display: none; }

  /* Timeline */
  .timeline::before { left: 14px; }
  .timeline-item { padding-left: 48px; margin-bottom: 1.75rem; }
  .timeline-dot { left: 6px; top: 20px; width: 16px; height: 16px; }
  .timeline-card { padding: 1.25rem; }
  .tc-header { gap: 0.75rem; }
  .tc-badge { font-size: 0.65rem; padding: 3px 10px; }
  .tc-list li { font-size: 0.84rem; }

  /* Edits */
  .edits-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Projects */
  .project-card-wide { grid-column: span 1; }
  .project-card-inner { padding: 1.5rem; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .tools-category { grid-column: span 1; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .tool-card { padding: 1.25rem 0.75rem; }
  .tool-logo { width: 48px; height: 48px; font-size: 0.9rem; border-radius: 14px; }
  .skills-category { padding: 1.5rem; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr; gap: 1rem; }
  .edu-card-primary { grid-column: span 1; }
  .edu-card { padding: 1.5rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.5rem; }
  .contact-item { padding: 0.9rem 1rem; }

  /* Section spacing */
  .section { padding: 4rem 0; }
  .section-title { letter-spacing: -0.5px; }

  /* Scroll indicator hidden on mobile */
  .scroll-indicator { display: none; }

  /* Cursor off on touch */
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  .btn, .contact-item, .project-card { cursor: pointer; }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
  :root { --nav-height: 60px; }

  .hero { padding-top: calc(var(--nav-height) + 1.5rem); }
  .hero-name { font-size: 2rem; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-photo, .hero-initials { width: 170px; height: 170px; }

  /* CTA: stack vertically on very small screens */
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .btn { width: 100%; justify-content: center; }

  /* Stats row */
  .hero-stats { gap: 1rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.68rem; }

  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }

  /* About */
  .highlight-item { padding: 0.875rem 1rem; gap: 0.75rem; }
  .about-desc { font-size: 0.95rem; }

  /* Timeline */
  .timeline-card { padding: 1rem; }
  .tc-icon { width: 36px; height: 36px; }
  .tc-role { font-size: 1rem; }

  /* Projects */
  .project-card-inner { padding: 1.25rem; }
  .proj-title { font-size: 1.05rem; }
  .proj-metrics { gap: 1rem; }

  /* Skills */
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .soft-skill-chips { gap: 0.5rem; }
  .soft-chip { font-size: 0.8rem; padding: 0.5rem 0.875rem; }

  /* Contact form */
  .contact-form { padding: 1.25rem; gap: 1rem; }
  .form-input { padding: 0.65rem 0.875rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
}

/* ── Extra Small (≤360px) ── */
@media (max-width: 360px) {
  .hero-name { font-size: 1.8rem; }
  .nav-logo { font-size: 1.3rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .proj-metrics { flex-direction: column; gap: 0.5rem; }
  .tc-badge { display: none; }
}

