/*
 * Asmitha Reddy — Portfolio
 * Global stylesheet. Sections: variables, base, cursor, nav, hero,
 * sections, projects, skills, education, contact, footer, animations,
 * layout helpers, responsive.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #f5f4f0;
  --mid: #888;
  --accent: #e8e4dc;
  --dark-accent: #d4d0c8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--black); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--black); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transition: width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
}
@media (hover: none) { .cursor, .cursor-ring { display: none; } body { cursor: auto; } }

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--mid); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5); padding: 8px 16px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.mobile-close:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 900px) { .hamburger { display: flex; } }

/* ── SIDE BADGE ── */
.side-badge {
  position: fixed; right: -38px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; background: var(--black); color: var(--white);
  padding: 6px 14px; z-index: 100; white-space: nowrap;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 48px;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: #ddd; }
.nav-logo {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase;
  text-decoration: none; color: var(--black);
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; text-decoration: none; color: var(--black);
  text-transform: uppercase; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--black); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-hire {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; color: var(--white); background: var(--black);
  padding: 8px 16px; transition: background 0.2s;
}
.nav-hire:hover { background: #333; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 120px 48px 60px;
  position: relative; overflow: hidden;
}

.hero-display {
  font-family: 'Playfair Display', serif; font-weight: 900;
  line-height: 0.88; letter-spacing: -0.02em; text-transform: uppercase;
}
.hero-word-1 { font-size: clamp(72px, 12vw, 168px); display: block; }
.hero-subtitle {
  font-family: 'DM Sans', sans-serif; font-style: italic;
  font-size: clamp(14px, 1.4vw, 20px); font-weight: 300;
  color: var(--mid); margin: 16px 0 0 6px; letter-spacing: 0.02em;
}

.hero-mid {
  display: flex; align-items: center;
  justify-content: space-between; padding: 40px 0; gap: 32px;
}

/* Torn window */
.torn-window {
  width: clamp(280px, 42vw, 520px);
  height: clamp(200px, 28vw, 360px);
  position: relative; flex-shrink: 0;
}
.portrait-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #c8c2b8 0%, #a8a09a 40%, #888078 100%);
  position: absolute; inset: 0;
  clip-path: polygon(
    8% 2%, 15% 0%, 22% 3%, 30% 0%, 38% 4%, 47% 0%,
    55% 2%, 63% 0%, 72% 3%, 80% 0%, 88% 2%, 95% 0%, 100% 5%,
    98% 14%, 100% 24%, 97% 35%, 100% 46%, 98% 57%, 100% 68%,
    97% 78%, 100% 88%, 96% 96%, 88% 100%, 80% 97%, 72% 100%,
    62% 97%, 52% 100%, 42% 97%, 32% 100%, 22% 97%, 12% 100%,
    4% 97%, 0% 90%, 2% 80%, 0% 70%, 3% 60%, 0% 50%,
    2% 40%, 0% 30%, 3% 20%, 0% 10%
  );
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portrait-initials {
  font-family: 'Playfair Display', serif; font-size: 140px;
  font-weight: 900; color: rgba(0,0,0,0.12); line-height: 1;
  position: absolute; bottom: 0; left: 10px; letter-spacing: -0.06em;
}
.eyes-area {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding-left: 15%; gap: 28px;
}
.eye-svg { width: 76px; height: 36px; }

.hero-word-2 {
  font-size: clamp(52px, 9.5vw, 140px);
  display: block; text-align: right; flex: 1;
}

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap;
}
.hero-meta {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; line-height: 2; text-transform: uppercase;
}

/* Hero CTAs */
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--black); color: var(--white);
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding: 14px 24px;
  transition: background 0.2s, gap 0.3s;
}
.btn-primary:hover { background: #333; gap: 20px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--black); color: var(--black);
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; padding: 14px 24px;
  transition: background 0.2s, color 0.2s, gap 0.3s;
}
.btn-outline:hover { background: var(--black); color: var(--white); gap: 20px; }

/* Project quick-links */
.hero-project-links {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px;
}
.proj-pill {
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--mid);
  border: 1px solid #ccc; padding: 6px 14px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.proj-pill:hover { border-color: var(--black); color: var(--black); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--black); margin: 0 48px; }

/* ── SECTION BASE ── */
section { padding: 100px 48px; }
.section-eyebrow {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--mid);
  margin-bottom: 60px; display: flex; align-items: center; gap: 20px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: #ccc; }

