/* =====================================================
   POOVARASAN A — PORTFOLIO
   Theme: Ocean Calm · Light · Nature Paper
   =====================================================
   CSS VARIABLES — edit these to retheme everything
===================================================== */
:root {
  /* ── Backgrounds ── */
  --bg:           #f0f4f3;
  --bg2:          #e8efed;
  --card:         #ffffff;

  /* ── Accents ── */
  --accent:       #2a9d8f;
  --accent-light: #52b5a8;
  --accent-soft:  rgba(42,157,143,0.10);
  --accent2:      #5aab9c;
  --accent3:      #e76f51;

  /* ── Text ── */
  --text:         #1e2d2b;
  --muted:        #6b8c86;
  --subtle:       #a8bfbb;

  /* ── Borders ── */
  --border:       rgba(42,157,143,0.14);
  --border-card:  rgba(42,157,143,0.2);

  /* ── Typography ── */
  --font-head:    'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  /* ── Shape ── */
  --radius:       18px;
  --radius-sm:    10px;
  --radius-pill:  100px;

  /* ── Shadow ── */
  --shadow:       0 4px 24px rgba(42,157,143,0.07);
  --shadow-hover: 0 12px 48px rgba(42,157,143,0.13);
}

/* =====================================================
   RESET
===================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  background-image:
    radial-gradient(ellipse 80% 55% at 8% 18%, rgba(90,171,156,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 78%, rgba(42,157,143,0.05) 0%, transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =====================================================
   CUSTOM CURSOR
===================================================== */
#cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
#cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(42,157,143,0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, border-color .25s;
}
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

/* =====================================================
   CANVAS
===================================================== */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none; opacity: 0.5;
}

/* =====================================================
   LAYOUT
===================================================== */
.wrapper { position: relative; z-index: 1; }

/* =====================================================
   NAV
===================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6%;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(240,244,243,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.5rem;
  color: var(--accent); letter-spacing: 1px;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: .8rem; font-weight: 500;
  color: var(--muted); letter-spacing: .8px;
  text-transform: uppercase; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none; cursor: pointer;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .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); }

.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(240,244,243,0.97);
  z-index: 99; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 700;
  color: var(--muted); transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 6% 80px;
}
.hero-inner {
  display: flex; gap: 80px; align-items: center;
  max-width: 1100px; width: 100%;
}
.hero-text { flex: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-card);
  background: var(--accent-soft);
  padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  animation: blink 2.2s ease-in-out infinite;
}

.hero-text h2 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 700; line-height: 1.08; color: var(--text);
  animation: fadeUp .6s .1s ease both;
}
.hero-text h2 em { font-style: italic; color: var(--accent); }

.hero-subtitle {
  font-size: 1rem; color: var(--muted);
  margin: 20px 0 36px; line-height: 1.85; max-width: 440px;
  animation: fadeUp .6s .2s ease both;
}
.hero-subtitle strong { color: var(--accent); font-weight: 600; }

.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 12px;
  animation: fadeUp .6s .3s ease both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 500;
  border: 1.5px solid transparent;
  transition: transform .2s, box-shadow .25s, background .2s, border-color .2s;
  cursor: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(42,157,143,0.28);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 30px rgba(42,157,143,0.38);
}
.btn-outline {
  border-color: var(--border-card); color: var(--text);
  background: var(--card); box-shadow: var(--shadow);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-coral {
  border-color: rgba(231,111,81,0.3);
  color: var(--accent3); background: rgba(231,111,81,0.05);
}
.btn-coral:hover { background: rgba(231,111,81,0.1); border-color: var(--accent3); }

/* ── Hero photo column wrapper ── */
.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  animation: fadeUp .6s .15s ease both;
}

/* ── Hero photo ring/glow (no longer needs position:relative on notch) ── */
.hero-photo-wrap {
  position: relative;
  display: inline-block;
}
.photo-glow {
  position: absolute; inset: -24px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,157,143,0.18) 0%, transparent 70%);
  animation: pulse 5s ease-in-out infinite;
}
.photo-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px dashed rgba(42,157,143,0.3);
  animation: spin-slow 28s linear infinite;
}
.photo-ring::before {
  content: ''; position: absolute;
  top: -5px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px;
  background: var(--accent2); border-radius: 50%;
  box-shadow: 0 0 10px var(--accent2);
}
.hero-photo-wrap img {
  width: 270px; height: 270px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(42,157,143,0.22);
  position: relative; z-index: 1;
  box-shadow: var(--shadow-hover);
  display: block;
}

