/* CSS Custom Properties */
:root {
    /* Color Palette - Blue and Green Theme */
    --primary-blue: 210 87% 60%;      /* #3b82f6 - Bright Blue */
    --secondary-blue: 220 91% 35%;    /* #1e40af - Deep Blue */
    --primary-green: 142 76% 36%;     /* #16a34a - Forest Green */
    --secondary-green: 158 64% 52%;   /* #10b981 - Emerald */
    --accent-green: 160 84% 39%;      /* #059669 - Teal Green */
    
    /* Neutral Colors */
    --white: 0 0% 100%;               /* #ffffff */
    --gray-50: 210 40% 98%;           /* #f8fafc */
    --gray-100: 210 40% 96%;          /* #f1f5f9 */
    --gray-600: 215 16% 47%;          /* #64748b */
    --gray-900: 220 39% 11%;          /* #0f172a */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary-blue)) 0%, hsl(var(--primary-green)) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(var(--secondary-blue)) 0%, hsl(var(--accent-green)) 100%);
    --gradient-bg: linear-gradient(135deg, hsl(var(--gray-50)) 0%, hsl(var(--gray-100)) 100%);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--gradient-bg);
    color: hsl(var(--gray-900));
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.floating-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--gradient-primary);
    animation: pulse 4s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    left: 70%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -15s;
    animation-duration: 35s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 80%;
    right: 30%;
    animation-delay: -20s;
    animation-duration: 15s;
}

.shape-6 {
    width: 140px;
    height: 140px;
    top: 5%;
    right: 40%;
    animation-delay: -25s;
    animation-duration: 40s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo {
    display: inline-block;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.025em;
}

.logo-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    color: hsl(var(--gray-600));
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    text-align: center;
    max-width: 800px;
}

.main-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: hsl(var(--gray-900));
}

.title-line {
    display: block;
    position: relative;
}

.title-line:last-child {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: hsl(var(--gray-600));
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Countdown Timer */
.countdown-container {
    margin-bottom: var(--spacing-2xl);
}

.countdown-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--gray-900));
    margin-bottom: var(--spacing-lg);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: hsl(var(--white));
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.time-value {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--gray-900));
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.time-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--gray-600));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.time-separator {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary-blue));
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Call to Action */
.cta-section {
    margin-bottom: var(--spacing-xl);
}

.cta-button {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    color: hsl(var(--white));
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-subtext {
    color: hsl(var(--gray-600));
    font-size: 0.875rem;
}

/* Footer and Social Media */
.footer {
    text-align: center;
}

.social-section {
    margin-bottom: var(--spacing-lg);
}

.social-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--gray-900));
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link i {
    font-size: 1.5rem;
    color: hsl(var(--white));
    z-index: 2;
    position: relative;
}

.social-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--gray-900));
    color: hsl(var(--white));
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid hsl(var(--gray-900));
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.facebook {
    background: #1877F2;
}

.tiktok {
    background: #000000;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.youtube {
    background: #FF0000;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.footer-text {
    padding-top: var(--spacing-lg);
    border-top: 1px solid hsl(var(--gray-100));
}

.footer-text p {
    color: hsl(var(--gray-600));
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: hsl(var(--white));
    margin: 10% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid hsl(var(--gray-100));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--gray-900));
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: hsl(var(--gray-600));
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: hsl(var(--gray-900));
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-body p {
    color: hsl(var(--gray-600));
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .countdown-timer {
        gap: var(--spacing-xs);
    }
    
    .time-unit {
        min-width: 80px;
        padding: var(--spacing-sm);
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-separator {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link i {
        font-size: 1.25rem;
    }
    
    .floating-shape {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .time-separator {
        display: none;
    }
    
    .social-links {
        gap: var(--spacing-sm);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .time-separator {
        animation: none;
    }
    
    .cta-button::before {
        display: none;
    }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
.social-link:focus,
.modal-close:focus {
    outline: 2px solid hsl(var(--primary-blue));
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .background-animation,
    .social-links {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
