:root {
    /* Colors - Tema Roxo Neon */
    --bg-main: #1d003a; 
    --bg-secondary: #2c0057; 
    --text-main: #FFFFFF;
    --text-muted: #d5c2e6;
    --accent: #d845ff; 
    --accent-glow: rgba(216, 69, 255, 0.5);
    --highlight: #ff00d4; 
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-sans: 'Space Grotesk', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --sidebar-width: 100px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: pulseOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px; height: 600px;
    background: rgba(216, 69, 255, 0.2);
    top: -150px; left: -100px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: rgba(255, 0, 212, 0.25);
    bottom: -100px; right: -50px;
    animation-delay: -3s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: rgba(144, 26, 212, 0.2);
    top: 40%; left: 40%;
    animation-delay: -7s;
}

@keyframes pulseOrb {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, -50px); }
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(29, 0, 58, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 100;
}

.sidebar-header .logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: auto;
    margin-bottom: auto;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: var(--transition);
    letter-spacing: 2px;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-item::after {
    content: '';
    position: absolute;
    left: -15px; 
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent);
    border-radius: 2px;
}

.nav-item:hover::after, .nav-item.active::after {
    height: 100%;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 0 5%;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

h1, h2, h3 { font-family: var(--font-heading); }
.accent { color: var(--accent); }
.highlight { 
    color: var(--highlight); 
    text-shadow: 0 0 10px rgba(255,0,212,0.5);
}
.glowing-text {
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 25px var(--accent-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 0 50px 0;
}

.hero-center {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero .title {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    padding: 3rem 2rem;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--highlight);
}

.info-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.focus-card {
    background: linear-gradient(180deg, rgba(216, 69, 255, 0.1), transparent);
    border-color: rgba(216, 69, 255, 0.3);
}

.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(29, 0, 58, 0.8);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
    box-shadow: inset 0 0 10px rgba(216, 69, 255, 0.2);
}

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

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

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(29, 0, 58, 0.9) 0%, transparent 100%);
    z-index: 1;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: var(--highlight);
    box-shadow: 0 0 30px rgba(255,0,212,0.2);
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.view-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: var(--transition);
}

.view-link:hover {
    color: var(--highlight);
    transform: translateX(5px);
}

.project-card.large {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(45deg, #2d004d, #1a0033);
}

.project-card.project-2 {
    background: linear-gradient(135deg, #4d004d, #2c0057);
}

.project-card.project-3 {
    background: linear-gradient(135deg, #1d003a, #57004d);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
}

.contact-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5rem;
    background: linear-gradient(90deg, rgba(29,0,58,0.8), rgba(69,0,102,0.5));
    border-color: var(--accent);
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.large-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid-cards {
        grid-template-columns: 1fr;
    }
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .project-card.large {
        grid-column: 1;
        grid-row: auto;
        height: 350px;
    }
    .project-card.small {
        height: 250px;
    }
    .contact-banner {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem;
        border-right: none;
        border-top: 1px solid var(--glass-border);
    }
    
    .sidebar-header {
        display: none;
    }

    .nav-links {
        flex-direction: row;
        margin: 0;
        width: 100%;
        justify-content: space-around;
    }

    .nav-item {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.9rem;
    }
    
    .nav-item::after {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
    }
    
    .nav-item:hover::after, .nav-item.active::after {
        width: 100%;
        height: 3px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0 1rem;
        padding-bottom: 80px; 
    }
    
    .hero .title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .large-btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero .title {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .hero .description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.5rem;
    }
    
    .contact-banner {
        padding: 2rem 1.5rem;
    }
    
    .contact-text h2 {
        font-size: 2rem;
    }
    
    .large-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .sidebar {
        padding: 0.8rem 0;
    }
    
    .nav-item {
        font-size: 0.65rem;
        letter-spacing: -0.3px;
    }
    
    .nav-links {
        padding: 0;
        justify-content: space-evenly;
    }
}
