/* ============================================
   HCSL QLD Maintenance Mode - Professional Styling
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary colors inspired by Sri Lanka flag */
    --primary-green: #1a472a;
    --accent-gold: #d4af37;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --white: #ffffff;
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--white);
    bottom: 50px;
    left: -100px;
    animation-delay: 5s;
    animation-duration: 25s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-gold);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(30px) translateX(20px);
    }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.maintenance-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
}

.content-wrapper {
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
}

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

/* ============================================
   EMBLEM SECTION
   ============================================ */

.emblem-section {
    margin-bottom: 30px;
    animation: pulse 3s ease-in-out infinite;
}

.emblem {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.emblem:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.3));
    }
    50% {
        filter: drop-shadow(0 15px 30px rgba(212, 175, 55, 0.6));
    }
}

/* ============================================
   TITLES AND TEXT
   ============================================ */

.main-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ============================================
   STATUS BADGE
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.8s ease-out 0.3s both;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.status-text {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   MESSAGE BOX
   ============================================ */

.message-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.8s ease-out 0.4s both;
}

.message-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.message-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInScale 0.8s ease-out 0.5s both;
}

.feature {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature p {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
    margin-bottom: 40px;
    animation: fadeInScale 0.8s ease-out 0.6s both;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-details {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-label {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.contact-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent-gold);
}

.contact-link:hover {
    color: var(--accent-gold);
    letter-spacing: 0.3px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .message-box {
        padding: 25px;
    }

    .message-box h2 {
        font-size: 1.5rem;
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .timer-value {
        font-size: 1.8rem;
    }

    .countdown-timer {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .maintenance-container {
        padding: 20px 15px;
        padding-bottom: 120px;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .main-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .emblem {
        width: 80px;
        height: 80px;
    }

    .emblem-section {
        margin-bottom: 20px;
    }

    .message-box {
        padding: 20px;
        margin-bottom: 30px;
    }

    .message-box h2 {
        font-size: 1.3rem;
    }

    .message-box p {
        font-size: 0.95rem;
    }

    .status-badge {
        margin-bottom: 25px;
        font-size: 0.9rem;
    }

    .features {
        gap: 12px;
        margin-bottom: 30px;
    }

    .feature {
        padding: 20px 10px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .contact-details {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-label {
        min-width: auto;
    }

    .footer {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .contact-link {
        font-size: 0.95rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .animated-bg {
        display: none;
    }

    .maintenance-container {
        background: none;
    }

    .footer {
        position: static;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e0e0e0;
        --text-light: #a0a0a0;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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