/* ============================================================
   Shishir Ahmed CV Theme — main.css
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --card: #16161f;
  --accent: #ff6b2b;
  --accent2: #ffb347;
  --text: #f0ece4;
  --muted: #7a7a8c;
  --border: #222230;
  --glow: rgba(255,107,43,0.15);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── NOISE OVERLAY ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.25s ease;
  opacity: 0.6;
}

/* ── NAV ────────────────────────────────────────────────── */
#cv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 20px 0; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 60px 80px;
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 1s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  width: fit-content;
  animation: fadeSlideUp 1s 0.1s ease both;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeSlideUp 1s 0.2s ease both;
}
.hero-name span {
  display: block;
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--muted);
  margin-bottom: 40px;
  animation: fadeSlideUp 1s 0.3s ease both;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
  animation: fadeSlideUp 1s 0.4s ease both;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.meta-item svg { color: var(--accent); flex-shrink: 0; }
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.5s ease both;
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 100px 40px 80px;
  animation: fadeSlideUp 1s 0.3s ease both;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-card:hover::before { transform: scaleY(1); }
.stat-card.wide { grid-column: span 2; }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); color: #fff; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 13px 28px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--border);
  cursor: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── MARQUEE ────────────────────────────────────────────── */
.marquee-strip {
  background: var(--accent);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #fff;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

/* ── CV SECTIONS ────────────────────────────────────────── */
.cv-section {
  padding: 120px 0;
}
.cv-section--dark { background: var(--surface); }
.cv-section--contact { background: var(--surface); }
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 70px;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 20px;
  align-self: center;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.7;
  color: #c5c0b8;
}
.about-text em { font-style: italic; color: var(--accent2); }
.about-highlights { display: flex; flex-direction: column; gap: 16px; }
.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.highlight-item:hover { border-color: var(--accent); background: var(--surface); }
.highlight-icon {
  width: 40px; height: 40px;
  background: var(--glow);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.highlight-text { font-size: 13px; line-height: 1.5; color: var(--muted); }
.highlight-text strong { color: var(--text); display: block; margin-bottom: 2px; }

/* ── EXPERIENCE ─────────────────────────────────────────── */
.exp-timeline { position: relative; }
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.exp-item {
  padding-left: 50px;
  padding-bottom: 60px;
  position: relative;
}
.exp-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 6px;
  width: 11px; height: 11px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.exp-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.exp-role {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text);
  margin-bottom: 4px;
}
.exp-company {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent2);
  margin-bottom: 16px;
}
.exp-desc { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.exp-desc li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.exp-desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* ── SKILLS ─────────────────────────────────────────────── */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.skill-group:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill-group::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.skill-group:hover::after { transform: scaleX(1); }
.skill-group-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 20px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  background: rgba(255,107,43,0.1);
  border: 1px solid rgba(255,107,43,0.2);
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  cursor: default;
}
.skill-tag:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── PROJECTS ───────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-6px); }
.project-card:hover .project-bg-num { opacity: 0.08; }
.project-bg-num {
  position: absolute;
  top: -20px; right: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 100px;
  color: var(--accent);
  opacity: 0.03;
  pointer-events: none;
  transition: opacity 0.3s;
  line-height: 1;
}
.project-icon {
  width: 50px; height: 50px;
  background: var(--glow);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.project-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  background: rgba(255,107,43,0.08);
  padding: 4px 8px;
  letter-spacing: 0.06em;
}

/* ── EDUCATION ──────────────────────────────────────────── */
.edu-block {
  display: flex;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.edu-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
}
.edu-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}
.edu-degree {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 6px;
}
.edu-school {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent2);
  margin-bottom: 10px;
}
.edu-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.edu-research {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.edu-research em { color: var(--accent2); }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 6vw, 90px);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 24px;
}
.contact-heading span {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  display: block;
}
.contact-subtext {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 40px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateX(6px); }
.contact-link-icon {
  width: 36px; height: 36px;
  background: var(--glow);
  border: 1px solid rgba(255,107,43,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.cv-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 30px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-tech {
  display: flex;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .skills-layout { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #cv-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; cursor: pointer; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 110px 24px 40px; }
  .hero-right { padding: 20px 24px 60px; }

  .cv-section { padding: 80px 0; }
  .section-inner { padding: 0 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .edu-block { flex-direction: column; gap: 16px; }
  .cv-footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
}

@media (max-width: 480px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card.wide { grid-column: span 2; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
