:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --accent-color: #10b981;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Dark Mode Colors */
body.dark-mode {
    --light-bg: #1e293b;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --border-color: #334155;
}

body.dark-mode {
    background-color: #0f172a;
    color: var(--text-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.0rem;
    font-weight: 800;
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

body.dark-mode .nav-link {
    color: var(--text-dark);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-control {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary-color);
}

.btn-control span {
    font-size: 0.85rem;
    font-weight: 600;
}

.hero {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .btn-primary {
    background: var(--primary-color);
}

body.dark-mode .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 380px;
    min-height: 620px;
    border-radius: 28px;
    border: 4px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 42%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15));
}

.phone-card {
    width: 360px;
    height: 600px;
    background: #111827;
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    position: relative;
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0 8px;
}

.phone-camera,
.phone-speaker {
    background: rgba(255, 255, 255, 0.18);
}

.phone-camera {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.phone-speaker {
    width: 70px;
    height: 8px;
    border-radius: 999px;
}

.phone-screen {
    background: #ffffff;
    border-radius: 34px;
    margin: 0 16px 16px;
    padding: 16px;
    height: calc(100% - 56px);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.insta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.insta-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insta-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 8px 25px rgba(201, 77, 225, 0.18);
}

.insta-user-row strong {
    display: block;
    font-size: 1.1rem;
    color: #111827;
    letter-spacing: 0.01em;
}

.insta-user-row span {
    display: block;
    color: #4b5563;
    font-size: 0.9rem;
}

.insta-post {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
    flex: 1;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    color: #111827;
}

.insta-actions i {
    font-size: 1.2rem;
}

.insta-caption {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.6;
    padding-bottom: 8px;
}

.insta-caption strong {
    color: #111827;
    font-size: 0.96rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sobre {
    padding: 100px 0;
    background: var(--light-bg);
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sobre-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.dark-mode .skill-category {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1.5px solid var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag i {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

body.dark-mode .skill-tag {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.projetos {
    padding: 100px 0;
    background: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

body.dark-mode .project-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    flex: 1;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.contato {
    padding: 100px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.dark-mode .contact-item {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
}

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

body.dark-mode .footer {
    background: #0a0f1f;
}

.footer .container {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer p {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.footer i {
    color: var(--secondary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem 0;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    body.dark-mode .nav-menu {
        background: rgba(15, 23, 42, 0.98);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.5rem 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        order: -1;
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }

    .phone-card {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .phone-screen {
        margin: 0 14px 14px;
        padding: 14px;
        height: auto;
    }

    .insta-post {
        border-radius: 22px;
        margin-bottom: 12px;
        height: 220px;
    }

    .insta-actions {
        gap: 14px;
        padding: 10px 0;
    }

    .insta-caption {
        font-size: 0.88rem;
        padding-bottom: 6px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text .subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .hero-image {
        padding-top: 20px;
    }

    .phone-card {
        width: 100%;
        height: auto;
    }

    .insta-post {
        height: 200px;
    }

    .insta-caption {
        font-size: 0.84rem;
    }

    .insta-actions i {
        font-size: 1rem;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .project-link {
        align-self: flex-start;
    }
}
