@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800;900&display=swap');

:root {
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary: #0072ff;
    --bg-deep: #000408;
    --bg-card: #0a1118;
    --bg-glass: rgba(10, 17, 24, 0.7);
    --text-white: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-glass: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 20px var(--primary-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preloader Premium */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    background: var(--bg-deep); /* Fallback */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05); /* Slight zoom out effect on exit */
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
    animation: fadeInScale 1s ease forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.preloader-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px; /* Base size, can adjust based on logo/media */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.2); /* Glow effect */
}

.preloader-media {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

.preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.preloader-text span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Simulated Progress Bar */
.preloader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
    border-radius: 4px;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@media (max-width: 768px) {
    .preloader-desktop { display: none !important; }
    .preloader-mobile { display: block !important; }
    .preloader-media-wrapper { max-width: 200px; }
}

@media (min-width: 769px) {
    .preloader-mobile { display: none !important; }
    .preloader-desktop { display: block !important; }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 20px;
}

h1 { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900; letter-spacing: -2px; }
h2 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -1px; text-align: center; margin-bottom: 50px; }
h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; }

p { font-size: 1.125rem; color: var(--text-dim); }

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    gap: 10px;
}

.btn-primary { 
    background: var(--primary); 
    color: #000; 
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3); 
}
.btn-primary:hover { 
    background: #fff; 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2); 
}

.btn-outline { 
    background: transparent; 
    color: var(--text-white); 
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}
.btn-outline:hover { 
    background: var(--border-glass);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-5px);
}

/* Visibility Utilities */
.mobile-only { display: none !important; }
@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* FIXED HEIGHT */
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    background: rgba(0, 4, 8, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo-link img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-height: 50px; /* Default */
    object-fit: contain;
}

@media (max-width: 768px) {
    .main-header {
        height: 60px; /* FIXED HEIGHT MOBILE */
    }
    .logo-link img {
        max-height: var(--logo-h-mobile, 40px) !important;
    }
}

.logo-text-fallback {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--text-white);
    letter-spacing: -1.5px;
    line-height: 1.2 !important;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.15), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(0, 114, 255, 0.1), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content { position: relative; z-index: 10; }
.hero-content p { margin-bottom: 40px; font-size: 1.25rem; max-width: 550px; }

.hero-visual { position: relative; }
.hero-visual img { 
    width: 100%; 
    border-radius: 30px; 
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-right: 5px solid var(--primary);
    border-top: 5px solid var(--primary);
    border-radius: 0 30px 0 0;
}

/* Section Components */
section { padding: 120px 0; }

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 3px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Portfolio Cards */
.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
    cursor: pointer;
}

.project-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image-container img { transform: scale(1.1); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    text-align: left;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: var(--text-dim);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 5;
}

.project-category {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 5px;
    display: block;
}

.project-card h3 { margin-bottom: 5px; font-size: 1.5rem; }

/* Pricing Section Premium Overhaul */
.pricing-section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap; /* Force same line on desktop */
    padding: 60px 0;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .pricing-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
}

