:root {
    --yellow: #edbb5f;
    --maroon: #993467;
    --navtext: #52648e;
    --logo-pink: #d13c8b;
    --logo-dark: #181828;
    --logo-black: #000;
    --logo-light: #fff;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Nunito', sans-serif;
    background: #f7f7fa;
    color: #181828;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

header,
footer {
    background: var(--logo-black);
    color: var(--logo-light);
}

nav a {
    color: var(--logo-light);
}

nav a:hover {
    color: var(--yellow);
}

.accent {
    color: var(--logo-pink);
}

.btn-primary {
    background: var(--logo-pink);
    color: var(--logo-light);
}

.btn-primary:hover {
    background: var(--yellow);
    color: var(--maroon);
}

section {
    background: #f7f7fa;
    color: #181828;
    scroll-margin-top: 80px;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.section-dark {
    background: var(--logo-dark);
    color: var(--logo-light);
}

.stat-card,
.team-card,
.swiper-slide {
    background: #fff;
    color: #181828;
}

.stat-card-dark,
.team-card-dark,
.swiper-slide-dark {
    background: #232236;

    /* Make upcoming events info badges even smaller for mobile */
    #upcoming-events .flex.flex-wrap.gap-6 span {
        font-size: 0.88rem !important;
        padding: 0.38rem 0.8rem !important;
    }

    #upcoming-events .flex.flex-wrap.gap-6 span .text-2xl {
        font-size: 1rem !important;
    }

    color: #fff;
}

.footer-link {
    color: #3b82f6;

}

.footer-link:hover {
    color: #edbb5f !important;
}

.rubik {
    font-family: 'Rubik', sans-serif;
}

h2,
h3 {
    font-family: 'Rubik', sans-serif;
}

.testimonials {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.testimonial {
    min-width: 300px;
    background-color: var(--maroon);
    color: white;
    padding: 20px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
}

.stat {
    transition: transform 0.3s ease;
}

.hero-animate-bg {
    background: linear-gradient(270deg, #993467, #edbb5f, #993467);
    background-size: 600% 600%;
    animation: gradientBG 10s ease infinite;
}

/* Responsive horizontal margins for 'How It Works' section */
@media (max-width: 768px) {
    #how-it-works .max-w-6xl {
        margin-left: 22px;
        margin-right: 22px;
    }
}

@media (max-width: 480px) {
    #how-it-works .max-w-6xl {
        margin-left: 26px;
        margin-right: 26px;
    }
}

/* Responsive horizontal margins for Contact & Newsletter section */
@media (max-width: 768px) {
    #contact .max-w-4xl {
        margin-left: 22px;
        margin-right: 22px;
    }
}

@media (max-width: 480px) {
    #contact .max-w-4xl {
        margin-left: 26px;
        margin-right: 26px;
    }
}

