/* =========================================================
   CODEFEST MAIN THEME FILE
   ---------------------------------------------------------
   IMPORTANT:
   Change colors ONLY in :root if you want a full theme shift.
   Everything below uses variables from here.
   ========================================================= */

:root {
    /* -----------------------------------------------------
       COLOR THEME VARIABLES
       ----------------------------------------------------- */
    --bg-primary: #07111f;
    --bg-secondary: #0b1730;
    --bg-tertiary: rgba(255, 255, 255, 0.06);

    --surface-glass: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(255, 255, 255, 0.14);

    --text-primary: #f5f7ff;
    --text-secondary: #b7c1d8;
    --text-muted: #8a95ad;

    --accent-primary: #5b8cff;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #22d3ee;

    --success: #10b981;
    --danger: #ef4444;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.35);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;

    --container-width: 1200px;

    --transition-fast: 0.25s ease;
    --transition-medium: 0.4s ease;

    /* =====================================================
        HOME-1 BACKGROUND COLOR CONTROLS
        Change these if you want to tweak only the hero shades
    ===================================================== */
    --home-1-background-base-dark: #030712;
    --home-1-background-base-navy: #07142f;
    --home-1-background-base-blue: #0d2e73;

    --home-1-background-ribbon-light: rgba(91, 140, 255, 0.16);
    --home-1-background-ribbon-soft: rgba(91, 140, 255, 0.28);
    --home-1-background-ribbon-mid: rgba(59, 130, 246, 0.42);
    --home-1-background-ribbon-strong: rgba(37, 99, 235, 0.72);
    --home-1-background-ribbon-core: rgba(29, 78, 216, 1);

    --home-1-background-glow-soft: rgba(59, 130, 246, 0.16);
    --home-1-background-glow-strong: rgba(37, 99, 235, 0.30);
}

/* =========================================================
   RESET / GLOBAL
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        linear-gradient(90deg,
            var(--home-1-background-base-dark) 0%,
            #030814 34%,
            var(--home-1-background-base-navy) 72%,
            var(--home-1-background-base-blue) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(92%, var(--container-width));
    margin: 0 auto;
}

/* =========================================================
   DECORATIVE GLOWS
   ========================================================= */

.bg-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    top: 70px;
    left: -80px;
    background: var(--accent-primary);
}

.bg-glow-2 {
    bottom: 40px;
    right: -80px;
    background: var(--accent-secondary);
}

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */

.eyebrow {
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-heading {
    max-width: 1200px;
    margin: 0 auto 10px;
}

.center {
    text-align: center;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--text-secondary);
}

.section-heading span {
    display: block;
    color: var(--text-secondary);
}

.bolder {
    color: var(--accent-primary) !important;
    font-weight: 600;
}

/* =========================================================
   REUSABLE UI
   ========================================================= */

.section {
    padding: 90px 0;
}

.glass-backdrop {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
}

/* =========================================================
   BUTTONS
   ---------------------------------------------------------
   .btn          → base class, required on every button
   .btn-primary  → spinning arc border (use on CTAs)
   .btn-secondary → static bottom glow border (use on secondary actions)

   Works on both <button> and <a> elements as long as
   .btn is present. For <a> tags, display:inline-flex is
   what enables the @property animation to work correctly.
   ========================================================= */

@property --btn-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes btn-border-spin {
    from {
        --btn-angle: 0deg;
    }

    to {
        --btn-angle: 360deg;
    }
}

/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.97rem;
    cursor: pointer;
    border: none;
    color: var(--text-primary);
    background: rgba(10, 16, 34, 0.92);
    transition: background var(--transition-fast), transform var(--transition-fast);
    isolation: isolate;
    z-index: 0;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Border layer - sits 1.5px outside the button on all sides */
.btn::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: 15.5px;
    z-index: -1;
    background: transparent;
}

/* Inner fill - covers interior so only the 1.5px rim of ::before shows */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(10, 16, 34, 0.92);
    z-index: -1;
}

/* ---------------------------------------------------------
   PRIMARY - spinning arc
   --------------------------------------------------------- */
.btn-primary::before {
    background: conic-gradient(from var(--btn-angle, 0deg),
            transparent 0deg,
            transparent 200deg,
            rgba(180, 210, 255, 0.55) 240deg,
            rgba(255, 255, 255, 0.95) 270deg,
            rgba(180, 210, 255, 0.55) 300deg,
            transparent 330deg,
            transparent 360deg);
    animation: btn-border-spin 2.8s linear infinite;
}

.btn-primary:hover {
    box-shadow: 0 0 28px rgba(91, 140, 255, 0.30);
}