/* =====================================================
   MUSIC PLAYER NOTCH — centered below photo
===================================================== */
.music-notch {
  /* No longer absolute — sits in normal flow below photo */
  position: relative;
  left: auto; bottom: auto; transform: none;
  z-index: 10;
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 8px;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  max-width: 300px;
  box-shadow: var(--shadow-hover);
  animation: fadeUp .6s .5s ease both;
  white-space: nowrap;
  transition: border-color .6s ease, box-shadow .6s ease;
}
.notch-art {
  width: 36px; height: 36px;
  border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.notch-art.spinning { animation: spin-slow 4s linear infinite; }
.notch-art i { color: #fff; font-size: .9rem; }

.notch-info { flex: 1; overflow: hidden; }
.notch-label {
  font-size: .58rem; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
}
.notch-track {
  font-size: .78rem; color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
}
.notch-artist { font-size: .67rem; color: var(--muted); }

.notch-controls {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.notch-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: .72rem;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.notch-btn:hover { color: var(--accent); background: var(--accent-soft); }
.notch-btn.play-btn {
  width: 30px; height: 30px;
  background: var(--accent); color: #fff; font-size: .8rem;
}
.notch-btn.play-btn:hover { background: var(--accent-light); }

/* EQ bars */
.eq-bars {
  display: flex; align-items: flex-end; gap: 2px;
  height: 14px; flex-shrink: 0;
}
.eq-bar {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: eq-bounce 1s ease-in-out infinite;
}
.eq-bar:nth-child(1) { height: 50%; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: .2s; }
.eq-bar:nth-child(3) { height: 35%; animation-delay: .35s; }
.eq-bar:nth-child(4) { height: 75%; animation-delay: .12s; }
.eq-bars.paused .eq-bar { animation-play-state: paused; opacity: .35; }

/* =====================================================
   SECTIONS
===================================================== */
.section { padding: 100px 6%; max-width: 1100px; margin: 0 auto; }
.section-wide { padding: 100px 6%; }
.section-wide .inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: .68rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.12;
  color: var(--text); margin-bottom: 50px;
}
.divider {
  max-width: 1100px; margin: 0 auto;
  height: 1px; background: var(--border);
}
.bg-alt { background: var(--bg2); }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.about-desc { font-size: 1rem; color: var(--muted); line-height: 1.9; }
.about-desc p + p { margin-top: 18px; }
.about-desc strong { color: var(--accent); font-weight: 600; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border-card);
  border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-number { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.project-card {
  background: var(--card); border: 1px solid var(--border-card);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.project-card:hover::before { transform: scaleX(1); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(42,157,143,0.3); }
.project-num { font-size: .68rem; color: var(--subtle); letter-spacing: 2px; }
.project-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--text); }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .7rem; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(42,157,143,0.2);
  border-radius: var(--radius-pill); padding: 3px 11px;
}
.project-links {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.link-btn {
  font-size: .78rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px; transition: color .2s;
}
.link-btn:hover { color: var(--accent); }
.link-btn i { font-size: .68rem; }

/* ── Skills & Certs ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.skill-list { display: flex; flex-direction: column; gap: 12px; }
.skill-item {
  background: var(--card); border: 1px solid var(--border-card);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: .88rem; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  transition: border-color .25s, color .25s, transform .2s;
}
.skill-item i { color: var(--accent); width: 16px; flex-shrink: 0; }
.skill-item:hover { border-color: rgba(42,157,143,0.35); color: var(--text); transform: translateX(5px); }

.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  background: var(--card); border: 1px solid var(--border-card);
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: var(--shadow);
  transition: border-color .25s, transform .2s;
}
.cert-item:hover { border-color: rgba(42,157,143,0.35); transform: translateX(5px); }
.cert-name { font-size: .88rem; color: var(--text); }
.cert-verify {
  font-size: .72rem; color: var(--accent);
  border: 1px solid rgba(42,157,143,0.3);
  padding: 3px 12px; border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
  transition: background .2s;
}
.cert-verify:hover { background: var(--accent-soft); }
.more-link {
  font-size: .82rem; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; transition: gap .2s;
}
.more-link:hover { gap: 12px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border-card);
  border-radius: var(--radius); padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  transition: border-color .25s, transform .2s;
}
.contact-card:hover { border-color: rgba(42,157,143,0.35); transform: translateY(-3px); }
.contact-icon {
  width: 44px; height: 44px; background: var(--accent-soft);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon i { color: var(--accent); font-size: .95rem; }
.contact-label { font-size: .68rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.contact-value { font-size: .9rem; color: var(--text); font-weight: 500; margin-top: 3px; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--border-card);
  border-radius: var(--radius-pill); font-size: .82rem;
  color: var(--muted); background: var(--card); box-shadow: var(--shadow);
  transition: all .2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: var(--accent-soft); }

/* ── Footer ── */
footer {
  text-align: center; padding: 40px 20px;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted); letter-spacing: .4px;
}
footer span { color: var(--accent); }

/* =====================================================
   SCROLL REVEAL
===================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   KEYFRAMES
===================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.1); opacity: .8; } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes eq-bounce { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 920px) {
  .hero-inner { flex-direction: column-reverse; gap: 50px; text-align: center; }
  .hero-photo-col { width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hero-photo-wrap img { width: 210px; height: 210px; }
  .music-notch { max-width: 280px; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 5%; }
}
