@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Poppins:wght@500;700&family=Joti+One&family=Almarai:wght@400;700&display=swap');

@font-face {
    font-family: 'VIP Control';
    src: url('fonts/vip-arabic-typo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-green: #1F4B34;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-green);
    background-image: 
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    color: #F8F9FA;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.lang-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', 'Almarai', sans-serif;
    font-size: 0.85em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

html[dir="rtl"] .lang-btn {
    right: auto;
    left: 15px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.container {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(30px, 5vh, 60px) clamp(30px, 5vw, 70px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 95%;
    margin: auto;
}

.logo {
    max-width: clamp(150px, 20vh, 240px);
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.company-name {
    margin-top: 5px;
    margin-bottom: clamp(15px, 3vh, 25px);
    font-size: clamp(2.2em, 6vh, 3.2em);
    transition: all 0.3s ease;
}

/* Language specific fonts */
html[lang="en"] .company-name { font-family: 'Joti One', cursive; }
html[lang="ar"] .company-name { font-family: 'Almarai', sans-serif; font-weight: 700; }

.main-heading {
    margin-bottom: clamp(20px, 3.5vh, 35px);
    font-size: clamp(1.4em, 4vh, 2.2em);
    font-weight: 700;
    transition: all 0.3s ease;
}

html[lang="ar"] .main-heading { font-family: 'Almarai', sans-serif; font-weight: 700; }

#countdown {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 20px);
    margin-top: clamp(20px, 4vh, 35px);
    font-family: 'Roboto Mono', monospace;
    flex-wrap: nowrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(15px, 3vh, 30px) clamp(10px, 1.5vw, 20px);
    border-radius: 15px;
    flex: 1;
    min-width: clamp(80px, 15vw, 130px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.time-unit span {
    display: block;
    font-size: clamp(2.2em, 6.5vh, 4em);
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    line-height: 1;
    margin-bottom: 6px;
}

.label {
    font-size: clamp(0.75em, 1.5vh, 0.9em);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

html[lang="ar"] .label { font-family: 'Almarai', sans-serif; font-weight: 400; letter-spacing: 0; }

@media (max-width: 480px) {
    #countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .time-unit { 
        min-width: 0;
        padding: 10px;
    }
}
