:root {
    --primary-bg: #050D1D;
    --text-color: #ffffff;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
}

html {
    scroll-behavior: smooth;
}

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

body {
    /* Global sans-serif font family */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

/* Subtle overlay to ensure text readability while maintaining the clean, metallic feel focused on blue light */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(5, 13, 29, 0.85) 0%,
        rgba(5, 13, 29, 0.4) 50%,
        rgba(5, 13, 29, 0.75) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    gap: 60px;
    padding-top: 80px; /* Offset for navbar */
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.hero-logo img {
    width: 100%;
    max-width: 450px;
}

.glowing-tech-logo {
    mix-blend-mode: screen !important;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: pulseNeonGlow 3s ease-in-out infinite;
}

@keyframes pulseNeonGlow {
    0% { filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.4)); opacity: 0.9; }
    50% { filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.8)); opacity: 1; }
    100% { filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.4)); opacity: 0.9; }
}

.contact-logo-spin {
    mix-blend-mode: screen !important;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: spinTechLogo 8s linear infinite, logoPulseGlow 3s ease-in-out infinite;
}

@keyframes spinTechLogo {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes logoPulseGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.4)); opacity: 0.85; }
    50% { filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.8)); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #e2e8f0;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 10px;
    /* Metallic blue/white gradient for text */
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(147, 197, 253, 0.3);
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

.cta-button {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 16px 48px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.cta-button:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    transform: translateY(-3px);
}

/* Navbar Styles */
.navbar {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 24px 40px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* subtle separation */
    display: flex;
    justify-content: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 10px;
    z-index: 101;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.nav-links li {
    flex: 1;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #93c5fd;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.5);
}

.nav-links a.active {
    font-weight: 600; /* slightly bolder for active page */
    color: #ffffff;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 40px;
        top: 24px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(5, 13, 29, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s ease-in-out;
        padding-top: 80px;
        padding-bottom: 40px;
        justify-content: center;
        align-items: center;
        gap: 16px;
        backdrop-filter: blur(15px);
        z-index: 100;
        overflow-y: auto;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        flex: none;
    }

    .nav-links a {
        font-size: 1.4rem;
        display: block;
        padding: 10px 20px;
        line-height: 1.4;
    }
}

/* Announcements Section */
.announcements {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 100px 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 50px;
    text-align: left;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.card {
    background-color: rgba(30, 58, 138, 0.15); /* Slightly lighter navy blue, semi-transparent */
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(59, 130, 246, 0.25); /* Soft border */
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.05); /* Soft inner glow */
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.card-image-placeholder {
    width: 100%;
    height: 280px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.card-link {
    text-align: right;
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    align-self: flex-end; /* right-aligned */
    margin-top: auto;
}

.card-link:hover {
    color: #ffffff;
}

/* Event Detail Section */
.event-detail {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 100px 40px;
}

.event-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-info h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.event-info p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 36px;
    max-width: 600px;
}

.event-info .event-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: #93c5fd;
    text-align: center;
    padding: 14px 30px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.event-poster {
    flex: 1;
    display: flex;
    justify-content: center;
}

.poster-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3 / 4;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.event-poster-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .event-container, .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .event-info h2 {
        font-size: 2.5rem;
    }
}

/* Hakkimizda Page Styles */
.about-section {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 100px 40px;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2, .mission-vision-container h2, .team-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0;
    line-height: 1.8;
}

.mission-vision {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 100px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-vision-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-vision-container p {
    font-size: 1.35rem;
    font-weight: 300;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
}

.team-section {
    width: 100%;
    background-color: var(--primary-bg);
    padding: 100px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-heading {
    text-align: center;
    margin-bottom: 60px;
}

.team-cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team-cards-row {
    display: flex;
    gap: 30px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: scale(1.02);
}

.team-card.row-full {
    width: 100%;
    text-align: center;
}

.team-card.row-half {
    flex: 1;
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.team-card p, .team-card li {
    font-size: 1.15rem;
    font-weight: 300;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 10px;
}

.team-card ul {
    list-style-type: none;
    padding: 0;
}

.team-card strong {
    font-weight: 600;
    color: #ffffff;
}

.team-flex-3col {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.team-flex-col {
    flex: 1;
}

.team-flex-col h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.team-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 1.15rem;
    color: #cbd5e1;
    font-weight: 300;
}

/* Member Grid & Card styles */
.team-group {
    margin-bottom: 50px;
    width: 100%;
}

.team-group-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    border-left: 4px solid #3b82f6;
    padding-left: 15px;
    text-align: left;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.member-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.member-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: #93c5fd;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.member-card:hover .member-avatar {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.member-avatar svg {
    width: 32px;
    height: 32px;
}

.member-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.member-role {
    font-size: 0.9rem;
    color: #93c5fd;
    font-weight: 400;
}

.team-group-footer {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #cbd5e1;
    border-left: 3px solid #64748b;
    text-align: left;
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .team-cards-row {
        flex-direction: column;
    }
    .team-flex-3col {
        flex-direction: column;
        text-align: center;
    }
}

/* Sponsorlarimiz Page Styles */
.sponsor-card {
    background-color: white;
    width: 300px;
    height: 160px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sponsor-card:hover {
    transform: scale(1.05);
}

.avukatapp-logo {
    transform: scale(1.4);
    transform-origin: center center;
}

.uyelik-butonu {
    display: inline-block;
    align-self: center;
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 14px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px var(--accent-glow);
    margin: 10px 0;
}

.uyelik-butonu:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    transform: translateY(-3px);
}

/* Splash Screen Intro */
#intro-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

#intro-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#skip-intro {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10000;
}

#skip-intro:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Event Vertical Layout Classes */
.event-card-vertical {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.event-image-container {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.event-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.event-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.event-image-grid img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.event-title-badge {
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px 30px;
    display: inline-block;
    margin-bottom: 20px;
}

.event-title-badge h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.event-text-content {
    text-align: center;
    width: 100%;
}

.event-text-content p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0;
    line-height: 1.8;
    margin: 0 auto 20px auto;
}

.event-text-content p:last-child {
    margin-bottom: 0;
}

/* Custom 4-Photo Gallery */
.event-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 800px;
    margin: 20px auto 0;
    width: 100%;
}

.event-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.event-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* --- Comprehensive Mobile Optimization --- */
@media (max-width: 768px) {
    /* 1. Comfortable Horizontal Padding */
    .hero-container,
    .navbar,
    .announcements,
    .event-detail,
    .about-section,
    .mission-vision,
    .team-section,
    .events-content,
    .contact-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 2. Image Constraints to Prevent Horizontal Scroll */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 3. Typography Scaling for Mobile */
    body {
        font-size: 16px !important;
    }
    .hero-content h1, .contact-right h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    .hero-content h2, .section-title, .event-info h2, .about-content h2, .mission-vision-container h2, .team-heading, .event-title-badge h2 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    .hero-content h3, .team-card h3 {
        font-size: 1.4rem !important;
    }
    p, .team-card p, .team-card li, .event-text-content p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }

    /* 4. Collapse Multi-column Layouts */
    .cards-grid,
    .team-cards-row,
    .team-flex-3col,
    .event-image-grid,
    .event-gallery,
    .members-grid,
    .qr-social-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .team-card.row-half {
        width: 100% !important;
    }

    /* 5. Minimum Touch Targets (44px) */
    button, .cta-button, .uyelik-butonu, .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
    }

    .social-links {
        gap: 15px !important;
        width: 100%;
    }

    /* Specific Component Adjustments */
    .sponsor-card:not(.sponsor-track .sponsor-card) {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .event-title-badge {
        padding: 10px 20px;
    }
    
    .hero-logo img {
        max-width: 300px !important;
    }
}

/* --- Dropdown Menu Styles --- */
.dropdown {
    position: relative;
}

.dropdown-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    margin-left: 6px;
    vertical-align: middle;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(5, 13, 29, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 250px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0 8px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #e2e8f0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(147, 197, 253, 0.5);
}

/* Desktop Hover Interaction */
@media (min-width: 993px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Mobile Dropdown Styling */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        backdrop-filter: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        text-align: center;
        padding: 0;
    }

    .dropdown-menu a {
        font-size: 1.15rem !important;
        padding: 12px 20px !important;
        text-align: center;
        border-radius: 0;
        margin: 0;
        background: transparent !important;
        color: #cbd5e1;
    }
    
    .dropdown-menu a:hover {
        color: #ffffff;
    }
    
    .dropdown.open .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}

