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

:root {
    /* Color Palette - Kemenimipas Logo Inspired */
    --color-bg-dark: #070B19;
    --color-bg-medium: #0F1833;
    --color-navy-primary: #0D1B3E;
    --color-navy-light: #1A2B5C;
    
    --color-gold-dark: #A6802B;
    --color-gold-primary: #D4AF37;
    --color-gold-light: #F3C63F;
    --color-gold-glow: rgba(212, 175, 55, 0.45);
    
    --color-text-platinum: #E2E8F0;
    --color-text-white: #FFFFFF;
    --color-text-muted: #8A9BB8;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-platinum);
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Beautiful Animated Background Mesh & Orbs */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--color-bg-medium) 0%, var(--color-bg-dark) 100%);
    z-index: -3;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -2;
    animation: orb-float 15s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-gold-primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-navy-light) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* Page Wrapper */
.page-wrapper {
    width: 100%;
    max-width: 540px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

/* Glassmorphism Card Container */
.redirect-card {
    width: 100%;
    background: rgba(13, 27, 62, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    padding: 16px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 0 30px rgba(212, 175, 55, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.redirect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
    animation: gold-shine 4s infinite linear;
}

@keyframes gold-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Header */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.kemenimipas-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.3));
    transition: transform 0.5s ease;
}

.kemenimipas-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ministry-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-white);
    line-height: 1.4;
}

.division-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-gold-primary);
}

.gold-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.01) 0%, 
        rgba(212, 175, 55, 0.3) 50%, 
        rgba(212, 175, 55, 0.01) 100%);
    margin: 0;
}

/* Announcement Section */
.announcement-section {
    width: 100%;
}

.announcement-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.01);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold-light);
}

.info-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px var(--color-gold-glow));
}

.announcement-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.announcement-message {
    font-size: 0.825rem;
    color: var(--color-text-platinum);
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
}

.announcement-message strong {
    color: var(--color-gold-primary);
    font-weight: 600;
}

/* Countdown and Progress Section */
.countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.progress-ring-circle {
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px var(--color-gold-glow));
}

.countdown-number {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold-primary);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    animation: pulse 1s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.98);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.status-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.sub-heading {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Destination URL Info Badge */
.destination-info {
    display: flex;
    justify-content: center;
}

.destination-badge {
    background: rgba(13, 27, 62, 0.6);
    border: 1px solid rgba(26, 43, 92, 0.6);
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.lock-icon {
    color: var(--color-gold-primary);
    filter: drop-shadow(0 0 4px var(--color-gold-glow));
}

.url-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-platinum);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
}

/* Action Button & Help Text */
.action-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-redirect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, var(--color-gold-dark) 100%);
    border: none;
    border-radius: 12px;
    color: var(--color-bg-dark);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 28px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25),
                0 0 1px rgba(212, 175, 55, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-redirect span {
    position: relative;
    z-index: 2;
}

.btn-redirect .arrow-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-redirect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-primary) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.btn-redirect:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4),
                0 0 8px rgba(212, 175, 55, 0.6);
}

.btn-redirect:hover::before {
    opacity: 1;
}

.btn-redirect:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-redirect:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.help-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Footer Section */
.page-footer {
    text-align: center;
}

.page-footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* Media Queries for Responsiveness */
@media (max-width: 480px) {
    .redirect-card {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .ministry-title {
        font-size: 0.85rem;
    }
    
    .division-title {
        font-size: 0.7rem;
    }
    
    .main-heading {
        font-size: 1.15rem;
    }
    
    .progress-ring-container {
        width: 100px;
        height: 100px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
}

@media (max-height: 700px) {
    .redirect-card {
        padding: 12px 16px;
        gap: 8px;
    }
    .kemenimipas-logo {
        width: 45px;
        height: 45px;
    }
    .announcement-card {
        padding: 8px 12px;
        gap: 4px;
    }
    .announcement-message {
        font-size: 0.75rem;
    }
    .countdown-section {
        gap: 8px;
    }
    .progress-ring-container {
        width: 80px;
        height: 80px;
    }
    .countdown-number {
        font-size: 1.8rem;
    }
    .main-heading {
        font-size: 1.1rem;
    }
    .btn-redirect {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

