/*
Theme Name: Vaibhav Sreenivas — Digital Growth Architect
Theme URI: https://vaibhavsreenivas.com
Author: Vaibhav Sreenivas
Description: Premium OLED Portfolio. High-impact typography, dual-mode engine, and AI-driven metrics. Dubai 2026 Edition.
Version: 10.0.0
Author URI: https://linkedin.com/in/vaibhav-sreenivas
Text Domain: vaibhav-portfolio
*/

/* ==========================================
   ROOT SYSTEM (DUAL MODE ENGINE)
   ========================================== */
:root {
  /* DARK THEME (OLED) */
  --bg:           #050505;
  --bg-2:         #0a0a0a;
  --bg-card:      #0f0f0f;
  --bg-card-2:    #141414;
  --text:         #F4F4F5;
  --text-dim:     #A1A1AA;
  --muted:        #6B6B6B;
  --muted-2:      #4a4a4a;
  --accent:       #FF2A5F; /* Electric Crimson */
  --accent-glow:  rgba(255, 42, 95, 0.18);
  --accent-line:  rgba(255, 42, 95, 0.35);
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --grain:        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.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");

  --font-display: 'Geist Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --pad-x:   clamp(20px, 5.5vw, 88px);
  --pad-sec: clamp(72px, 9vw, 140px);
  --radius:  12px;
  --radius-lg: 18px;
  --pill:    100px;

  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
  --bg:           #FBFBFC;
  --bg-2:         #F5F5F7;
  --bg-card:      #FFFFFF;
  --bg-card-2:    #F0F0F2;
  --text:         #09090B;
  --text-dim:     #3F3F46;
  --muted:        #71717A;
  --accent:       #2B5FFF; /* Cobalt Blue */
  --accent-glow:  rgba(43, 95, 255, 0.12);
  --accent-line:  rgba(43, 95, 255, 0.25);
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
}

/* ==========================================
   CORE & RESET
   ========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease-expo), color 0.4s var(--ease-expo);
}

/* Grain Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--grain);
  opacity: 0.035;
  mix-blend-mode: overlay;
}

[data-theme="light"] body::before { opacity: 0.02; }

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 1.5rem;
  left: var(--pad-x);
  right: var(--pad-x);
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(var(--bg), 0.7);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--border);
  border-radius: var(--pill);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: 0.3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================
   HERO (SPLIT LAYOUT)
   ========================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  padding: 120px var(--pad-x) 60px;
  align-items: center;
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 160px; text-align: center; }
  .hero-card-wrap { justify-self: center; }
}

/* Persona Card (Left side, no photo) */
.hero-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}

.id-badge {
  width: 80px; height: 80px;
  background: var(--bg-card-2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.id-badge svg { color: var(--accent); width: 40px; height: 40px; }

.id-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.id-title { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.4; }

.id-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.stat-item span { display: block; }
.stat-val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.stat-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.id-socials { display: flex; gap: 0.75rem; justify-content: start; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--bg-card-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: var(--muted);
}
.social-btn:hover { background: var(--accent); color: white; transform: translateY(-3px); }

/* Headline Area (Right side) */
.hero-content {
  max-width: 800px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-h1 em { font-style: normal; color: var(--accent); }

.hero-desc {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 580px;
}

/* ==========================================
   IMPACT SECTION (Platform cards)
   ========================================== */
.impact { padding: var(--pad-sec) var(--pad-x); }

.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.p-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: 0.4s var(--ease-expo);
}

.p-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.p-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 2rem; }
.p-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: white; }
.p-card.ig .p-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.p-card.yt .p-icon { background: #FF0000; }
.p-card.tt .p-icon { background: #000000; outline: 1px solid #69C9D0; }

.p-stat { margin-bottom: 1.5rem; }
.p-num { font-size: 3rem; font-weight: 700; font-family: var(--font-display); line-height: 1; }
.p-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; margin-top: 0.5rem; }

.p-meta { display: flex; gap: 1rem; font-size: 13px; color: var(--text-dim); }
.p-meta span { display: flex; align-items: center; gap: 0.4rem; }
.p-meta svg { width: 14px; height: 14px; color: #22c55e; }

/* ==========================================
   EXPERIENCE TIMELINE
   ========================================== */
.timeline-section { padding: var(--pad-sec) var(--pad-x); background: var(--bg-2); }

.timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.t-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 4rem;
}

.t-logo {
  position: absolute;
  left: 0;
  width: 64px; height: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.t-logo img { width: 70%; height: auto; object-fit: contain; }

.t-content { background: var(--bg-card); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.t-date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.t-role { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.t-comp { font-size: 14px; color: var(--muted); margin-bottom: 1.5rem; }
.t-desc { color: var(--text-dim); line-height: 1.6; font-size: 15px; }
.t-desc li { margin-bottom: 0.75rem; position: relative; padding-left: 1.25rem; }
.t-desc li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ==========================================
   GRIDS (EDUCATION / CERTS)
   ========================================== */
.grid-section { padding: var(--pad-sec) var(--pad-x); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.grid-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.grid-card:hover { border-color: var(--accent); background: var(--bg-card-2); }

.card-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 0.2rem; }
.card-info p { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { padding: var(--pad-sec) var(--pad-x); border-top: 1px solid var(--border); text-align: center; }
.footer-h { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; margin-bottom: 2rem; }
.footer-cta { display: inline-flex; height: 56px; align-items: center; padding: 0 2rem; background: var(--accent); color: white; border-radius: var(--pill); font-weight: 700; font-size: 15px; transition: 0.3s var(--ease-back); }
.footer-cta:hover { transform: scale(1.05); box-shadow: 0 20px 40px var(--accent-glow); }

.footer-sub { margin-top: 4rem; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

/* ==========================================
   RESPONSIVE UTILS
   ========================================== */
.s-reveal { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease-expo); }
.s-reveal.active { opacity: 1; transform: translateY(0); }

.section-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 3rem; }

/* ==========================================
   UTILITY: DARK/LIGHT TOGGLE ANIMATION
   ========================================== */
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* WordPress Alignment fixes */
.alignwide { width: 100vw; max-width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
