/* ==========================================================================
   DESIGN SYSTEM - Portfolio Jeremy Alan
   Mobile-first approach with progressive enhancement
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (TOKENS)
   Liquid Glass Design System
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Light Mode (White-First) */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FB;
    --color-surface: #FFFFFF;
    --color-surface-hover: #FAFBFC;

    --color-text: #1A1D21;
    --color-text-secondary: #5E6673;
    --color-text-muted: #9CA3AF;

    /* Primary Accent - #5E3BED */
    --color-accent: #5E3BED;
    --color-accent-hover: #4C2FD6;
    --color-accent-light: rgba(94, 59, 237, 0.08);
    --color-accent-lighter: rgba(94, 59, 237, 0.04);
    --color-accent-dark: #3D23B0;

    --color-border: #E8EAF0;
    --color-border-light: #F0F2F5;

    /* Badge Colors - Harmonized with accent */
    --color-badge-enterprise: #5E3BED;
    --color-badge-enterprise-bg: rgba(94, 59, 237, 0.08);
    --color-badge-fintech: #10B981;
    --color-badge-fintech-bg: rgba(16, 185, 129, 0.08);
    --color-badge-ticketing: #F59E0B;
    --color-badge-ticketing-bg: rgba(245, 158, 11, 0.08);

    /* Liquid Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-solid: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: 12px;
    --glass-blur-strong: 20px;

    /* Shadows - Softer for glass aesthetic */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.06), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px -8px rgba(94, 59, 237, 0.06), 0 4px 16px -4px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 24px -4px rgba(94, 59, 237, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */
    --font-size-6xl: 3.75rem;
    /* 60px */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Border Radius - Generous for liquid glass */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.25rem;
    /* 20px */
    --radius-3xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease-out;
    --transition-slow: 300ms ease-out;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-4);

    /* Z-index */
    --z-header: 100;
    --z-modal: 200;
    --z-tooltip: 300;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--color-accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: var(--font-weight-semibold);
}

small {
    font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

/* Visually Hidden (for accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Anti-FOUC for i18n - Prevent flash of untranslated content */
/* Text appears instantly when i18n is ready - no transition to avoid "filling in" effect */
[data-i18n],
[data-i18n-html] {
    opacity: 1;
}

/* When JS loads, it will add 'i18n-ready' to html */
html:not(.i18n-ready) [data-i18n],
html:not(.i18n-ready) [data-i18n-html] {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
/* 
   Mobile: default (0 - 767px)
   Tablet: 768px and up
   Desktop: 1024px and up
   Large: 1280px and up
*/

@media (min-width: 768px) {
    :root {
        --container-padding: var(--space-6);
    }

    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    h3 {
        font-size: var(--font-size-2xl);
    }

    .section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .section-subtitle {
        font-size: var(--font-size-lg);
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: var(--space-8);
    }

    h1 {
        font-size: var(--font-size-5xl);
    }

    h2 {
        font-size: var(--font-size-4xl);
    }

    .section {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }

    .section-title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 1280px) {
    h1 {
        font-size: var(--font-size-6xl);
    }
}

/* --------------------------------------------------------------------------
   SCROLL ANIMATIONS
   Animation classes for intersection observer - prevents FOUC
   -------------------------------------------------------------------------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}