/* =============================================
   PORTFÓLIO JÚLIA HELENA - CSS COMPLETO
   Paleta de Roxos + Design Moderno
============================================= */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Roxos Variados */
    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;
    --purple-200: #ddd6fe;
    --purple-300: #c4b5fd;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --purple-800: #5b21b6;
    --purple-900: #4c1d95;
    
    /* Cor Principal */
    --primary: var(--purple-600);
    --primary-light: var(--purple-500);
    --primary-dark: var(--purple-700);
    --accent: var(--purple-400);
    --accent-glow: var(--purple-300);
    
    /* Cores de Fundo */
    --bg-primary: #0a0a0f;
    --bg-secondary: #131318;
    --bg-card: #1a1a24;
    
    /* Cores de Texto */
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Espaçamento */
    --section-padding: 60px;
    --container-max: 1200px;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.navbar {
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo span {
    color: var(--primary);
}

.logo:hover {
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger {
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger:hover span {
    background: var(--accent);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 30px rgba(139, 92, 246, 0.3);
}

.side-menu.active {
    right: 0;
}

.side-menu-content {
    padding: 80px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 20px;
}

.nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    padding-left: 10px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 40px;
}

.social-links {
    margin-top: auto;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease 0.5s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(139, 92, 246, 0.3);
    overflow: hidden;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.image-placeholder span {
    color: var(--text-muted);
    font-size: 18px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.floating-card svg {
    stroke: var(--primary);
    stroke-width: 2;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation: floatCard 6s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    left: -10%;
    animation: floatCard 6s ease-in-out infinite 3s;
}

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

/* ========== SECTION STYLES ========== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 6px 18px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 30px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 15px;
}

/* ========== SOBRE SECTION ========== */
.sobre {
    background: var(--bg-secondary);
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-highlight {
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: justify;
}

.text-justify {
    font-size: 15px;
    margin-bottom: 25px;
    text-align: justify;
}

.sobre-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========== EXPERIÊNCIA SECTION - COMPACTA ========== */
.experiencia {
    background: var(--bg-primary);
}

.timeline-compact {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline-compact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary) 10%, var(--primary) 90%, transparent);
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
}

.timeline-item[data-year]::before {
    content: attr(data-year);
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    transform: translateX(-100%);
    padding-right: 20px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.timeline-card {
    background: var(--bg-card);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.2);
    transform: translateX(5px);
}

.timeline-period {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.timeline-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.company {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.btn-expand {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-expand:hover {
    background: var(--primary);
    color: white;
    transform: translateX(3px);
}

/* ========== HABILIDADES SECTION ========== */
.habilidades {
    background: var(--bg-secondary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-group h3 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ========== PROJETOS SECTION ========== */
.projetos {
    background: var(--bg-primary);
}

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

.project-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.project-header h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.project-tags span {
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.project-tech span {
    font-size: 12px;
    color: var(--text-muted);
}

.project-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent);
    transform: translateX(3px);
    display: inline-block;
}

.in-progress {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ========== FORMAÇÃO SECTION ========== */
.formacao {
    background: var(--bg-secondary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.education-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: var(--transition);
}

.education-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.education-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.edu-institution {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.edu-period {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.edu-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========== CONTATO SECTION - COMPACTA ========== */
.contato {
    background: var(--bg-primary);
}

.contato-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-3px);
}

.contact-item.location {
    cursor: default;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 35px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-company {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 5px;
}

.modal-period {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .timeline-compact {
        padding-left: 25px;
    }
    
    .timeline-item[data-year]::before {
        position: static;
        transform: none;
        padding: 0;
        margin-bottom: 5px;
        display: block;
    }
    
    .timeline-marker {
        left: -25px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 25px;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .side-menu {
        width: 280px;
    }
}
