/* -------------------------------------------------------------
       1. DESIGN SYSTEM & RESET
       ------------------------------------------------------------- */
        :root {
      --bg-gradient-orig: linear-gradient(180deg, #0e2d5a 0%, #081e3e 25%, #061730 50%, #040f22 75%, #090D1F 100%);
      --bg-gradient-new: linear-gradient(180deg, #1A2C42 0%, #0F1D2B 100%);
      --bg-main: #061730;
      --bg-sec: #082142;
      --bg-card: rgba(8, 33, 66, 0.4);
      --border-card: rgba(255, 255, 255, 0.06);
      --border-glow: rgba(97, 117, 162, 0.15);
      --accent-cyan: #6175A2;
      --accent-blue: #7C91BF;
      --accent-hover: #4D5E85;
      --accent-glow: rgba(97, 117, 162, 0.2);
      --accent-gradient: linear-gradient(90deg, #6175A2 0%, #7C91BF 100%);
      --text-white: #ffffff;
      --text-light-blue: #e0f2fe;
      --text-muted: #e0f2fe;
      --text-dark: #0f172a;
      
      --color-error: #ef4444;
      --color-error-bg: rgba(239, 68, 68, 0.1);
      --color-success: #10b981;
      --color-success-bg: rgba(16, 185, 129, 0.1);
      --color-info: #3b82f6;
      --color-info-bg: rgba(59, 130, 246, 0.1);
      --color-warning: #f59e0b;
      --color-warning-bg: rgba(245, 158, 11, 0.1);
      --color-disabled: #475569;

      --text-light: #e2e8f0;
      --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.5);
      
      --font-serif: 'Forum', Georgia, serif;
      --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
      --font-text: 'Lora', Georgia, serif;
      
      --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      --transition-fast: all 0.2s ease;
      
      --container-max: 1200px;
      --section-padding: clamp(24px, 6vw, 120px);
      --section-vertical-padding: clamp(60px, 8vw, 120px);
      --cta-vertical-padding: clamp(80px, 10vw, 140px);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 80px;
      font-size: 16px;
      background-color: var(--bg-main);
      color: var(--text-white);
      font-family: var(--font-sans);
      overflow-x: clip;
      -webkit-font-smoothing: antialiased;
      width: 100%;
    }

    body {
      overflow-x: clip;
      background: var(--bg-gradient-new);
      line-height: 1.6;
      width: 100%;
      position: relative;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6 {
      font-family: var(--font-serif);
      font-weight: 600;
      line-height: 1.25;
      color: var(--text-white);
    }

    p {
      font-family: var(--font-text);
      color: var(--text-muted);
      font-size: 1rem;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition-fast);
    }

    ul {
      list-style: none;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .page-wrapper {
      width: 100%;
      overflow: visible;
      position: relative;
    }

    /* Layout Utility */
    .container {
      width: 100%;
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0 24px;
      position: relative;
      z-index: 2;
    }

    .section-padding {
      padding: 100px 0;
    }
    
    @media (min-width: 1024px) {
      .section-padding {
        padding: 140px 0;
      }
    }

    #about {
      padding-top: 40px;
      padding-bottom: 40px;
    }
    #contact {
      padding-top: 25px;
      padding-bottom: 15px;
    }
    
    @media (min-width: 1024px) {
      #about {
        padding-top: 50px;
        padding-bottom: 50px;
      }
      #contact {
        padding-top: 25px;
        padding-bottom: 15px;
      }
    }

    /* Decorative Glow Orbs */
    .glow-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(100px);
      pointer-events: none;
      z-index: 1;
      opacity: 0.6;
    }

    .orb-1 {
      top: 10%;
      left: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(97, 117, 162, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .orb-2 {
      top: 40%;
      right: -10%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(124, 145, 191, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    }

    .orb-3 {
      bottom: 10%;
      left: 10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(97, 117, 162, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    }

    /* Section Titles */
    .section-title-wrap {
      text-align: center;
      margin-bottom: 60px;
    }

    .section-title {
      font-size: 2rem;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }
    
    @media (min-width: 768px) {
      .section-title {
        font-size: 2.5rem;
      }
    }
    
    @media (min-width: 1024px) {
      .section-title {
        font-size: 2.85rem;
      }
    }

    .section-subtitle {
      font-size: 1.125rem;
      max-width: 600px;
      margin: 0 auto;
      color: var(--text-muted);
    }

    /* Flex Section Headers (Mockup Style) */
    .section-header-flex {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 13px;
    }

    /* Buttons */
    /* Scroll Reveals */
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-left {
      opacity: 0;
      transform: translateX(-48px);
      transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-left.active {
      opacity: 1;
      transform: translateX(0);
    }

    /* Scroll Reveals — additional variants (auto-variety across inner pages) */
    .reveal-right {
      opacity: 0;
      transform: translateX(48px);
      transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right.active {
      opacity: 1;
      transform: translateX(0);
    }
    .reveal-scale {
      opacity: 0;
      transform: scale(0.92) translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-scale.active {
      opacity: 1;
      transform: scale(1) translateY(0);
    }

/* Remove tap flash on all elements (mobile) */
* {
  -webkit-tap-highlight-color: transparent;
}

summary {
  outline: none;
}
summary:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}