/* ---------------------------------------------------------
   SECONDARY - static bottom glow
   --------------------------------------------------------- */
.btn-secondary::before {
    background: linear-gradient(to right,
            transparent 0%,
            rgba(130, 180, 255, 0.55) 30%,
            rgba(255, 255, 255, 0.85) 50%,
            rgba(130, 180, 255, 0.55) 70%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to top, white 0%, white 18%, transparent 42%);
    mask-image: linear-gradient(to top, white 0%, white 18%, transparent 42%);
}

.btn-secondary:hover::before {
    -webkit-mask-image: linear-gradient(to top, white 0%, white 24%, transparent 50%);
    mask-image: linear-gradient(to top, white 0%, white 24%, transparent 50%);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    /* background: rgba(6, 12, 24, 0.72); */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.06); */
}

.navbar-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.navbar-logo-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.navbar-options {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-options a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.navbar-options a:hover {
    color: var(--text-primary);
}

.navbar-option-register {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--surface-border);
    color: var(--text-primary) !important;
}

.navbar-mobile-options-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.navbar-mobile-options {
    display: none;
    flex-direction: column;
    padding: 0 4% 20px;
    gap: 14px;
    background: rgba(6, 12, 24, 0.95);
}

.navbar-mobile-option-register {
    text-align: center;
}

/* =========================================================
   NAVBAR BUTTON EFFECTS
   ---------------------------------------------------------
   Register keeps a moving rim.
   Portal gets a static bottom glow like btn-secondary.
   ========================================================= */

@property --navbar-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes navbar-border-spin {
    from {
        --navbar-border-angle: 0deg;
    }

    to {
        --navbar-border-angle: 360deg;
    }
}

/* Shared navbar pill base */
.navbar-animated-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    z-index: 0;
    overflow: hidden;
}

/* =========================================================
   REGISTER
   Moving border, slightly smaller, thicker rim
   ========================================================= */
.navbar-option-register.navbar-animated-link {
    padding: 8px 15px;
    /* smaller than before */
    border-radius: 999px;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar-option-register.navbar-animated-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.6px;
    /* thicker border */
    background: conic-gradient(from var(--navbar-border-angle),
            transparent 0deg,
            transparent 220deg,
            rgba(150, 190, 255, 0.22) 248deg,
            rgba(255, 255, 255, 0.95) 270deg,
            rgba(150, 190, 255, 0.22) 292deg,
            transparent 320deg,
            transparent 360deg);
    animation: navbar-border-spin 3.4s linear infinite;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: -1;
}

.navbar-option-register.navbar-animated-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary) !important;
}

/* =========================================================
   PAGE HERO
   ========================================================= */

.page-hero {
    padding: 90px 0 20px;
}

.small-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 12px;
}

.small-hero p {
    color: var(--text-secondary);
    max-width: 720px;
}

/* =========================================================
   FORM
   ========================================================= */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-field label {
    font-weight: 600;
    color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: var(--transition-fast);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.14);
}

/* =========================================================
   FOOTER - FULL REDESIGN
   ---------------------------------------------------------
   Replaces the old .footer / .footer-container / .footer-links
   rules that were in style.css.

   Structure:
     .footer                  - outer wrapper
       .footer-main           - 4-column grid
         .footer-brand        - col 1: logo / tagline / badge
         .footer-col          - col 2–4: nav / contact / social
           .footer-col-heading
           .footer-col-links
           .footer-contact-item
           .footer-social-*
       .footer-divider        - full-width separator line
       .footer-bottom         - copyright bar

   PREFIX RULE: all classes here start with "footer-"
   ========================================================= */

/* ---------------------------------------------------------
   FOOTER - OUTER WRAPPER
   Top border and generous top padding separate it from
   the last page section. Slightly different background
   tint vs the body to define the footer zone.
   --------------------------------------------------------- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 64px 0 0;
    /* Slightly darker overlay to ground the footer */
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(3, 7, 18, 0.40) 100%);
    position: relative;
}

/* Subtle top glow line - accent rim at the very top */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(60%, 720px);
    height: 1px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--accent-secondary) 30%,
            var(--accent-primary) 50%,
            var(--accent-secondary) 70%,
            transparent 100%);
}

/* ---------------------------------------------------------
   FOOTER - MAIN GRID
   4 equal-width columns on desktop.
   Col 1 (brand) gets slightly more weight.
   --------------------------------------------------------- */
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
    gap: 48px 40px;
    padding-bottom: 48px;
}

/* ---------------------------------------------------------
   COL 1 - BRAND
   --------------------------------------------------------- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Event name - large, Space Grotesk, gradient shimmer */
