/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #020c1b;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ===== Aurora Background ===== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    mix-blend-mode: screen;
}

.aurora-blob:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0ea5e9, transparent 70%);
    top: -15%;
    left: -10%;
    animation: auroraMove1 14s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(2) {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    top: 30%;
    right: -15%;
    animation: auroraMove2 18s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0284c7, transparent 70%);
    bottom: -10%;
    left: 20%;
    animation: auroraMove3 16s ease-in-out infinite alternate;
}

.aurora-blob:nth-child(4) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f59e0b, transparent 70%);
    top: 60%;
    right: 30%;
    opacity: 0.15;
    animation: auroraMove1 20s ease-in-out infinite alternate-reverse;
}

@keyframes auroraMove1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(60px, -40px) scale(1.1) rotate(5deg);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9) rotate(-3deg);
    }

    100% {
        transform: translate(40px, -60px) scale(1.15) rotate(8deg);
    }
}

@keyframes auroraMove2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-70px, 50px) scale(1.2) rotate(-6deg);
    }

    100% {
        transform: translate(30px, -30px) scale(0.95) rotate(4deg);
    }
}

@keyframes auroraMove3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -60px) scale(1.15);
    }

    100% {
        transform: translate(-40px, 20px) scale(1.05);
    }
}

/* ===== Stars / Particles ===== */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

.star:nth-child(1) {
    width: 2px;
    height: 2px;
    top: 8%;
    left: 12%;
    animation-duration: 3s;
}

.star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 15%;
    left: 45%;
    animation-duration: 4s;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    width: 1px;
    height: 1px;
    top: 25%;
    left: 78%;
    animation-duration: 2.5s;
    animation-delay: 1s;
}

.star:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 40%;
    left: 22%;
    animation-duration: 3.5s;
    animation-delay: 0.3s;
}

.star:nth-child(5) {
    width: 1px;
    height: 1px;
    top: 55%;
    left: 88%;
    animation-duration: 2.8s;
    animation-delay: 1.5s;
}

.star:nth-child(6) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 35%;
    animation-duration: 4.2s;
    animation-delay: 0.8s;
}

.star:nth-child(7) {
    width: 2px;
    height: 2px;
    top: 82%;
    left: 65%;
    animation-duration: 3.2s;
    animation-delay: 2s;
}

.star:nth-child(8) {
    width: 1px;
    height: 1px;
    top: 90%;
    left: 15%;
    animation-duration: 2.6s;
    animation-delay: 0.7s;
}

.star:nth-child(9) {
    width: 2px;
    height: 2px;
    top: 5%;
    left: 60%;
    animation-duration: 3.8s;
    animation-delay: 1.2s;
}

.star:nth-child(10) {
    width: 1px;
    height: 1px;
    top: 35%;
    left: 92%;
    animation-duration: 2.9s;
    animation-delay: 0.4s;
}

.star:nth-child(11) {
    width: 2px;
    height: 2px;
    top: 48%;
    left: 5%;
    animation-duration: 3.3s;
    animation-delay: 1.8s;
}

.star:nth-child(12) {
    width: 3px;
    height: 3px;
    top: 65%;
    left: 50%;
    animation-duration: 4.5s;
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0% {
        opacity: 0.15;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

/* ===== Container ===== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 32px;
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== Glass Card with Animated Border ===== */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 52px 36px 44px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    animation: cardReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Animated border glow */
.glass-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 34px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle, 0deg),
            transparent 20%,
            rgba(14, 165, 233, 0.6) 35%,
            rgba(99, 102, 241, 0.6) 50%,
            rgba(245, 158, 11, 0.4) 65%,
            transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

/* Inner highlight sweep */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 60%);
    animation: sweepHighlight 8s ease-in-out infinite;
    pointer-events: none;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to {
        --border-angle: 360deg;
    }
}

@keyframes sweepHighlight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(100%);
    }
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotateX(8deg);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* ===== Logo ===== */
.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    animation: logoEntrance 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Orbital rings */
.logo-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid transparent;
}

