/* ============================================
   Strathclyde International College
   Global Styles
   ============================================ */

:root {
    /* Primary Color (Light Burgundy) */
    --brand-navy: #A8475C;
    --brand-navy-light: #C75B72;
    --brand-navy-dark: #8C3346;

    /* Heritage Gold */
    --brand-gold: #C5A55A;
    --brand-gold-bright: #d4b76a;

    /* Secondary Color (Imperial Navy) */
    --brand-burgundy: #1B2A4A;
    --brand-burgundy-light: #263a5e;
    --brand-burgundy-dark: #0f1a30;
    --brand-burgundy-glow: rgba(27, 42, 74, 0.15);

    /* High-Contrast Palette (Lighter Burgundy Background) */
    --bg-color: #FFFAFB;
    --surface-color: #FFF0F2;
    --surface-alt: #ffffff;

    --text-primary: #3d0d17; /* Very dark burgundy for high legibility */
    --text-secondary: #661e2b; /* Medium-dark burgundy */
    --text-tertiary: #9c4554; /* Medium burgundy */

    --border-light: #e4e0d8;
    --border-medium: #c9c3b8;

    /* Accent Glows & Glass */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(197, 165, 90, 0.3);
    --glass-blur: 16px;

    --glow-gold: 0 0 20px rgba(197, 165, 90, 0.3);
    --glow-navy: 0 0 30px rgba(168, 71, 92, 0.2);
    --glow-burgundy: 0 0 20px rgba(27, 42, 74, 0.15);

    /* Utilities */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 25px 30px -5px rgba(197, 165, 90, 0.2);
}

/* ============================================
   Dark Mode Override Tokens
   ============================================ */
[data-theme="dark"] {
    --bg-color: #070e1e;
    --surface-color: #0d172e;
    --surface-alt: #0b1224;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;

    --border-light: rgba(197, 165, 90, 0.2);
    --border-medium: rgba(197, 165, 90, 0.4);

    --glass-bg: rgba(13, 23, 46, 0.88);
    --glass-border: rgba(197, 165, 90, 0.25);

    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 25px 30px -5px rgba(197, 165, 90, 0.15);
}



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

html, body {
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-cairo {
    font-family: 'Cairo', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.1);
    pointer-events: none;
}

.ripple-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    border: 2px solid var(--brand-gold);
    animation: organicRipple 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.2);
}

.ripple:nth-child(2) {
    animation-delay: 1s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.ripple:nth-child(3) {
    animation-delay: 2s;
    border-radius: 50% 50% 60% 40% / 50% 60% 40% 50%;
}

.loading-logo {
    z-index: 10;
    position: relative;
    border-radius: 50%;
    box-shadow: var(--glow-gold);
    background-color: #fff;
    animation: logoAppear 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
}

.loading-logo img {
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

@keyframes organicRipple {
    0% { transform: scale(0.8) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

@keyframes logoAppear {
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   WhatsApp Button
   ============================================ */
#whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

[dir="rtl"] #whatsapp-btn {
    right: auto;
    left: 30px;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   Primary Button (shared)
   ============================================ */
.primary-btn {
    background: linear-gradient(135deg, var(--brand-burgundy) 0%, var(--brand-burgundy-light) 100%);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(140, 51, 70, 0.4);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(140, 51, 70, 0.5);
    background: linear-gradient(135deg, var(--brand-burgundy-light) 0%, var(--brand-burgundy) 100%);
}

/* ============================================
   Section Header (shared)
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}



.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-burgundy), var(--brand-gold));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 3rem 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-content {
    transform: scale(1);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-primary);
    padding: 0.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--brand-gold);
}

.mobile-lang-switch {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--brand-navy);
    border-radius: 100px;
    font-weight: 700;
    color: var(--brand-navy);
    transition: var(--transition-fast);
}

.mobile-lang-switch:hover {
    background: var(--brand-navy);
    color: #fff;
}

@media (max-width: 768px) {
    .primary-btn {
        width: 100%;
        justify-content: center;
    }
}