.footer-brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* The '26 year tag - accented */
.footer-brand-year {
    color: var(--accent-primary);
}

/* Tagline paragraph */
.footer-brand-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 280px;
}

/* "Organised by GDGoC IBA" badge */
.footer-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: fit-content;
}

.footer-brand-badge-icon {
    color: var(--accent-primary);
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   COL 2–4 - GENERIC COLUMN
   --------------------------------------------------------- */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Column heading - small caps label */
.footer-col-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-tertiary);
    margin-bottom: 18px;
}

/* Link list - no bullets, tight spacing */
.footer-col-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Default text links (nav column) */
.footer-col-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    display: inline-block;
}

.footer-col-links a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

/* ---------------------------------------------------------
   COL 3 - CONTACT ITEMS
   Each item is icon + label + email address stacked.
   --------------------------------------------------------- */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary) !important;
    /* Override the default footer link padding-left hover */
    padding-left: 0 !important;
    transition: color var(--transition-fast) !important;
}

.footer-contact-item:hover {
    color: var(--text-primary) !important;
    padding-left: 0 !important;
}

/* The circular icon badge */
.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.82rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    /* Slight lift on hover inherited from parent */
    transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-contact-item:hover .footer-contact-icon {
    background: rgba(91, 140, 255, 0.15);
    color: var(--accent-tertiary);
}

/* Text stack inside the contact link */
.footer-contact-item>span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* "General" / "Partnerships" label above the email */
.footer-contact-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

/* The actual email address */
.footer-contact-email {
    font-size: 0.82rem;
    word-break: break-all;
    color: inherit;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   COL 4 - SOCIAL ICON BUTTONS
   Small circular icon buttons with per-platform brand
   colours on hover.
   --------------------------------------------------------- */
.footer-social-sublabel {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

/* Row of icon buttons */
.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Base icon button */
.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.footer-social-btn:hover {
    transform: translateY(-3px);
}

/* Per-platform hover colours */
.footer-social-instagram:hover {
    background: rgba(225, 48, 108, 0.18);
    border-color: rgba(225, 48, 108, 0.35);
    color: #e1306c;
    box-shadow: 0 4px 18px rgba(225, 48, 108, 0.20);
}

.footer-social-linkedin:hover {
    background: rgba(0, 119, 181, 0.18);
    border-color: rgba(0, 119, 181, 0.35);
    color: #0a66c2;
    box-shadow: 0 4px 18px rgba(0, 119, 181, 0.20);
}

.footer-social-discord:hover {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.35);
    color: #5865f2;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.20);
}

.footer-social-youtube:hover {
    background: rgba(255, 0, 0, 0.16);
    border-color: rgba(255, 0, 0, 0.30);
    color: #ff0000;
    box-shadow: 0 4px 18px rgba(255, 0, 0, 0.16);
}

.footer-social-facebook:hover {
    background: rgba(24, 119, 242, 0.16);
    border-color: rgba(24, 119, 242, 0.30);
    color: #1877f2;
    box-shadow: 0 4px 18px rgba(24, 119, 242, 0.16);
}

.footer-social-gdg:hover {
    background: rgba(66, 133, 244, 0.16);
    border-color: rgba(66, 133, 244, 0.30);
    color: #4285f4;
    box-shadow: 0 4px 18px rgba(66, 133, 244, 0.16);
}

/* ---------------------------------------------------------
   DIVIDER
   Full-width separator between the grid and the bottom bar
   --------------------------------------------------------- */
.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------
   BOTTOM BAR
   Copyright on the left, love note on the right.
   --------------------------------------------------------- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 28px;
    flex-wrap: wrap;
}

.footer-bottom-copy,
.footer-bottom-right {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Inline link inside the copyright line */
.footer-bottom-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.20);
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--text-primary);
}

/* The little heart icon */
.footer-heart {
    color: #ef4444;
    font-size: 0.75rem;
    animation: footer-heartbeat 1.6s ease-in-out infinite;
}

@keyframes footer-heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.25);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    56% {
        transform: scale(1);
    }
}

/* ---------------------------------------------------------
   FOOTER RESPONSIVE
   --------------------------------------------------------- */

/* 2-column layout on medium screens */
@media (max-width: 1020px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
}

/* Stack to 1 column on mobile */
@media (max-width: 600px) {
    .footer {
        padding-top: 48px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand-tagline {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================================
   REVEAL ANIMATION INITIAL STATE
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {
    .navbar-options {
        display: none;
    }

    .navbar-mobile-options-toggle {
        display: block;
    }

    .navbar-mobile-options.active {
        display: flex;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }
}