/* ============================================
   PORTFOLIO BANANINHA - BASE CSS
   Design System & Core Styles
   ============================================ */

/* ── CSS Variables ── */
:root {
    --primary: #FFD700;
    --primary-hover: #ECEB00;
    --primary-glow: rgba(255, 215, 0, 0.3);
    --secondary: #6366F1;
    --accent: #EC4899;
    --background: #090D1A;
    --surface: #0F172A;
    --card-bg: rgba(15, 22, 42, 0.65);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --text-heading: #FFFFFF;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    --instagram: #E1306C;
    --tiktok: #010101;
    --youtube: #FF0000;
    --facebook: #1877F2;
    --kwai: #FF8000;
    --glass-blur: blur(12px) saturate(180%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --z-background: -1;
    --z-content: 1;
    --z-header: 100;
    --z-modal: 200;
    --z-toast: 300;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ── Utilities ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yellow-gradient {
    background-image: linear-gradient(135deg, var(--primary) 0%, #F59E0B 50%, var(--accent) 100%);
}

.purple-gradient {
    background-image: linear-gradient(135deg, var(--secondary) 0%, #C084FC 50%, var(--accent) 100%);
}

/* ── Glow Background ── */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    overflow: hidden;
}

@keyframes float-blob-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.95);
    }
}

@keyframes float-blob-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 40px) scale(1.15);
    }
}

@keyframes float-blob-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(0.9);
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
    mix-blend-mode: screen;
}

.blob-1 {
    top: -5%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: var(--primary);
    animation: float-blob-1 25s ease-in-out infinite;
}

.blob-2 {
    bottom: 15%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: var(--secondary);
    animation: float-blob-2 30s ease-in-out infinite;
}

.blob-3 {
    top: 45%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    animation: float-blob-3 20s ease-in-out infinite;
}

/* ── Glass Card ── */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* ── Section Base ── */
.block-section {
    padding: 7rem 0;
    position: relative;
}

.block-section h1,
.block-section h2,
.block-section h3,
.block-section .hero-title,
.block-section .section-title {
    font-size: var(--block-title-size, inherit);
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #E6C200);
    color: var(--btn-text-color, #000);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-heading);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ── Navigation ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background-color: var(--header-bg, rgba(9, 13, 26, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: var(--header-bg, rgba(9, 13, 26, 0.95));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo span,
.logo .logo-text {
    color: var(--primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    color: var(--header-link-color, var(--text-muted));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--header-link-hover, var(--text-heading));
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary);
}

.nav-cta {
    margin-left: 1rem;
}

.nav-cta .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ── Page Shell ── */
#page-content {
    min-height: 100vh;
    padding-top: 72px;
}

/* ── WhatsApp Float Button ── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 50;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ── Lightbox Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-caption {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: var(--text-heading);
    font-size: 0.9rem;
    z-index: var(--z-toast);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .block-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(9, 13, 26, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.3rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.4s var(--ease-out-expo);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}