@property --ang {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg
}

:root {
    --bg: #040b1f;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --gold: #fbbf24;
    --pink: #f472b6
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%;
    overflow: hidden
}

/* no scrolling anywhere */
body {
    font-family: "Segoe UI", Poppins, system-ui, sans-serif;
    background: var(--bg);
    color: #fff
}

/* ================= BACKGROUND ================= */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #040b1f, #0a1f55, #06102a, #0d2f73);
    background-size: 300% 300%;
    animation: bgshift 18s ease infinite
}

@keyframes bgshift {

    0%,
    100% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }
}

.grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(circle at 40% 40%, #000 0, transparent 70%);
    mask-image: radial-gradient(circle at 40% 40%, #000 0, transparent 70%);
    animation: gridmove 20s linear infinite
}

@keyframes gridmove {
    to {
        background-position: 60px 60px
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
    animation: float 14s ease-in-out infinite
}

.o1 {
    width: 460px;
    height: 460px;
    background: #2563eb;
    top: -140px;
    left: -120px
}

.o2 {
    width: 380px;
    height: 380px;
    background: #06b6d4;
    bottom: -120px;
    right: -100px;
    animation-delay: -5s
}

.o3 {
    width: 280px;
    height: 280px;
    background: #a855f7;
    top: 38%;
    left: 62%;
    animation-delay: -9s;
    opacity: .32
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(45px, -55px) scale(1.15)
    }
}

.stars i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    animation: twinkle 3s ease-in-out infinite
}

.stars i:nth-child(1) {
    top: 8%;
    left: 12%
}

.stars i:nth-child(2) {
    top: 14%;
    left: 78%;
    animation-delay: -1s
}

.stars i:nth-child(3) {
    top: 26%;
    left: 92%;
    animation-delay: -2s
}

.stars i:nth-child(4) {
    top: 34%;
    left: 6%;
    animation-delay: -.5s
}

.stars i:nth-child(5) {
    top: 48%;
    left: 88%;
    animation-delay: -1.5s
}

.stars i:nth-child(6) {
    top: 60%;
    left: 20%;
    animation-delay: -2.4s
}

.stars i:nth-child(7) {
    top: 72%;
    left: 70%;
    animation-delay: -.8s
}

.stars i:nth-child(8) {
    top: 20%;
    left: 44%;
    animation-delay: -1.9s
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .1;
        transform: scale(.6)
    }

    50% {
        opacity: 1;
        transform: scale(1.8)
    }
}

.bubbles span {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    animation: rise linear infinite
}

.bubbles span:nth-child(1) {
    left: 6%;
    width: 22px;
    height: 22px;
    animation-duration: 14s
}

.bubbles span:nth-child(2) {
    left: 16%;
    width: 12px;
    height: 12px;
    animation-duration: 10s;
    animation-delay: -3s
}

.bubbles span:nth-child(3) {
    left: 28%;
    width: 30px;
    height: 30px;
    animation-duration: 18s;
    animation-delay: -8s
}

.bubbles span:nth-child(4) {
    left: 41%;
    width: 16px;
    height: 16px;
    animation-duration: 12s;
    animation-delay: -2s
}

.bubbles span:nth-child(5) {
    left: 53%;
    width: 26px;
    height: 26px;
    animation-duration: 16s;
    animation-delay: -11s
}

.bubbles span:nth-child(6) {
    left: 65%;
    width: 14px;
    height: 14px;
    animation-duration: 11s;
    animation-delay: -6s
}

.bubbles span:nth-child(7) {
    left: 77%;
    width: 34px;
    height: 34px;
    animation-duration: 20s;
    animation-delay: -4s
}

.bubbles span:nth-child(8) {
    left: 88%;
    width: 18px;
    height: 18px;
    animation-duration: 13s;
    animation-delay: -9s
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0
    }

    10% {
        opacity: 1
    }

    100% {
        transform: translateY(-115vh) translateX(40px);
        opacity: 0
    }
}

