/* Font Face Declarations */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../assets/fonts/Inter-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/Inter-Bold.woff2') format('woff2');
}

/* Monospace Font Face Declarations */
@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/RobotoMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/RobotoMono-Regular.woff2') format('woff2');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-dark) url('../assets/images/background.jpg') center center / cover no-repeat fixed;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Optional: Add overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 42, 0.6);
    /* Semi-transparent overlay */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 480px) {
    p {
        font-size: 1.12rem;
        font-weight: 500;
        line-height: 1.7;
        letter-spacing: 0.01em;
    }
}

/* Color Palette - Updated for new background */
:root {
    --header-height: 77px;
    /* Header height for scroll offset */
    --animation-translate: 30px;
    /* Animation translation distance for fade-in effect */
    --primary-color: #2a2d3a;
    /* Deep Blue-Anthracite */
    --primary-dark: #1a1d2a;
    /* Darker Deep Blue */
    --secondary-color: #3d2a5c;
    /* Deep Violet */
    --accent-color: #00d4ff;
    /* Neon Blue/Turquoise */
    --accent-secondary: #ff0080;
    /* Neon Magenta */
    --accent-tertiary: #00ffcc;
    /* Bright Turquoise */
    --text-dark: #f0f2f5;
    /* Light text for dark theme */
    --text-medium: #c0c5d0;
    /* Medium light text with blue tint */
    --text-light: #9ca3af;
    /* Lighter text */
    --background-light: #252836;
    /* Dark background alternative with blue tint */
    --surface-primary: #1e2030;
    /* Primary surface/card background with blue tint */
    --surface-secondary: #2d1b3d;
    /* Violet-tinted surface */
    --border-color: #404a5c;
    /* Dark borders with blue tint */
    --glow-neon: 0 0 20px rgba(0, 212, 255, 0.3);
    /* Neon glow effect */
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-neon: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
}

/* Link Styling - Updated for neon theme */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent-tertiary);
    opacity: 0.9;
    text-shadow: var(--glow-neon);
}

a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: var(--glow-neon);
}

/* Content area links - neon glow effects */
.schedule-location a,
.contact-item a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.3s ease;
}

.schedule-location a:hover,
.contact-item a:hover {
    color: var(--accent-tertiary);
    text-decoration-color: currentColor;
    text-shadow: var(--glow-neon);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Header */
.header {
    background: rgba(30, 32, 48, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-family: 'Roboto Mono', 'Courier New', 'Monaco', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow:
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color),
        0 0 15px var(--accent-color),
        0 0 20px var(--accent-color);
    transition: text-shadow 0.3s ease;
}

.logo-main:hover {
    text-shadow:
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color),
        0 0 15px var(--accent-color),
        0 0 25px var(--accent-color),
        0 0 35px var(--accent-color);
}

.logo-sub {
    font-family: 'Roboto Mono', 'Courier New', 'Monaco', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-secondary);
    margin: 0;
    margin-top: -2px;
    text-shadow:
        0 0 5px var(--accent-secondary),
        0 0 10px var(--accent-secondary),
        0 0 15px var(--accent-secondary),
        0 0 20px var(--accent-secondary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 120px 0 80px;
    margin-top: var(--header-height);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-neon);
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: var(--glow-neon);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.5);
    color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: inset 0 0 0 0 var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
    box-shadow: var(--glow-neon);
    transform: translateY(-2px);
}

.hero-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-photo:hover {
    transform: scale(1.02);
}

.hero-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-attribution {
    position: absolute;
    bottom: 8px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Sections */
.section {
    padding: 80px 0;
    scroll-margin-top: var(--header-height);
    /* Offset for fixed header */
}

/* Apply scroll offset to all anchor targets */
#about, #activities, #schedule, #contact {
    scroll-margin-top: var(--header-height);
}

.section-alt {
    background: var(--background-light);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--surface-primary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 212, 255, 0.05) 0%,
            rgba(255, 0, 128, 0.05) 50%,
            rgba(0, 255, 204, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent-color);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card>* {
    position: relative;
    z-index: 1;
}

.about-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.about-card:hover .about-icon img {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    transform: scale(1.1);
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-medium);
}

/* Activities Section */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-item {
    background: var(--surface-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item:hover, .activity-item:focus-visible {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.12), 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-4px) scale(1.025);
}

.activity-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.12), 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-4px) scale(1.025);
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 255, 204, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.activity-item:hover::before, .activity-item:focus-visible::before {
    opacity: 1;
}

.activity-item.active::before {
    opacity: 1;
}

/* Disable hover effects on touch devices to prevent sticky states */
@media (hover: none) {
    .activity-item:hover, .activity-item:focus-visible {
        border-color: var(--border-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transform: none;
    }

    .activity-item:hover::before, .activity-item:focus-visible::before {
        opacity: 0;
    }
}

.activity-item > * {
    position: relative;
    z-index: 1;
}

.activity-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.activity-item p {
    color: var(--text-medium);
}

/* Schedule Section */
.schedule-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.schedule-card {
    background: var(--surface-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 2rem;
    border: 1px solid var(--border-color);
}

.schedule-date {
    background: var(--gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.date-detail {
    font-size: 0.9rem;
    opacity: 0.9;
}

.schedule-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.schedule-time,
.schedule-location {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.schedule-description {
    color: var(--text-medium);
    margin-top: 1rem;
}

.schedule-upcoming {
    background: var(--surface-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.schedule-upcoming h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.upcoming-dates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upcoming-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
}

.upcoming-date strong {
    color: var(--text-dark);
}

.upcoming-date span {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-medium);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-main h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-main p,
.footer-info p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav {
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .about-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .schedule-content {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-primary);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: var(--text-dark);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.contact-info {
    background: var(--background-light);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1.5rem;
}

.placeholder-note {
    background: rgba(250, 217, 30, 0.1);
    border: 2px solid var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: var(--accent-color) !important;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-legal-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--accent-color);
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

.privacy-link {
    color: var(--accent-color);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Legal pages responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 20px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(var(--animation-translate));
    }

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

/* Hide elements that will be animated until they get the fade-in-up class */
.about-card:not(.fade-in-up),
.activity-item:not(.fade-in-up),
.schedule-card:not(.fade-in-up),
.contact-info:not(.fade-in-up),
.contact-form:not(.fade-in-up) {
    opacity: 0;
    transform: translateY(var(--animation-translate));
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-primary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .nav.mobile-open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}