/**
 * Wave Riders - Surf Club Template
 * Design & Development by {BYAP} - Andre Paiva
 * 
 * © 2026 {BYAP}. Todos os direitos reservados.
 */

/* Logo SVG */
.logo-svg {
    height: 45px;
    width: auto;
    color: #fff;
    transition: transform 0.3s ease;
}
.header.scrolled .logo-svg { color: #03045e; }
.logo-svg:hover { transform: scale(1.05); }

/* ===================================
   CSS Variables
====================================== */
:root {
    /* Brand Colors - Ocean/Surf Theme */
    --color-primary: #00b4d8;
    --color-primary-dark: #0096c7;
    --color-secondary: #03045e;
    --color-accent: #90e0ef;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00b4d8 0%, #03045e 100%);
    --gradient-ocean: linear-gradient(135deg, #0077b6 0%, #90e0ef 100%);
    
    /* Neutral Colors */
    --color-dark: #1a1a2e;
    --color-text: #555555;
    --color-text-light: #888888;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-alt: 'Raleway', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Reset & Base
====================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-alt);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

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

/* ===================================
   Utilities
====================================== */
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Buttons
====================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
}

/* ===================================
   Loader
====================================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-wave {
    display: flex;
    gap: 5px;
}

.loader-wave span {
    width: 10px;
    height: 40px;
    background: var(--color-white);
    border-radius: 5px;
    animation: wave 1s ease-in-out infinite;
}

.loader-wave span:nth-child(2) { animation-delay: 0.1s; }
.loader-wave span:nth-child(3) { animation-delay: 0.2s; }
.loader-wave span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* ===================================
   Header
====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    background: transparent;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled .navbar {
    background: rgba(3, 4, 94, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

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

.logo img {
    max-height: 45px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 0;
}

.nav-link {
    padding: 0.5rem 1.25rem;
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.5rem);
}

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

/* Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.social-sidebar a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.social-sidebar a:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.social-sidebar svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-secondary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 32px;
    height: 32px;
}

.mobile-logo img {
    max-height: 60px;
    margin-bottom: 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.mobile-nav a {
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 500;
}

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

.mobile-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.mobile-social svg {
    width: 20px;
    height: 20px;
}

.mobile-footer {
    position: absolute;
    bottom: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===================================
   Hero Section
====================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.7) 0%, rgba(0, 180, 216, 0.4) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 300;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Hero Nav Dots */
.hero-nav-dots {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.hero-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    margin-left: 5px;
    transform: translateY(-50%);
}

.hero-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.hero-dot.active::after {
    width: 30px;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 5;
}

/* ===================================
   Section Header
====================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text);
}

/* ===================================
   About Section
====================================== */
.about-section {
    padding: var(--section-padding) 0 calc(var(--section-padding) + 100px);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    max-width: 450px;
    margin: 0 auto;
}

.about-content .section-subtitle {
    margin-bottom: 0.5rem;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-list svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Ocean Waves Animation */
.ocean-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.ocean-waves.bottom {
    transform: rotate(180deg);
    top: 0;
    bottom: auto;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%2300b4d8' fill-opacity='0.3' d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: waveMove 15s linear infinite;
}

.wave.wave2 {
    opacity: 0.5;
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   Video Gallery Section
====================================== */
.video-gallery {
    padding: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.video-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

/* ===================================
   Services Section
====================================== */
.services-section {
    padding: calc(var(--section-padding) + 100px) 0 var(--section-padding);
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.services-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.service-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.services-center img {
    max-width: 350px;
    margin: 0 auto;
}

/* ===================================
   Parallax CTA Section
====================================== */
.parallax-cta {
    position: relative;
    padding: calc(var(--section-padding) * 1.5) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.85) 0%, rgba(3, 4, 94, 0.9) 100%);
}

.parallax-content {
    position: relative;
    max-width: 700px;
    color: var(--color-white);
}

.parallax-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.parallax-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===================================
   Team Section
====================================== */
.team-section {
    padding: var(--section-padding) 0;
    background: var(--color-light);
}

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

.team-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.team-image {
    position: relative;
    aspect-ratio: 1;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.95) 0%, rgba(3, 4, 94, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--color-white);
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay h4 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 0.25rem;
    text-transform: capitalize;
}

.team-overlay > p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.team-social {
    display: flex;
    gap: 0.75rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.team-social svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   Portfolio Section
====================================== */
.portfolio-section {
    padding: var(--section-padding) 0;
}

.portfolio-slider {
    margin-top: 2rem;
    overflow: hidden;
}

.portfolio-track {
    display: flex;
    gap: 10px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.portfolio-item {
    flex-shrink: 0;
    width: 350px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

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

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 180, 216, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-btn:hover {
    transform: scale(1.1);
}

.portfolio-btn svg {
    width: 32px;
    height: 32px;
}

.portfolio-btn span {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Testimonials Section
====================================== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--color-light);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex-shrink: 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.testimonial-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--color-primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background: var(--color-border);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--color-primary);
}

/* ===================================
   Partners Section
====================================== */
.partners-section {
    padding: 3rem 0;
    background: var(--color-light);
}

.partners-slider {
    overflow: hidden;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: partnersScroll 20s linear infinite;
}

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    flex-shrink: 0;
}

.partner-item img {
    max-height: 60px;
    opacity: 0.6;
    transition: var(--transition);
}

.partner-item:hover img {
    opacity: 1;
}

/* ===================================
   Contact Section
====================================== */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-alt);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    transition: var(--transition);
    background: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    resize: none;
}

