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

/* Gotham Bold Font */
@font-face {
    font-family: 'Gotham Bold';
    src: url('https://fonts.cdnfonts.com/s/14898/GothamBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    /* Color variables */
    --text-light: #ffffff;
    --text-dark: #000000;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Gotham Bold', 'Arial', 'Helvetica', sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Background Video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Container */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    gap: 4rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-image {
    max-width: 400px;
    width: 70%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

/* Title Section */
.title-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.main-title {
    font-family: 'Gotham Bold', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: none;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
}

/* Countdown Section */
.countdown-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    flex-wrap: nowrap;
    position: relative;
    min-height: 120px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.countdown-item:nth-child(1) {
    left: 15%;
}

.countdown-item:nth-child(2) {
    left: 35%;
}

.countdown-item:nth-child(3) {
    left: 55%;
}

.countdown-item:nth-child(4) {
    left: 75%;
}

.countdown-value {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease;
    font-family: 'Gotham Bold', sans-serif;
}

.countdown-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-family: Georgia, 'Times New Roman', serif;
}

.countdown-separator {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Design Selector */
.design-selector {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.selector-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.selector-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.selector-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.selector-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.selector-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.design-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.design-option {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.design-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.design-option.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Design Style 1 - Default (Simple & Clean) */
body[data-design="1"] .logo-image {
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

body[data-design="1"] .countdown-item {
    background: transparent;
    border: none;
}

body[data-design="1"] .countdown-value {
    color: #ffffff;
}

/* Design Style 2 - Box with Border */
body[data-design="2"] .logo-image {
    border: 3px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

body[data-design="2"] .countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

body[data-design="2"] .countdown-value {
    color: #ffffff;
}

/* Design Style 3 - Glowing Effect */
body[data-design="3"] .logo-image {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 1)); }
}

body[data-design="3"] .countdown-value {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: glow-text 2s ease-in-out infinite alternate;
}

@keyframes glow-text {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 1); }
}

/* Design Style 4 - Bold & Chunky */
body[data-design="4"] .countdown-item {
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
}

body[data-design="4"] .countdown-value {
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

body[data-design="4"] .countdown-separator {
    font-size: 5rem;
    font-weight: 900;
}

/* Design Style 5 - Minimalist */
body[data-design="5"] .logo-image {
    filter: none;
    opacity: 0.9;
}

body[data-design="5"] .countdown-item {
    background: transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
}

body[data-design="5"] .countdown-value {
    font-weight: 300;
    color: #ffffff;
}

body[data-design="5"] .countdown-label {
    font-weight: 300;
}

/* Design Style 6 - Rounded Bubbles */
body[data-design="6"] .countdown-item {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(10px);
}

body[data-design="6"] .countdown-value {
    color: #ffffff;
}

/* Design Style 7 - Neon Style */
body[data-design="7"] .logo-image {
    filter: drop-shadow(0 0 20px #00ff00);
}

body[data-design="7"] .countdown-item {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ff00, inset 0 0 20px rgba(0, 255, 0, 0.1);
}

body[data-design="7"] .countdown-value {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
}

body[data-design="7"] .countdown-separator {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
}

/* Design Style 8 - Glass Morphism */
body[data-design="8"] .logo-image {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

body[data-design="8"] .countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body[data-design="8"] .countdown-value {
    color: #ffffff;
}

/* Design Style 9 - Retro Digital */
body[data-design="9"] .countdown-item {
    background: #000000;
    border: 3px solid #ff0000;
    border-radius: 5px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
}

body[data-design="9"] .countdown-value {
    color: #ff0000;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #ff0000;
}

body[data-design="9"] .countdown-separator {
    color: #ff0000;
    font-family: 'Courier New', monospace;
}

body[data-design="9"] .countdown-label {
    color: #ff0000;
    font-family: 'Courier New', monospace;
}

/* Design Style 10 - Luxury Gold */
body[data-design="10"] .logo-image {
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.5));
}

body[data-design="10"] .countdown-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.2));
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

body[data-design="10"] .countdown-value {
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

body[data-design="10"] .countdown-separator {
    color: #FFD700;
}

body[data-design="10"] .countdown-label {
    color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logo-image {
        max-width: 330px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .countdown-value {
        font-size: 3rem;
    }

    .countdown-label {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        gap: 2rem;
        padding: 1rem;
    }

    .logo-image {
        max-width: 260px;
    }

    .main-title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .countdown-section {
        padding: 0 1rem;
    }

    .countdown {
        min-height: 100px;
    }

    .countdown-item:nth-child(1) {
        left: 12%;
    }

    .countdown-item:nth-child(2) {
        left: 34%;
    }

    .countdown-item:nth-child(3) {
        left: 56%;
    }

    .countdown-item:nth-child(4) {
        left: 78%;
    }

    .countdown-value {
        font-size: 2.3rem;
        margin-bottom: 0.5rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    .design-selector {
        bottom: 1rem;
        right: 1rem;
    }

    .selector-toggle {
        width: 45px;
        height: 45px;
    }

    .selector-panel {
        min-width: 200px;
        padding: 1rem;
    }

    .design-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 195px;
    }

    .main-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .countdown-section {
        padding: 0 0.5rem;
    }

    .countdown {
        min-height: 80px;
    }

    .countdown-item:nth-child(1) {
        left: 10%;
    }

    .countdown-item:nth-child(2) {
        left: 33%;
    }

    .countdown-item:nth-child(3) {
        left: 56%;
    }

    .countdown-item:nth-child(4) {
        left: 79%;
    }

    .countdown-value {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .video-background video {
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .countdown-item {
        border-width: 3px !important;
    }
}
