/*!
Theme Name: Hariharan Palanisamy — India × UAE
Theme URI: https://hariharanpalanisamy.com/
Author: Hariharan Palanisamy
Author URI: https://hariharanpalanisamy.com/
Description: Cinematic dark + Swiss grid + terminal portfolio theme. India × UAE palette, Tailwind-powered single-page AI/ML engineer theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hari-portfolio
Tags: portfolio, one-page, dark, custom-colors, custom-logo, tailwind

------------------------------------------------------------------------------
 NOTE: This is a hand-authored, ready-to-use stylesheet — the theme works as
 soon as it's activated (Tailwind utility classes are resolved by the Play CDN
 loaded in header.php). For a purged production build, run `npm run build`,
 which regenerates this file from src/input.css + tailwind.config.js.
------------------------------------------------------------------------------
*/

:root {
  --bg: #0e0c08;
  --bg-elev: #16130d;
  --bg-card: #1a1610;
  --fg: #f5ebdc;
  --fg-dim: #b8a98f;
  --fg-mute: #7a6e5a;
  --accent: #ff9933;   /* India saffron  */
  --accent-2: #ef3340; /* UAE red        */
  --accent-3: #138808; /* shared green   */
  --ok: #4ade80;
  --line: rgba(245, 235, 220, 0.08);
  --line-strong: rgba(245, 235, 220, 0.18);
  --accent-glow: rgba(255, 153, 51, 0.20);
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #0e0c08; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

/* Backdrop grid + cinematic blob */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(245,235,220,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,235,220,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
}
body::after {
  content: ""; position: fixed; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1300px; height: 820px; z-index: 0; pointer-events: none; filter: blur(40px);
  background:
    radial-gradient(ellipse at 25% 45%, rgba(255,153,51,0.22), transparent 60%),
    radial-gradient(ellipse at 60% 55%, rgba(239,51,64,0.14), transparent 62%),
    radial-gradient(ellipse at 85% 50%, rgba(19,136,8,0.12), transparent 60%);
}
.site-nav, section, footer { position: relative; z-index: 1; }

/* ── Layout helpers ── */
.container-site { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container-site { padding: 0 24px; } }

.label { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mute); }

/* ── Tricolor strip ── */
.flag-strip {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; opacity: 0.85;
  background: linear-gradient(90deg,
    #ff9933 0% 25%, #fff 25% 33%, #138808 33% 50%,
    #ef3340 50% 66%, #fff 66% 75%, #009639 75% 92%, #000 92% 100%);
}

/* ── Nav ── */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(14,16,8,0.65);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
.brand .custom-logo, .logo-white { height: 36px; width: auto; object-fit: contain; }
.logo-white { filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255,153,51,0.35)); }
.nav-link { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); transition: color .2s; }
.nav-link:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(245,235,220,0.04); transition: all .2s;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-glow); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse2 2s infinite; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 10px; font-family: var(--mono); font-size: 13px; font-weight: 500; border: 1px solid transparent; transition: all .2s; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-glow); }

/* ── Section heading ── */
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: end; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
@media (max-width: 768px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }
.sec-num { display: flex; align-items: baseline; gap: 12px; }
.sec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.h2 { font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -0.025em; line-height: 1.02; }
.display { font-family: var(--sans); font-weight: 500; font-size: clamp(56px, 8.5vw, 132px); letter-spacing: -0.04em; line-height: 0.92; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--fg-dim); }

/* ── Surfaces / cards ── */
.surface { background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -20px rgba(0,0,0,0.6); }
.skill { padding: 32px 28px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; min-height: 220px; transition: background .25s; }
.skill:hover { background: var(--bg-elev); }
.exp-row { display: grid; grid-template-columns: 100px 1fr 1.6fr 200px; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background .25s; }
.exp-row:hover { background: rgba(255,153,51,0.04); }
@media (max-width: 768px) { .exp-row { grid-template-columns: 80px 1fr; gap: 16px; } }
.chip { font-family: var(--mono); font-size: 10px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--fg-dim); }

/* ── Marquee ── */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.15); position: relative; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--fg-dim); animation: scroll 60s linear infinite; }
.marquee-fade::before, .marquee-fade::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee-fade::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-fade::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ── Effects ── */
.text-shimmer {
  background: linear-gradient(90deg, var(--fg) 0%, var(--accent) 50%, var(--fg-dim) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
.portrait-tone { filter: grayscale(0.25) contrast(1.05) brightness(0.92) sepia(0.18) hue-rotate(-8deg); mix-blend-mode: luminosity; }
.hero-watermark { animation: orb-pulse 10s ease-in-out infinite; }

/* ── Keyframes ── */
@keyframes pulse2 { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: translateY(-50%) rotate(-360deg); } }
@keyframes dune-drift { 0% { transform: translateX(0) translateY(0); } 100% { transform: translateX(-20px) translateY(-8px); } }
@keyframes orb-pulse { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spark-fall { 0% { transform: translateY(-20px); opacity: 0; } 10%,90% { opacity: 1; } 100% { transform: translateY(720px); opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-rise-in { animation: rise-in 0.9s cubic-bezier(.2,.7,.2,1) both; }
.animate-orb-pulse { animation: orb-pulse 8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
