/* Core Styles - Base Variables, Reset, Animations */

/* Reset and Base Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: white;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Color Variables */
:root {
    --primary-blue: #2c3ca9;
    --primary-pink: #e63573;
    --light-blue: #4a5bc4;
    --dark-blue: #1e2b87;
    --light-pink: #f054a0;
    --dark-pink: #c52859;
    --accent-purple: #6a4dc4;
    --text-dark: #2c3e50;
    --text-light: #666666;
    --background-white: #ffffff;
    --background-light: #f8f9fa;
    --background-card: #ffffff;
    --border-light: #e9ecef;
    --shadow: 0 2px 10px rgba(44, 60, 169, 0.1);
    --shadow-hover: 0 4px 20px rgba(44, 60, 169, 0.15);
}

/* Button Styling */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--light-blue), var(--light-pink));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary.disabled {
    background: var(--border-light);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--background-card);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes choiceSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Global Mobile Text and Layout Fixes */

/* Ensure all text elements wrap properly on mobile */
*, 
*::before, 
*::after {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile-first responsive typography */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Fix for any long text elements */
    p, h1, h2, h3, h4, h5, h6, div, span {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    /* Ensure highlighted text wraps properly */
    .highlight-text {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        display: inline;
        white-space: normal;
    }

    /* Button text fixes */
    .btn-primary, 
    .btn-secondary, 
    .btn-book-details,
    .quiz-btn {
        white-space: normal;
        word-wrap: break-word;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Container fixes */
    .hero-content,
    .digital-buddy-content,
    .quiz-cards-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* More aggressive text sizing for very small screens */
    h1, h2, h3 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    p {
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Ensure buttons scale down properly */
    .btn-primary, 
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}