@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
    --background: #0a0a0b;
    --foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glass effect */
.glass {
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.btn-primary:active {
    transform: scale(0.98);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: white;
}

.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background: var(--background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-link {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 0;
}

.mobile-menu-link.active,
.mobile-menu-link:hover {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

@media (min-width: 769px) {
    .hero-title {
        text-transform: uppercase;
    }
}

.hero-gradient {
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.4),
            transparent);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    color: white;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.card-link svg {
    transition: transform 0.3s ease;
}

.card:hover .card-link svg {
    transform: translateX(4px);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: rgba(255, 255, 255, 0.3);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    min-width: 120px;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.tab.active {
    background: white;
    color: black;
    border-color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 600px) {
    .tabs {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .tab {
        flex: 1 1 auto;
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.25rem);
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
        line-height: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tab:last-child {
        flex: 0 0 auto;
        min-width: auto;
        max-width: none;
        padding: 1rem 2rem;
    }
}

@media (max-width: 400px) {
    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
        min-width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
    }

    .tab:last-child {
        min-width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
    }
}

/* Event Cards */
.event-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .event-card {
        flex-direction: row;
    }
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .event-image {
        width: 300px;
        height: auto;
    }
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-location {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.event-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Forms */
.form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.form-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-card-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 1.75rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
    color: rgba(255, 255, 255, 0.95);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 0 20px rgba(255, 255, 255, 0.03);
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-submit:hover::after {
    opacity: 1;
}

.form-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 1.5rem 0;
}

/* Messages */
.messages {
    position: fixed;
    top: 100px;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.message-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(34, 197, 94);
}

.message-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(239, 68, 68);
}

.message-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: rgb(245, 158, 11);
}

/* Footer */
.footer {
    background: black;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: white;
    color: black;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

/* AOS-like animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos='fade-up'] {
    transform: translateY(30px);
}

[data-aos='fade-left'] {
    transform: translateX(-30px);
}

[data-aos='fade-right'] {
    transform: translateX(30px);
}

[data-aos='zoom-in'] {
    transform: scale(0.9);
}

/* Parallax */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted-foreground);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}

/* Utility */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

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

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Highlight Video */
.highlight-video-container {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform-origin: center;
}

.highlight-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home hero scroll setup */
.home-page .site-header {
    background: transparent;
}

.home-page .site-header.glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.home-page .site-header .navbar-title,
.home-page .site-header .navbar-link,
.home-page .site-header .mobile-menu-btn {
    color: #1b1b1b;
}

.home-page .site-header .navbar-link.active::after {
    background: #1b1b1b;
}

.home-page .site-header .navbar-logo {
    border-color: rgba(0, 0, 0, 0.2);
}

.home-page .site-header.is-dark .navbar-logo {
    border-color: rgba(255, 255, 255, 0.25);
}

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f3efe6;
    color: #1b1b1b;
    perspective: 1200px;
}

.home-video-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #050505;
}

.home-video-hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-video-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-align: center;
    padding: 0 2rem;
}

.home-video-hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: titleReveal 1s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.6s;
}

.home-video-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleReveal 1s ease 1s forwards;
}

.hero-register-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid white;
    transition: background 0.3s ease, color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleReveal 1s ease 1.3s forwards;
}

.hero-register-btn:hover {
    background: transparent;
    color: white;
}

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

@keyframes subtitleReveal {
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.home-video-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, #050505 100%);
    pointer-events: none;
    z-index: 2;
}

.home-video-hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.5s both;
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 3px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 0.9;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 12px);
        opacity: 0;
    }
}

.gallery-scroll-container {
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    background: #050505;
}

@media (max-width: 768px) {
    .gallery-scroll-container {
        width: 160%;
    }
}

.col {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    align-self: flex-start;
    justify-self: flex-start;
}

.col:nth-child(2) {
    align-self: flex-end;
    justify-self: flex-end;
}

.gallery-image {
    width: 100%;
    filter: saturate(0.3);
    padding: 0.5rem;
    transition: filter 0.3s ease-out;
}

.gallery-image:hover {
    z-index: 10;
    filter: saturate(1);
}

.gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
        0 6.7px 5.3px rgba(0, 0, 0, 0.048),
        0 12.5px 10px rgba(0, 0, 0, 0.06),
        0 22.3px 17.9px rgba(0, 0, 0, 0.072),
        0 41.8px 33.4px rgba(0, 0, 0, 0.086),
        0 100px 80px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease-out;
}

.hero-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 6vw;
    overflow: visible;

}

.hero-track::before {
    content: '';
    position: absolute;
    inset: -20% 0;
    z-index: -1;
}