.skyline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 38px;
    height: 14vh;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(#020612, #020612) 3% 100%/44px 60% no-repeat,
        linear-gradient(#020612, #020612) 9% 100%/16px 95% no-repeat,
        linear-gradient(#020612, #020612) 15% 100%/70px 45% no-repeat,
        linear-gradient(#020612, #020612) 25% 100%/22px 85% no-repeat,
        linear-gradient(#020612, #020612) 34% 100%/84px 52% no-repeat,
        linear-gradient(#020612, #020612) 47% 100%/18px 100% no-repeat,
        linear-gradient(#020612, #020612) 57% 100%/60px 62% no-repeat,
        linear-gradient(#020612, #020612) 68% 100%/24px 88% no-repeat,
        linear-gradient(#020612, #020612) 77% 100%/76px 48% no-repeat,
        linear-gradient(#020612, #020612) 88% 100%/20px 92% no-repeat,
        linear-gradient(#020612, #020612) 96% 100%/50px 56% no-repeat,
        linear-gradient(to top, #020612 10px, transparent 10px)
}

.skyline i {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px 4px rgba(251, 191, 36, .8);
    animation: blink 2.4s ease-in-out infinite
}

.skyline i:nth-child(1) {
    left: 9.4%;
    top: 2%
}

.skyline i:nth-child(2) {
    left: 25.8%;
    top: 14%;
    animation-delay: -.8s
}

.skyline i:nth-child(3) {
    left: 47.4%;
    top: 0;
    animation-delay: -1.4s
}

.skyline i:nth-child(4) {
    left: 68.8%;
    top: 10%;
    animation-delay: -.4s
}

.skyline i:nth-child(5) {
    left: 88.4%;
    top: 6%;
    animation-delay: -1.9s
}

@keyframes blink {

    0%,
    100% {
        opacity: .25
    }

    50% {
        opacity: 1
    }
}

/* ================= ONE-SCREEN LAYOUT ================= */
main {
    position: relative;
    z-index: 2;
    height: calc(100vh - 38px);
    display: grid;
    grid-template-columns: 1fr min(28vw, 420px);
    gap: 2.5vw;
    align-items: center;
    padding: 0 4vw
}

.left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: up .9s cubic-bezier(.2, .8, .2, 1) forwards
}

@keyframes up {
    to {
        opacity: 1;
        transform: none
    }
}

.d1 {
    animation-delay: .1s
}

.d2 {
    animation-delay: .3s
}

.d3 {
    animation-delay: .55s
}

.d4 {
    animation-delay: .8s
}

.d5 {
    animation-delay: 1.05s
}

.d6 {
    animation-delay: 1.3s
}

.announce {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: .9vh 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
    font-weight: 700;
    letter-spacing: 5px;
    font-size: min(1.1vw, 1.7vh);
    text-transform: uppercase
}

.announce .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.6s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, .8)
    }

    70%,
    100% {
        box-shadow: 0 0 0 14px rgba(239, 68, 68, 0)
    }
}

.hero {
    position: relative;
    margin-top: 3vh
}

.mol {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(52vw, 80vh);
    aspect-ratio: 1;
    z-index: -1;
    opacity: .5;
    animation: spin 60s linear infinite;
    transform: translate(-50%, -50%)
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

h1 {
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
    font-size: min(5.6vw, 12vh);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1vh 1.6vw
}

.iiche {
    text-shadow: 0 8px 40px rgba(59, 130, 246, .7)
}

.chem {
    background: linear-gradient(100deg, #60a5fa, #22d3ee, #a78bfa, #f472b6, #60a5fa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
    filter: drop-shadow(0 6px 30px rgba(34, 211, 238, .5))
}

@keyframes shine {
    to {
        background-position: 300% 0
    }
}

.year {
    position: relative;
    font-size: .4em;
    font-weight: 800;
    color: #0b2a7a;
    background: #fff;
    padding: .25em .8em;
    border-radius: 999px;
    letter-spacing: 2px;
    animation: bob 3.5s ease-in-out infinite;
    box-shadow: 0 12px 40px rgba(255, 255, 255, .28)
}

.year::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 999px;
    border: 2px dashed rgba(34, 211, 238, .85);
    animation: ring 12s linear infinite
}

@keyframes ring {
    to {
        transform: rotate(360deg)
    }
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.tag {
    margin-top: 2vh;
    letter-spacing: .5em;
    text-transform: uppercase;
    font-size: min(1.15vw, 2vh);
    color: #a9c3ff
}

.info {
    margin-top: 4vh;
    display: flex;
    gap: 1.6vw;
    justify-content: center;
    align-items: stretch
}

.cal {
    width: min(10vw, 19vh);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    color: #0b1b3f;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
    animation: bob 4s ease-in-out infinite
}

.cal .m {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    font-weight: 800;
    letter-spacing: 3px;
    padding: .8vh 0;
    font-size: min(.95vw, 1.6vh)
}

.cal .dd {
    font-weight: 900;
    font-size: min(3vw, 5.6vh);
    padding-top: 1vh;
    line-height: 1
}

.cal .yy {
    font-weight: 700;
    color: #64748b;
    padding: .4vh 0 1.2vh;
    font-size: min(.9vw, 1.5vh);
    letter-spacing: 2px
}

.vpill {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.8vh 2.4vw;
    border-radius: 18px;
    text-align: left;
    background: linear-gradient(120deg, rgba(59, 130, 246, .92), rgba(34, 211, 238, .92));
    box-shadow: 0 18px 44px rgba(34, 211, 238, .3)
}

.vpill small {
    letter-spacing: 4px;
    font-weight: 700;
    font-size: min(.8vw, 1.4vh);
    opacity: .85;
    text-transform: uppercase
}

.vpill b {
    font-size: min(2.8vw, 5.2vh);
    font-weight: 900;
    margin: .2vh 0
}

.vpill span {
    font-size: min(1.05vw, 1.9vh);
    opacity: .92
}

.vpill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    animation: sweep 3.8s ease-in-out infinite
}

@keyframes sweep {
    0% {
        left: -60%
    }

    60%,
    100% {
        left: 130%
    }
}

.session {
    margin-top: 4.5vh
}

.session .n {
    font-weight: 800;
    letter-spacing: .3em;
    font-size: min(2.1vw, 4vh);
    color: var(--gold);
    text-shadow: 0 0 26px rgba(251, 191, 36, .6)
}

.session .n sup {
    font-size: .55em;
    letter-spacing: 0
}

.session .of {
    margin: .4vh 0;
    font-style: italic;
    color: #9db4ea;
    font-size: min(1.1vw, 2vh)
}

.session .org {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: min(3vw, 5.6vh);
    text-shadow: 0 6px 24px rgba(0, 0, 0, .5);
    line-height: 1.1
}

.line {
    width: min(30vw, 60vh);
    height: 3px;
    margin: 2vh auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: grow 2.6s ease-in-out infinite
}

@keyframes grow {

    0%,
    100% {
        transform: scaleX(.35);
        opacity: .5
    }

    50% {
        transform: scaleX(1);
        opacity: 1
    }
}

/* ---- MNIT image on the right side ---- */
.side {
    display: flex;
    justify-content: center
}

.frame {
    width: 100%;
    padding: 3px;
    border-radius: 28px;
    background: conic-gradient(from var(--ang), #22d3ee, #3b82f6, #a78bfa, #f472b6, #fbbf24, #22d3ee);
    animation: borderspin 6s linear infinite;
    box-shadow: 0 30px 90px rgba(34, 211, 238, .2)
}

@keyframes borderspin {
    to {
        --ang: 360deg
    }
}

.photo {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: #071230;
    height: min(66vh, calc(28vw*1.2));
    max-height: 66vh
}

.photo svg,
.photo .img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: kb 16s ease-in-out infinite alternate
}

/* put the photo next to this file with this name */
.photo .img {
    background: url("../images/mnit_jaypur.webp") center/cover no-repeat
}

@keyframes kb {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.14) translate(-2%, -2%)
    }
}

.photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 11, 31, .92), transparent 55%);
    z-index: 1
}

.cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 20px 18px;
    text-align: left
}

.cap small {
    color: var(--cyan);
    letter-spacing: 4px;
    font-weight: 800;
    font-size: min(.8vw, 1.4vh);
    text-transform: uppercase
}

.cap b {
    display: block;
    font-size: min(1.45vw, 2.6vh);
    line-height: 1.25;
    margin-top: 4px
}

.cap span {
    font-size: min(.95vw, 1.7vh);
    color: #cfe0ff
}

/* ---- ticker ---- */
.ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38px;
    z-index: 5;
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(90deg, #1d4ed8, #0891b2, #7c3aed);
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px
}

.ticker div {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite
}

@keyframes marquee {
    to {
        transform: translateX(-100%)
    }
}

/* narrow screens: still one screen, image below the text */
@media(max-width:900px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-content: center;
        gap: 2vh;
        padding: 0 4vw
    }

    h1 {
        font-size: min(10vw, 9vh)
    }

    .tag,
    .announce {
        font-size: min(2.6vw, 1.6vh)
    }

    .cal {
        width: min(24vw, 15vh)
    }

    .cal .m {
        font-size: min(2.3vw, 1.4vh)
    }

    .cal .dd {
        font-size: min(8vw, 5vh)
    }

    .cal .yy {
        font-size: min(2.2vw, 1.3vh)
    }

    .vpill {
        padding: 1.4vh 4vw
    }

    .vpill b {
        font-size: min(7vw, 4.6vh)
    }

    .vpill span {
        font-size: min(2.8vw, 1.6vh)
    }

    .vpill small {
        font-size: min(2.2vw, 1.3vh)
    }

    .session .n {
        font-size: min(4.6vw, 3.4vh)
    }

    .session .of {
        font-size: min(3vw, 1.8vh)
    }

    .session .org {
        font-size: min(6.2vw, 4.4vh)
    }

    .photo {
        height: 22vh;
        max-height: 22vh
    }

    .cap b {
        font-size: min(3.4vw, 2vh)
    }

    .cap span,
    .cap small {
        font-size: min(2.4vw, 1.4vh)
    }

    .line {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important
    }
}