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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0f172a; /* Dark background matching the theme */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Logo Section */
header {
    background-color: #f8faff; /* Light background for logo visibility */
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.logo {
    max-width: 350px;
    height: auto;
}

/* Main Content Area */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #1c2b4c; /* TapShop Dark Blue */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Faint background watermark effect */
main::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 150%;
    height: 150%;
    background-image: url('Logo.png');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: 80%;
    opacity: 0.03; /* Very subtle */
    z-index: 0;
    pointer-events: none;
}

main > * {
    z-index: 1;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #F48120; /* TapShop Orange */
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #e2e8f0;
}

/* Countdown Styles */
.countdown {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.time-box {
    background: linear-gradient(145deg, #24355a, #1a2642);
    border: 2px solid #2a3d66;
    border-radius: 15px;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4), 
                inset -2px -2px 5px rgba(0,0,0,0.2), 
                inset 2px 2px 5px rgba(255,255,255,0.05);
    position: relative;
}

/* Orange border accent for countdown boxes */
.time-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    border: 2px solid transparent;
    border-left-color: #F48120;
    border-top-color: #F48120;
    opacity: 0.7;
}

.time {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

/* Subscription Form Styles */
.subscribe {
    max-width: 550px;
    width: 100%;
}

.subscribe p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #cbd5e1;
}

form {
    display: flex;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

input[type="email"] {
    padding: 16px 25px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    width: 70%;
    font-size: 1rem;
    background-color: #ffffff;
}

button {
    padding: 16px 30px;
    background-color: #F48120;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #db7014;
}

/* Footer Styles */
footer {
    background-color: #0f172a;
    padding: 25px 20px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .time-box {
        width: 90px;
        height: 90px;
    }
    
    .time {
        font-size: 2.2rem;
    }
}

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

    h1 {
        font-size: 1.8rem;
    }

    form {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        gap: 10px;
    }

    input[type="email"] {
        border-radius: 30px;
        width: 100%;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    button {
        border-radius: 30px;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}
