html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body > *, html > * {
    overflow: unset !important;
}
:root {
    /* ...existing code... */
}

/* Force sticky header globally */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--color-dark) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 16px 0 var(--color-primary) !important;
    padding: 28px 0 28px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80px !important;
    transition: box-shadow 0.2s, background 0.2s !important;
}
/* =========================
   GLOBAL BASE STYLES
   ========================= */
:root {
    /* Core Colors */
    --color-bg: #1A1A2E;
    --color-primary: #00BCD4;
    --color-accent: #FFD700;
    --color-text: #E0E0E0;
    --color-dark: #23233B;
    --color-card-bg: rgba(26, 26, 46, 0.8);
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #00BCD4, #006064);
    --gradient-accent: linear-gradient(135deg, #FFD700, #FFC107);
    
    /* Typography */
    --font-main: 'Inter', Arial, sans-serif;
    --font-heading: 'Orbitron', 'Inter', Arial, sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 24px;
    --default-section-vertical-margin: 48px;
    
    /* Animation */
    --transition: 0.2s cubic-bezier(.4,0,.2,1);
    --transition-slow: 0.4s cubic-bezier(.4,0,.2,1);
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(0, 188, 212, 0.3);
}

html {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.7;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

.section, section {
    padding-top: 32px;
    padding-bottom: 32px;
    margin-top: 0;
    margin-bottom: var(--default-section-vertical-margin);
    border-radius: 12px;
    box-sizing: border-box;
}

/* =========================
   GLOBAL CONTAINER & SPACING
   ========================= */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    box-sizing: border-box;
}

/* Spacing helpers */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.pt-1 { padding-top: 0.5rem !important; }
.pb-1 { padding-bottom: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.pt-2 { padding-top: 1rem !important; }
.pb-2 { padding-bottom: 1rem !important; }
.pt-32 { padding-top: 32px !important; }
.pb-32 { padding-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

.flex-center { display: flex; justify-content: center; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 20px; } }

/* =========================
   GLOBAL SECTION & CONTAINER VERTICAL SPACING
   ========================= */
section,
.section {
    margin-top: var(--default-section-vertical-margin);
    margin-bottom: var(--default-section-vertical-margin);
    padding-top: 0;
    padding-bottom: 0;
}

section:first-of-type,
.section:first-of-type {
    margin-top: 0;
}
section:last-of-type,
.section:last-of-type {
    margin-bottom: 0;
}

/* =========================
   SECTION TITLES CONSISTENCY
   ========================= */
.section-title,
.section-title.typewriter,
h1.section-title,
h2.section-title {
    font-family: 'Orbitron', 'Inter', Arial, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #00BCD4 !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 0.8em !important;
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
    position: relative !important;
    /* Ensure the element doesn't collapse when textContent is empty during typewriter init */
    min-height: calc(2rem * 1.2); /* font-size * line-height */
}

/* Responsive section title font sizes */
@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        padding-left: 12px;
        padding-right: 12px;
    }
    .section-title,
    h1.section-title,
    h2.section-title {
        font-size: 1.5rem !important;
    }
}
@media (max-width: 600px) {
    .container {
        padding-left: 4px;
        padding-right: 4px;
    }
    .section-title,
    h1.section-title,
    h2.section-title {
        font-size: 1.1rem !important;
    }
}
@media (max-width: 480px) {
    :root {
        --default-section-vertical-margin: 18px;
    }
    .container {
        padding-left: 1vw;
        padding-right: 1vw;
    }
    .section-title,
    h1.section-title,
    h2.section-title {
        font-size: 0.98rem !important;
    }
}

/* =========================
   UNIVERSAL H2 STYLES
   ========================= */
h2 {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 2.4rem;
    color: var(--color-primary, #4F8CFF);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 24px 0;
    line-height: 1.18;
    text-align: left;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2.5px solid var(--color-primary, #4F8CFF);
    animation: typewriter 2.2s steps(32, end) 0.2s 1 normal both, blink-caret 0.7s step-end infinite;
    transition: color 0.2s, font-size 0.2s;
}
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-primary, #4F8CFF); }
}

/* Tablet: 601px - 900px */
@media (max-width: 900px) and (min-width: 601px) {
    h2 {
        font-size: 2rem;
    }
}
/* Mobile: ≤600px */
@media (max-width: 600px) {
    h2 {
        font-size: 1.35rem;
    }
}

/* =========================
   SVG STYLES
   ========================= */
/* Only style SVGs used as backgrounds/decorations */
.section-bg-svg,
.achievements-bg-glow,
.contact-animated-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
}
@media (max-width: 900px) {
    .section-bg-svg,
    .achievements-bg-glow,
    .contact-animated-svg {
        display: none !important;
    }
}

/* =========================
   LINK STYLES
   ========================= */
a, a:visited, a:hover, a:focus, a:active, a::after, a::before {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
}