/* =====================================================
   TELVARI PORTFOLIO — COLORS & TYPE TOKENS
   Liquid glassmorphism over deep navy.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&family=Arizonia&display=swap');

:root {
  /* -----------------------------------------------------
     CORE PALETTE — Warm deep ocean + mint accent
     ----------------------------------------------------- */
  /* The signature page gradient is built from these three.
     Each navy has a touch of warm violet/burgundy undertone so the
     overall mood reads "deep + atmospheric" rather than "cold tech". */
  --navy-1: #211d34;   /* top of page gradient — warm aubergine-dark */
  --navy-2: #1c2645;   /* mid — warm indigo */
  --navy-3: #1d416e;   /* base — warmer royal blue */
  --abyss:  #130d1c;   /* near-black, overlays + footer — slight violet */

  /* Mint/teal — the singular accent that everything keys off */
  --mint:        #64ffda;   /* primary accent (icons, links, highlights) */
  --mint-soft:   #4ecdc4;   /* secondary tone, CV "btn-download" */
  --mint-bright: #7ee8e2;   /* hover state */
  --mint-tint:   rgba(100, 255, 218, 0.20); /* fills on cards/tags */

  /* Secondary highlight — warm gold, used sparingly for awards/badges */
  --gold:        #ffc107;

  /* Status/badge supplements (used in publications + CV) */
  --green:       #28a745;
  --muted:       #adb5bd;

  /* Decorative gradient blobs that sit behind sections */
  --blob-violet: rgba(120, 119, 198, 0.10);
  --blob-pink:   rgba(255, 119, 198, 0.08);

  /* -----------------------------------------------------
     SIGNATURE GRADIENTS
     ----------------------------------------------------- */
  --bg-gradient: linear-gradient(135deg, #211d34 0%, #1c2645 50%, #1d416e 100%);
  --section-overlay: linear-gradient(135deg, rgba(33,29,52,0.85) 0%, rgba(28,38,69,0.80) 50%, rgba(29,65,110,0.85) 100%);
  --mint-gradient: linear-gradient(135deg, rgba(78,205,196,0.8) 0%, rgba(78,205,196,0.5) 100%);
  --mint-text-gradient: linear-gradient(135deg, #fff 0%, #a8edea 100%);

  /* -----------------------------------------------------
     FOREGROUND — Always on dark
     ----------------------------------------------------- */
  --fg-1: #ffffff;                       /* pure white — headings */
  --fg-2: rgba(255,255,255,0.90);        /* body lead */
  --fg-3: rgba(255,255,255,0.75);        /* body */
  --fg-4: rgba(255,255,255,0.60);        /* meta, venue, dates */
  --fg-5: rgba(255,255,255,0.40);        /* footnotes, dividers */

  /* -----------------------------------------------------
     GLASS SYSTEM — The defining mechanic of this brand.
     Layered: bg fill + border + inset highlight + drop shadow.
     ----------------------------------------------------- */
  --glass-bg:        rgba(255,255,255,0.15);
  --glass-bg-card:   linear-gradient(135deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.08) 100%);
  --glass-bg-panel:  linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.08) 100%);
  --glass-border:        rgba(255,255,255,0.25);
  --glass-border-bright: rgba(255,255,255,0.40);
  --glass-border-thin:   rgba(255,255,255,0.15);
  --glass-shine: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.20) 50%, transparent 70%);

  /* Backdrop blur — apply via blur(var()) saturate(180%) */
  --blur-sm: 10px;
  --blur-md: 20px;
  --blur-lg: 25px;
  --blur-xl: 40px;

  /* Layered shadow recipes (compose multiple) */
  --shadow-card:    0 8px 32px rgba(31,38,135,0.15), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.05);
  --shadow-card-h:  0 15px 40px rgba(0,0,0,0.20), inset 0 2px 0 rgba(255,255,255,0.30), 0 0 30px rgba(255,255,255,0.10);
  --shadow-btn:     0 4px 15px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.30);
  --shadow-btn-h:   0 8px 25px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.40), 0 0 20px rgba(255,255,255,0.10);
  --shadow-page:    0 8px 32px rgba(0,0,0,0.30), inset 0 2px 4px rgba(255,255,255,0.10);

  /* -----------------------------------------------------
     RADII — Generous, organic, never sharp.
     ----------------------------------------------------- */
  --r-sm: 8px;     /* badges, small tags */
  --r-md: 12px;    /* buttons, inputs */
  --r-lg: 16px;    /* small cards */
  --r-xl: 20px;    /* glass panels */
  --r-2xl: 24px;   /* large cards */
  --r-3xl: 30px;   /* hero sections */
  --r-pill: 9999px;

  /* -----------------------------------------------------
     SPACING — multiples of 4
     ----------------------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* -----------------------------------------------------
     TYPOGRAPHY
     Body: Montserrat. Long copy: Open Sans. Decorative: Arizonia.
     ----------------------------------------------------- */
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;
  --font-prose:   'Open Sans', 'Montserrat', sans-serif;
  --font-display: 'Arizonia', cursive;       /* rare, decorative only */
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Modular scale (1.250) */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  30px;
  --fs-3xl:  36px;
  --fs-4xl:  48px;
  --fs-5xl:  64px;

  /* Weights — Montserrat shines at 400, 600, 700, 800 */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* Line heights */
  --lh-tight: 1.20;
  --lh-snug:  1.40;
  --lh-base:  1.60;
  --lh-loose: 1.80;

  /* Letter spacing */
  --ls-tight:  -0.01em;
  --ls-normal:  0;
  --ls-wide:    0.05em;
  --ls-wider:   0.10em;   /* badges, eyebrows */

  /* -----------------------------------------------------
     MOTION — bouncy back-out is the signature.
     ----------------------------------------------------- */
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.30s;
  --dur-base: 0.40s;
  --dur-slow: 0.75s;
}