/* Responsive horizontal margins for Bold Conclusion section */
@media (max-width: 768px) {
    .bold-conclusion-inner {
        margin-left: 22px;
        margin-right: 22px;
        background: #000;
        border-radius: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .bold-conclusion-inner {
        margin-left: 26px;
        margin-right: 26px;
        background: #000;
        border-radius: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #edbb5f;
    opacity: 0.5;
    margin: 0 4px;
    display: inline-block;
    cursor: pointer;
}

.carousel-dot.active {
    opacity: 1;
    border: 2px solid #993467;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #edbb5f;
    margin-bottom: 10px;
}

.floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 50;
    background: #993467;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.floating-btn:hover {
    background: #edbb5f;
    color: #993467;
}

.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

.section-animate.visible {
    opacity: 1;
    transform: none;
}

.animate-testimonial {
    transition: box-shadow 0.3s, transform 0.3s;
}

.animate-testimonial:hover {
    box-shadow: 0 8px 32px rgba(153, 52, 103, 0.2);
    transform: scale(1.02) translateY(-6px);
}

.team-card {
    transition: box-shadow 0.3s, transform 0.3s;
}

.team-card:hover {
    box-shadow: 0 8px 32px rgba(237, 187, 95, 0.2);
    transform: scale(1.02) translateY(-6px);
}

.animate-fade-in {
    animation: fadeIn 1.2s forwards;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* Glassmorphism and world-class polish */
.glassy {
    background: rgba(24, 24, 40, 0.7);
    box-shadow: 0 8px 32px 0 rgba(237, 187, 95, 0.10), 0 1.5px 8px 0 rgba(153, 52, 103, 0.10);
    border: 2px solid rgba(237, 187, 95, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.glassy:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 12px 48px 0 rgba(237, 187, 95, 0.18), 0 2px 12px 0 rgba(153, 52, 103, 0.15);
    border-color: var(--logo-pink);
}

.section-dark {
    background: linear-gradient(120deg, #181828 60%, #993467 100%);
}

.btn-primary {
    background: linear-gradient(90deg, var(--logo-pink) 60%, var(--yellow) 100%);
    color: var(--logo-light);
    border: none;
    box-shadow: 0 4px 24px 0 rgba(237, 187, 95, 0.15);
    letter-spacing: 0.04em;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(153, 52, 103, 0.10);
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--yellow) 60%, var(--logo-pink) 100%);
    color: var(--maroon);
    box-shadow: 0 6px 32px 0 rgba(153, 52, 103, 0.15);
}

.accent {
    color: var(--logo-pink);
    letter-spacing: 0.08em;
}

header,
footer {
    box-shadow: 0 2px 24px 0 rgba(237, 187, 95, 0.10);
    background: #000;
}

section {
    scroll-margin-top: 80px;
}

.swiper-slide {
    background: rgba(35, 34, 54, 0.95) !important;
    border: 2px solid var(--yellow);
    box-shadow: 0 8px 32px 0 rgba(237, 187, 95, 0.10), 0 1.5px 8px 0 rgba(153, 52, 103, 0.10);
}

.swiper-slide img {
    border: 2px solid var(--logo-pink);
}

.footer-link {
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive tweaks for world class look */
@media (max-width: 768px) {
    #about p {
        margin-left: 22px;
        margin-right: 22px;
    }

    .glassy {
        padding: 1.5rem 0.5rem;
    }

    .swiper-slide {
        padding: 1.5rem 0.5rem !important;
    }

    /* Add horizontal margin to statistics card container */
    #unique-id {
        margin-left: 22px !important;
        margin-right: 22px !important;
    }

    /* Add horizontal margin to upcoming events container */
    #upcoming-events .max-w-6xl {
        margin-left: 22px !important;
        margin-right: 22px !important;
    }

    /* Add horizontal margin to FAQ section container for tablets */
    #faq .max-w-3xl {
        margin-left: 22px !important;
        margin-right: 22px !important;
    }

    .hero-section-title {
        font-size: 2.4rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.04em !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 1.2rem !important;
    }
}

@media (max-width: 480px) {

    #about p {
        margin-left: 26px;
        margin-right: 26px;
    }

    footer .flex-col.md\:flex-row.md\:items-center {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    /* Make upcoming events info badges smaller for tablet */
    #upcoming-events .flex.flex-wrap.gap-6 span {
        font-size: 0.98rem !important;
    }

    #upcoming-events .flex.flex-wrap.gap-6 span .text-2xl {
        font-size: 1.2rem !important;
    }

    #unique-id {
        margin-left: 26px !important;
        margin-right: 26px !important;
    }

    /* Add horizontal margin to upcoming events container */
    #upcoming-events .max-w-6xl {
        margin-left: 26px !important;
        margin-right: 26px !important;
    }

    /* Add horizontal margin to FAQ section container for mobile */
    #faq .max-w-3xl {
        margin-left: 26px !important;
        margin-right: 26px !important;
    }

    /* Make badges smaller and move up for mobile */
    #upcoming-events .absolute.top-3.right-8 {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.8rem !important;
        top: 0.5rem !important;
        right: 0.4rem !important;
    }

    .hero-section-title {
        font-size: 2rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.04em !important;
        line-height: 1.1 !important;
        text-align: center !important;
        margin-bottom: 1.2rem !important;
    }

    /* Make testimonial swiper-slide smaller for mobile */
    /* #testimonials-section .swiper-slide {
        padding: 0.8rem 0.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 1rem !important;
    } */

    #testimonials-section .swiper-slide p {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    #testimonials-section .swiper-slide img {
        width: 46px !important;
        height: 46px !important;
        margin-bottom: 8px !important;
    }
}