.pricing-card {
    padding: 45px 35px;
    width: 340px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    margin-right: -40px; /* Stacking effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Stacking order */
.pricing-card:nth-child(1) { z-index: 1; }
.pricing-card:nth-child(2) { z-index: 2; }
.pricing-card:nth-child(3) { z-index: 3; }
.pricing-card:nth-child(4) { z-index: 4; margin-right: 0; }

.pricing-card:hover {
    transform: translateY(-20px) scale(1.08);
    z-index: 999 !important;
    border-color: var(--accent);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
    background: rgba(20, 20, 25, 0.95);
}

/* Neon Identities */
.pricing-card[data-plan="START"] { --accent: #00d2ff; --accent-glow: rgba(0, 210, 255, 0.4); }
.pricing-card[data-plan="PRO"] { --accent: #a855f7; --accent-glow: rgba(168, 85, 247, 0.4); }
.pricing-card[data-plan="ELITE"] { --accent: #fbbf24; --accent-glow: rgba(251, 191, 36, 0.4); }
.pricing-card[data-plan="TRAFFIC"] { --accent: #ec4899; --accent-glow: rgba(236, 72, 153, 0.4); }

.plan-badge-premium {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent);
    z-index: 10;
}

.card-title-premium {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #fff;
    letter-spacing: -1px;
}

.card-subtitle-premium {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
}

.price-box-premium {
    margin: 25px 0;
}

.old-price-premium {
    text-decoration: line-through;
    opacity: 0.4;
    font-size: 0.9rem;
    display: block;
}

.current-price-premium {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

/* Estilos Tabela Desktop */
.th-plan {
    padding: 30px 20px;
    transition: 0.3s;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: -1px;
}
.th-plan.active { background: rgba(255,255,255,0.03); }

.cell-check { color: #22c55e; font-size: 1.2rem; }
.cell-cross { color: #ef4444; font-size: 1.2rem; opacity: 0.8; }

.monthly-tag-premium {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 5px;
}

.btn-plan-premium {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.btn-plan-premium:hover {
    box-shadow: 0 0 25px var(--accent);
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
        gap: 30px;
    }
    .pricing-card {
        width: 100%;
        margin-right: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Pricing Premium */
.modal-pricing {
    max-width: 1200px !important;
    width: 95% !important;
    padding: 0 !important;
    margin: auto; /* Allow natural centering in scrollable flex */
}

.modal-pricing-header {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    padding: 60px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-container {
    padding: 40px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-dim);
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    width: 30%;
    font-weight: 600;
}

.comparison-category {
    background: rgba(255,255,255,0.03);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 800;
    text-align: left !important;
}

.comparison-table .check-icon { color: #22c55e; font-size: 1.2rem; }
.comparison-table .cross-icon { color: #ef4444; font-size: 1.2rem; opacity: 0.8; }
.comparison-table .val-text { font-size: 0.9rem; font-weight: 600; color: #fff; }

/* Mobile Accordion Styles */
.mobile-accordion {
    display: none;
    padding: 20px;
}

.accordion-group {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accordion-group.active .accordion-content {
    max-height: 1500px; /* Big enough for features */
}

.accordion-group.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item-row {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.item-name {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.item-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

.plan-val-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.plan-val-name {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Badges Mobile */
.plan-badge-mobile {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}
.badge-start { background: #22c55e; color: #000; }
.badge-pro { background: #00d2ff; color: #000; }
.badge-elite { background: #ef4444; color: #fff; }
.badge-traffic { background: #a855f7; color: #fff; }

/* Botões do Plano no Modal */
.btn-start { background: #003366 !important; color: #fff !important; }
.btn-pro { background: #00d2ff !important; color: #000 !important; box-shadow: 0 0 20px rgba(0, 210, 255, 0.5) !important; }
.btn-elite { background: #fbbf24 !important; color: #000 !important; }
.btn-traffic { background: linear-gradient(135deg, #a855f7, #ec4899) !important; color: #fff !important; }

.modal-footer-btns {
    padding: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background: linear-gradient(to top, rgba(255,255,255,0.05), transparent);
}

.modal-footer-btns .btn {
    min-width: 220px;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    text-align: center;
}

@media (max-width: 900px) {
    .comparison-container { display: none; }
    .mobile-accordion { display: block; }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 40px 25px;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    /* Force grids to 1 column */
    .features-grid, 
    .portfolio-grid, 
    .contact-grid, 
    .contact-form-row,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

.price-value { font-size: 3.5rem; font-weight: 900; color: var(--text-white); }
.price-period { color: var(--text-muted); font-size: 1rem; }

.feature-list { list-style: none; margin: 30px 0; flex-grow: 1; }
.feature-list li { 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 12px;
    font-size: 0.95rem;
}

.feature-list li.disabled { color: var(--text-muted); text-decoration: line-through; }
.feature-list li i { color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero-section { padding-top: 60px; }
}

/* Age Gate Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0) !important;
    backdrop-filter: blur(0px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.modal-overlay.active {
    display: flex !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(15px);
}

.modal-overlay .glass-card {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active .glass-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.mobile-handle { display: none; }

.btn-close-modal {
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(255,255,255,0.05); 
    border: none; 
    color: #fff; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: var(--transition);
}

.btn-close-modal:hover { background: rgba(255,255,255,0.15); color: var(--primary); }

@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    
    .modal-overlay .glass-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 30px 30px 0 0 !important;
        transform: translateY(100%);
        max-height: 92vh;
        overflow-y: auto;
        padding-top: 50px !important;
        border-bottom: none !important;
    }
    
    .modal-overlay.active .glass-card {
        transform: translateY(0);
    }
    
    .mobile-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
    }

    .btn-close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        background: rgba(255,255,255,0.1);
    }
}

/* FINAL MOBILE OVERHAUL - BREAKPOINTS 320px - 480px */
@media (max-width: 480px) {
    section { padding: 60px 0; }
    
    /* Global Container */
    .container { padding: 0 16px !important; }

    /* Header */
    .main-header { padding: 8px 0; position: fixed; background: rgba(0,4,8,0.95) !important; backdrop-filter: blur(10px); }
    .main-header .container { justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 12px !important; }
    .logo { flex-shrink: 1; }
    .logo a { font-size: 13px; letter-spacing: -1px; white-space: nowrap; }
    .header-cta { flex-shrink: 0; }
    .main-header .btn-primary { 
        padding: 6px 10px; 
        font-size: 10px; 
        border-radius: 6px; 
        white-space: nowrap;
        min-width: unset;
        width: auto;
    }
    
    /* Hero */
    .hero-section { padding-top: 50px; text-align: center; overflow: hidden; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 15px; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 25px; margin-inline: auto; }
    .hero-visual { margin-top: 20px; }
    .hero-visual::before { display: none; }
    
    /* Seção "Por que escolher a BWS?" Cards */
    .features-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .feature-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 25px 20px !important;
    }
    
    /* Pricing Section */
    .pricing-grid {
        padding: 20px 0 !important;
        gap: 20px !important;
    }
    .pricing-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 30px 20px !important;
        transform: none !important;
    }
    .pricing-card:hover {
        transform: translateY(-5px) !important;
        scale: 1 !important;
    }
    .card-title-premium { font-size: 1.6rem; }
    .current-price-premium { font-size: 2.5rem; }
    
    /* Modal / Accordion */
    .modal-pricing-header { padding: 30px 15px; }
    .modal-pricing-header h2 { font-size: 1.4rem; }
    .item-values-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .plan-val-box { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }
    .plan-val-name { font-size: 0.6rem; }
    
    /* Contact Form - Full Width Stack */
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    .form-group { width: 100% !important; margin-bottom: 15px !important; }
    .form-control { font-size: 16px !important; padding: 12px !important; }
    .btn-submit { width: 100% !important; height: 50px !important; }
    .contact-form-box { padding: 30px 20px !important; }

    /* Footer Overhaul */
    .footer-section { padding: 40px 0; }
    .footer-grid {
        text-align: center;
        gap: 30px !important;
    }
    .footer-col {
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 0;
    }
    .footer-logo { margin-bottom: 10px; }
    .footer-links { text-align: center; }
    .footer-links li { margin-bottom: 8px; }
    .copyright { font-size: 11px; padding: 15px 0; }
}

@media (max-width: 360px) {
    .logo a { font-size: 13px; }
    .hero-content h1 { font-size: 1.6rem; }
    .current-price-premium { font-size: 2.2rem; }
}

/* Global Overflow Protection */
body, html {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    position: relative;
}

* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

img, video, canvas, svg {
    max-width: 100%;
}

.contact-form label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--text-dim); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

/* FOOTER */
/* Dynamic Media Management */
.dynamic-media {
    display: block;
    width: 100%;
    height: auto;
    transition: var(--transition);
}

/* Base shadow for premium look */
.dynamic-media {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Sizing Classes */
.size-small { max-width: 320px !important; }
.size-medium { max-width: 600px !important; }
.size-large { max-width: 1000px !important; }
.size-full { max-width: 100% !important; }

/* Alignment Classes */
.align-left { margin-right: auto !important; margin-left: 0 !important; }
.align-center { margin-inline: auto !important; }
.align-right { margin-left: auto !important; margin-right: 0 !important; }

/* Responsive Reset */
@media (max-width: 768px) {
    .size-small, .size-medium, .size-large {
        max-width: 100% !important;
    }
}

.media-logo img, .media-logo svg {
    width: auto !important;
    height: 165px !important; /* Requested 165x165 */
    max-height: 45px !important; /* BUT capped to prevent navbar expansion */
    object-fit: contain;
}

@media (max-width: 768px) {
    .media-logo img, .media-logo svg {
        max-height: 35px !important;
    }
}

.hero-visual video, .hero-visual img {
    border-radius: 24px;
    width: 100%;
}

.about-image .hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-image video, .about-image img {
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure video fills correctly */
video.dynamic-media {
    object-fit: cover;
    background: #000;
}

.media-link {
    display: block;
    width: fit-content;
}

/* Logo fallback text style */
.logo a {
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* -------------------------------------
 * MODERNIZATION (Premium 2026 Standards)
 * ------------------------------------- */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Enhanced Glow and Glassmorphism */
::selection {
    background: var(--primary);
    color: #000;
}

.glass-card, .project-card, .pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover, .project-card:hover {
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.hero-visual .dynamic-media {
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

.glow-blur {
    animation: float 8s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.1); }
}

/* ==========================================================================
   Portfolio Modern Section Refinement
   ========================================================================== */

.section-badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 210, 255, 0.2);
    text-transform: uppercase;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 210, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* FIX: Active Filter Bug - Ensuring contrast and visibility */
.filter-pill.active {
    background: rgba(0, 234, 255, 0.15) !important;
    color: #00eaff !important;
    border: 1px solid #00eaff !important;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}

.filter-pill.active span, .filter-pill.active i {
    color: #00eaff !important;
}

.filter-pill.is-hot {
    border-color: rgba(255, 77, 77, 0.3);
}

.filter-pill.is-hot.active {
    background: rgba(255, 77, 77, 0.15) !important;
    color: #ff4d4d !important;
    border-color: #ff4d4d !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    position: relative;
    display: block;
    background: #0a0a0b;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 4, 8, 0.95) 0%, transparent 60%);
    opacity: 0.8;
    transition: all 0.4s ease;
    z-index: 2;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.portfolio-card:hover::after {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 4, 8, 0.95) 0%, rgba(0, 210, 255, 0.1) 100%);
}

.card-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-badge {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.badge-featured { background: var(--primary); color: #000; border: 1px solid rgba(255,255,255,0.2); }
.badge-hot { background: #ff4757; color: #fff; border: 1px solid rgba(255,71,87,0.3); }

.portfolio-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 10;
    transition: all 0.4s ease;
}

.portfolio-cat {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.portfolio-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.portfolio-card:hover .portfolio-desc {
    max-height: 80px;
    margin-bottom: 25px;
    opacity: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}

.portfolio-card:hover .portfolio-tags {
    opacity: 1;
    transform: translateY(0);
}

.tag-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    text-transform: uppercase;
}
#portfolio-empty {
    grid-column: 1 / -1;
    padding: 100px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Responsive Portfolio Refined */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin-bottom: 40px;
    }
    
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    .portfolio-title {
        font-size: 1.3rem;
    }
}
