/* ===================================
    Barber Premium - {BYAP}
    Template profissional para barbearias
    © 2026 André Paiva (BYAP)
====================================== */

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

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ===================================
    CSS Variables
====================================== */
:root {
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-btn: 'Poppins', sans-serif;
    
    --color-primary: #c29e75;
    --color-primary-light: #d4b08c;
    --color-black: #000000;
    --color-dark: #1d1d21;
    --color-dark-2: #2b2b2b;
    --color-white: #ffffff;
    --color-gray: #666666;
    --color-light: #f5f5f5;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 300;
    line-height: 25px;
    color: var(--color-dark-2);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

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

a:hover {
    color: var(--color-primary);
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 7.5rem 0;
    position: relative;
    overflow: hidden;
}

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

/* ===================================
    Preloader
====================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

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

.loader-cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform: rotate(45deg);
}

.cube {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    position: absolute;
    animation: cubeAnim 1.2s infinite ease-in-out;
}

.c1 { top: 0; left: 0; animation-delay: 0s; }
.c2 { top: 0; right: 0; animation-delay: 0.15s; }
.c3 { bottom: 0; right: 0; animation-delay: 0.3s; }
.c4 { bottom: 0; left: 0; animation-delay: 0.45s; }

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

/* ===================================
    Header & Navigation
====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

.header.scrolled {
    background: var(--color-white);
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.35);
    animation: fadeInDown 0.5s ease;
}

.header.scrolled .navbar {
    height: 80px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
}

.logo .bracket {
    color: var(--color-primary);
}

.header.scrolled .logo {
    color: var(--color-dark-2);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    text-transform: capitalize;
    padding: 5px 0;
    position: relative;
}

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

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

.header.scrolled .nav-link {
    color: var(--color-dark-2);
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

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

.header.scrolled .nav-toggle span {
    background: var(--color-dark-2);
}

/* ===================================
    Buttons
====================================== */
.btn {
    display: inline-block;
    font-family: var(--font-btn);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark-2);
    border-color: transparent;
}

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

.btn-secondary {
    background: var(--color-primary);
    color: var(--color-dark-2);
    border-color: transparent;
    margin-right: 10px;
}

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

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

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

.btn-submit {
    background: transparent;
    color: var(--color-dark-2);
    border-color: var(--color-dark-2);
    margin-top: 1.5rem;
}

.btn-submit:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: transparent;
}

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

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: rgba(234, 234, 239, 1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    color: rgba(234, 234, 239, 1);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Slider Pagination */
.hero-slider .swiper-pagination {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    left: auto;
    width: auto;
}

.hero-slider .swiper-pagination-bullet {
    width: auto;
    height: auto;
    background: transparent;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-white);
}

.hero-slider .swiper-pagination-bullet::before {
    content: counter(bullet, decimal-leading-zero);
    counter-increment: bullet;
}

.hero-slider .swiper-pagination-bullet::after {
    content: '';
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.hero-slider .swiper-pagination-bullet-active::after {
    width: 50px;
    background: var(--color-primary);
}

/* ===================================
    Section Headers
====================================== */
.section-subtitle {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-dark-2);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-text {
    color: var(--color-gray);
    max-width: 570px;
    margin: 0 auto 30px;
}

.section-header {
    max-width: 570px;
    margin: 0 auto 50px;
}

/* ===================================
    About Section
====================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-list {
    margin-top: 25px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-gray);
}

.about-list li i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

/* ===================================
    Parallax / Stats Section
====================================== */
.parallax-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 7.5rem 0;
}

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

.parallax-section .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    text-align: center;
    color: var(--color-white);
}

.stat-box i {
    font-size: 50px;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-box h5 {
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
}

/* ===================================
    Prices Section
====================================== */
.prices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 50px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.price-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.price-desc {
    font-size: 14px;
    color: var(--color-gray);
    margin: 0;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

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

.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 10px;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-primary);
}

.filter-sep {
    color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-info {
    color: var(--color-white);
}

.gallery-info .plus {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    margin-bottom: 15px;
}

.gallery-info .plus::before,
.gallery-info .plus::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
}

.gallery-info .plus::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gallery-info .plus::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.gallery-info h5 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* ===================================
    Team Section
====================================== */
.team-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-end;
    margin-bottom: 60px;
}

.team-intro .section-title {
    margin-bottom: 15px;
}

/* Skills / Progress Bars */
.skill-item {
    margin-bottom: 25px;
}

.skill-item h6 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.skill-percent {
    color: var(--color-primary);
}

.skill-bar {
    height: 5px;
    background: #e9e9e9;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--color-primary);
    width: 0;
    transition: width 1.5s ease;
}

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

.team-member {
    position: relative;
    overflow: hidden;
}

.team-member img {
    width: 100%;
    height: auto;
    display: block;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px;
    text-align: center;
    transform: translateY(60px);
    transition: var(--transition);
}

.team-member:hover .member-info {
    transform: translateY(0);
}

.member-info h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-2);
    margin-bottom: 5px;
}

.member-info p {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
    color: var(--color-gray);
    font-size: 14px;
    transition: var(--transition);
}

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

/* ===================================
    Brands Section
====================================== */
.brands-section {
    background: var(--color-light);
    padding: 50px 0;
}

.brands-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-slider img {
    max-width: 150px;
    opacity: 0.5;
    transition: var(--transition);
}

.brands-slider img:hover {
    opacity: 1;
}

/* ===================================
    Reviews Section
====================================== */
.reviews-section {
    padding: 7.5rem 0;
}

.reviews-wrapper {
    max-width: 600px;
    margin-left: auto;
}

.review-item {
    background: var(--color-white);
    padding: 40px;
    border-radius: 5px;
}

.review-text {
    font-size: 16px;
    font-style: italic;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.review-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-2);
    margin-bottom: 3px;
}

.author-info p {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.rating {
    display: flex;
    gap: 3px;
}

.rating i {
    color: #ffc107;
    font-size: 14px;
}

.reviews-slider .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.reviews-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-white);
    opacity: 0.5;
}

.reviews-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

/* ===================================
    Contact Section
====================================== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group.full {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e9e9e9;
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-dark-2);
    transition: var(--transition);
}

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

.form-control::placeholder {
    color: var(--color-gray);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social ul {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    color: var(--color-gray);
    font-size: 16px;
    transition: var(--transition);
}

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

.footer-text p {
    font-size: 14px;
    color: var(--color-gray);
}

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

.footer-text .fa-heart {
    color: #e74c3c;
}

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

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

.scroll-top:hover {
    background: var(--color-dark-2);
    color: var(--color-white);
}

/* ===================================
    Responsive
====================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-dark);
        padding: 100px 30px 30px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-link {
        color: var(--color-white);
        font-size: 16px;
    }
    
    .header.scrolled .nav-link {
        color: var(--color-white);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.wide {
        grid-column: span 2;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-slider .swiper-pagination {
        display: none;
    }
    
    .reviews-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.wide {
        grid-column: span 1;
        aspect-ratio: 1;
    }
    
    .price-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-item {
        padding: 25px;
    }
}

/* ===================================
    Animations
====================================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Gallery Filter Animation */
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}


/* ============================================
   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;
}

