/* =========================================
   Personal Portfolio - Styles
   {BYAP} - Andre Paiva
   ========================================= */

/* Skip Link - Acessibilidade */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary, #6c5ce7);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

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

/* =========================================
   CSS Variables
   ========================================= */
:root {
    /* Colors */
    --primary: #6c5ce7;
    --primary-dark: #5b4bc4;
    --accent: #6c5ce7;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --black: #000000;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --sidebar-bg: #16213e;
    --sidebar-width: 100px;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s 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 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.accent {
    color: var(--accent);
}

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

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

.spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.bounce1,
.bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: bounce 2s infinite ease-in-out;
}

.bounce2 {
    animation-delay: -1s;
}

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

/* =========================================
   Sidebar Navigation
   ========================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition-normal);
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
}

.sidebar-logo img {
    max-width: 50px;
    margin: 0 auto;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    margin: 0 auto;
}

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

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-menu {
    width: 100%;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: var(--transition-normal);
}

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

.nav-link:hover::before,
.nav-link.active::before {
    height: 100%;
}

.nav-link svg {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
}

.nav-link span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-social {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sidebar-social a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-normal);
}

.sidebar-social a:hover {
    color: var(--accent);
}

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

/* =========================================
   Main Content
   ========================================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1;
}

.page {
    display: none;
    min-height: calc(100vh - 60px);
    padding: 50px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
    display: flex;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Section Styles
   ========================================= */
.section-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    min-height: 50px;
}

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

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

.btn-link {
    background: transparent;
    color: var(--text-dark);
    padding: 0;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-normal);
}

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

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

.btn svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   Hero Section
   ========================================= */
#home .container {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.hero-box h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-square {
    width: 50px;
    height: 50px;
    background: var(--accent);
    top: 10%;
    left: 5%;
    animation: rotate 20s linear infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--accent);
    top: 70%;
    left: 10%;
    animation: rotate 25s linear infinite reverse;
}

.shape-plus {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 10%;
}

