@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(31, 40, 51, 0.6);
    --text-primary: #c5c6c7;
    --text-highlight: #ffffff;
    --accent-color: #66fcf1; /* Neon green / cyan */
    --accent-dark: #45a29e;
    --glass-border: rgba(102, 252, 241, 0.2);
}

body.light-mode {
    --bg-color: #f4f6f9;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #333333;
    --text-highlight: #0b0c10;
    --accent-color: #0d8cf5; /* Strong blue for light mode */
    --accent-dark: #096bc0;
    --glass-border: rgba(13, 140, 245, 0.2);
}

body.light-mode header {
    background: rgba(244, 246, 249, 0.9);
}

body.light-mode .skills-category-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .tech-icon-box {
    background-color: rgba(244, 246, 249, 0.8);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-highlight);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.contact h2::after, .skills h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a24;
    border: 2px solid #2b2b40;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    color: #a5a6df;
    padding: 0 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 60px;
    height: 40px;
    box-sizing: border-box;
}

.header-action-btn:hover {
    background-color: #2a2a3b;
    color: #ffffff;
    border-color: #4b4f7a;
    transform: translateY(-2px);
}

body.light-mode .header-action-btn {
    background-color: #f0f0fa;
    border-color: #d0d0e6;
    color: #51548a;
}
body.light-mode .header-action-btn:hover {
    background-color: #e0e0f5;
    color: #30335a;
    border-color: #b0b0cc;
}

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

.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap-reverse;
    gap: 40px;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    flex: 1.5;
    min-width: 300px;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    z-index: 1;
}

.hero-profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.4);
    animation: morph 8s ease-in-out infinite;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.5s ease;
}

.hero-profile-img:hover {
    filter: grayscale(0%) contrast(100%);
    box-shadow: 0 0 50px rgba(102, 252, 241, 0.6);
}

@keyframes morph {
    0% { 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%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content h2::after {
    width: 100%;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: rgba(102, 252, 241, 0.1);
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.5);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.8);
    color: var(--bg-color);
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.project-info {
    padding: 25px;
}

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

.tag {
    font-size: 0.8rem;
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(102, 252, 241, 0.3);
}

.project-tags .tag {
    background-color: var(--card-bg);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-color);
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: rgba(31, 40, 51, 0.3);
}

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

.skills-category-card {
    background-color: rgba(11, 15, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.skills-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(102, 252, 241, 0.2);
}

.skills-category-title {
    text-align: center;
    color: var(--text-highlight);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.tech-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tech-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(31, 40, 51, 0.5);
    border: 1px solid rgba(102, 252, 241, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-icon-box:hover {
    transform: translateY(-8px) scale(1.1);
    background-color: rgba(102, 252, 241, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
}

.tech-icon-box i, .tech-icon-box img {
    font-size: 3.5rem;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.tech-icon-box:hover i, .tech-icon-box:hover img {
    transform: rotate(10deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

footer p {
    color: var(--text-primary);
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Shapes for background aesthetic */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.2;
}

.blob-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    border-radius: 50%;
}

.blob-2 {
    bottom: 10%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent-dark);
    border-radius: 50%;
}

/* --- Menu Hambúrguer & Responsividade (Mobile) --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 3px;
}

body.light-mode .mobile-menu-toggle .bar {
    background-color: var(--text-primary);
}

@media (max-width: 900px) {
    /* Menu / Cabeçalho */
    .mobile-menu-toggle {
        display: flex;
    }
    
    header nav {
        height: 70px;
        flex-direction: row; /* Previne coluna da midia query antiga */
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--card-bg);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s;
        justify-content: center;
        z-index: 1000;
        align-items: center;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }
    
    .nav-links li[style*="margin-left"] {
        margin-left: 0 !important;
        margin-top: 20px;
    }

    /* Transformação do Botão (X) */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-color);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-color);
    }
    
    /* Layout Hero Section */
    .hero-container-flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    /* Redução de Textos */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Redução de Padding das Seções */
    section[style*="padding: 100px 0"] {
        padding: 60px 0 !important;
    }
    
    .hero { 
        min-height: auto; 
        padding: 120px 0 60px 0; 
    }
    
    .experience { 
        padding: 60px 0 !important; 
    }
}