.contact-form .btn {
    margin-top: 1rem;
}

/* ===================================
   Footer
====================================== */
.footer {
    background: var(--color-light);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text);
}

.footer-copyright a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===================================
   Scroll to Top
====================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   Lightbox
====================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ===================================
   Animations
====================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

[data-animate="fadeInLeft"] {
    transform: translateX(-50px);
}

[data-animate="fadeInLeft"].animated {
    transform: translateX(0);
}

[data-animate="fadeInRight"] {
    transform: translateX(50px);
}

[data-animate="fadeInRight"].animated {
    transform: translateX(0);
}

[data-animate="fadeInUp"] {
    transform: translateY(50px);
}

[data-animate="fadeInUp"].animated {
    transform: translateY(0);
}

/* ===================================
   Media Queries
====================================== */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .social-sidebar {
        display: flex;
    }
    
    .hero-content {
        padding-left: 100px;
    }
    
    .hero-nav-dots {
        left: 50px;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonial-card {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr auto 1fr;
    }
    
    .services-center img {
        max-width: 400px;
    }
    
    .portfolio-item {
        width: 450px;
    }
}

/* ===== BYAP Logo Styles ===== */
.logo-text {
    font-family: "Oswald", "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-text .bracket {
    color: var(--color-primary, #e50914);
    font-weight: 800;
}

.logo a.logo,
.logo a.footer-logo,
a.mobile-logo,
a.side-menu-logo {
    text-decoration: none;
    color: inherit;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
}
/* ===== End BYAP Logo ===== */



/* ============================================
   FAANG-LEVEL ACCESSIBILITY FIXES
   Standards: WCAG 2.1 AA, Apple HIG
   ============================================ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus Visible - Keyboard Navigation */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cor-primaria, #6366f1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip Link - Screen Readers */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cor-primaria, #6366f1);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  * {
    border-color: currentColor !important;
  }
  
  button, a {
    border: 2px solid currentColor;
  }
}

/* Print Styles */
@media print {
  *,
  *::before,
  *::after {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  .no-print,
  nav,
  header,
  footer,
  .loader,
  .preloader {
    display: none !important;
  }
}

/* Selection Highlight */
::selection {
  background: var(--cor-primaria, #6366f1);
  color: white;
}

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

@supports (scroll-behavior: smooth) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

/* Loading Skeleton Base */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error State Base */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  color: var(--texto-muted, #888);
}

.error-state::before {
  content: "⚠️";
  font-size: 48px;
}

/* Empty State Base */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--texto-muted, #888);
}

.empty-state::before {
  content: "📭";
  font-size: 48px;
}

/* Touch Target Size (WCAG) */
button,
a,
[role="button"],
input[type="submit"],
input[type="button"],
.btn {
  min-height: 44px;
  min-width: 44px;
}

/* Visible Scrollbar for Accessibility */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Content Visibility for Performance */
.below-fold {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}


/* ============================================
   FAANG-LEVEL ROUND 2 - UX & INTERACTION
   ============================================ */

/* Active States for All Interactive Elements */
button:active,
a:active,
[role="button"]:active,
.btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Enhanced Hover States */
button:hover,
a:hover,
[role="button"]:hover,
.btn:hover {
  transform: translateY(-1px);
}

/* Haptic-like Feedback (visual) */
@keyframes haptic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.97); }
}

.haptic:active {
  animation: haptic-pulse 0.15s ease-out;
}

/* Improved Loading Animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Interaction Feedback */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
  border-color: var(--cor-primaria, #6366f1);
}

/* Better Disabled State */
button:disabled,
input:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Micro-interactions */
.card,
.btn,
article {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Spring Animation */
@keyframes spring {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-spring {
  animation: spring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Subtle Entrance Animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Stagger Animation Helper */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* Premium Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--cor-primaria, #6366f1), var(--cor-secundaria, #a855f7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Button */
.btn-premium {
  position: relative;
  overflow: hidden;
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-premium:hover::before {
  transform: translateX(100%);
}


/* Garantir que imagens carregadas apareçam */
img.loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Esconder skeletons quando carregado */
.skeleton-container.loaded .skeleton-placeholder,
.skeleton-container.loaded .skeleton,
.loaded > .skeleton {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Fallback visual para elementos vazios */
.bento-card:empty,
.card:empty,
.portfolio-item:empty {
  min-height: 100px;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

/* Lucide icons fallback */
[data-lucide]:empty::before {
  content: "•";
  font-size: 1.5em;
  opacity: 0.3;
}



/* ========================================
   BYAP Fix: Robust Visual Fallbacks
   ======================================== */

/* Garantir que imagens carregadas apareçam */
img.loaded {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Forçar imagens a aparecerem após 2s mesmo sem .loaded */
@keyframes forceShow {
  to { opacity: 1; }
}

img[data-src], img.lazy {
  animation: forceShow 0.3s ease 2s forwards;
}

/* Esconder skeletons quando carregado */
.skeleton-container.loaded .skeleton-placeholder,
.skeleton-container.loaded .skeleton,
.loaded > .skeleton {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Esconder skeletons após 3s */
@keyframes hideSkeleton {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.skeleton-placeholder,
.skeleton {
  animation: hideSkeleton 0.3s ease 3s forwards;
}

/* Fallback visual para elementos vazios */
.bento-card:empty,
.card:empty,
.portfolio-item:empty {
  min-height: 100px;
  background: linear-gradient(135deg, #f8f8f8, #e8e8e8);
}

/* Lucide icons - garantir tamanho */
[data-lucide] svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

