/* ============================================
   BASE STYLES
   Reset, variables, typography, animations
   ============================================ */

/* === CSS Variables === */
:root {
    /* Colors */
    --color-primary: #346DFF;
    --color-primary-hover: #2A5AE6;
    --color-primary-active: #1E4FD9;
    --color-text: #17181A;
    --color-text-secondary: #5C6370;
    --color-text-muted: #6B7280;
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-light: #F2F6FC;
    --color-border: #E4E6F7;
    --color-border-light: #E8EEFF;

    /* Gradients */
    --gradient-primary: linear-gradient(180deg, rgba(87, 133, 252, 1) 0%, rgba(52, 109, 255, 1) 100%);
    --gradient-primary-hover: linear-gradient(180deg, rgba(70, 115, 235, 1) 0%, rgba(42, 90, 230, 1) 100%);

    /* Typography */
    --font-primary: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-accent: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;

    /* Border radius */
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0px 2px 16px 0px rgba(0, 5, 154, 0.05);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography optimization */
p, h1, h2, h3, h4, span, div {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile placeholder - hidden */
.mobile-placeholder {
    display: none !important;
}

/* === Keyframe Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInVerticalText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutText {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandBook {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shrinkBook {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

/* === Animation Classes === */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.39s ease-out, transform 0.39s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
}

.fade-in.animated {
    opacity: 1;
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-left.animated {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(40px);
}

.slide-in-right.animated {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.9);
}

.scale-in.animated {
    transform: scale(1);
}

/* Animation delays */
.animate-delay-1 {
    transition-delay: 0.05s;
}

.animate-delay-2 {
    transition-delay: 0.1s;
}

.animate-delay-3 {
    transition-delay: 0.15s;
}

.animate-delay-4 {
    transition-delay: 0.2s;
}

/* === Utility Classes === */
.about-service {
    display: none !important;
}