/* GOD LEVEL VISUALS */
body {
    background: linear-gradient(120deg, #181828 0%, #993467 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.god-bg-anim {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.god-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.18;
    animation: floatGod 12s ease-in-out infinite alternate;
}

.god-shape1 {
    background: #edbb5f;
    width: 420px;
    height: 420px;
    left: 5vw;
    top: 8vh;
    animation-delay: 0s;
}

.god-shape2 {
    background: #d13c8b;
    width: 320px;
    height: 320px;
    right: 8vw;
    top: 18vh;
    animation-delay: 2s;
}

.god-shape3 {
    background: #fff;
    width: 180px;
    height: 180px;
    left: 40vw;
    bottom: 10vh;
    animation-delay: 4s;
}

.god-shape4 {
    background: #993467;
    width: 260px;
    height: 260px;
    right: 18vw;
    bottom: 6vh;
    animation-delay: 6s;
}

@keyframes floatGod {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-40px) scale(1.08);
    }
}

header,
footer {
    background: linear-gradient(90deg, #000 60%, #993467 100%);
    box-shadow: 0 2px 32px 0 rgba(237, 187, 95, 0.18);
    position: relative;
    z-index: 10;
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #edbb5f, #d13c8b, #fff, #993467);
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 11;
    animation: headerGlow 6s linear infinite alternate;
}

@keyframes headerGlow {
    0% {
        filter: blur(2px) brightness(1.1);
    }

    100% {
        filter: blur(6px) brightness(1.3);
    }
}

.hero-animate-bg {
    background: linear-gradient(270deg, #993467, #edbb5f, #993467, #fff);
    background-size: 1200% 1200%;
    animation: godGradientBG 18s ease-in-out infinite;
}

@keyframes godGradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* White to pink gradient for How It Works cards */
#how-it-works .bg-white {
    background: linear-gradient(135deg, #575050 60%, #d13c8b 100%) !important;
    color: #181828;
}

#how-it-works .dark\:bg-\[\#232236\] {
    background: linear-gradient(135deg, #1e1e33 60%, #da2686 100%) !important;
    color: #18182e !important;
}

.glassy,
.stat-card-dark,
.team-card-dark,
.swiper-slide {
    background: rgba(24, 24, 40, 0.82) !important;
    box-shadow: 0 12px 48px 0 rgba(237, 187, 95, 0.18), 0 2px 12px 0 rgba(153, 52, 103, 0.15);
    border: 2.5px solid rgba(237, 187, 95, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.glassy:hover,
.stat-card-dark:hover,
.team-card-dark:hover,
.swiper-slide:hover {
    transform: scale(1.06) translateY(-8px) rotate(-1deg);
    box-shadow: 0 20px 64px 0 rgba(237, 187, 95, 0.28), 0 4px 24px 0 rgba(153, 52, 103, 0.22);
    border-color: var(--logo-pink);
}

.btn-primary {
    background: linear-gradient(90deg, var(--logo-pink) 60%, var(--yellow) 100%);
    color: var(--logo-light);
    border: 2.5px solid #edbb5f;
    box-shadow: 0 4px 24px 0 rgba(237, 187, 95, 0.18);
    letter-spacing: 0.04em;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(153, 52, 103, 0.10);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    left: -40%;
    top: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, #fff6 0%, transparent 70%);
    opacity: 0.18;
    pointer-events: none;
    animation: btnGlow 3s infinite alternate;
}

@keyframes btnGlow {
    0% {
        opacity: 0.18;
    }

    100% {
        opacity: 0.32;
    }
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--yellow) 60%, var(--logo-pink) 100%);
    color: var(--maroon);
    /* box-shadow: 0 8px 32px 0 rgba(153, 52, 103, 0.22); */
    box-shadow: 0 0 35px rgba(237, 187, 95, 0.5) !important;
    border-color: #fff;
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px 0 rgba(237, 187, 95, 0.10);
}

.footer-link {
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

footer {
    background: linear-gradient(90deg, #000 60%, #993467 100%);
    box-shadow: 0 -2px 32px 0 rgba(237, 187, 95, 0.18);
    border-top: 4px solid #edbb5f;
    position: relative;
    z-index: 10;
}

footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: linear-gradient(90deg, #edbb5f, #d13c8b, #fff, #993467);
    filter: blur(2px);
    opacity: 0.8;
    pointer-events: none;
    z-index: 11;
    animation: headerGlow 6s linear infinite alternate;
}

/* ─────────────── Container / Wrapper ─────────────── */
#testimonials-section {
    /* height: 270px; */
    padding: 60px 0;
}

.swiper {
    width: 100%;
    padding: 20px 0;
    /* vertical padding around the strip */
    box-sizing: border-box;
    background: transparent;
    /* light background behind all slides */
}

#testimonials-section .swiper {
    /* If you want the swiper area itself to be, say, 300px tall: */
    /* height: 300px; */
    /* Or, if you want it to "stretch" to show more of the dark-blue area at small widths: */
    height: 250px;
}

/* ─────────────── Each Slide (Testimonial Card) ─────────────── */
.swiper-slide {
    flex-shrink: 0;
    width: auto;
    min-height: 200px;
    background: #232236;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    text-align: center;
    padding: 20px 24px;
    color: white;
    box-sizing: border-box;
}

.swiper-slide p {
    font-size: 1.23rem;
    line-height: 1.4;
    color: #fff;
    text-align: center;
}

/* ─────────────── Pagination (Green Square Boxes) ─────────────── */
.swiper-pagination {
    margin-top: 10px;
    text-align: center;
    display: hidden;
}

.swiper-pagination-bullet {
    display: hidden;
    width: 12px;
    height: 12px;
    background: #edbb5f;
    opacity: 1;
    border-radius: 2px;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #edbb5f;
}

.accent {
    color: var(--logo-pink);
}

#testimonials-section .swiper-slide,
.stat-card-dark,
.team-card-dark {
    box-shadow: 0 8px 32px 0 rgba(237, 187, 95, 0.10), 0 1.5px 8px 0 rgba(153, 52, 103, 0.10);
}

#testimonials-section .swiper-slide {
    border: 2px solid var(--yellow);
}

.stat-card-dark {
    border: 2px solid var(--logo-pink);
}

.btn-primary {
    box-shadow: 0 4px 24px 0 rgba(237, 187, 95, 0.15);
    letter-spacing: 0.04em;
}

.btn-primary:hover {
    box-shadow: 0 6px 32px 0 rgba(153, 52, 103, 0.15);
}

header,
footer {
    box-shadow: 0 2px 24px 0 rgba(237, 187, 95, 0.10);
}

section {
    scroll-margin-top: 80px;
}

#next-hackathon .accent {
    color: var(--logo-pink);
}

