/* ========================================
   MyTree - Christmas Message System
   Modern Festive Design
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* CSS Variables - Classic Christmas Theme */
:root {
    /* Classic Christmas Colors */
    --christmas-red: #E63946;        /* Classic Red */
    --christmas-red-light: #FF4D5A;  /* Light Red */
    --christmas-red-dark: #C1303C;   /* Deep Red */
    --christmas-green: #2A9D8F;      /* Teal Green */
    --christmas-green-light: #38C2B0; /* Light Teal */
    --christmas-green-dark: #1F7A70;  /* Deep Teal */
    --christmas-gold: #F4A261;       /* Orange Gold */
    --christmas-gold-light: #FFB380;  /* Light Orange */
    --christmas-gold-dark: #E68A3D;   /* Deep Orange */

    /* Background - Classic Dark */
    --background: #0a0a0a;           /* Pure Black */
    --background-secondary: #111111; /* Dark Gray */
    --background-tertiary: #1a1a1a;  /* Light Gray */

    /* Text Colors */
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Glass & Surface */
    --glass: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --glass-strong: rgba(255, 255, 255, 0.15);
    --border: rgba(255, 255, 255, 0.15);
    --border-active: rgba(255, 255, 255, 0.25);

    /* Classic Christmas Gradients */
    --gradient-christmas: linear-gradient(135deg, #E63946 0%, #F4A261 100%);      /* Red to Orange */
    --gradient-christmas-reverse: linear-gradient(135deg, #F4A261 0%, #E63946 100%);
    --gradient-festive: linear-gradient(135deg, #2A9D8F 0%, #F4A261 100%);       /* Teal to Orange */
    --gradient-gold: linear-gradient(135deg, #F4A261 0%, #FFB380 100%);          /* Orange gradient */
    --gradient-neon-christmas: linear-gradient(135deg, #E63946 0%, #2A9D8F 100%); /* Red to Teal */
    --gradient-vibrant: linear-gradient(135deg, #E63946 0%, #F4A261 100%);       /* Red to Orange */
    --gradient-glow: linear-gradient(135deg, #2A9D8F 0%, #38C2B0 100%);          /* Teal glow */

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-red: 0 0 30px rgba(230, 57, 70, 0.4);    /* Red glow */
    --shadow-glow-green: 0 0 30px rgba(42, 157, 143, 0.4);   /* Teal glow */
    --shadow-glow-gold: 0 0 30px rgba(244, 162, 97, 0.4);    /* Orange glow */

    /* Border Radius (NGL-inspired) */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Spacing (NGL-inspired) */
    --spacing-xs: 8px;
    --spacing-sm: 10px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 56px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Body */
body {
    font-family: 'Fredoka', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    position: relative;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Glow Effect - NGL Style */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 20, 147, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-christmas);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-festive {
    background: var(--gradient-festive);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Marquee Text - NGL Style */
.marquee-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 0;
    z-index: 1001;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.marquee-wrapper.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.marquee {
    display: flex;
    animation: scroll 25s linear infinite;
    white-space: nowrap;
}

.marquee span {
    padding-right: 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Navbar - Classic Christmas Style */
.navbar {
    position: fixed;
    top: 2.5rem;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(42, 157, 143, 0.2);
}

.navbar.scrolled {
    top: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(42, 157, 143, 0.3);
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.2);
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(42, 157, 143, 0.6);
}

.logo::before {
    content: '🎄';
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px rgba(255, 20, 147, 0.6));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: #FFFFFF;
}

.nav-links a:hover {
    color: var(--christmas-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width var(--transition-normal);
}

.navbar.scrolled .nav-links a::after {
    background: var(--gradient-christmas);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--text);
}

/* Platform Download Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
}

.platform-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .platform-btn {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(42, 157, 143, 0.2);
}

.platform-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    border-color: var(--christmas-green);
    box-shadow: 0 6px 24px rgba(42, 157, 143, 0.4);
}

.navbar.scrolled .platform-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--christmas-green);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-christmas);
    color: white;
    box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.5);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 2px solid var(--christmas-green);
}

.btn-secondary:hover {
    background: rgba(255, 20, 147, 0.15);
    border-color: var(--christmas-green-light);
}

.btn-gold {
    background: var(--gradient-gold);
    color: white;
    box-shadow: var(--shadow-glow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5);
}

.btn-download {
    background: white;
    color: var(--christmas-red);
    padding: 1.25rem 3rem;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* Cards */
.card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
}

.card:hover {
    border-color: var(--christmas-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Sections - Card-Based Layout */
.section {
    padding: 5rem 2rem;
    position: relative;
}

/* Card Container for Sections */
section:not(.hero) > .container {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 4rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #F472B6 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-header p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
.footer {
    background: var(--background-secondary);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-christmas);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--christmas-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: rgba(42, 157, 143, 0.2);
    border-color: var(--christmas-green);
    transform: translateY(-2px);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.footer-support {
    margin-bottom: 1rem;
}

.footer-support a {
    color: var(--christmas-gold);
    text-decoration: none;
}

.footer-support a:hover {
    color: var(--christmas-gold-light);
    text-decoration: underline;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--christmas-green);
    background: var(--glass-hover);
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.15);
}

/* Language Selector */
.language-selector select {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.language-selector select:hover {
    border-color: var(--christmas-green);
    background: var(--glass-hover);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--christmas-green);
}

.language-selector option {
    background: var(--background);
    color: var(--text);
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--christmas-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    filter: drop-shadow(0 0 8px rgba(255, 20, 147, 0.5));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Snowflakes Effect */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    animation: snowfall linear infinite;
}

/* Snowflakes Animation */
@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(100vh) translateX(50px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 3rem 1rem;
    }

    section:not(.hero) > .container {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .section-header h2 {
        font-size: 3rem;
        letter-spacing: -0.02em;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    section:not(.hero) > .container {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .section-header h2 {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
    }

    .section-header p {
        font-size: 1rem;
    }
}
