/* Reset and Base Styles */

/* Seghoro Font Import */
@font-face {
    font-family: 'Seghoro';
    src: url('assets/fonts/Seghoro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary-purple: #7B24E0;
    --accent-yellow: #FFC107;
    --text-white: #FFFFFF;
    --text-dark: #2c3e50;
    --background-light: #f8f9fa;
    --purple-light: #9B5DE5;
    --purple-dark: #5A189A;
    --yellow-light: #FFD60A;
    --yellow-dark: #F77F00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Seghoro', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hamburger:hover::before {
    left: 100%;
}

.hamburger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 36, 224, 0.4);
}

.bar {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hamburger:hover .bar {
    background: linear-gradient(90deg, #fff, #e0e0e0);
    transform: scale(1.05);
}

/* Hamburger Animation States */
.hamburger.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3), 0 0 0 8px rgba(123, 36, 224, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3);
    }
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: linear-gradient(90deg, #fff, #f0f0f0);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: linear-gradient(90deg, #fff, #f0f0f0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

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

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

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

.btn-primary {
    background: linear-gradient(45deg, var(--accent-yellow), var(--yellow-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 100%;
    max-height: 100%;
    width: 400px;
    height: 400px;
    object-fit: contain;
    animation: logoModernEntrance 2s ease-out, logoSubtleFloat 8s ease-in-out infinite 2s, logoGentleGlow 4s ease-in-out infinite alternate 2s;
    filter: brightness(0) invert(1) drop-shadow(0 15px 35px rgba(255, 255, 255, 0.3));
    z-index: 2;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hero-logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(0) invert(1) drop-shadow(0 20px 45px rgba(255, 255, 255, 0.5));
    animation-play-state: paused;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 193, 7, 0.2));
    animation: modernFloat 8s ease-in-out infinite;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
    animation-duration: 7s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.element-4 {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 10%;
    animation-delay: 0.8s;
    animation-duration: 5s;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #F77F00 !important;
    position: relative;
}

h1.section-title,
h2.section-title,
h3.section-title {
    color: #F77F00 !important;
}

/* Títulos de dias da programação */
.day-schedule h3 {
    color: #F77F00 !important;
}

/* Estilos para palestrantes por dia */
.day-speakers {
    margin-bottom: 3rem;
}

.day-speakers h3 {
    color: #F77F00 !important;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.day-speakers .speaker-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.day-speakers .speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.day-speakers .speaker-card[onclick]:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #7B24E0;
}

.day-speakers .speaker-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7B24E0, #F77F00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.day-speakers .speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.day-speakers .speaker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7B24E0, #F77F00);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.day-speakers .speaker-info {
    flex: 1;
}

.day-speakers .speaker-info h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.day-speakers .speaker-topic {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.day-speakers .speaker-approach {
    color: #7B24E0;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-style: italic;
}

.day-speakers .speaker-time {
    color: #F77F00;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(247, 127, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

/* Responsividade para palestrantes */
@media (max-width: 768px) {
    .day-speakers .speaker-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .day-speakers .speaker-avatar {
        margin-bottom: 1rem;
    }
    
    .day-speakers .speaker-info {
        width: 100%;
    }
    
    .day-speakers h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-yellow), var(--yellow-dark));
    border-radius: 2px;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

/* Theme Section */
.theme {
    padding: 6rem 0;
    background: white;
}

.theme-content {
    max-width: 900px;
    margin: 0 auto;
}

.theme-explanation h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.theme-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--text-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.cta-question {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    opacity: 0.9;
}

/* Important Info Section */
.important-info {
    padding: 4rem 0;
    background: var(--background-light);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-content p {
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--text-dark);
    color: var(--text-white);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-yellow);
}

.contact-address {
    margin-bottom: 2rem;
}

.contact-address p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.social-link:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a252f;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

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

@keyframes modernFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px) scale(1.05);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-10px) scale(1.08);
        opacity: 0.9;
    }
}

/* Modern Logo Animations */
@keyframes logoModernEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.7) rotate(-5deg);
        filter: brightness(0) invert(1) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05) rotate(2deg);
        filter: brightness(0) invert(1) drop-shadow(0 10px 25px rgba(255, 255, 255, 0.2));
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: brightness(0) invert(1) drop-shadow(0 15px 35px rgba(255, 255, 255, 0.3));
    }
}

@keyframes logoSubtleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
}

@keyframes logoGentleGlow {
    0% {
        filter: brightness(0) invert(1) drop-shadow(0 15px 35px rgba(255, 255, 255, 0.3)) brightness(1);
    }
    100% {
        filter: brightness(0) invert(1) drop-shadow(0 20px 40px rgba(255, 255, 255, 0.5)) brightness(1.1);
    }
}

/* Map Section Styles */
.map-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(123, 36, 224, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(123, 36, 224, 0.1);
}