#next-hackathon #countdown {
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--yellow);
}

#next-hackathon #countdown .countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
}

#next-hackathon #countdown .countdown-label {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

.social-icon svg {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 50%;
    box-shadow: 0 2px 8px 0 rgba(237, 187, 95, 0.10);
}

.social-icon:hover svg {
    transform: scale(1.15) translateY(-2px);
    /* box-shadow: 0 4px 16px 0 rgba(237, 187, 95, 0.18);*/
    box-shadow: 0 0 20px rgba(237, 187, 95, 0.5);
    background: #d13c8b;
}

/* Fix for invisible hackathon cards in Choose a Hackathon section */
#tab-choose .glassy {
    background: rgba(24, 24, 40, 0.92) !important;
    color: #fff !important;
    opacity: 1 !important;
    border: 2.5px solid var(--yellow) !important;
}

#tab-choose .glassy * {
    color: #fff !important;
    opacity: 1 !important;
}

@media (max-width: 480px) {

    /* Reduce Divergent Teams text size in navbar */
    header .text-2xl.font-extrabold {
        font-size: 1.30rem !important;
        letter-spacing: 0.04em !important;
    }

    /* Hide navbar links on mobile */
    header nav {
        display: none !important;
    }

    /* Show login button on mobile */
    header a[href="login_signup_page.html"] {
        display: inline-block !important;
    }

    /* Add responsive fixes for sections */
    section,
    .container {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Ensure images and other media are responsive */
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Adjust padding and margins for smaller screens */
    @media (max-width: 600px) {
        .container {
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .glassy,
        .stat-card,
        .team-card {
            padding: 1rem;
        }

        .hero-section-title {
            font-size: 1.8rem;
            text-align: center;
        }
    }
}