/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors */
    --bg-body: #F1F8FF;
    --bg-surface: #ffffff;
    --bg-surface-hover: #eaf3ff;

    --text-main: #0a1936;
    --text-secondary: #3b5078;
    --text-muted: #88a8e5;

    --border-light: #d1e2f9;
    --border-hover: #88a8e5;

    --primary: #143d96;
    --primary-foreground: #ffffff;

    --secondary: #88a8e5;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --section-gap: 120px;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
}

/* =========================================
   2. ANIMATIONS & TRANSITIONS
   ========================================= */

/* Blur Fade In */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.reveal-active {
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll {
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Rotation & Float */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* =========================================
   3. UTILITIES & HELPERS
   ========================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-bg {
    background-image:
        linear-gradient(to right, rgba(136, 168, 229, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(136, 168, 229, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Typography Utilities */
.display-text {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
}

.h1 { font-size: 3.5rem; letter-spacing: -0.02em; font-weight: 700; color: var(--primary); }
.h2 { font-size: 2.5rem; letter-spacing: -0.02em; font-weight: 600; color: var(--primary); }
.h3 { font-size: 2rem; letter-spacing: -0.01em; font-weight: 600; }
.h4 { font-size: 1.5rem; letter-spacing: -0.01em; font-weight: 500; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-base { font-size: 1rem; line-height: 1.6; }
.body-sm { font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }
.caption {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

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

/* =========================================
   4. COMPONENTS
   ========================================= */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 14px 0 rgba(20, 61, 150, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 61, 150, 0.23);
    background: #0f3075;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--primary);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
}

.btn-ghost:hover {
    background: var(--bg-surface-hover);
}

/* Beam Button */
.btn-beam {
    position: relative;
    padding: 2px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
}

.btn-beam-bg {
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 0deg, transparent 0 340deg, var(--primary) 360deg);
    animation: spin 4s linear infinite;
}

.btn-beam-inner {
    position: relative;
    background: white;
    color: var(--primary);
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-beam:hover .btn-beam-inner {
    background: #f8fafc;
}

/* --- Cards --- */
.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(20, 61, 150, 0.15);
    border-color: var(--secondary);
}

.portfolio-card {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    group: hover;
    border: 1px solid var(--border-light);
}

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

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.instagram-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(136, 168, 229, 0.3);
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* =========================================
   5. LAYOUT & SECTIONS
   ========================================= */
section {
    padding: var(--section-gap) 0;
    border-bottom: 1px dashed var(--border-light);
    position: relative;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-line {
    height: 1px;
    width: 40px;
    background: var(--primary);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(136, 168, 229, 0.4);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(20, 61, 150, 0.1);
    animation-delay: -4s;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Spacing & Sizes */
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.text-center { text-align: center; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.hidden { display: none; }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    background-color: #20c35b;
}
