/* ==========================================
   INDEPENDENCE DAY PREMIUM POPUP
========================================== */

.id-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    background:
        radial-gradient(circle at 18% 25%, rgba(255, 153, 51, .18), transparent 30%),
        radial-gradient(circle at 82% 75%, rgba(19, 136, 8, .18), transparent 30%),
        linear-gradient(
            135deg,
            #03142f 0%,
            #071f45 45%,
            #051a37 100%
        );

    backdrop-filter: blur(8px);

    transition:
        opacity .8s ease,
        visibility .8s ease;

    overflow: hidden;
}

.id-popup.show {
    opacity: 1;
    visibility: visible;
}


/* =============================
   BACKGROUND LIGHT
============================= */

.id-popup::before {
    content: "";
    position: absolute;

    width: 650px;
    height: 650px;

    top: -320px;
    left: -220px;

    background: rgba(255, 153, 51, .13);

    border-radius: 50%;

    filter: blur(35px);

    animation: floatGlow 6s ease-in-out infinite alternate;
}

.id-popup::after {
    content: "";
    position: absolute;

    width: 600px;
    height: 600px;

    right: -260px;
    bottom: -300px;

    background: rgba(19, 136, 8, .13);

    border-radius: 50%;

    filter: blur(35px);

    animation: floatGlow 7s ease-in-out infinite alternate-reverse;
}


/* =============================
   CONTENT
============================= */

.id-content {
    position: relative;
    z-index: 5;

    width: 92%;
    max-width: 850px;

    text-align: center;

    padding: 45px 25px;

    transform: translateY(30px) scale(.96);
    opacity: 0;

    transition: all 1s ease .25s;
}

.id-popup.show .id-content {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =============================
   CLOSE BUTTON
============================= */

.id-close {
    position: absolute;

    right: 25px;
    top: 20px;

    z-index: 20;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.25);

    background: rgba(255,255,255,.08);

    color: #ffffff;

    font-size: 28px;

    line-height: 36px;

    cursor: pointer;

    transition: .3s ease;
}

.id-close:hover {
    background: #ffffff;
    color: #071f45;

    transform: rotate(90deg);
}


/* =============================
   DATE
============================= */

.id-date {
    display: inline-block;

    color: rgba(255,255,255,.8);

    font-size: 13px;

    letter-spacing: 5px;

    font-weight: 600;

    margin-bottom: 25px;

    opacity: 0;

    transform: translateY(-15px);

    animation:
        fadeDown .8s ease 1s forwards;
}


/* =============================
   FLAG
============================= */

.flag-area {
    display: flex;

    justify-content: center;

    margin-bottom: 27px;

    perspective: 1000px;
}

.flag {
    position: relative;

    width: 185px;
    height: 120px;

    overflow: hidden;

    border-radius: 4px;

    box-shadow:
        0 15px 35px rgba(0,0,0,.35);

    transform-origin: left center;

    animation:
        flagEntry 1.2s cubic-bezier(.2,.9,.3,1.1) .5s both,
        flagWave 3s ease-in-out 1.7s infinite;
}

.flag-row {
    height: 40px;
    width: 100%;
}

.saffron {
    background: #ff9933;
}

.white {
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.green {
    background: #138808;
}


/* =============================
   ASHOKA CHAKRA
============================= */

.chakra {
    position: relative;

    width: 34px;
    height: 34px;

    border: 3px solid #000080;

    border-radius: 50%;

    animation:
        chakraRotate 9s linear infinite;
}

.chakra::before,
.chakra::after,
.chakra-inner::before,
.chakra-inner::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 2px;
    height: 30px;

    background: #000080;

    transform-origin: center;
}

.chakra::before {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}

