:root {
    --bg-color: #000000;
    --text-color: #d4d4d8;
    --primary-color: #18181b;
    --secondary-color: #14532d;
    --accent-color: #22c55e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-script: 'Henny Penny', cursive;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, #18181b 0%, #0a0a0a 40%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Header */
#header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    letter-spacing: 1px;
}

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

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        gap: 30px;
    }

    .desktop-nav a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        transition: color 0.3s;
        position: relative;
    }

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

    .desktop-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--accent-color);
        transition: width 0.3s;
    }

    .desktop-nav a:hover::after {
        width: 100%;
    }
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s;
}

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

/* Sections */
section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

/* Hero Section */
.hero-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .hero-text {
        flex: 1;
        text-align: left;
    }
    
    .hero-image {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        position: relative;
    }

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.typing-container {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-family: var(--font-script);
    color: var(--accent-color);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-text p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: #ccc;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-3px);
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@media (min-width: 768px) {
    .hero-image img {
        width: 400px;
        height: 400px;
    }
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

@media (min-width: 992px) {
    .about-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .about-text {
        flex: 1;
        padding-right: 40px;
    }
    
    .about-image {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .stats {
        flex: 0.4;
    }
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 20px 20px 0 rgba(24, 24, 27, 0.5);
    transition: transform 0.3s;
}

.image-wrapper img:hover {
    transform: translate(-5px, -5px);
    box-shadow: 25px 25px 0 rgba(24, 24, 27, 0.6);
}

@media (min-width: 768px) {
    .image-wrapper img {
        width: 350px;
        height: 350px;
    }
}

.stats {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .stats {
        flex-direction: column;
    }
}

.stat-item {
    text-align: center;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: var(--glass-border);
    min-width: 150px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-color);
}

.plus {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Skills Section */
.skills-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    gap: 40px 30px;
    align-items: start;
}

.skills-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    transform: translateX(-50%);
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 460px;
    transition: all 0.4s ease;
    text-align: center;
    border: var(--glass-border);
    position: relative;
}

@media (min-width: 768px) {
    .skills-grid .skill-card:nth-child(odd) {
        grid-column: 1;
        justify-self: end;
    }
    .skills-grid .skill-card:nth-child(even) {
        grid-column: 3;
        justify-self: start;
    }
    .skill-card::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30px;
        height: 2px;
        background: rgba(255,255,255,0.12);
        transform: translateY(-50%);
    }
    .skills-grid .skill-card:nth-child(odd)::after {
        right: -30px;
    }
    .skills-grid .skill-card:nth-child(even)::after {
        left: -30px;
    }
    .skill-card::before {
        content: '';
        position: absolute;
        top: calc(50% - 5px);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent-color);
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    }
    .skills-grid .skill-card:nth-child(odd)::before {
        right: -5px;
    }
    .skills-grid .skill-card:nth-child(even)::before {
        left: -5px;
    }
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: color 0.3s;
}

.skill-card:hover .skill-icon {
    color: var(--accent-color);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@media (max-width: 767px) {
    .skills-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .skills-grid::before,
    .skill-card::before,
    .skill-card::after {
        display: none;
    }
}
/* Projects Section */
.projects-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    gap: 40px 30px;
    align-items: start;
}

.projects-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .projects-grid .project-card:nth-child(odd) {
        grid-column: 1;
        justify-self: end;
        max-width: 520px;
        width: 100%;
    }
    .projects-grid .project-card:nth-child(even) {
        grid-column: 3;
        justify-self: start;
        max-width: 520px;
        width: 100%;
    }
    .project-card::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30px;
        height: 2px;
        background: rgba(255,255,255,0.12);
        transform: translateY(-50%);
    }
    .projects-grid .project-card:nth-child(odd)::after {
        right: -30px;
    }
    .projects-grid .project-card:nth-child(even)::after {
        left: -30px;
    }
    .project-card::before {
        content: '';
        position: absolute;
        top: calc(50% - 5px);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent-color);
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    }
    .projects-grid .project-card:nth-child(odd)::before {
        right: -5px;
    }
    .projects-grid .project-card:nth-child(even)::before {
        left: -5px;
    }
}

@media (max-width: 767px) {
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .projects-grid::before,
    .project-card::before,
    .project-card::after {
        display: none;
    }
}

@media (max-width: 767px) {
    #habilidades .section-title,
    #habilidades .section-description,
    #projetos .section-title,
    #projetos .section-description {
        text-align: center;
        margin: 0 0 20px;
        padding: 0 20px;
    }
    #habilidades .container,
    #projetos .container {
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        overflow: hidden;
    }
}

.project-card {
    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.project-content p {
    color: #b0b0b0;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 25px;
    flex: 1;
}

.btn-project {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--accent-color);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s;
    font-weight: 500;
}

.btn-project:hover {
    background: var(--accent-color);
    color: white;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        padding: 60px;
    }
}

.contact-social h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.social-icons-large {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.social-icons-large a {
    color: var(--text-color);
    font-size: 2.5rem;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: var(--glass-border);
    text-decoration: none;
}

.social-icons-large a:hover {
    color: #fff;
    background: var(--accent-color);
    transform: translateY(-5px);
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

#contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ddd;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    gap: 30px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: var(--glass-border);
}

.bottom-nav .nav-item {
    color: #b0b0b0;
}

.bottom-nav .nav-item i {
    color: inherit;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* Animations */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}
