/* styles.css */

/* ==========================================================================
   1. CSS Variables & Theme Setup
   ========================================================================== */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #128c7e;
    
    --bg-main: #fff;
    --bg-card: rgba(0, 38, 124, 1);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-accent: #60a5fa;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Ambient Glow */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   3. Layout Structure
   ========================================================================== */
.page-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   4. Hero Section & Logo
   ========================================================================== */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.logo-wrapper {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

/* ==========================================================================
   5. Section 1: Maintenance Message
   ========================================================================== */
.maintenance-section {
    text-align: center;
    max-width: 680px;
    margin-bottom: 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 38, 124, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-accent);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #f3c300;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #F3C300 50%, #00267c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%; /* Dynamic control via JS */
    background: linear-gradient(90deg, var(--primary-color), var(--text-accent));
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. Section 2: Contact Cards Grid
   ========================================================================== */
.contacts-section {
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

a.contact-card:hover {
    transform: translateY(-4px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.whatsapp-card .card-icon {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-color);
}

a.contact-card:hover .card-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

a.whatsapp-card:hover .card-icon {
    background-color: var(--whatsapp-color);
    color: #ffffff;
}

.card-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.card-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.main-footer {
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: 3rem;
    background-color: rgba(0, 38, 124, 1);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.developer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.developer-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.dev-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* ==========================================================================
   8. Responsive Layout Adjustments
   ========================================================================== */
@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    .client-logo {
    max-width: 480px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 1.5rem 1rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .card-value {
        white-space: normal;
        word-break: break-word;
    }
    .client-logo {
    max-width: 360px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    }
}