
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #080d17;
    --surface: #101927;
    --surface-light: #172337;
    --orange: #ff9900;
    --orange-light: #ffb13b;
    --text: #f5f7fb;
    --muted: #a2adbd;
    --border: rgba(255,255,255,0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    min-height: 78px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(8,13,23,0.92);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--orange);
}

.logo-icon {
    color: var(--orange);
    margin-right: 7px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-links .nav-cta {
    color: #111;
    background: var(--orange);
    padding: 11px 18px;
    border-radius: 7px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.hero {
    min-height: 680px;
    padding: 95px 9%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 50px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    background: rgba(255,153,0,0.06);
    filter: blur(100px);
    border-radius: 50%;
    right: 0;
    top: 0;
    pointer-events: none;
}

.eyebrow {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.hero h1,
.section h2,
.quiz-section h2,
.join-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.13;
    margin: 22px 0;
}

.hero h1 span,
.section h2 span,
.quiz-section h2 span,
.join-section h2 span {
    color: var(--orange);
}

.hero-content > p,
.section-heading > p,
.section-top p,
.quiz-content > p,
.join-section > p {
    color: var(--muted);
    max-width: 560px;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 22px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.25s;
}

.btn-primary {
    background: var(--orange);
    color: #111;
}

.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    border-color: var(--orange);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.hero-stats h3 {
    font-family: 'Space Grotesk';
    font-size: 24px;
    color: var(--orange);
}

.hero-stats p {
    color: var(--muted);
    font-size: 11px;
}

.hero-visual {
    height: 400px;
    position: relative;
    display: grid;
    place-items: center;
}

.cloud-orbit {
    position: absolute;
    border: 1px solid rgba(255,153,0,0.25);
    border-radius: 50%;
}

.orbit-one {
    width: 300px;
    height: 300px;
}

.orbit-two {
    width: 410px;
    height: 410px;
    border-color: rgba(255,255,255,0.07);
}

.cloud-core {
    width: 190px;
    height: 190px;
    background: linear-gradient(145deg,#26374e,#111c2c);
    border: 1px solid rgba(255,153,0,0.5);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255,153,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.cloud-core span {
    font-size: 50px;
    color: var(--orange);
}

.cloud-core strong {
    font-family: 'Space Grotesk';
    font-size: 27px;
}

.cloud-core small {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 2px;
}

.floating-tag {
    position: absolute;
    padding: 10px 14px;
    background: #172337;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11px;
    color: #e4e9f1;
    box-shadow: 0 10px 30px #0005;
}

.tag-one { top: 45px; right: 0; }
.tag-two { bottom: 75px; left: 0; }
.tag-three { bottom: 5px; right: 30px; }

.section {
    padding: 105px 9%;
}

.about {
    background: #0c1421;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section h2,
.quiz-section h2,
.join-section h2 {
    font-size: clamp(34px,4vw,46px);
    line-height: 1.2;
    margin: 13px 0;
}

.section-heading > p {
    margin: auto;
}

.feature-grid,
.event-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: 0.3s;
}

.feature-card:hover,
.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,153,0,0.4);
}

.feature-icon {
    color: var(--orange);
    font-size: 32px;
}

.feature-card h3 {
    font-family: 'Space Grotesk';
    margin: 15px 0 8px;
}

.feature-card p,
.event-info p {
    color: var(--muted);
    font-size: 13px;
}

.section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.text-link {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.event-image {
    height: 190px;
    display: flex;
    align-items: end;
    padding: 18px;
    background-size: cover;
    background-position: center;
}

.event-image span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    background: #0008;
    padding: 7px 10px;
    border-radius: 5px;
}

.event-image-one {
    background: linear-gradient(135deg,#293e59,#ff9900);
}

.event-image-two {
    background: linear-gradient(135deg,#25394f,#566b86);
}

.event-image-three {
    background: linear-gradient(135deg,#473b62,#ff9900);
}

.event-info {
    padding: 23px;
}

.event-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--orange);
    font-weight: 800;
}

.event-info h3 {
    font-family: 'Space Grotesk';
    font-size: 18px;
    margin: 8px 0;
}

.event-date {
    display: block;
    margin-top: 15px;
    font-size: 11px;
    color: var(--muted);
}

.upcoming-section {
    background: #0c1421;
}

.upcoming-placeholder,
.team-placeholder {
    text-align: center;
    background: var(--surface);
    border: 1px dashed rgba(255,153,0,0.35);
    border-radius: 12px;
    padding: 55px 20px;
}

.upcoming-icon {
    font-size: 38px;
    color: var(--orange);
}

.upcoming-placeholder h3,
.team-placeholder h3 {
    font-family: 'Space Grotesk';
    margin: 10px 0;
}

.upcoming-placeholder p,
.team-placeholder p {
    color: var(--muted);
    font-size: 13px;
}

.quiz-section {
    margin: 70px 9%;
    padding: 65px;
    background: linear-gradient(115deg,#18283d,#25344a);
    border: 1px solid rgba(255,153,0,0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
}

.quiz-content {
    max-width: 570px;
}

.quiz-content > p {
    margin-bottom: 25px;
}

.quiz-decoration {
    text-align: center;
    color: var(--orange);
}

.quiz-number {
    font-family: 'Space Grotesk';
    font-size: 130px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.8;
}

.quiz-caption {
    font-size: 10px;
    letter-spacing: 3px;
}

.team-placeholder span {
    color: var(--orange);
    font-size: 35px;
}

.join-section {
    text-align: center;
    padding: 100px 20px;
    background: radial-gradient(ellipse at center,#1a2636,var(--bg) 70%);
}

.join-section > p {
    margin: 15px auto 25px;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 35px 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer p {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1000px) {
    .navbar { padding: 0 5%; }
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 11px; }
    .hero { padding: 80px 6%; }
    .section { padding: 85px 6%; }
}

@media (max-width: 760px) {
    .navbar { min-height: 68px; }
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        padding: 20px 6%;
        background: #101927;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }

    .nav-links .nav-cta { text-align: center; }

    .hero {
        grid-template-columns: 1fr;
        padding: 75px 7% 45px;
        gap: 20px;
    }

    .hero h1 { font-size: 45px; }
    .hero-visual { height: 350px; }
    .orbit-two { width: 330px; height: 330px; }
    .orbit-one { width: 250px; height: 250px; }
    .cloud-core { width: 155px; height: 155px; }

    .hero-stats { gap: 23px; }

    .feature-grid,
    .event-grid { grid-template-columns: 1fr; }

    .section-top { align-items: start; flex-direction: column; }

    .quiz-section {
        margin: 40px 5%;
        padding: 35px 25px;
        flex-direction: column;
        align-items: start;
    }

    .quiz-number { font-size: 80px; }
    .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 37px; }
    .hero-stats { gap: 15px; }
    .hero-stats h3 { font-size: 20px; }
    .floating-tag { font-size: 9px; }
}

/* =================================
   DYNAMIC EVENTS GALLERY
================================= */

.event-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.event-toolbar input,
.event-toolbar select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 15px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.event-toolbar input {
    flex: 1;
    min-width: 200px;
}

.event-toolbar select {
    min-width: 150px;
}

.event-toolbar input:focus,
.event-toolbar select:focus {
    border-color: var(--orange);
}

.event-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.event-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 30%, #ff9900aa, transparent 35%),
        linear-gradient(135deg, #1c3552, #101927);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.06);
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-info p {
    flex: 1;
}

.event-view-btn {
    background: transparent;
    color: var(--orange);
    border: none;
    font: inherit;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    margin-top: 18px;
}

.event-view-btn:hover {
    color: var(--orange-light);
}

.empty-message {
    color: var(--muted);
    text-align: center;
    padding: 30px;
    background: var(--surface);
    border-radius: 10px;
}

/* =================================
   EVENT DETAILS MODAL
================================= */

.event-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.event-modal.active {
    display: flex;
}

.event-modal-content {
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid #ffffff44;
    border-radius: 50%;
    background: #080d17cc;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.modal-image {
    height: 260px;
    background: linear-gradient(135deg,#263e59,#ff9900);
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 28px;
}

.modal-body h2 {
    font-family: 'Space Grotesk';
    margin: 8px 0;
}

.modal-body > p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 14px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin: 25px 0;
}

.modal-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-body [hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .event-toolbar {
        flex-direction: column;
    }

    .event-toolbar input,
    .event-toolbar select {
        width: 100%;
    }

    .modal-gallery {
        grid-template-columns: repeat(2,1fr);
    }

    .modal-image {
        height: 190px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* ==========================================
   AWS SBG - MIDNIGHT NEON REDESIGN
   Black / Blue / Purple / White
========================================== */

:root {
    --bg: #050509;
    --surface: #0d0d18;
    --surface-light: #151528;

    --orange: #8b5cf6;
    --orange-light: #a78bfa;

    --text: #f8f7ff;
    --muted: #aaa9c2;

    --border: rgba(167, 139, 250, 0.15);

    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;

    --purple-glow: 0 0 35px rgba(139, 92, 246, 0.22);
    --blue-glow: 0 0 35px rgba(59, 130, 246, 0.18);
}

/* GLOBAL BACKGROUND */

body {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(91, 33, 182, 0.13), transparent 35%),
        radial-gradient(ellipse at 85% 35%, rgba(37, 99, 235, 0.09), transparent 35%),
        #050509;
    color: var(--text);
}

/* NAVIGATION */

.navbar {
    background: rgba(5, 5, 12, 0.82);
    border-bottom: 1px solid rgba(139, 92, 246, 0.16);
    backdrop-filter: blur(22px);
}

.logo span,
.logo-icon {
    color: #a78bfa;
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.65);
}

.nav-links a {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a:hover {
    color: #a78bfa;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.65);
}

.nav-links .nav-cta {
    color: white;
    background: linear-gradient(110deg, #2563eb, #7c3aed);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.25);
}

.nav-links .nav-cta:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.55);
}

/* HERO SECTION */

.hero {
    isolation: isolate;
}

.hero::before {
    background: rgba(124, 58, 237, 0.19);
    filter: blur(115px);
    animation: purplePulse 7s ease-in-out infinite alternate;
}

.hero h1 span,
.section h2 span,
.quiz-section h2 span,
.join-section h2 span {
    color: transparent;
    background: linear-gradient(100deg, #60a5fa, #a78bfa, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
}

.eyebrow {
    color: #a78bfa;
}

.hero-stats h3 {
    color: #a78bfa;
}

.btn-primary {
    color: white;
    background: linear-gradient(110deg, #2563eb, #7c3aed);
    box-shadow: 0 5px 25px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(110deg, #3b82f6, #9333ea);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.5);
}

.btn-outline:hover {
    border-color: #a78bfa;
    box-shadow: var(--purple-glow);
}

/* HERO CLOUD VISUAL */

.cloud-orbit {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.08);
}

.orbit-one {
    animation: orbitSpin 25s linear infinite;
}

.orbit-two {
    border-color: rgba(59, 130, 246, 0.18);
    animation: orbitSpin 35s linear infinite reverse;
}

.cloud-core {
    background: linear-gradient(145deg, #17132b, #0b1022);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow:
        0 0 35px rgba(139, 92, 246, 0.2),
        inset 0 0 35px rgba(59, 130, 246, 0.1);
    animation: coreFloat 5s ease-in-out infinite;
}

.cloud-core span {
    color: #a78bfa;
    text-shadow: 0 0 25px #9333ea;
}

.floating-tag {
    background: rgba(17, 17, 35, 0.85);
    border-color: rgba(167, 139, 250, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    animation: tagFloat 5s ease-in-out infinite;
}

.tag-two {
    animation-delay: 1s;
}

.tag-three {
    animation-delay: 2s;
}

/* SECTIONS */

.about,
.upcoming-section {
    background: rgba(12, 12, 25, 0.75);
}

.feature-card,
.event-card {
    background: linear-gradient(145deg, #111121, #0a0a14);
    border: 1px solid rgba(139, 92, 246, 0.14);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.feature-card:hover,
.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow:
        0 12px 40px rgba(91, 33, 182, 0.16),
        0 0 20px rgba(59, 130, 246, 0.08);
}

.feature-icon,
.event-label,
.text-link,
.event-view-btn {
    color: #a78bfa;
}

.event-view-btn:hover {
    color: #60a5fa;
}

.event-image {
    background:
        radial-gradient(circle at 70% 30%, #8b5cf666, transparent 40%),
        linear-gradient(135deg, #101b39, #151027);
}

.event-card:hover .event-image img {
    transform: scale(1.07);
}

/* UPCOMING EVENTS */

.upcoming-placeholder,
.team-placeholder {
    background: linear-gradient(145deg, #111121, #0a0a14);
    border-color: rgba(139, 92, 246, 0.4);
}

.upcoming-icon,
.team-placeholder span {
    color: #a78bfa;
    text-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

/* QUIZ SECTION */

.quiz-section {
    background:
        radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.28), transparent 40%),
        linear-gradient(120deg, #10152d, #17102b);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 45px rgba(91, 33, 182, 0.12);
}

.quiz-decoration {
    color: #a78bfa;
    text-shadow: 0 0 35px rgba(168, 85, 247, 0.4);
}

/* JOIN SECTION */

.join-section {
    background:
        radial-gradient(ellipse at center, rgba(91, 33, 182, 0.2), transparent 65%),
        #050509;
}

/* EVENT SEARCH */

.event-toolbar input:focus,
.event-toolbar select:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.17);
}

/* EVENT MODAL */

.event-modal {
    background: rgba(3, 3, 10, 0.88);
}

.event-modal-content {
    background: #0d0d19;
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 0 65px rgba(91, 33, 182, 0.2);
    animation: modalEnter 0.3s ease both;
}

.modal-close {
    background: rgba(10, 10, 25, 0.9);
}

.modal-close:hover {
    border-color: #a78bfa;
    box-shadow: var(--purple-glow);
}

/* FOOTER */

.footer {
    background: rgba(5, 5, 12, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
}

/* ==========================================
   BALANCED ANIMATIONS
========================================== */

@keyframes purplePulse {
    from {
        opacity: 0.55;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes coreFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes tagFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 760px) {
    .nav-links {
        background: rgba(8, 8, 18, 0.97);
        backdrop-filter: blur(20px);
    }

    .hero::before {
        width: 300px;
        height: 300px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
