/* =============================================
   E P THEEKSHANA — PORTFOLIO
   Bright Glassmorphic Theme (Nimesh Inspired)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Yatra+One&display=swap');

/* ── TOKENS ───────────────────────────────── */
:root {
  --bg:         #000000; /* Pure Black */
  --bg-soft:    #111111; /* Very Dark Grey */
  --bg-card:    #1A1A1A; /* Dark Grey for Cards */
  --border:     rgba(255, 255, 255, 0.1); 
  --text:       #FFFFFF;
  --text-2:     #999999; 
  --muted:      rgba(255, 255, 255, 0.6);
  --accent:     #D90429; /* Vibrant Red */
  --accent-h:   #A3001C; /* Darker Red */
  --accent-rgb: 217, 4, 41;
  --accent-dim: rgba(var(--accent-rgb), 0.15);
  --btn-text:   #FFFFFF; /* White text for red buttons */
  --nav-bg:     rgba(0, 0, 0, 0.8);
  --nav-border: rgba(255, 255, 255, 0.1);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Yatra One', cursive; /* Optional expressive font */
  --ease:       cubic-bezier(0.25, 1, 0.33, 1);
  --shadow-sm:  0 4px 15px rgba(0,0,0,0.3);
  --shadow-md:  0 10px 30px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 40px rgba(0,0,0,0.5);
  --radius:     16px;
}

[data-theme="light"] {
  --bg:         #FFFFFF; 
  --bg-soft:    #F5F5F5; /* Very Light Grey */
  --bg-card:    #FFFFFF;
  --border:     #E0E0E0; 
  --text:       #000000; /* Pure Black */
  --text-2:     #444444; 
  --muted:      rgba(0, 0, 0, 0.6);
  --accent:     #D90429; /* Vibrant Red */
  --accent-h:   #A3001C;
  --accent-rgb: 217, 4, 41;
  --accent-dim: rgba(var(--accent-rgb), 0.1);
  --btn-text:   #FFFFFF; /* White text for red buttons */
  --nav-bg:     rgba(255, 255, 255, 0.9);
  --nav-border: #E0E0E0;
  --shadow-sm:  0 4px 15px rgba(0,0,0,0.03);
  --shadow-md:  0 10px 30px rgba(0,0,0,0.06);
  --shadow-lg:  0 20px 40px rgba(0,0,0,0.08);
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

/* ── LAYOUT ───────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { 
  padding: 6rem 0; 
  margin-bottom: 8rem;
}
.marquee-section {
  margin-bottom: 8rem;
}

/* ── FLOATING GLASS PILL NAVIGATION ───────── */
.nav-glass-container {
  background-color: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--nav-border);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
  padding: 0.6rem 2rem;
  z-index: 990;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

/* Logo */
.nav-name {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  gap: 0.25rem;
}
.dot-jm {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  margin: 0 2px;
}

/* Desktop Links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  background-color: rgba(128, 128, 128, 0.15);
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover {
  background-color: rgba(128, 128, 128, 0.15);
  color: var(--accent);
}

/* Mobile Hamburger & Dock */
.hamburger { display: none; }
.nav-menu-mobile {
  background-color: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 1000;
  display: none;
  height: 58px;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  margin: 0 auto;
  max-width: 440px;
}
.nav-link-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.nav-link-mobile:hover {
  color: var(--text);
  background-color: rgba(128,128,128,0.15);
}
.nav-link-mobile.active {
  color: var(--bg);
  background-color: var(--text);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
button.nav-link-mobile {
  border: none;
  cursor: pointer;
  background: transparent;
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--text-2);
  margin-top: 1rem;
}

/* Floating Stats */
.hero-stats-wrapper {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.3);
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
  font-weight: 600;
  line-height: 1.2;
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--btn-text);
  transition: all 0.4s var(--ease);
  cursor: pointer;
  margin-top: 3rem;
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}
.btn-primary i {
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover i {
  transform: translate(3px, -3px);
}

/* ── MARQUEE ──────────────────────────────── */
.marquee-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.marquee-item i { color: var(--accent); font-size: 1.2rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION HEADER ───────────────────────── */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.section-header .accent-word {
  color: var(--accent);
  -webkit-text-stroke: 1px rgba(0,0,0,0.1); /* Slight definition for bright yellow */
}

/* ── PROJECTS ─────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4/3;
  padding: 1.5rem;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,0,0,0.15);
}
.project-img-wrapper {
  width: 100%;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  position: relative;
}
.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.project-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.project-info p {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.project-arrow {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.project-card:hover .project-arrow {
  background: var(--accent);
  transform: translate(2px, -2px) rotate(45deg);
}

/* ── ABOUT ────────────────────────────────── */
.about-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.about-content p {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.skill-item {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ── CONTACT ──────────────────────────────── */
.contact-section {
  text-align: center;
  padding: 8rem 0;
}
.contact-desc {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.contact-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-inner p {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.social-row { display: flex; gap: 1.5rem; }
.social-row a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.social-row a:hover { color: var(--accent-h); }

/* ── SCROLL REVEAL ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .hero-stats-wrapper {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
  }
  .stat-num { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .about-img { max-width: 400px; margin: 0 auto; }
  .skill-grid { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-glass-container { display: none; }
  .nav-menu-mobile { display: flex; }
  section { 
    padding: 4rem 0; 
    margin-bottom: 5rem;
  }
  .marquee-section {
    margin-bottom: 5rem;
  }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-stats-wrapper {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.65rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