/* ── EXPERIENCE ── */
.exp-item {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 60px; padding: 52px 0; border-bottom: 1px solid #ddd;
}
.exp-item:first-of-type { border-top: 1px solid #ddd; }
.exp-meta {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase; line-height: 2; color: var(--mid);
}
.exp-badge {
  display: inline-block; background: var(--black); color: var(--white);
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 0.12em; padding: 5px 12px; text-transform: uppercase;
  margin-top: 16px; line-height: 1.8;
}
.exp-title {
  font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase; margin-bottom: 28px;
}
.exp-subtitle {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); margin-bottom: 24px;
}
.exp-bullets { list-style: none; }
.exp-bullets li {
  font-size: 14px; font-weight: 300; line-height: 1.8; color: #444;
  padding: 12px 0 12px 22px; border-bottom: 1px solid #eee; position: relative;
}
.exp-bullets li:last-child { border-bottom: none; }
.exp-bullets li::before {
  content: '—'; position: absolute; left: 0; color: var(--mid); font-size: 12px;
}

/* ── PROJECTS ── */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.project-item {
  position: relative; overflow: hidden; background: #ddd8d0; cursor: none;
}
.project-item.featured { grid-column: 1 / -1; background: var(--black); }
.project-item.featured .project-num,
.project-item.featured .proj-title,
.project-item.featured .proj-desc,
.project-item.featured .proj-tags { color: var(--white); }
.project-item.featured .proj-tags { color: rgba(255,255,255,0.45); }
.project-item.featured .proj-year { color: rgba(255,255,255,0.05); }
.project-item.featured .proj-arrow { color: var(--white); }

.project-inner {
  padding: 56px 52px; min-height: 400px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; z-index: 2;
}
.project-item.featured .project-inner { min-height: 500px; }

.project-item:not(.featured)::before {
  content: ''; position: absolute; inset: 0; background: var(--black);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1); z-index: 1;
}
.project-item:not(.featured):hover::before { transform: scaleY(1); }
.project-item:not(.featured):hover .proj-title,
.project-item:not(.featured):hover .project-num,
.project-item:not(.featured):hover .proj-arrow { color: var(--white); }
.project-item:not(.featured):hover .proj-tags { color: rgba(255,255,255,0.45); }
.project-item:not(.featured):hover .proj-year { color: rgba(255,255,255,0.05); }

.project-num {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; color: var(--mid); transition: color 0.3s;
  margin-bottom: 24px;
}
.proj-title {
  font-family: 'Playfair Display', serif; font-size: clamp(26px, 3vw, 48px);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase; transition: color 0.3s; margin-bottom: 20px;
}
.project-item.featured .proj-title { font-size: clamp(40px, 5vw, 76px); }
.proj-desc {
  font-size: 13px; font-weight: 300; line-height: 1.7; color: #555;
  transition: color 0.3s; margin-bottom: 0; max-width: 480px;
}
.project-item.featured .proj-desc { color: rgba(255,255,255,0.6); }
.project-item:not(.featured):hover .proj-desc { color: rgba(255,255,255,0.6); }

.proj-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; }
.proj-tags {
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); line-height: 2; transition: color 0.3s;
}
.proj-right { text-align: right; }
.proj-year {
  font-family: 'Playfair Display', serif; font-size: 72px; font-weight: 900;
  color: rgba(0,0,0,0.07); line-height: 1; transition: color 0.3s;
}
.proj-arrow {
  font-size: 22px; transition: color 0.3s, transform 0.3s; display: block;
  margin-top: 8px; font-family: 'Space Mono', monospace;
}
.project-item:hover .proj-arrow { transform: translate(5px,-5px); }
.proj-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 8px;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px; margin-top: 8px; transition: color 0.2s;
}
.proj-link:hover { color: var(--white); }
.proj-link-dark {
  color: var(--mid); border-color: #ccc;
  transition: color 0.3s, border-color 0.3s;
}
.project-item:not(.featured):hover .proj-link-dark { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.2); }

/* ── SKILLS ── */
.skills-section { background: var(--black); color: var(--white); }
.skills-section .section-eyebrow { color: rgba(255,255,255,0.3); }
.skills-section .section-eyebrow::after { background: rgba(255,255,255,0.1); }

.skills-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.skill-col { padding-right: 48px; border-right: 1px solid rgba(255,255,255,0.1); }
.skill-col:nth-child(2) { padding: 0 48px; }
.skill-col:last-child { border-right: none; padding-right: 0; padding-left: 48px; }
.skill-col-title {
  font-family: 'Playfair Display', serif; font-size: 26px;
  font-weight: 900; margin-bottom: 36px; line-height: 1;
}
.skill-list { list-style: none; }
.skill-list li {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.skill-list li:hover { color: var(--white); }
.skill-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.18); flex-shrink: 0;
}
.skill-list li:hover .skill-dot { background: var(--white); }