.hero-text {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(2.75rem, 11vw, 9rem);
    will-change: transform;
    opacity: 0;
    transform: translateY(80px);
    color: #f3f0ea;
    text-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.home-hero__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateY(90deg) scale(0.8);
    transform-style: preserve-3d;
    opacity: 0;
    z-index: 6;
    pointer-events: none;
}

.home-hero__logo img {
    width: clamp(90px, 12vw, 160px);
    height: clamp(90px, 12vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    backface-visibility: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.home-after-hero {
    background: #0a0a0b;
}

@media (max-width: 600px) {
    .hero-text {
        font-size: clamp(1.75rem, 9vw, 3rem);
    }

    .hero-track {
        padding: 0 4vw;
    }

    .home-hero__logo img {
        width: 70px;
        height: 70px;
    }

    .gallery-image {
        padding: 0.25rem;
    }
}

@media (max-width: 400px) {
    .hero-text {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .gallery-image {
        padding: 0.2rem;
    }
}

/* About hero scroll setup */
.site-header {
    transition: background-color 0.3s ease, color 0.3s ease,
        backdrop-filter 0.3s ease;
}

.site-header.is-dark {
    background: rgba(10, 10, 11, 0.85);
    color: #f8f8f8;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.is-dark .navbar-title,
.site-header.is-dark .navbar-link,
.site-header.is-dark .mobile-menu-btn {
    color: #f8f8f8;
}

.site-header.is-dark .navbar-link.active::after {
    background: #f8f8f8;
}

.about-page .site-header {
    background: transparent;
}

.about-page .site-header .navbar-title,
.about-page .site-header .navbar-link,
.about-page .site-header .mobile-menu-btn {
    color: #1b1b1b;
}

.about-page .site-header .navbar-link.active::after {
    background: #1b1b1b;
}

.about-page .site-header .navbar-logo {
    border-color: rgba(0, 0, 0, 0.2);
}

.about-page .site-header.is-dark .navbar-logo {
    border-color: rgba(255, 255, 255, 0.25);
}

.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #1b1b1b;
}

.about-hero__paper {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%,
            rgba(255, 255, 255, 0.9),
            rgba(247, 244, 236, 0.9) 50%,
            rgba(233, 227, 214, 0.9) 100%),
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.6),
            rgba(234, 228, 215, 0.9));
    z-index: 0;
}

.about-hero__content {
    position: relative;
    z-index: 1;
    padding: 6rem 1.5rem 4rem;
    width: min(1100px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-welcome {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 14vw, 12rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.25rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.hero-subnav a {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1b1b1b;
    border-bottom: 1px solid rgba(27, 27, 27, 0.4);
    padding-bottom: 0.2rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-subnav a:hover {
    color: #000;
    border-color: rgba(27, 27, 27, 0.8);
}

.about-gallery {
    background: #0a0a0b;
    color: #f8f8f8;
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

.about-section {
    padding-top: 5rem;
}

.about-mission-text {
    max-width: 640px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-row {
        gap: 0.75rem;
    }

    .hero-subnav {
        gap: 1rem;
    }
}

.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.word {
    display: inline-block;
    will-change: transform;
}

.card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.card-image {
    will-change: transform;
}

.mission-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}


.manifesto-link svg {
    will-change: transform;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Gallery Hero Flare Effect */
.gallery-hero {
    overflow: hidden;
}

.flare-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Sun Flare - Glowing orb */
.sun-flare {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.8) 0%, rgba(255, 150, 50, 0.4) 30%, rgba(255, 100, 0, 0.1) 60%, transparent 70%);
    border-radius: 50%;
    animation: flare-pulse 4s ease-in-out infinite;
    filter: blur(2px);
}

.sun-flare::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 220, 150, 0.6) 40%, transparent 70%);
    border-radius: 50%;
    animation: flare-glow 3s ease-in-out infinite alternate;
}

