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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #ffffff;
    --background-overlay: rgba(0, 0, 0, 0.6);
    --container-bg: rgba(44, 62, 80, 0.7);
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    padding: 1rem;
    background: linear-gradient(var(--background-overlay), var(--background-overlay)), 
                url('../image/bekal fort.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    padding: 6rem 1.5rem 2.5rem;
    background-color: var(--container-bg);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem;
    position: relative;
}

.title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1rem 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeIn 1.5s ease;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    width: 100%;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    
    backdrop-filter: blur(5px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.logo-image {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.company-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.company-name {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.tagline {
    color: #fff;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    text-align: start;
    margin: 0.2rem 0 0;
    opacity: 0.9;
    letter-spacing: 0.05px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.company-shortname {
    font-size: 1.2rem;
    font-weight: 600;
    background: -webkit-linear-gradient(45deg, #1abc9c, #2ecc71);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 2px;
}

/* Countdown Styles */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease;
}

.time-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 0.5rem;
    border-radius: var(--border-radius);
    min-width: 70px;
    flex: 1;
    max-width: 100px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.time-block span {
    display: block;
}

.time-block span:first-child {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.time-block .label {
    font-size: clamp(0.6rem, 2.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ecf0f1;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 5rem 1rem 2rem;
        margin: 0.5rem;
    }

    .header {
        padding: 0.8rem 0;
    }

    .logo-container {
        gap: 0.8rem;
    }

    .logo-image {
        height: 45px;
        width: 45px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 4.5rem 0.8rem 1.5rem;
    }

    .time-block {
        min-width: 60px;
        padding: 0.8rem 0.3rem;
    }

    .time-block span:first-child {
        font-size: 1.8rem;
    }

    .time-block .label {
        font-size: 0.7rem;
    }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .countdown {
        margin: 1rem 0;
    }

    .subtitle {
        margin-bottom: 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1600px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1200px;
    }
}