.shape-plus::before,
.shape-plus::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.shape-plus::before {
    width: 100%;
    height: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.shape-plus::after {
    width: 10px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.shape-circle {
    width: 80px;
    height: 80px;
    border: 10px solid var(--accent);
    border-radius: 50%;
    bottom: 20%;
    right: 5%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* =========================================
   About Section
   ========================================= */
#about .container {
    position: relative;
}

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

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-card.center {
    width: 50%;
    margin: 0 auto;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.feature-link:hover {
    transform: translateX(5px);
}

.feature-link svg {
    width: 18px;
    height: 18px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.dot-pattern {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, var(--accent) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.2;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

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

.skills-list {
    margin: 30px 0;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-info h6 {
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-info span {
    font-weight: 600;
    color: var(--accent);
}

.skill-bar {
    height: 8px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary-dark));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-progress.animated {
    width: var(--progress-width);
}

.counters-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
    border-radius: var(--radius-md);
}

.counter-icon svg {
    width: 24px;
    height: 24px;
}

.counter-content h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.counter-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.services-about {
    position: relative;
}

.service-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-image img {
    width: 100%;
    height: auto;
}

.service-quote {
    position: absolute;
    bottom: -30px;
    left: 30px;
    right: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.service-quote p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.service-quote h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.service-quote span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   Portfolio Section
   ========================================= */
.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.portfolio-item.tall {
    grid-row: span 1;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 92, 231, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

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

.portfolio-zoom {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--accent);
    border-radius: 50%;
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

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

.portfolio-zoom svg {
    width: 24px;
    height: 24px;
}

.portfolio-info {
    text-align: center;
    color: var(--white);
}

.portfolio-info span {
    font-size: 0.85rem;
}

.portfolio-info h5 {
    font-size: 1.1rem;
    margin-top: 5px;
}

/* =========================================
   Clients Section
   ========================================= */
#clients .container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.clients-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    flex: 1;
}

.clients-heading p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.nav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

.testimonials-slider {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: calc(50% - 10px);
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.quote-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
    border-radius: 50%;
    margin-bottom: 20px;
}

.quote-icon svg {
    width: 24px;
    height: 24px;
}

.testimonial-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial-author h5 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Partners Slider */
.partners-slider {
    margin-top: 50px;
    overflow: hidden;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 50px;
    animation: scroll 20s linear infinite;
}

.partner-item {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item img {
    max-height: 50px;
}

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

/* =========================================
   Contact Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    margin: 30px 0;
}

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

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.address-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.address-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.address-list li.address-full {
    width: 100%;
    margin-bottom: 10px;
}

.address-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.address-icon svg {
    width: 20px;
    height: 20px;
}

.address-content h6 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.address-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.address-content a {
    color: var(--text-light);
}

.address-content a:hover {
    color: var(--accent);
}

.contact-map {
    height: 100%;
    min-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map iframe {
    filter: grayscale(30%);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 20px 30px;
    text-align: center;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.footer .heart {
    width: 14px;
    height: 14px;
    color: #e74c3c;
    display: inline-block;
    vertical-align: middle;
    animation: heartbeat 1.5s ease infinite;
}

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

/* =========================================
   Lightbox
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
}

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 1200px) {
    .hero-box h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-about {
        margin-top: 50px;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 80px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 60%;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        order: 1;
    }
    
    .feature-card.center {
        width: 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--sidebar-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-normal);
    }
    
    .sidebar-nav.active {
        left: 0;
    }
    
    .nav-menu {
        text-align: center;
    }
    
    .nav-link {
        flex-direction: row;
        gap: 10px;
        padding: 15px 30px;
    }
    
    .nav-link svg {
        margin-bottom: 0;
    }
    
    .nav-link span {
        font-size: 1rem;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .sidebar-social {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 60px;
    }
    
    .page {
        min-height: calc(100vh - 120px);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-box h1 {
        font-size: 2.2rem;
    }
    
    .hero-image img {
        max-width: 80%;
    }
    
    .features-row {
        grid-template-columns: 1fr;
    }
    
    .counters-row {
        flex-direction: column;
    }
    
    .service-quote {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-nav {
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-box h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

/* Touch Targets */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn,
    .feature-link,
    .portfolio-zoom,
    .nav-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

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

/* Print Styles */
@media print {
    .sidebar,
    .lightbox,
    .floating-shapes {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-after: always;
    }
}

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


/* ============================================
   FAANG-LEVEL FINAL - PERFORMANCE & POLISH
   ============================================ */

/* Prevent CLS - Aspect Ratio for Images */
img {
  aspect-ratio: attr(width) / attr(height);
  height: auto;
  max-width: 100%;
}

/* Placeholder Aspect Ratios */
.img-16-9 { aspect-ratio: 16/9; }
.img-4-3 { aspect-ratio: 4/3; }
.img-1-1 { aspect-ratio: 1/1; }
.img-3-2 { aspect-ratio: 3/2; }

/* Optimized Font Loading */
body {
  font-display: swap;
}

/* Content Visibility for Below Fold */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

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

/* Skip visible focus for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Tabindex Navigation Indicator */
[tabindex]:focus-visible {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.4);
}

/* Performance: GPU Acceleration for Animations */
.animate-gpu,
[data-aos] {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce Repaints */
.fixed-header,
.sticky-nav,
header,
nav {
  will-change: transform;
  contain: layout style;
}

/* Touch Action for Better Mobile */
button,
a,
[role="button"] {
  touch-action: manipulation;
}

/* iOS Smooth Scrolling */
.scroll-container {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Prevent FOUC */
.js-loading *,
.js-loading *:before,
.js-loading *:after {
  animation-play-state: paused !important;
}

/* Critical Render Path */
.critical {
  contain: content;
}

/* Lazy Fade In */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Optimized Shadows (GPU) */
.shadow-optimized {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
}

/* Better Typography */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
  max-width: 70ch;
}

/* Fluid Typography */
html {
  font-size: clamp(14px, 1vw + 12px, 18px);
}

/* Better Image Rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  object-fit: cover;
}

/* Optimized Gradients */
.gradient-optimized {
  background: linear-gradient(135deg, var(--cor-primaria, #6366f1), var(--cor-secundaria, #a855f7));
  background-attachment: fixed;
}

/* Vibration API Hook (CSS indicator) */
.haptic-feedback {
  --haptic-active: 0;
}

.haptic-feedback:active {
  --haptic-active: 1;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
  }
}


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

