@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --bg-dark: #0a0508;               /* Deep Dark Reddish Black */
    --bg-card: rgba(20, 10, 15, 0.6);  /* Dark Red/Purple Glass */
    --border-color: rgba(239, 68, 68, 0.15); /* Crimson Red Border */
    --border-hover: rgba(239, 68, 68, 0.5);
    
    --primary: #ef4444;               /* Crimson Red */
    --primary-rgb: 239, 68, 68;
    --primary-glow: rgba(239, 68, 68, 0.25);
    
    --secondary: #8b5cf6;             /* Deep Purple */
    --secondary-rgb: 139, 92, 246;
    
    --tertiary: #10b981;              /* Emerald */
    
    --text-primary: #f3f4f6;          /* Crisp Off-White */
    --text-muted: #9ca3af;             /* Muted Slate Grey */
    --text-dark: #1f2937;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-tech: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mono: 'Archivo Black', sans-serif;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(239, 68, 68, 0.08) 0, transparent 40%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.08) 0, transparent 40%),
        radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.05) 0, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #11080a;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

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

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

.text-center { text-align: center; }
.text-light { color: var(--text-primary); }

/* Typography */
.section-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    line-height: 1.5;
}

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

.sobre-section, .portfolio-gallery-section, .contact-section {
    padding: 7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Glassmorphism System */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.card-glass:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.08);
}

.card-glass-glow {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
}

.card-glass-glow:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-whatsapp-cta {
    background: linear-gradient(135deg, var(--tertiary), #047857);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.btn-whatsapp-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 5, 8, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.08);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-link {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Hero Section */
.hero-split-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 5rem 2rem;
    position: relative;
}

.hero-split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-split-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(239, 68, 68, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    margin-bottom: 1.5rem;
}

.hero-split-title {
    font-family: var(--font-tech);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

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

.hero-split-media {
    position: relative;
    border-radius: 12px;
    padding: 1rem;
    background: rgba(17, 10, 25, 0.4);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
}

.hero-split-media::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 16px;
    opacity: 0.5;
    pointer-events: none;
}

/* Manifesto Section */
.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.corp-grid {
    grid-template-columns: 1fr 2fr;
}

.manifesto-img-wrapper, .corp-photo-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border-color);
}

.circus-profile-photo, .corp-photo {
    width: 100%;
    height: auto;
    transition: var(--transition-smooth);
    filter: brightness(0.8) contrast(1.2);
}

.manifesto-img-wrapper:hover .circus-profile-photo,
.corp-photo-container:hover .corp-photo {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1);
}

.manifesto-title {
    font-family: var(--font-tech);
    font-size: 2.2rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--primary);
    padding-left: 1.2rem;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.body-text-justify {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Timeline */
.corp-formation {
    margin-bottom: 2rem;
}

.corp-cv-title {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.corp-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.5), transparent);
    margin: 2rem 0;
}

.corp-cv-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.corp-cv-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.5;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

/* Gallery */
.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 5, 8, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-overlay h4 {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.photo-card-overlay p {
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Cards */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-cards-grid-single {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
    transition: var(--transition-smooth);
}

.contact-info-card:hover .icon-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

.card-text-block h4 {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.card-text-block p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.action-link {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-fast);
}

.contact-info-card:hover .action-link {
    gap: 0.6rem;
    color: var(--primary);
}

/* Footer */
#main-footer {
    background: rgba(10, 5, 8, 0.9);
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    padding: 4rem 2rem 2rem 2rem;
    text-align: center;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dev-credits {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Floating WhatsApp */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--tertiary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.whatsapp-tooltip {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-split-container, .manifesto-grid, .corp-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-split-content {
        text-align: center;
    }
    
    .hero-split-title {
        font-size: 3.5rem;
    }
    
    .hero-cta-container {
        justify-content: center;
        text-align: center !important;
    }
    
    .manifesto-img-wrapper, .corp-photo-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    #nav-menu {
        display: none;
    }
}