/* --- Sponsor Marquee Styles --- */
.sponsor-slider {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

/* Add premium gradient overlays at the sides */
.sponsor-slider::before,
.sponsor-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.sponsor-slider::before {
    left: 0;
    background: linear-gradient(to right, #050D1D 10%, transparent 100%);
}

.sponsor-slider::after {
    right: 0;
    background: linear-gradient(to left, #050D1D 10%, transparent 100%);
}

.sponsor-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollRight 20s linear infinite;
}

.sponsor-slider:hover .sponsor-track {
    animation-play-state: paused;
}

.sponsor-track .sponsor-card {
    flex-shrink: 0;
    width: 300px !important;
    height: 160px;
    margin: 0 !important;
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* --- Event Card Grid Layout --- */
.events-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .events-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid-container {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Event Cards */
.event-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.event-card-cover-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.event-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-cover {
    transform: scale(1.05);
}

.event-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-date {
    font-size: 0.85rem;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.event-card-btn {
    margin-top: auto;
    background: none;
    border: none;
    color: #93c5fd;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.event-card-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(147, 197, 253, 0.6);
}

/* --- Modal System Styles --- */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.event-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 13, 29, 0.85);
    backdrop-filter: blur(8px);
}

.modal-window {
    position: relative;
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    background: #091326;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 40px;
    overflow-y: auto;
    z-index: 10000;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.event-modal.open .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.modal-event-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-right: 30px;
}

.modal-event-date {
    display: inline-block;
    font-size: 0.95rem;
    color: #93c5fd;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.modal-event-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 35px;
}

.modal-event-description p {
    margin-bottom: 15px;
}

.modal-event-description p:last-child {
    margin-bottom: 0;
}

/* Modal Gallery Adjustments */
.modal-window .event-image-grid,
.modal-window .event-gallery {
    margin-top: 25px;
    width: 100%;
}

@media (max-width: 768px) {
    .modal-window {
        padding: 30px 20px 20px 20px;
        max-height: 90vh;
    }
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

/* --- Homepage Background and Particle Container Styles --- */
body.home-page {
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
