:root {
    --primary: #8b5cf6;
    --primary-bright: #a78bfa;
    --secondary: #ec4899;
    --accent: #10b981;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(139, 92, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
}

/* Luxury Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #020617 100%);
    overflow: hidden;
}

.stars-container::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 30% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50% 60%, #fff, transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(139, 92, 246, 0.4), transparent),
        radial-gradient(1px 1px at 90% 10%, #fff, transparent);
    background-size: 300px 300px;
    opacity: 0.4;
    animation: stars-drift 120s linear infinite;
}

@keyframes stars-drift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

.lux-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(80% 50% at 50% -10%, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation 2025 */
.glass-nav {
    position: relative;
    z-index: 1000;
    width: max-content;
    max-width: 95%;
    margin: 2rem auto 1rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Header Design 2025 */
header {
    padding: 2rem 1rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title-container {
    display: inline-block;
    position: relative;
}

.glitch {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-wrap: normal;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
    width: 100%;
    display: block;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.subtitle {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--secondary);
    margin-top: 1.5rem;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Main Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    position: relative;
    z-index: 1;
}

/* Slideshow - Ultra Sleek */
#gallery {
    margin-bottom: 4rem;
    position: relative;
}

.swiper {
    width: 100%;
    height: 80vh;
    /* Increased height for better visibility */
    min-height: 500px;
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    background: #000;
    /* Pitch black background */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slide-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5);
    transform: scale(1.1);
    /* Prevent white edges from blur */
    z-index: 1;
}

.swiper-slide img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* ALWAYS shows the ENTIRE picture */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
    /* Subtle glow on image */
}

.swiper-slide:hover img {
    transform: scale(1.02);
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
}

.single-column {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.glitch.small {
    font-size: clamp(2rem, 6vw, 4rem);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--glass-glow);
    transform: translateY(-5px);
}

h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Polls 2025 Style */
.poll-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.poll-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.poll-header h3 {
    margin-bottom: 0;
}

.delete-poll-btn {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-family: 'Unbounded', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-poll-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

/* Custom Delete Modal */
.modal-content.warning {
    border-top: 4px solid #ef4444;
    max-width: 400px;
    text-align: center;
}

.modal-content.warning h3 {
    color: #ef4444;
    margin-bottom: 1rem;
    font-family: 'Unbounded', sans-serif;
}

.modal-content.warning p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.warning-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.poll-option {
    margin: 1.5rem 0;
    cursor: pointer;
    position: relative;
}

.poll-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.poll-bar-wrapper {
    background: rgba(255, 255, 255, 0.05);
    height: 14px;
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.poll-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.poll-option.voted .poll-bar-wrapper {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.poll-option.voted .poll-info span:first-child {
    color: var(--primary-bright);
    font-weight: 700;
}

.poll-option.voted .poll-info span:first-child::before {
    content: "✓ ";
}

.voter-names {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.8;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-bright);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Buttons - High Contrast Luxury */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    /* Slightly less round for a more structured look */
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 16px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Outfit';
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-ghost:hover {
    color: #fff;
}

.poll-actions .btn-primary,
.upload-form .btn-primary {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* File Upload - Modern Drag & Drop Aesthetic */
.file-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

/* Hide the ugly native button completely */
#file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.file-label:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    transform: scale(1.01);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.file-label .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--primary));
    opacity: 0.8;
}

.file-label .text {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.file-label .hint {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Modal - Glass Focus */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
}

.modal-content input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    padding: 1.25rem;
    font-family: 'Outfit';
    font-size: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

footer {
    padding: 5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .swiper {
        height: 60vh;
    }

    .container {
        padding: 0 1.5rem 4rem;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        width: 90%;
        margin: 1rem auto;
        padding: 0.5rem 1rem;
        border-radius: 50px;
    }

    .nav-container {
        gap: 1rem;
    }

    .nav-logo {
        font-size: 0.75rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    header {
        padding: 2rem 1rem 1.5rem !important;
    }

    .glitch {
        font-size: clamp(1.2rem, 6vw, 2rem);
        line-height: 1.1;
        padding: 0 0.5rem;
    }

    .subtitle {
        font-size: 0.45rem;
        letter-spacing: 0.15em;
    }

    .swiper {
        height: 50vh;
        border-radius: 24px;
    }

    .glass-card {
        padding: 1.5rem;
        border-radius: 24px;
    }

    .modal {
        align-items: flex-start;
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        margin-top: 2rem;
    }

    .modal-content h3 {
        margin-bottom: 0.75rem;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    footer {
        padding: 3rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .glass-nav {
        position: relative !important;
        margin: 2rem auto 2.5rem !important;
        width: 95% !important;
        border-radius: 20px;
        padding: 1.25rem !important;
        max-width: none;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    header {
        padding: 1rem 0.25rem 1rem !important;
    }

    .glitch {
        font-size: clamp(0.8rem, 5vw, 1.2rem);
    }

    .glitch.small {
        font-size: clamp(0.7rem, 4.5vw, 1rem);
        white-space: nowrap;
    }

    .container {
        padding: 0 1rem 3rem;
        width: 100%;
        overflow-x: hidden;
    }

    .poll-actions .btn-primary,
    .upload-form .btn-primary {
        min-width: 0;
        width: 100%;
    }

    .modal-content {
        padding: 1rem 0.75rem;
        max-height: 85vh;
    }

    .modal-content h3 {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.8s ease forwards;
}

/* Announcements Style */
.announcement-card {
    padding: 1.25rem 2rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease forwards;
}

.announcement-card.info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.announcement-card.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.announcement-card.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.announcement-card.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.announcement-content {
    flex: 1;
    font-weight: 500;
}

.announcement-admin-actions {
    display: flex;
    gap: 0.5rem;
}

.announcement-btn {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-family: 'Unbounded', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.announcement-btn.edit:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
}

.announcement-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

@media (max-width: 768px) {
    .announcement-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}