/* Events Page - Complete Apple-Inspired Professional Design */

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

/* ===== APPLE-STYLE MEGA MENU ===== */
.mega-dropdown {
    position: static;
}

.mega-dropdown-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-light);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out, transform 0.25s ease-out;
    z-index: 999;
    pointer-events: none;
    padding-top: 0;
}

.mega-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 280px repeat(2, 1fr) 200px;
    gap: 48px;
}

.mega-menu-main {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding-right: 24px;
}

.mega-menu-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.mega-menu-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-menu-links li {
    margin: 0;
    padding: 0;
}

.mega-menu-links a {
    display: block;
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.18s ease;
    cursor: pointer;
}

.mega-menu-links a:hover {
    color: var(--primary-blue);
}

.mega-menu-secondary {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding-left: 24px;
}

.mega-dropdown:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide chevron icon on mega dropdown items */
.mega-dropdown .nav-link i {
    display: none;
}

/* Remove active state background from mega dropdown items */
.mega-dropdown .nav-link.active {
    background: transparent;
    color: var(--text-dark);
}

/* Remove focus outline from mega dropdown items on mobile */
.mega-dropdown .nav-link:focus,
.mega-dropdown .nav-link:active {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .mega-dropdown .dropdown-menu {
        display: none;
    }
}

/* Root Variables */
:root {
    --primary-blue: #2B7A9B;
    --primary-dark: #1A5F7A;
    --accent-black: #000000;
    --text-dark: #1d1d1f;
    --text-gray: #6e6e73;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --bg-white: #FFFFFF;
    --border-light: #d2d2d7;
    
    /* Event-specific colors */
    --event-accent: #FF6B35;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Font Variables */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

p, li, span {
    font-family: var(--font-primary);
    font-weight: 400;
}

/* Hero Section with Image Slider */
.service-hero.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 100px;
}

.hero-image-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.service-hero.hero .container {
    position: relative;
    z-index: 3;
}