.logo-orbit-1 {
    width: 210px;
    height: 210px;
    border-top-color: rgba(14, 165, 233, 0.5);
    border-right-color: rgba(99, 102, 241, 0.3);
    animation: orbit 8s linear infinite;
}

.logo-orbit-2 {
    width: 230px;
    height: 230px;
    border-bottom-color: rgba(245, 158, 11, 0.3);
    border-left-color: rgba(14, 165, 233, 0.2);
    animation: orbit 12s linear infinite reverse;
}

.logo-orbit-3 {
    width: 250px;
    height: 250px;
    border-top-color: rgba(99, 102, 241, 0.15);
    animation: orbit 16s linear infinite;
}

/* Orbit dots */
.logo-orbit-1::after,
.logo-orbit-2::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.logo-orbit-1::after {
    background: rgba(14, 165, 233, 0.8);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.logo-orbit-2::after {
    background: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    top: auto;
    bottom: -3px;
}

@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

.logo {
    width: 150px;
    max-width: 45vw;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.2));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    position: relative;
    z-index: 1;
}

.logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 0 40px rgba(14, 165, 233, 0.35));
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* ===== School Name ===== */
.school-name {
    text-align: center;
    margin-bottom: 28px;
    animation: textReveal 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.school-name h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #93c5fd 25%,
            #c4b5fd 50%,
            #93c5fd 75%,
            #ffffff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 5s linear infinite;
    line-height: 1.3;
}

.school-name .tagline {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 6px;
    color: rgba(147, 197, 253, 0.6);
    animation: taglineReveal 1s 1.2s ease-out both;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 8px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 2px;
    }
}

@keyframes taglineReveal {
    0% {
        opacity: 0;
        letter-spacing: 12px;
    }

    100% {
        opacity: 1;
        letter-spacing: 4px;
    }
}

/* ===== Divider ===== */
.divider {
    width: 80px;
    height: 1px;
    position: relative;
    margin-bottom: 32px;
    animation: fadeSlideUp 0.8s 0.8s ease-out both;
}

.divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.5), transparent);
}

.divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(147, 197, 253, 0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(147, 197, 253, 0.4);
    animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

/* ===== Buttons ===== */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    opacity: 0;
    animation: btnSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn:nth-child(1) {
    animation-delay: 0.9s;
}

.btn:nth-child(2) {
    animation-delay: 1.05s;
}

.btn:nth-child(3) {
    animation-delay: 1.2s;
}

.btn:nth-child(4) {
    animation-delay: 1.35s;
}

.btn:nth-child(5) {
    animation-delay: 1.5s;
}

@keyframes btnSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Glass overlay on buttons */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

/* Shimmer sweep */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 150%;
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
}

.btn:active {
    transform: translateY(0px) scale(0.97);
    transition-duration: 0.1s;
}

/* Icon wrapper */
.btn-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover .btn-icon-wrap {
    transform: rotate(-8deg) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn:hover .btn-arrow {
    opacity: 0.7;
    transform: translateX(0);
}

/* --- Individual Button Styles --- */

/* Facebook */
.btn-facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.8) 0%, rgba(13, 93, 199, 0.9) 100%);
    border: 1px solid rgba(24, 119, 242, 0.3);
    box-shadow: 0 4px 24px rgba(24, 119, 242, 0.2);
}

.btn-facebook:hover {
    box-shadow: 0 8px 40px rgba(24, 119, 242, 0.4), 0 0 0 1px rgba(24, 119, 242, 0.4);
}

/* Instagram */
.btn-instagram {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.85) 0%, rgba(220, 39, 67, 0.85) 40%, rgba(188, 24, 136, 0.9) 100%);
    border: 1px solid rgba(225, 48, 108, 0.3);
    box-shadow: 0 4px 24px rgba(225, 48, 108, 0.2);
}

.btn-instagram:hover {
    box-shadow: 0 8px 40px rgba(225, 48, 108, 0.4), 0 0 0 1px rgba(225, 48, 108, 0.4);
}

/* YouTube */
.btn-youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8) 0%, rgba(180, 0, 0, 0.9) 100%);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 4px 24px rgba(255, 0, 0, 0.2);
}