.chakra::after {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

.chakra-inner::before {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.chakra-inner::after {
    transform:
        translate(-50%, -50%)
        rotate(135deg);
}


/* =============================
   SMALL TITLE
============================= */

.id-small-title {
    color: #ff9933;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 6px;

    margin-bottom: 13px;

    opacity: 0;

    animation:
        fadeUp .7s ease 1.2s forwards;
}


/* =============================
   MAIN TITLE
============================= */

.id-main-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(36px, 6vw, 70px);

    line-height: 1;

    font-weight: 300;

    letter-spacing: 2px;

    text-shadow:
        0 6px 30px rgba(0,0,0,.3);

    opacity: 0;

    transform: translateY(25px);

    animation:
        titleReveal 1s ease 1.4s forwards;
}

.id-main-title span {
    display: block;

    margin-top: 10px;

    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #ff9933 0%,
            #ffffff 48%,
            #138808 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =============================
   LINE
============================= */

.id-line {
    width: 0;
    height: 2px;

    margin: 25px auto;

    background:
        linear-gradient(
            90deg,
            #ff9933 0%,
            #ffffff 50%,
            #138808 100%
        );

    animation:
        lineGrow 1s ease 2s forwards;
}


/* =============================
   MESSAGE
============================= */

.id-message {
    color: rgba(255,255,255,.85);

    font-size: 17px;

    font-weight: 400;

    letter-spacing: .4px;

    margin: 0 0 22px;

    opacity: 0;

    animation:
        fadeUp .7s ease 2.1s forwards;
}


/* =============================
   COMPANY
============================= */

.id-company {
    font-size: 25px;

    color: #ffffff;

    font-weight: 700;

    letter-spacing: 1px;

    opacity: 0;

    animation:
        fadeUp .7s ease 2.4s forwards;
}

.id-company span {
    position: relative;
}

.id-company span::after {
    content: "";

    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ff9933;

    right: -14px;
    top: 2px;

    box-shadow:
        0 10px 0 #ffffff,
        0 20px 0 #138808;
}


/* =============================
   TAGLINE
============================= */

.id-tagline {
    color: rgba(255,255,255,.55);

    font-size: 13px;

    letter-spacing: 2px;

    margin-top: 12px;

    opacity: 0;

    animation:
        fadeUp .7s ease 2.7s forwards;
}


/* =============================
   PARTICLES
============================= */

.id-particles {
    position: absolute;

    width: 100%;
    height: 100%;

    left: 0;
    top: 0;

    overflow: hidden;

    z-index: 1;
}

.id-particles span {
    position: absolute;

    bottom: -20px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(255,255,255,.7);

    animation:
        particleUp linear infinite;
}

.id-particles span:nth-child(1) {
    left: 5%;
    animation-duration: 8s;
    animation-delay: 0s;
    background: #ff9933;
}

.id-particles span:nth-child(2) {
    left: 15%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.id-particles span:nth-child(3) {
    left: 25%;
    animation-duration: 7s;
    animation-delay: 2s;
    background: #138808;
}

.id-particles span:nth-child(4) {
    left: 36%;
    animation-duration: 11s;
    animation-delay: .5s;
}

.id-particles span:nth-child(5) {
    left: 47%;
    animation-duration: 9s;
    animation-delay: 1.5s;
    background: #ff9933;
}

.id-particles span:nth-child(6) {
    left: 58%;
    animation-duration: 12s;
    animation-delay: 2.5s;
}

.id-particles span:nth-child(7) {
    left: 68%;
    animation-duration: 8s;
    animation-delay: .8s;
    background: #138808;
}

.id-particles span:nth-child(8) {
    left: 77%;
    animation-duration: 10s;
    animation-delay: 1.8s;
}

.id-particles span:nth-child(9) {
    left: 88%;
    animation-duration: 7s;
    animation-delay: .3s;
    background: #ff9933;
}

.id-particles span:nth-child(10) {
    left: 95%;
    animation-duration: 11s;
    animation-delay: 2s;
    background: #138808;
}


/* =============================
   ANIMATIONS
============================= */

@keyframes flagEntry {

    0% {
        opacity: 0;

        transform:
            rotateY(-70deg)
            translateY(-20px)
            scale(.8);
    }

    100% {
        opacity: 1;

        transform:
            rotateY(0)
            translateY(0)
            scale(1);
    }
}

@keyframes flagWave {

    0%,
    100% {
        transform:
            rotateY(-4deg)
            rotateZ(-1deg);
    }

    50% {
        transform:
            rotateY(7deg)
            rotateZ(1deg);
    }
}

@keyframes chakraRotate {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes titleReveal {

    from {
        opacity: 0;

        transform:
            translateY(30px)
            scale(.96);

        filter: blur(5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter: blur(0);
    }
}

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes fadeDown {

    from {
        opacity: 0;

        transform:
            translateY(-15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes lineGrow {

    from {
        width: 0;
    }

    to {
        width: 180px;
    }
}

@keyframes particleUp {

    0% {
        transform:
            translateY(0)
            scale(.5);

        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    100% {
        transform:
            translateY(-110vh)
            scale(1.5);

        opacity: 0;
    }
}

@keyframes floatGlow {

    from {
        transform:
            translate(0,0)
            scale(1);
    }

    to {
        transform:
            translate(70px,40px)
            scale(1.1);
    }
}


/* =============================
   MOBILE
============================= */

@media (max-width: 768px) {

    .id-content {
        padding:
            35px
            18px;
    }

    .flag {
        width: 150px;
        height: 99px;
    }

    .flag-row {
        height: 33px;
    }

    .chakra {
        width: 27px;
        height: 27px;
    }

    .chakra::before,
    .chakra::after,
    .chakra-inner::before,
    .chakra-inner::after {
        height: 23px;
    }

    .id-small-title {
        font-size: 10px;

        letter-spacing: 4px;
    }

    .id-main-title {
        font-size: 38px;
    }

    .id-message {
        font-size: 14px;
    }

    .id-company {
        font-size: 21px;
    }

    .id-tagline {
        font-size: 11px;

        letter-spacing: 1px;
    }

    .id-date {
        font-size: 11px;

        letter-spacing: 3px;
    }

}


/* Very Small Mobile */

@media (max-width: 420px) {

    .id-main-title {
        font-size: 31px;
    }

    .id-close {
        width: 36px;
        height: 36px;

        font-size: 23px;

        right: 15px;
        top: 15px;
    }

}