@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #f26522;
    /* Sacred Saffron */
    --primary-light: #ff7e42;
    /* Lighter Saffron */
    --primary-dim: rgba(242, 101, 34, 0.12);
    --bg-dark: #050403;
    /* Deep Earthy Black */
    --bg-card: #0c0a09;
    --text-main: #f8f1e9;
    /* Cream White */
    --text-muted: #8d8076;
    --glass: rgba(255, 255, 255, 0.01);
    --glass-border: rgba(242, 101, 34, 0.15);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 65px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Global Input & Form Styles */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px var(--primary-dim);
}

/* Fix for white-on-white dropdowns in dark mode */
select option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.04em;
    font-weight: 900;
}

/* Background & Overlays */
.bg-scroller,
.bg-overlay,
.bg-grain {
    pointer-events: none;
    user-select: none;
}

.bg-scroller {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease-out;
    filter: brightness(0.3) saturate(0.4);
    transform: scale(1.1);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Icon Buttons */
.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-dim);
}

.btn-icon-danger:hover {
    background: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
    z-index: -2;
}

.bg-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.08;
    z-index: -1;
}

/* Header */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
    position: relative;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    text-transform: uppercase;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 4rem;
}

nav ul a {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-decoration: none;
}

nav ul a.active,
nav ul a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
}

.hero h1 {
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.85;
    margin-bottom: 2rem;
    text-transform: uppercase;
    mix-blend-mode: overlay;
    /* Very high-end effect */
}

.hero .hero-accent {
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Marquee */
.marquee-container {
    background: var(--primary);
    padding: 1.5rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    transform: rotate(-1deg);
    margin-top: -5vh;
    margin-bottom: 10vh;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: black;
    padding-right: 4rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sections */
section {
    padding: 10rem 0;
}

.section-title {
    font-size: 5rem;
    margin-bottom: 4rem;
    line-height: 1;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 8rem;
}

.stat-item {
    border-left: 2px solid var(--primary);
    padding-left: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Cards Refinement */
.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.event-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-card);
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover .event-overlay {
    opacity: 1;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Card & Box Styles */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    transition: var(--transition);
}

.animate-up {
    animation: animateUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes animateUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 1.2rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: white;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Success Messages */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.toast-success {
    background: #2ecc71;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.4);
    font-weight: 700;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

/* Custom Cursor Styles */
.custom-cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    border-radius: 50%;
    transition: transform 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor {
    width: 8px;
    height: 8px;
    background: white;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

.cursor-follower.active {
    transform: scale(1.5);
    background: rgba(242, 101, 34, 0.2);
    border-color: var(--primary);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .event-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 12vw, 8rem);
    }

    .section-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    nav ul a {
        font-size: 1.5rem;
    }

    .hero {
        text-align: center;
        padding-top: 5rem;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-slide {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .horiz-scroll {
        gap: 1rem;
    }

    .container {
        padding: 0 2rem;
    }

    .custom-cursor,
    .cursor-follower {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 6rem 0;
    }

    /* Admin Mobile Adjustments */
    .glass-card {
        padding: 2rem 1.2rem !important;
        width: 100%;
        max-width: 100%;
    }

    main.container {
        padding-top: 8rem !important;
    }

    .event-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Admin Table Mobile Optimization (Ultra-Compact Tabular) */
    .glass-card {
        padding: 1rem 0.6rem !important;
        margin-left: -1.2rem;
        margin-right: -1.2rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .glass-card table th,
    .glass-card table td {
        padding: 1rem 0.2rem !important;
        font-size: 0.82rem;
    }

    .glass-card td:last-child {
        display: table-cell;
        text-align: right;
        padding-right: 0.2rem !important;
    }

    .admin-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Social Link Alignment & Mobile Fix */
    .social-link-node {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.2rem !important;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .social-link-node .platform-info {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 0;
        flex: 1;
    }

    .social-link-node .platform-info div {
        min-width: 0;
    }

    .social-link-node .url-text {
        font-size: 0.75rem;
        opacity: 0.6;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .social-link-node .delete-link {
        color: var(--text-muted);
        transition: var(--transition);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1.2rem;
    }

    /* Admin Page Header */
    .admin-page-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 4rem;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .admin-page-header h2 {
        font-size: 3.5rem;
        line-height: 1;
    }

    .admin-actions {
        display: flex;
        gap: 1rem;
    }

    @media (max-width: 600px) {
        .admin-page-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 2.5rem;
        }

        .admin-page-header h2 {
            font-size: 2.5rem !important;
        }

        .admin-actions {
            width: 100%;
        }

        .admin-actions .btn {
            flex: 1;
            padding: 0.8rem 1rem;
            font-size: 0.85rem;
        }
    }
}

/* Footer & Social Icons */
footer {
    padding: 8rem 0 5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-dim);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.6;
}