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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c1445 0%, #1a1f5c 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64ffda, #7b61ff);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7b61ff, #64ffda);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* Firefox scrollbar */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #64ffda rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.15);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.theme-toggle {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: #64ffda;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.social-links {
    position: absolute;
    /* bottom: 2rem; */
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    /* gap: 1.5rem; */
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 12px;
    /* background: rgba(255, 255, 255, 0.05); */
}

.social-link:hover {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 3rem;
    background: transparent;
}

.section {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), rgba(123, 97, 255, 0.1));
    border-radius: 24px;
    margin-bottom: 4rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #64ffda, #7b61ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    padding: 0 4rem;
    font-weight: 400;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #64ffda, #7b61ff);
    color: #0c1445;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(100, 255, 218, 0.4);
    background: linear-gradient(135deg, #7b61ff, #64ffda);
}

#inicio.section > h4 {
    margin-top: 60px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #64ffda;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #64ffda;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Sobre nós */
.container-texto-imagem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
}

#sobre-nos-img {
    width: 100%;
    max-width: 400px;
    min-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    padding: 30px;
}

#sobre-nos-img:hover {
    transform: scale(1.02);
}

#sobre-nos-texto-grid {
    width: 100%;
    max-width: 1000px;
    min-width: 300px;
    margin: 0 auto;
}

#sobre-nos-texto-card {
    width: 100%;
    max-width: 700px;
    min-width: 300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#sobre-nos-texto-card h3 {
    color: #64ffda;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#sobre-nos-texto {
    text-align: justify;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.container-texto-imagem .cards-grid {
    width: 55%;
    margin: 0;
}

.container-texto-imagem .card {
    margin: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.card a {
    width: 100%;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.8s;
}

.card:hover::before {
    left: 100%;
}

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

.card h3,
i.home-card-icon {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #64ffda;
    font-weight: 600;
    line-height: 1.4;
}

.card img.projeto-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: scale(1.05);
}

.skill-item i {
    font-size: 2rem;
    color: #64ffda;
    margin-bottom: 0.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #64ffda;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #64ffda, #7b61ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.second-title {
    text-align: left;
    margin-top: 60px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #64ffda;
}

.section-subtitle {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        padding: 0 2rem;
        font-size: 1.2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Sobre mim responsivo para mobile */
    .container-texto-imagem {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .sobre-mim-img {
        width: 80%;
        max-width: 300px;
        order: 1;
    }

    .container-texto-imagem .cards-grid {
        width: 100%;
        order: 2;
    }

    .mobile-menu-btn {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: rgba(100, 255, 218, 0.9);
        color: #0c1445;
        border: none;
        padding: 1.5rem;
        border-radius: 200px;
        font-size: 1.2rem;
        cursor: pointer;
        display: block;
        box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: #64ffda;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 300px;
    }
    
    .main-content {
        margin-left: 300px;
    }
    
    .container-texto-imagem {
        gap: 2rem;
    }

    .sobre-mim-img {
        width: 45%;
        max-width: 350px;
    }

    .container-texto-imagem .cards-grid {
        width: 50%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sobre-mim-img {
        width: 90%;
        max-width: 250px;
    }

    .container-texto-imagem {
        gap: 1.5rem;
    }
}

@media (max-width: 370px) {
    #inicio .hero h1 {
        font-size: 2rem;
        padding: 0 9px;
    }

    #inicio .hero p {
        font-size: 1rem;
    }

    #inicio .cta-button {
        font-size: 0.99rem;
        padding: 1rem 2rem;
        width: 80%;
    }

    #inicio .cards-grid .card h3 {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}


/* Seção Benefícios */
.benefit-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefit-header h3 {
    font-size: 2.2rem;
    color: #64ffda;
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit-header h3 i {
    margin-right: 1rem;
    color: #64ffda;
}

.card h4 {
    color: #64ffda;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.card ul li::before {
    content: '•';
    color: #64ffda;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.final-cta {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), rgba(123, 97, 255, 0.1));
    border-radius: 24px;
    margin-top: 4rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.final-cta h3 {
    font-size: 2.2rem;
    color: #64ffda;
    margin-bottom: 2rem;
    font-weight: 700;
}

.final-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}