/* Sun Rays */
.sun-rays {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 300px;
    height: 300px;
    transform: translate(25%, -25%);
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 200, 100, 0.15) 10deg,
            transparent 20deg,
            transparent 30deg,
            rgba(255, 200, 100, 0.1) 40deg,
            transparent 50deg,
            transparent 60deg,
            rgba(255, 200, 100, 0.12) 70deg,
            transparent 80deg,
            transparent 90deg,
            rgba(255, 200, 100, 0.08) 100deg,
            transparent 110deg,
            transparent 120deg,
            rgba(255, 200, 100, 0.15) 130deg,
            transparent 140deg,
            transparent 150deg,
            rgba(255, 200, 100, 0.1) 160deg,
            transparent 170deg,
            transparent 180deg,
            rgba(255, 200, 100, 0.12) 190deg,
            transparent 200deg,
            transparent 210deg,
            rgba(255, 200, 100, 0.08) 220deg,
            transparent 230deg,
            transparent 240deg,
            rgba(255, 200, 100, 0.15) 250deg,
            transparent 260deg,
            transparent 270deg,
            rgba(255, 200, 100, 0.1) 280deg,
            transparent 290deg,
            transparent 300deg,
            rgba(255, 200, 100, 0.12) 310deg,
            transparent 320deg,
            transparent 330deg,
            rgba(255, 200, 100, 0.08) 340deg,
            transparent 350deg,
            transparent 360deg);
    animation: rays-rotate 20s linear infinite;
    filter: blur(3px);
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 150, 0.9) 0%, rgba(255, 200, 100, 0.4) 50%, transparent 70%);
    animation: particle-float 8s ease-in-out infinite;
    filter: blur(1px);
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.particle-2 {
    width: 5px;
    height: 5px;
    top: 35%;
    left: 25%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle-4 {
    width: 4px;
    height: 4px;
    top: 25%;
    right: 35%;
    animation-delay: 0.5s;
    animation-duration: 10s;
}

.particle-5 {
    width: 7px;
    height: 7px;
    top: 70%;
    right: 25%;
    animation-delay: 3s;
    animation-duration: 7.5s;
}

.particle-6 {
    width: 3px;
    height: 3px;
    top: 45%;
    left: 40%;
    animation-delay: 1.5s;
    animation-duration: 11s;
}

.particle-7 {
    width: 5px;
    height: 5px;
    top: 55%;
    right: 15%;
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

.particle-8 {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 9.5s;
}

/* Flare Animations */
@keyframes flare-pulse {

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

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes flare-glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes rays-rotate {
    from {
        transform: translate(25%, -25%) rotate(0deg);
    }

    to {
        transform: translate(25%, -25%) rotate(360deg);
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-25px) translateX(15px);
        opacity: 0.9;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .sun-flare,
    .sun-flare::before,
    .sun-rays,
    .particle {
        animation: none;
    }

    .sun-rays {
        transform: translate(25%, -25%) rotate(0deg);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sun-flare {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 10%;
    }

    .sun-flare::before {
        width: 40px;
        height: 40px;
    }

    .sun-rays {
        width: 200px;
        height: 200px;
        top: 10%;
        right: 10%;
    }

    .particle {
        transform: scale(0.8);
    }
}


/* Page Hero Particles (all pages) */
.hero-particles {
    overflow: hidden;
}

.page-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.page-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 70%);
    filter: blur(0.5px);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.page-particle-1 {
    width: 5px;
    height: 5px;
    top: 15%;
    left: 10%;
    animation: page-particle-float-1 10s ease-in-out infinite;
}

.page-particle-2 {
    width: 3px;
    height: 3px;
    top: 25%;
    left: 80%;
    animation: page-particle-float-2 12s ease-in-out infinite;
    animation-delay: -2s;
}

.page-particle-3 {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 15%;
    animation: page-particle-float-3 9s ease-in-out infinite;
    animation-delay: -4s;
}

.page-particle-4 {
    width: 3px;
    height: 3px;
    top: 35%;
    right: 25%;
    animation: page-particle-float-1 11s ease-in-out infinite;
    animation-delay: -1s;
}

.page-particle-5 {
    width: 5px;
    height: 5px;
    top: 70%;
    right: 20%;
    animation: page-particle-float-2 8s ease-in-out infinite;
    animation-delay: -3s;
}

.page-particle-6 {
    width: 4px;
    height: 4px;
    top: 45%;
    left: 50%;
    animation: page-particle-float-3 13s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes page-particle-float-1 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    25% {
        transform: translate(15px, -25px);
        opacity: 0.8;
    }

    50% {
        transform: translate(5px, -15px);
        opacity: 0.5;
    }

    75% {
        transform: translate(-10px, -30px);
        opacity: 0.7;
    }
}

@keyframes page-particle-float-2 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    33% {
        transform: translate(-20px, -20px);
        opacity: 0.9;
    }

    66% {
        transform: translate(10px, -35px);
        opacity: 0.5;
    }
}

@keyframes page-particle-float-3 {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: translate(10px, -15px);
        opacity: 0.6;
    }

    40% {
        transform: translate(-5px, -25px);
        opacity: 1;
    }

    60% {
        transform: translate(15px, -20px);
        opacity: 0.7;
    }

    80% {
        transform: translate(-10px, -35px);
        opacity: 0.8;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .page-particle {
        animation: none;
        opacity: 0.5;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .page-particle {
        transform: scale(0.8);
    }
}

/* Gallery Filter Buttons */
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: white;
    color: black;
    border-color: white;
}

/* Gallery Caption */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}