/* Address Section Styles */
.address-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(123, 36, 224, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(123, 36, 224, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.address-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.address-info {
    text-align: center;
}

.address-info p {
    margin-bottom: 0.5rem;
}

/* Map Container Styles */
.map-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123, 36, 224, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

.map-container::after {
    content: '📍 Clique para ver no Google Maps';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(123, 36, 224, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover::after {
    opacity: 1;
}

/* Info Card Enhancement */
.info-card {
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-graphic {
        min-height: 500px;
    }

    .hero-logo {
        width: 350px;
        height: 350px;
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile Performance Optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for content areas */
    p, h1, h2, h3, h4, h5, h6, span, div {
        -webkit-user-select: text;
        -khtml-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* Optimize scrolling */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Reduce motion for better performance - but keep hero animations smooth */
    *:not(.hero-logo):not(.floating-elements .element):not(.element) {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Ensure hero animations maintain their original timing */
    .hero-logo {
        animation-duration: 2s, 8s, 4s !important;
    }
    
    .element {
        animation-duration: 8s !important;
    }
    
    .element-1 {
        animation-duration: 6s !important;
    }
    
    .element-2 {
        animation-duration: 7s !important;
    }
    
    .element-3 {
        animation-duration: 8s !important;
    }
    
    .element-4 {
        animation-duration: 5s !important;
    }
    
    .hamburger {
        display: flex;
        min-height: 44px; /* Touch target */
        min-width: 44px;
        touch-action: manipulation;
    }

    /* Mobile Hero Layout - Clean Approach */
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2rem !important;
        padding: 2rem 1rem !important;
    }

    .hero-image {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }

    .hero-content {
        order: 2 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }

    .btn {
        flex: 1;
        min-width: 140px;
        max-width: 200px;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        min-height: 44px; /* Touch target minimum */
        touch-action: manipulation; /* Prevent double-tap zoom */
        justify-content: center;
        align-items: center;
    }

    .hero-graphic {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-logo {
        width: 250px;
        height: 250px;
        max-width: 100%;
        max-height: 100%;
        margin: 0 auto;
        display: block;
    }
    
    /* Mobile Map and Address Optimizations */
    .map-section {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .address-section {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .map-container {
        margin-top: 0;
        border-radius: 12px;
    }
    
    .map-container iframe {
        height: 250px;
        border-radius: 12px;
    }
    
    .map-container::after {
        font-size: 0.75rem;
        padding: 6px 12px;
        bottom: 8px;
        border-radius: 15px;
    }
    
    /* Mobile Info Cards */
    .info-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .info-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .info-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Mobile Location Cards */
    .location-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .location-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .location-address {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile Collaborator Cards */
    .collaborator-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .collaborator-name {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .collaborator-type {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .collaborator-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(123, 36, 224, 0.25);
        padding: 3rem 0;
        z-index: 1000;
        border-top: 3px solid var(--primary-purple);
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu.active {
        left: 0;
        animation: slideInFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    
    @keyframes slideInFromLeft {
        0% {
            left: -100%;
            opacity: 0;
        }
        100% {
            left: 0;
            opacity: 1;
        }
    }
    
    .nav-menu li {
        margin: 0.8rem 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: fadeInSlide 0.3s ease forwards;
    }
    
    .nav-menu.active li {
        animation: fadeInSlide 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes fadeInSlide {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 1rem 2rem;
        display: block;
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        margin: 0 1.5rem;
        position: relative;
        overflow: hidden;
        background: #ffffff;
        border: 2px solid transparent;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(123, 36, 224, 0.15), transparent);
        transition: left 0.5s;
    }
    
    .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
        color: white;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(123, 36, 224, 0.3);
        border-color: var(--primary-purple);
    }
    
    .nav-link:active {
        background: linear-gradient(135deg, var(--purple-dark), #4a0e7a);
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 4px 15px rgba(123, 36, 224, 0.4);
    }
    
    .nav-link:focus {
        outline: none;
        border-color: var(--accent-yellow);
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
    }
    
    /* Ripple effect for click feedback */
    .nav-link::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
        pointer-events: none;
    }
    
    .nav-link:active::after {
        width: 300px;
        height: 300px;
    }
    
    
    .nav-link.active::before {
        content: '▶';
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-yellow);
        font-size: 1rem;
        font-weight: bold;
        animation: activeArrow 1s infinite;
        background: none;
    }
    
    .nav-link.active::after {
        content: '●';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-yellow);
        font-size: 1.2rem;
        animation: activeDot 1.5s infinite;
    }
    
    .nav-link.active {
        padding-left: 3rem;
        background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
        color: white;
        border-color: var(--accent-yellow);
        box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3);
        position: relative;
        animation: activePulse 2s infinite;
    }
    
    @keyframes activeArrow {
        0%, 100% {
            transform: translateY(-50%) translateX(0);
        }
        50% {
            transform: translateY(-50%) translateX(3px);
        }
    }
    
    @keyframes activePulse {
        0% {
            box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3);
        }
        50% {
            box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3), 0 0 0 4px rgba(123, 36, 224, 0.1);
        }
        100% {
            box-shadow: 0 4px 15px rgba(123, 36, 224, 0.3);
        }
    }
    
    @keyframes activeDot {
        0%, 100% {
            opacity: 1;
            transform: translateY(-50%) scale(1);
        }
        50% {
            opacity: 0.7;
            transform: translateY(-50%) scale(1.2);
        }
    }


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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    /* Mobile Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 50px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    /* Mobile Hero Title */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        opacity: 0.9;
    }
    
    /* Small Mobile Map and Address Optimizations */
    .map-section {
        padding: 0.8rem;
        margin-top: 0.8rem;
        border-radius: 12px;
    }
    
    .address-section {
        padding: 0.8rem;
        margin-top: 0.8rem;
        border-radius: 12px;
    }
    
    .map-container {
        border-radius: 10px;
    }
    
    .map-container iframe {
        height: 200px;
        border-radius: 10px;
    }
    
    .map-container::after {
        font-size: 0.7rem;
        padding: 4px 8px;
        bottom: 5px;
        border-radius: 12px;
    }
    
    /* Small Mobile Info Cards */
    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Small Mobile Location Cards */
    .location-card {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .location-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .location-address {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Small Mobile Collaborator Cards */
    .collaborator-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .collaborator-name {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .collaborator-type {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .collaborator-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    /* Mobile Button Optimizations */
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile Contact Section */
    .contact-address {
        padding: 1rem;
    }
    
    .contact-address p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile Social Links */
    .social-links {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-link {
        padding: 0.8rem;
        font-size: 1.2rem;
    }

    .hero-graphic {
        min-height: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-logo {
        width: 250px;
        height: 250px;
        max-width: 100%;
        max-height: 100%;
        margin: 0 auto;
        display: block;
    }
}

/* Extra Small Mobile Devices (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    /* Ultra Small Mobile Hero Logo Centering */
    .hero-graphic {
        min-height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
        max-width: 100%;
        max-height: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 280px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-container {
        padding: 1.5rem 0.8rem !important;
        gap: 1rem !important;
    }
    
    /* Ultra Small Mobile Map Optimizations */
    .map-section {
        padding: 0.6rem;
        margin-top: 0.6rem;
        border-radius: 10px;
    }
    
    .address-section {
        padding: 0.6rem;
        margin-top: 0.6rem;
        border-radius: 10px;
    }
    
    .map-container iframe {
        height: 180px;
        border-radius: 8px;
    }
    
    .map-container::after {
        font-size: 0.65rem;
        padding: 3px 6px;
        bottom: 3px;
        border-radius: 10px;
    }
    
    /* Ultra Small Mobile Cards */
    .info-card {
        padding: 0.8rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .location-card {
        padding: 0.8rem;
    }
    
    .location-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .location-address {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .collaborator-card {
        padding: 0.8rem;
    }
    
    .collaborator-name {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .collaborator-type {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .collaborator-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }
    
    /* Ultra Small Mobile Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .btn-large {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Ultra Small Mobile Navigation */
    .nav-menu {
        padding: 0.8rem 0;
    }
    
    .nav-menu li {
        margin: 0.6rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Ultra Small Mobile Contact */
    .contact-address {
        padding: 0.8rem;
    }
    
    .contact-address p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .social-link {
        padding: 0.6rem;
        font-size: 1.1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .map-container:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .map-container::after {
        opacity: 1;
        position: static;
        transform: none;
        margin-top: 0.5rem;
        display: block;
        text-align: center;
    }
    
    .info-card:hover::before {
        left: -100%;
    }
    
    .address-section:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Touch-friendly map interactions */
    .map-container iframe {
        touch-action: manipulation;
    }
}

/* Mobile Landscape Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 2rem !important;
        align-items: center !important;
    }
    
    .hero-image {
        order: 1 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-content {
        order: 2 !important;
        flex: 1 !important;
        text-align: left !important;
    }
    
    .hero-graphic {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        display: block;
    }
    
    .map-container iframe {
        height: 200px;
    }
    
    .map-section {
        padding: 1rem;
    }
    
    .address-section {
        padding: 1rem;
    }
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-logo {
        animation: none !important;
        filter: drop-shadow(0 5px 10px rgba(255, 193, 7, 0.2)) !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--primary-purple) 100%);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, var(--purple-dark) 0%, #4A0E4E 100%);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) #f1f1f1;
}

/* Smooth scrollbar animation */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) #f1f1f1;
}

/* Custom scrollbar for specific sections */
.hero::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar states */
body.scrolling ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--yellow-dark) 100%);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Scrollbar corner */
::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Scrollbar button (arrows) */
::-webkit-scrollbar-button {
    display: none;
}

/* Enhanced scrollbar for dark sections */
.cta::-webkit-scrollbar-thumb,
.contact::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta::-webkit-scrollbar-track,
.contact::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
    }
    
    .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #000;
        border: 2px solid #fff;
    }
}
