/* Base Variables & Reset */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-red: #d4af37;
    --accent-orange: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-glow: rgba(212, 175, 55, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Background Blobs for depth */
.blob-bg {
    display: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6c2bc9 0%, transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

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

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    color: var(--accent-red);
    display: inline-block;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: white;
    border: none;
    box-shadow: 0 8px 24px var(--glass-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 59, 59, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.2);
    color: var(--accent-orange);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.card-hero {
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.card-header {
    margin-bottom: 2rem;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
    margin-right: 6px;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.code-line {
    height: 16px;
    background: var(--glass-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

.pulse-bg {
    position: relative;
    overflow: hidden;
}

.pulse-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.green {
    background: #22c55e;
    color: #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 59, 59, 0.1);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-role {
    font-size: 0.875rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '→';
    color: var(--accent-red);
    margin-right: 8px;
    font-weight: bold;
}

/* Footer & CTA */
footer {
    padding: 2rem 0 4rem;
}

.footer-content {
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content::before {
    display: none;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.footer-emails {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    background: rgba(255,255,255,0.03);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.email-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-red);
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
    .hero > .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    .footer-emails {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .footer-content {
        padding: 2rem;
    }
}
.card-image-wrap { 
    display: block;
    width: 100%; 
    height: 180px; 
    background-color: #1e293b;
    overflow: hidden; 
    border-radius: 12px; 
    margin-bottom: 1.5rem; 
    position: relative;
    z-index: 5;
} 
.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
    display: block;
    filter: brightness(1.3) contrast(1.05);
} 
.project-card:hover .card-img { 
    transform: scale(1.05); 
}

/* ========================================= */
/* SARGON AI - WIDGET NATIVO B2B FRONTEND   */
/* ========================================= */
#sargon-ai-launcher {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    border: 2px solid var(--accent-red); border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.4);
    cursor: pointer; z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#sargon-ai-launcher:hover { transform: scale(1.1); box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6); }
#sargon-ai-launcher svg { width: 32px; height: 32px; fill: var(--text-main); }
#sargon-ai-launcher .notification-dot {
    position: absolute; top: 0; right: 0; width: 15px; height: 15px;
    background: #ff3b3b; border-radius: 50%; border: 3px solid var(--bg-darker);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

#sargon-chat-window {
    position: fixed; bottom: 110px; right: 30px; width: 380px; height: 550px; max-height: 80vh;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8); display: flex; flex-direction: column;
    z-index: 10000; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden;
}
#sargon-chat-window.active { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.sargon-header { background: linear-gradient(90deg, #020617, #0f172a); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sargon-identity { display: flex; align-items: center; gap: 12px; }
.sargon-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-red); display: flex; justify-content: center; align-items: center; font-weight: bold; color: #020617; font-size: 1.2rem; }
.sargon-title p { margin:0; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.sargon-status { margin:0; font-size: 0.75rem; color: #22c55e; display: flex; align-items: center; gap: 4px; }
.sargon-status::before { content:''; width:6px; height:6px; background:#22c55e; border-radius:50%; display:inline-block; }

.sargon-actions { display: flex; gap: 8px; }
.sargon-btn-icon { background: rgba(255,255,255,0.05); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items:center; justify-content:center; text-decoration: none;}
.sargon-btn-icon:hover { background: var(--accent-red); color: #000; }

.sargon-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; scroll-behavior: smooth;}
.sargon-body::-webkit-scrollbar { width: 6px; }
.sargon-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; animation: popIn 0.3s ease forwards; word-wrap: break-word; }
.bubble-ai { background: rgba(255,255,255,0.05); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 2px; border: 1px solid rgba(255,255,255,0.02); }
.bubble-user { background: var(--accent-red); color: #020617; font-weight: 500; align-self: flex-end; border-bottom-right-radius: 2px; }

.sargon-input-area { padding: 15px 20px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; align-items: flex-end; }
#sargon-input { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px 15px; color: var(--text-main); font-family: var(--font-body); font-size: 0.9rem; resize: none; height: 45px; outline: none; transition: border 0.3s ease; }
#sargon-input:focus { border-color: var(--accent-red); }
#sargon-send { background: var(--accent-red); color: #020617; border: none; width: 45px; height: 45px; border-radius: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s; flex-shrink: 0; }
#sargon-send:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212,175,55,0.3); }

/* Animation Utils */
@keyframes popIn { 0% { opacity:0; transform:translateY(10px) scale(0.95); } 100% { opacity:1; transform:translateY(0) scale(1); } }
.typing-indicator { display: none; gap: 4px; padding: 12px 16px; background: rgba(255,255,255,0.03); border-radius: 12px; align-self: flex-start; border-bottom-left-radius: 2px; }
.typing-indicator.active { display: flex; }
.typing-indicator span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; opacity: 0.4; animation: blink 1.4s infinite both; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0% { opacity: 0.2; transform: scale(0.8); } 20% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.2; transform: scale(0.8); } }

@media (max-width: 600px) {
    #sargon-chat-window { width: calc(100% - 40px); right: 20px; bottom: 100px; height: 75vh; }
    #sargon-ai-launcher { bottom: 20px; right: 20px; width: 60px; height: 60px; }
}
