@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #04020a;
    --accent-purple: #8b5cf6;
    --accent-purple-hover: #a78bfa;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);

    --accent-green: #34d399;
    --accent-green-hover: #6ee7b7;
    --accent-green-glow: rgba(52, 211, 153, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;

    --card-bg: rgba(13, 9, 28, 0.45);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(52, 211, 153, 0.3);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-glow: 0 15px 35px -5px rgba(52, 211, 153, 0.15), 0 0 50px rgba(52, 211, 153, 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        linear-gradient(rgba(4, 2, 10, 0.88), rgba(4, 2, 10, 0.95)),
        url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 130px;
    /* Space for fixed marquee + header */
    padding-bottom: 2rem;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #04020a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Ambient glow blobs */
.glow-blob {
    position: fixed;
    top: 10%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.glow-blob-2 {
    position: fixed;
    bottom: -10%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. Scrolling Marquee Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(8, 5, 20, 0.85);
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 44px;
    display: flex;
    align-items: center;
}

.ticker-wrap:hover {
    border-bottom-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.05);
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-move 45s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 3rem;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticker-badge {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

@keyframes ticker-move {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 2. Capsule Navigation Header */
.capsule-header {
    width: 90%;
    max-width: 1200px;
    background: rgba(13, 9, 28, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 0.65rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 60px;
    /* Shifted below top ticker */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.capsule-header:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.03);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-svg {
    width: 22px;
    height: 22px;
    fill: #a78bfa;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-purple);
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-purple);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background: var(--text-primary);
    color: #0b0f19;
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.25rem;
}

/* 3. Hero Layout (2 Columns) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Left Column: Slogan styling */
.hero-slogan-wrapper {
    position: sticky;
    top: 150px;
}

.slogan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 420px;
}

.slogan-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    display: inline-block;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 1.8s infinite;
}

.slogan-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.slogan-title span.greenish {
    background: linear-gradient(120deg, #a7f3d0 20%, #34d399 50%, #059669 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 3.5rem;
    animation: textShimmer 4s linear infinite, textGlowGreen 3s ease-in-out infinite;
}

.slogan-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 440px;
    margin-bottom: 2rem;
}

/* Animated Profile Card for INCUAS */
.incuas-profile-card {
    position: relative;
    background: rgba(16, 28, 24, 0.35);
    border: 1px solid rgba(52, 211, 153, 0.12);
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatCard 6s ease-in-out infinite 1s;
}

.incuas-profile-card:hover {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(16, 28, 24, 0.5);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(52, 211, 153, 0.08);
}

.profile-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-icon {
    width: 22px;
    height: 22px;
    color: #34d399;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.3));
}

.profile-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #34d399;
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    animation: textGlowGreen 3s ease-in-out infinite;
}

.profile-details {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.profile-highlight {
    color: #34d399;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.05);
}

/* Redesign Keyframes */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -200% center;
    }
}

@keyframes textGlowGreen {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(52, 211, 153, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.6)) drop-shadow(0 0 20px rgba(52, 211, 153, 0.3));
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatCard {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Right Column: Notice Glass Card */
.notice-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.75rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    min-width: 0;
}

.notice-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-glow);
}

.notice-badge-container {
    margin-bottom: 1.5rem;
}

.alert-header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.card-ticker-inline {
    flex-grow: 1;
    margin-bottom: 0 !important;
    height: 32px !important;
    border-radius: 30px !important;
}

.notice-badge {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #34d399;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    display: inline-block;
}

.notice-card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

.notice-card-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, rgba(255, 255, 255, 0.01));
    margin-bottom: 1.75rem;
}

.notice-p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    text-align: justify;
    text-justify: inter-word;
}

.notice-p:last-of-type {
    margin-bottom: 2rem;
}

.notice-p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Call to action */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: #a7f3d0;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.05);
}

.cta-button:hover {
    background: var(--text-primary);
    color: #04020a;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.notice-footer-p {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 4. Clocks Dashboard Layout */
.clocks-container {
    margin-top: 2.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.clocks-section-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.clocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.clock-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.clock-card:hover {
    border-color: var(--card-border-hover);
    background: rgba(13, 9, 28, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.08);
}

.flag-wrapper {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clock-info {
    flex-grow: 1;
}

.clock-label {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clock-offset {
    font-size: 0.72rem;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: #34d399;
    font-weight: 600;
}

.clock-time {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.15rem 0;
    letter-spacing: 0.01em;
}

.clock-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Structured Notice Blocks styling */
.notice-block {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: start;
}

.notice-block:last-of-type {
    margin-bottom: 0;
}



.notice-block-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.notice-block:hover .notice-block-icon {
    background: var(--accent-green);
    color: #04020a;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
    transform: translateY(-1px);
}

.notice-block-content {
    flex-grow: 1;
}

.notice-block-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.notice-block-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.notice-block-desc strong {
    color: var(--text-secondary);
}

.notice-cta-box {
    background: rgba(52, 211, 153, 0.03);
    border: 1px solid rgba(52, 211, 153, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    margin-top: 2.5rem;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.notice-cta-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-slogan-wrapper {
        position: static;
    }

    .slogan-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }

    .capsule-header {
        width: 94%;
        padding: 0.5rem 1.25rem;
        top: 50px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .header-nav {
        display: none;
        /* Hide navigation links on small screens */
    }

    .btn-header {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .slogan-title {
        font-size: 2.5rem;
    }

    .notice-card {
        padding: 2rem 1.5rem;
    }

    .clocks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}