.service-hero .hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.service-hero .hero-content h1 {
    font-size: 56px;
    font-weight: 600;
    color: white;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.service-hero .hero-subtitle {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.6px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Section */
.service-content {
    background: var(--bg-white);
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Intro Section */
.content-intro {
    padding: 140px 0 100px;
    text-align: center;
    background: var(--bg-white);
}

.content-intro h2 {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1;
    letter-spacing: -2px;
}

.content-intro p {
    font-size: 24px;
    color: var(--text-gray);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.3px;
    max-width: 900px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-block {
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-4px);
}

.feature-block h3 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.feature-block p {
    font-size: 21px;
    color: var(--text-gray);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.2px;
}

/* Capabilities Section (Events) */
.capabilities-section {
    padding: 140px 0;
    background: var(--bg-white);
}

.capabilities-header {
    text-align: center;
    margin-bottom: 100px;
}

.capabilities-header h2 {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1;
    letter-spacing: -2px;
}

.capabilities-header p {
    font-size: 24px;
    color: var(--text-gray);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.3px;
    max-width: 800px;
    margin: 0 auto;
}

.capabilities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.capability-item {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-light);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.capability-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 122, 155, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.capability-item:hover {
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.capability-item:hover::before {
    opacity: 1;
}

.capability-item h4 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.6px;
    position: relative;
    z-index: 1;
}

.capability-item p {
    font-size: 19px;
    color: var(--text-gray);
    line-height: 1.5;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Impact Section */
.impact-section {
    padding: 140px 0;
    background: var(--bg-light);
    position: relative;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.impact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.impact-content h2 {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1;
    letter-spacing: -2px;
}

.impact-content p {
    font-size: 24px;
    color: var(--text-gray);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: -0.3px;
}

/* CTA Section */
.service-cta {
    padding: 160px 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.service-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.8;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.05;
    letter-spacing: -2px;
}

.cta-content p {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 48px;
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.3px;
}

.cta-content .btn {
    padding: 18px 48px;
    font-size: 19px;
    font-weight: 400;
    border-radius: 980px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    background: var(--text-dark);
    color: white;
    border: 2px solid var(--text-dark);
}

.cta-content .btn:hover {
    background: var(--accent-black);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-hero .hero-content h1 {
        font-size: 48px;
        letter-spacing: -1.8px;
    }
    
    .service-hero .hero-subtitle {
        font-size: 24px;
    }
    
    .content-intro h2,
    .capabilities-header h2,
    .impact-content h2 {
        font-size: 48px;
        letter-spacing: -1.8px;
    }
    
    .content-intro p,
    .capabilities-header p,
    .impact-content p,
    .cta-content p {
        font-size: 21px;
    }
    
    .feature-block h3 {
        font-size: 32px;
    }
    
    .feature-block p {
        font-size: 19px;
    }
    
    .capabilities-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content h2 {
        font-size: 48px;
        letter-spacing: -1.8px;
    }
}

@media (max-width: 1024px) {
    .service-hero {
        min-height: 70vh;
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .service-hero .hero-content h1 {
        font-size: 44px;
        letter-spacing: -1.6px;
    }
    
    .service-hero .hero-subtitle {
        font-size: 22px;
    }
    
    .content-intro,
    .capabilities-section,
    .impact-section {
        padding: 100px 0;
    }
    
    .features-section {
        padding: 80px 0;
    }
    
    .service-cta {
        padding: 120px 0;
    }
    
    .features-grid {
        gap: 60px 40px;
    }
    
    .cta-content h2 {
        font-size: 44px;
        letter-spacing: -1.6px;
    }
    
    .capabilities-header {
        margin-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 60vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .service-hero .hero-content h1 {
        font-size: 36px;
        letter-spacing: -1.2px;
        margin-bottom: 24px;
    }
    
    .service-hero .hero-subtitle {
        font-size: 19px;
        letter-spacing: -0.3px;
    }
    
    .content-intro,
    .capabilities-section,
    .impact-section {
        padding: 80px 0;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .service-cta {
        padding: 100px 0;
    }
    
    .content-intro h2,
    .capabilities-header h2,
    .impact-content h2 {
        font-size: 36px;
        letter-spacing: -1.2px;
        margin-bottom: 32px;
    }
    
    .content-intro p,
    .capabilities-header p,
    .impact-content p {
        font-size: 19px;
        letter-spacing: -0.2px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-block h3 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    
    .feature-block p {
        font-size: 17px;
    }
    
    .capabilities-header {
        margin-bottom: 60px;
    }
    
    .capabilities-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .capability-item {
        padding: 40px 32px;
    }
    
    .capability-item h4 {
        font-size: 22px;
    }
    
    .capability-item p {
        font-size: 17px;
    }
    
    .cta-content h2 {
        font-size: 36px;
        letter-spacing: -1.2px;
        margin-bottom: 24px;
    }
    
    .cta-content p {
        font-size: 19px;
        margin-bottom: 40px;
    }
    
    .cta-content .btn {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .service-hero .hero-content h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .service-hero .hero-subtitle {
        font-size: 17px;
    }
    
    .content-intro h2,
    .capabilities-header h2,
    .impact-content h2 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    
    .content-intro p,
    .capabilities-header p,
    .impact-content p {
        font-size: 17px;
    }
    
    .feature-block h3 {
        font-size: 24px;
    }
    
    .feature-block p {
        font-size: 16px;
    }
    
    .capability-item {
        padding: 32px 24px;
    }
    
    .capability-item h4 {
        font-size: 20px;
    }
    
    .cta-content h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .cta-content p {
        font-size: 17px;
    }
    
    .cta-content .btn {
        padding: 16px 32px;
        font-size: 17px;
    }
}

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

/* Text Selection */
::selection {
    background: rgba(43, 122, 155, 0.2);
    color: var(--text-dark);
}

::-moz-selection {
    background: rgba(43, 122, 155, 0.2);
    color: var(--text-dark);
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
/* Remove focus outline from all nav elements across all browsers */
.nav-link:focus,
.nav-link:focus-visible,
.nav-menu a:focus,
.nav-menu a:focus-visible,
.auth-section button:focus,
.auth-section button:focus-visible,
.sign-in-btn:focus,
.sign-in-btn:focus-visible,
.hamburger:focus,
.hamburger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.capability-item:focus-within,
.cta-content .btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .service-hero,
    .service-cta {
        background: white !important;
        min-height: auto;
        padding: 40px 0;
    }
    
    .service-hero::before,
    .service-cta::before {
        display: none;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .service-hero .hero-content h1,
    .service-hero .hero-subtitle,
    .cta-content h2,
    .cta-content p {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    .capability-item {
        break-inside: avoid;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Performance Optimizations */
.capability-item,
.hero-image {
    will-change: transform, opacity;
}

/* Image Loading State */
.hero-image-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 0;
}

.hero-image {
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}