/* =========================================================
   SNT Code Library - Landing Page Styles
   ========================================================= */

/* Import Exo font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Core colors - SNT brand adapted for light theme */
    --primary: #5EAADD;
    --primary-light: #8ec6e6;
    --bg-primary: #FFFFFF;
    --bg-tertiary: #F8F9FA;
    --text-primary: #0A1A24;
    --text-secondary: #4A6B7F;
    --accent: #FFC225;
    --border-light: #E9ECEF;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;

    /* Typography */
    --font-sans: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Borders & Radius */
    --radius-lg: 0.75rem;

    /* Shadows */
    --shadow-lg: 0 10px 15px -3px rgba(15, 35, 51, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15, 35, 51, 0.15);
}

/* Base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: var(--text-base);
    height: 100vh;
    overflow: hidden;
}

/* Hide title block only on landing page */
.quarto-title-block {
    display: none !important;
}

/* Navigation Bar Hide-on-Scroll */
#quarto-header {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* =========================================================
   Hero Banner Section
   ========================================================= */
.hero-banner {
    background: var(--bg-primary);
    min-height: calc(100vh - 60px);
    padding-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg);
    z-index: 2;
    position: relative;
    /* Shift entire hero block slightly upward */
    transform: translateY(-8%);
}

.hero-logo {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(15, 35, 51, 0.15));
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-md) 0;
    background: linear-gradient(135deg, #0F2333, #2C5F7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: #1B3A4F;
    margin: 0 0 var(--space-lg) 0;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Language Selection in Hero */
.language-selection {
    margin-top: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.language-selection .language-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: #2C5F7A !important;
    line-height: 1.3;
}

.language-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.language-btn {
    text-decoration: none;
}

.language-btn .btn {
    min-width: 120px;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-lg);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(135deg, #2C5F7A 0%, #1B3A4F 100%);
    color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--bg-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

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

/* =========================================================
   Responsive Design
   ========================================================= */

/* Large phones and small tablets */
@media (max-width: 768px) {
    .hero-banner {
        min-height: calc(100vh - 65px);
        padding-top: 65px;
    }

    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        line-height: 1.5;
    }

    .hero-logo img {
        height: 60px;
    }

    .hero-content {
        padding: var(--space-md);
    }

    .language-selection .language-title {
        font-size: var(--text-xl);
    }

    .language-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .language-btn .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-banner {
        min-height: calc(100vh - 65px);
        padding-top: 65px;
    }

    .hero-title {
        font-size: var(--text-2xl);
        line-height: 1.1;
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        font-size: var(--text-sm);
        line-height: 1.4;
        margin-bottom: var(--space-md);
    }

    .hero-logo img {
        height: 50px;
    }

    .hero-logo {
        margin-bottom: var(--space-sm);
    }

    .language-selection {
        margin-top: var(--space-md);
    }

    .language-selection .language-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-sm);
    }

    .hero-content {
        padding: var(--space-sm);
        /* Slightly reduce upward shift on small phones */
        transform: translateY(-5%);
    }
}

/* iPhone SE specific (375x667) */
@media (max-width: 375px) and (max-height: 667px) {
    .hero-banner {
        min-height: calc(100vh - 70px);
        padding-top: 70px;
    }

    .hero-content {
        padding: var(--space-xs) var(--space-sm);
        /* Align iPhone SE shift with small-phone behavior */
        transform: translateY(-5%);
    }

    .hero-logo {
        margin-bottom: var(--space-xs);
    }

    .hero-logo img {
        height: 45px;
    }

    .hero-title {
        font-size: var(--text-xl);
        line-height: 1.1;
        margin-bottom: var(--space-xs);
    }

    .hero-subtitle {
        font-size: var(--text-xs);
        line-height: 1.3;
        margin-bottom: var(--space-sm);
    }

    .language-selection {
        margin-top: var(--space-sm);
    }

    .language-selection .language-title {
        font-size: var(--text-base);
        margin-bottom: var(--space-xs);
    }

    .language-buttons {
        gap: var(--space-xs);
    }

    .language-btn .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-sm);
        min-width: 100px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero-content {
        /* Reduce shift further on extra small phones */
        transform: translateY(-20%);
    }
    .hero-title {
        font-size: var(--text-xl);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: var(--text-xs);
        line-height: 1.3;
    }

    .hero-logo img {
        height: 40px;
    }

    .language-selection .language-title {
        font-size: var(--text-base);
    }

    .language-btn .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-sm);
    }
}

/* =========================================================
   Focus States & Accessibility
   ========================================================= */
.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   Footer Hidden
   ========================================================= */
.footer,
.nav-footer,
footer {
    display: none !important;
}
