/* ============================================
   Elf Toss Landing Page - Custom Styles
   ============================================ */

/* CSS Variables for Theming */
:root {
    /* Primary Color Palette - Holiday Theme */
    --color-primary: #c41e3a;        /* Christmas Red */
    --color-primary-dark: #9a1829;
    --color-primary-light: #e63946;
    --color-secondary: #0f7d3f;      /* Christmas Green */
    --color-secondary-dark: #0a5c2f;
    --color-secondary-light: #13a150;
    --color-accent: #ffd700;         /* Gold */
    --color-accent-dark: #e6c200;

    /* Neutral Colors */
    --color-dark: #212529;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;

    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #c41e3a 0%, #0f7d3f 100%);
    --gradient-cta: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
}

/* ============================================
   Global Styles
   ============================================ */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    background: rgba(196, 30, 58, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Override Bootstrap primary color */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px; /* Account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(15, 125, 63, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

/* Hero Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* App Store Buttons */
.app-store-buttons,
.app-store-buttons-large {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-button {
    transition: transform var(--transition-base);
    display: inline-block;
}

.store-button:hover {
    transform: translateY(-5px);
}

.store-button img {
    filter: drop-shadow(var(--shadow-md));
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: var(--spacing-xl) 0;
}

.feature-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--color-white);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery-section {
    padding: var(--spacing-xl) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   Call-to-Action Section
   ============================================ */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-light);
}

.cta-card {
    background: var(--gradient-cta);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    padding: var(--spacing-lg) 0;
}

.stat-item {
    padding: var(--spacing-md);
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-dark) !important;
    margin-top: auto;
}

.footer a:hover {
    color: var(--color-primary) !important;
}

.footer-store-buttons {
    gap: 0.5rem;
}

.footer-store-buttons .store-button img {
    max-height: 40px;
}

.social-links .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-links .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   Contact Page
   ============================================ */

.card {
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
}

.input-group-text {
    background-color: var(--color-gray-light);
    border-color: #ced4da;
}

.form-control {
    border-color: #ced4da;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.accordion-button:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

/* ============================================
   Privacy Page
   ============================================ */

.privacy-content {
    line-height: 1.8;
}

.privacy-content h2,
.privacy-content h3 {
    color: var(--color-primary);
    margin-top: var(--spacing-md);
}

.privacy-content ul {
    padding-left: 1.5rem;
}

.privacy-content ul li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets and below */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .app-store-buttons,
    .app-store-buttons-large {
        justify-content: center;
    }

    .feature-card {
        margin-bottom: var(--spacing-md);
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {
    :root {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .app-store-buttons,
    .app-store-buttons-large {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 180px;
    }

    .store-button img {
        max-height: 50px;
    }

    .feature-card {
        padding: var(--spacing-sm);
    }

    .cta-card {
        padding: var(--spacing-md) !important;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .cookie-consent .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .footer,
    .cookie-consent,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-hero {
    background: var(--gradient-hero) !important;
}

.border-primary-gradient {
    border-image: var(--gradient-primary) 1;
}