/* Marquee */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; margin-top: 80px;
}
.marquee-track {
  display: flex; gap: 52px;
  animation: marquee 22s linear infinite; width: max-content;
}
.marquee-item {
  font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 900;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.18); white-space: nowrap; flex-shrink: 0;
}
.marquee-item span { color: rgba(255,255,255,0.05); margin: 0 24px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.edu-item {
  background: var(--accent); padding: 52px 44px;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.edu-item:hover { background: var(--black); }
.edu-item::after {
  content: attr(data-score); position: absolute;
  bottom: -16px; right: 10px;
  font-family: 'Playfair Display', serif; font-size: 96px;
  font-weight: 900; color: rgba(0,0,0,0.06); line-height: 1; pointer-events: none;
  transition: color 0.3s;
}
.edu-item:hover::after { color: rgba(255,255,255,0.04); }
.edu-year {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; color: var(--mid); margin-bottom: 20px;
  text-transform: uppercase; transition: color 0.3s;
}
.edu-item:hover .edu-year { color: rgba(255,255,255,0.4); }
.edu-school {
  font-family: 'Playfair Display', serif; font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.01em;
  text-transform: uppercase; margin-bottom: 16px; transition: color 0.3s;
}
.edu-item:hover .edu-school { color: var(--white); }
.edu-degree {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 300; color: #555; line-height: 1.6; transition: color 0.3s;
}
.edu-item:hover .edu-degree { color: rgba(255,255,255,0.5); }
.edu-score {
  font-family: 'Space Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; margin-top: 28px; font-weight: 700; transition: color 0.3s;
}
.edu-item:hover .edu-score { color: var(--white); }

/* ── CONTACT ── */
.contact-section { padding: 120px 48px; position: relative; overflow: hidden; }
.contact-bg-text {
  position: absolute; bottom: -50px; left: -10px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 17vw, 240px); font-weight: 900;
  color: rgba(0,0,0,0.04); text-transform: uppercase;
  pointer-events: none; letter-spacing: -0.04em; white-space: nowrap;
}
.contact-inner { position: relative; z-index: 2; max-width: 820px; }
.contact-label {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--mid); margin-bottom: 32px;
}
.contact-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 7.5vw, 112px); font-weight: 900;
  line-height: 0.88; letter-spacing: -0.03em;
  text-transform: uppercase; margin-bottom: 60px;
}
.contact-headline em { font-style: italic; color: var(--mid); }
.contact-email {
  display: inline-flex; align-items: center; gap: 20px;
  font-family: 'Playfair Display', serif; font-size: clamp(14px, 1.6vw, 22px);
  font-style: italic; font-weight: 900; text-decoration: none; color: var(--black);
  border-bottom: 2px solid var(--black); padding-bottom: 8px; transition: gap 0.3s;
  word-break: break-all;
}
.contact-email:hover { gap: 32px; }
.contact-links { display: flex; gap: 32px; margin-top: 52px; flex-wrap: wrap; }
.contact-links a {
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--mid);
  transition: color 0.2s; display: flex; align-items: center; gap: 8px;
}
.contact-links a:hover { color: var(--black); }
.contact-links a::before { content: '↗'; font-size: 11px; }

/* ── FOOTER ── */
footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 48px; border-top: 1px solid #ddd; flex-wrap: wrap; gap: 12px;
}
footer span {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid);
}
footer a {
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid);
  text-decoration: none; transition: color 0.2s;
}
footer a:hover { color: var(--black); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PROJECT TONE VARIANTS ── */
.project-item--tone-1 { background: #e8e4dc; }
.project-item--tone-2 { background: #d4d0c8; }
.project-item--tone-3 { background: #cac6be; }
.project-item--tone-4 { background: #bab6b0; }
.project-item--wide   { grid-column: 1 / -1; }
.project-inner--compact { min-height: 320px; }

/* ── EDUCATION TONE VARIANTS ── */
.edu-item--tone-1 { background: #ddd8d0; }
.edu-item--tone-2 { background: #d4d0c8; }

/* ── SECTION LAYOUT HELPERS ── */
.section-head { padding: 0 48px 60px; }
#projects  { padding: 80px 0 100px; }
#education { padding: 100px 0 0; }
.footer-links { display: flex; gap: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .skills-layout { grid-template-columns: 1fr 1fr; }
  .skill-col:last-child { border-right: none; padding: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero, section, .contact-section { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 100px; padding-bottom: 40px; }
  .divider { margin: 0 24px; }
  footer { padding: 20px 24px; }
  .project-grid, .edu-grid { grid-template-columns: 1fr; }
  .project-item.featured { grid-column: auto; }
  .skills-layout { grid-template-columns: 1fr; }
  .skill-col, .skill-col:nth-child(2), .skill-col:last-child {
    padding: 0 0 40px; border: none; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .exp-item { grid-template-columns: 1fr; gap: 20px; }
  .hero-mid { flex-direction: column; align-items: flex-start; }
  .torn-window { width: 100%; max-width: 380px; }
  .hero-word-2 { text-align: left; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-word-1 { font-size: clamp(56px, 18vw, 100px); }
  .hero-word-2 { font-size: clamp(44px, 16vw, 88px); }
  .project-inner { padding: 36px 28px; }
  .edu-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
