/* Main Styles */
@import 'variables.css';

/* Accessibility: hidden from view but readable by screen readers / SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility: focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Hero title logo image */
.hero-title-img {
    max-width: 100%;
    width: auto;
    max-height: 960px;
    /* Desktop */
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    /* Invert white to brand yellow (#F0FF75) */
    filter: brightness(0) saturate(100%) invert(91%) sepia(35%) saturate(763%) hue-rotate(15deg) brightness(101%) contrast(101%);
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-title-img {
        max-height: 720px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title-img {
        max-height: 480px;
    }
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.4);
    background: #fff;
    color: var(--color-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    transform: translateY(-3px);
}

/* Header */
header {
    padding: 1.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(39, 10, 2, 0.7);
    /* Coffee bg alpha */
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-medium);
}

header.scrolled {
    padding: 1.1rem 0;
    background: rgba(39, 10, 2, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-primary);
}

/* Mobile Navigation overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 13, 16, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-overlay a {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a:focus {
    color: var(--color-primary);
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    /* Above overlay */
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
        position: relative;
    }

    .desktop-nav {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 60%),
        radial-gradient(circle at 20% 70%, rgba(203, 210, 255, 0.1) 0%, transparent 50%);
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    filter: blur(0px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #aecdc9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Card Styles */
.card {
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: var(--transition-medium);
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-10px);
    background: rgba(var(--color-secondary-rgb), 0.4);
    box-shadow: var(--glow-primary);
}

/* Speakers Grid */
.speakers-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.speaker-card {
    text-align: center;
    padding: 2.5rem 1rem;
}

.speaker-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--color-primary);
    padding: 5px;
    background: var(--color-bg-dark);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 4rem;
    border-left: 1px solid var(--color-border);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: var(--glow-primary);
}

.time {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Tickets */
.tickets-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.ticket-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.ticket-card.featured {
    transform: scale(1.05);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.features-list {
    margin: 2.5rem 0;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1.2rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content,
    section#about .grid,
    section#schedule .grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin: 0 auto 3rem;
    }

    .hero .flex {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }


    .about-text .grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 5rem;
    }

    nav ul {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-visuals .card {
        padding: 1.5rem !important;
    }

    .about-visuals img {
        height: 250px !important;
    }

    section#about h2,
    section#schedule h2,
    section#speakers h2,
    section#tickets h2 {
        font-size: 2.5rem !important;
    }
}