/* =====================================================
   SEMANTIC TYPE — apply to actual elements
   ===================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--fg-2);
  background: var(--bg-gradient);
  background-attachment: fixed;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-5xl);                  /* 64 — hero cv-name */
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
  /* The signature mint-tinted name treatment */
  background: var(--mint-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2, .h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);                  /* 36 — section-title */
  line-height: var(--lh-tight);
  color: var(--fg-1);
  text-align: center;
  position: relative;
  padding-bottom: var(--sp-4);
}
/* Mint underline that defines section titles */
h2.section-title::after, .h2.section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6) 50%, transparent);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);                   /* 24 */
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);                   /* 18 */
  line-height: var(--lh-snug);
  color: var(--fg-1);
}

p {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--fg-3);
}

p.lead {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--fg-1);
}

strong, b {
  color: var(--mint);
  font-weight: var(--fw-semibold);
}

a {
  color: var(--mint-soft);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}
a:hover { color: var(--mint-bright); }

small, .meta {
  font-size: var(--fs-sm);
  color: var(--fg-4);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--mint);
}

code, kbd, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: var(--r-sm);
  color: var(--mint);
  border: 1px solid var(--glass-border-thin);
}

.script {
  font-family: var(--font-display);          /* Arizonia — sparingly */
  font-size: var(--fs-3xl);
  color: var(--mint-bright);
}

/* =====================================================
   MODERN VISUAL EFFECTS & ANIMATIONS
   ===================================================== */

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for beautiful cascading reveals */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Gentle morphing and floating background blobs */
@keyframes blob-float-1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(5%, 8%) scale(1.1) rotate(60deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes blob-float-2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-6%, -5%) scale(0.95) rotate(-45deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.bg-blob-violet {
  animation: blob-float-1 25s ease-in-out infinite;
}

.bg-blob-pink {
  animation: blob-float-2 30s ease-in-out infinite;
}

/* Elegant glowing transitions on hover elements */
.glowing-hover-item {
  transition: all 0.3s var(--ease-smooth);
}
.glowing-hover-item:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.45));
}

