* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-light: #fcf6ba;
    --gold-main: #d4af37;
    --gold-dark: #aa771c;
    --ak-blue: #004d96;
    /* Approximate AK Parti Blue */
    --ak-orange: #ff7b00;
    /* Approximate AK Parti Orange */
    --dark-bg: #020611;
}

body,
html {
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    color: #fff;
    perspective: 1000px;
}

/* Background & Parallax */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.bg-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.1s ease-out;
}

.layer-1 {
    background-image: url('assets/bg.png');
    filter: brightness(0.7) contrast(1.2);
    animation: slowPan 30s infinite alternate linear;
}

.layer-2 {
    /* Optional: overlay a pattern or second image here if needed */
    background: radial-gradient(circle at center, transparent 0%, var(--dark-bg) 100%);
    z-index: 1;
}

@keyframes slowPan {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 30, 80, 0.4) 0%, rgba(2, 6, 17, 0.9) 100%);
    z-index: 2;
}

/* Global Light Sweep Effect */
.light-sweep {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    z-index: 3;
    pointer-events: none;
    transform: rotate(30deg);
    animation: sweepLight 8s infinite linear;
}

@keyframes sweepLight {
    0% {
        transform: rotate(30deg) translateY(-100%);
    }

    100% {
        transform: rotate(30deg) translateY(100%);
    }
}

/* Particles Layer */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* --- INTRO OVERLAY (Browser Autoplay Fix) --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.intro-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    filter: blur(5px);
}

.intro-content {
    text-align: center;
    background: rgba(10, 20, 40, 0.7);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    animation: floatIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatIn {
    to {
        transform: translateY(0);
    }
}

.intro-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.intro-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn-start {
    background: linear-gradient(to right, var(--gold-main), var(--gold-dark));
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.6);
}

.btn-start i {
    font-size: 1.3rem;
}

/* --- SEQUENCE 1: LOGO ANIMATION (Legacy) --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.intro-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    filter: blur(5px);
}

.intro-content {
    text-align: center;
    background: rgba(10, 20, 40, 0.7);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    animation: floatIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatIn {
    to {
        transform: translateY(0);
    }
}

.intro-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.intro-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn-start {
    background: linear-gradient(to right, var(--gold-main), var(--gold-dark));
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.6);
}

.btn-start i {
    font-size: 1.3rem;
}

/* --- SEQUENCE 1: LOGO ANIMATION (Legacy) --- */
.sequence-1 {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.sequence-1.active {
    opacity: 1;
    transform: scale(1);
}

.sequence-1.exit {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
    filter: blur(10px);
}

.logo-container {
    position: relative;
}

.logo {
    width: 250px;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    animation: floatLogo 4s infinite ease-in-out;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.logo-glow-intense {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.5) 0%, rgba(0, 77, 150, 0.3) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: intensePulse 3s infinite alternate;
}

@keyframes intensePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
        filter: blur(10px);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
        filter: blur(20px);
    }
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.ring-1 {
    width: 260px;
    height: 260px;
    border-top: 2px solid var(--gold-main);
    animation: spinRing 8s linear infinite;
}

.ring-2 {
    width: 290px;
    height: 290px;
    border-bottom: 2px solid var(--ak-orange);
    animation: spinRingReverse 12s linear infinite;
}

@keyframes spinRing {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinRingReverse {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* --- SEQUENCE 2: TEXT & DETAILS --- */
.sequence-2 {
    position: relative;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    display: none;
    /* Handled by JS */
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sequence-2.active {
    display: flex;
    animation: enterSeq2 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes enterSeq2 {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.badge-container {
    margin-bottom: 2vh;
    opacity: 0;
    transform: translateY(20px);
}

.seq2-step-1 .badge-container {
    animation: slideUpFade 0.8s forwards;
}

.badge {
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.gold-gradient {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(170, 119, 28, 0.4) 100%);
    color: var(--gold-light);
}

.shadow-glow {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Typography elements */
.main-title {
    font-family: 'Cinzel', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5vh;
}

.word {
    opacity: 0;
    transform: scale(1.2) translateY(20px);
    filter: blur(10px);
}

.seq2-step-2 .word.txt-ahde {
    animation: cinematicText 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.seq2-step-2 .word.txt-iftar {
    animation: cinematicText 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@keyframes cinematicText {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.txt-ahde {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.gold-text {
    background: linear-gradient(to bottom, #fffdea 0%, #d4af37 50%, #aa771c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.txt-iftar {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 12px;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
    margin-top: 5px;
}

/* Fancy Divider */
.divider-fancy {
    display: flex;
    align-items: center;
    width: 60%;
    margin: 2vh 0;
    opacity: 0;
}

.seq2-step-3 .divider-fancy {
    animation: fadeGrow 1s forwards;
}

.divider-fancy::before,
.divider-fancy::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.star {
    margin: 0 15px;
    color: var(--gold-main);
    font-size: 0.8rem;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeGrow {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Glass Panels */
.panel-glass {
    position: relative;
    background: rgba(10, 20, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* For interactive JS effects */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Dynamic Lighting Effect tracked by JS */
.panel-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Create a glowing radial gradient using CSS variables updated by JS */
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(212, 175, 55, 0.15),
            transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.panel-glass:hover::before {
    opacity: 1;
}

/* Ensure inner content of glass panels remains above the glow effect */
.panel-glass>* {
    position: relative;
    z-index: 1;
}

.message-box {
    padding: 2.5vh 3vw;
    width: 100%;
    max-width: 700px;
    margin-bottom: 3vh;
    opacity: 0;
    transform: translateY(20px) rotateX(20deg);
}

.seq2-step-4 .message-box {
    animation: flipUpCard 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes flipUpCard {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.salutation {
    font-family: 'Cinzel', serif;
    color: var(--gold-main);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    font-weight: 300;
}

.description strong {
    color: #fff;
    font-weight: 500;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 2.5vh;
    width: 100%;
    max-width: 650px;
    opacity: 0;
    transform: translateY(20px);
}

.seq2-step-5 .details-grid {
    animation: slideUpFade 1s forwards;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.full-width {
    grid-column: 1 / -1;
    justify-content: center;
    background: transparent;
    padding: 5px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-main);
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.detail-text .value {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
}

.detail-text .value small {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 0.85rem;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ak-blue) 0%, #002855 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0, 77, 150, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.btn-location::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 77, 150, 0.7);
}

.btn-location:hover::before {
    left: 100%;
}

/* Footer Signature */
.footer-signature {
    margin-top: 4vh;
    opacity: 0;
    transform: translateY(10px);
}

.seq2-step-6 .footer-signature {
    animation: fadeGrow 1.5s forwards;
}

.signature-line {
    width: 50px;
    height: 2px;
    background: var(--gold-main);
    margin: 0 auto 10px auto;
}

.name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.title-role {
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive constraints */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 15px;
        letter-spacing: 1px;
        display: inline-block;
        line-height: 1.4;
    }

    .txt-ahde {
        font-size: 2.8rem;
    }

    .txt-iftar {
        font-size: 1.8rem;
        letter-spacing: 8px;
    }

    .logo {
        width: 180px;
    }

    .seal-ring-1,
    .seal-ring-2 {
        display: none;
    }
}

/* Mobile height adjustments */
@media (max-height: 800px) {
    .main-title {
        transform: scale(0.85);
        margin-bottom: 0;
    }

    .message-box {
        padding: 1.5vh 3vw;
        margin-bottom: 1.5vh;
    }

    .details-grid {
        padding: 1.5vh;
        gap: 10px;
    }

    .footer-signature {
        margin-top: 2vh;
    }
}