.btn-youtube:hover {
    box-shadow: 0 8px 40px rgba(255, 0, 0, 0.4), 0 0 0 1px rgba(255, 0, 0, 0.4);
}

/* Google */
.btn-google {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.75) 0%, rgba(52, 168, 83, 0.7) 40%, rgba(234, 67, 53, 0.8) 100%);
    border: 1px solid rgba(66, 133, 244, 0.3);
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.2);
}

.btn-google:hover {
    box-shadow: 0 8px 40px rgba(66, 133, 244, 0.4), 0 0 0 1px rgba(66, 133, 244, 0.4);
}

/* Save Contact */
.btn-contact {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(5, 150, 105, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.2);
}

.btn-contact:hover {
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* ===== Ripple Effect ===== */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== Footer ===== */
.footer {
    margin-top: 28px;
    text-align: center;
    animation: fadeSlideUp 0.8s 1.5s ease-out both;
}

.footer p {
    font-size: 0.65rem;
    font-weight: 300;
    opacity: 0.3;
    letter-spacing: 1px;
}

.footer .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-size: 0.8rem;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }
}

/* ===== Utility Animations ===== */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Bottom Wave ===== */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: waveMove linear infinite;
}

.wave-1 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%230ea5e9' fill-opacity='0.04' d='M0,128L48,138.7C96,149,192,171,288,170.7C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,138.7C1248,149,1344,139,1392,133.3L1440,128L1440,200L1392,200C1344,200,1248,200,1152,200C1056,200,960,200,864,200C768,200,672,200,576,200C480,200,384,200,288,200C192,200,96,200,48,200L0,200Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation-duration: 25s;
}

.wave-2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%236366f1' fill-opacity='0.03' d='M0,96L48,112C96,128,192,160,288,154.7C384,149,480,107,576,96C672,85,768,107,864,133.3C960,160,1056,192,1152,186.7C1248,181,1344,139,1392,117.3L1440,96L1440,200L1392,200C1344,200,1248,200,1152,200C1056,200,960,200,864,200C768,200,672,200,576,200C480,200,384,200,288,200C192,200,96,200,48,200L0,200Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px 16px;
    }

    .glass-card {
        padding: 40px 24px 32px;
        border-radius: 24px;
    }

    .glass-card::before {
        border-radius: 26px;
    }

    .logo {
        width: 120px;
    }

    .logo-orbit-1 {
        width: 170px;
        height: 170px;
    }

    .logo-orbit-2 {
        width: 185px;
        height: 185px;
    }

    .logo-orbit-3 {
        width: 200px;
        height: 200px;
    }

    .logo-wrapper {
        margin-bottom: 12px;
    }

    .school-name h1 {
        font-size: 1.15rem;
        letter-spacing: 1.5px;
    }

    .school-name .tagline {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.88rem;
        border-radius: 14px;
    }

    .btn-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .buttons {
        gap: 12px;
    }

    .aurora-blob:nth-child(1) {
        width: 300px;
        height: 300px;
    }

    .aurora-blob:nth-child(2) {
        width: 280px;
        height: 280px;
    }

    .aurora-blob:nth-child(3) {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 768px) {
    .logo {
        width: 170px;
    }

    .logo-orbit-1 {
        width: 230px;
        height: 230px;
    }

    .logo-orbit-2 {
        width: 250px;
        height: 250px;
    }

    .logo-orbit-3 {
        width: 270px;
        height: 270px;
    }

    .logo-wrapper {
        margin-bottom: 20px;
    }

    .school-name h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 17px 28px;
        font-size: 1rem;
    }

    .glass-card {
        padding: 56px 44px 48px;
        max-width: 440px;
    }
}

@media (min-width: 1024px) {
    .aurora-blob:nth-child(1) {
        width: 600px;
        height: 600px;
    }

    .aurora-blob:nth-child(2) {
        width: 550px;
        height: 550px;
    }

    .aurora-blob:nth-child(3) {
        width: 500px;
        height: 500px;
    }
}