/* ===== VARIABLES ===== */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-secondary: #059669;
    --color-accent: #7c3aed;
    --color-text-main: #1e293b;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-offset: #f8fafc;
    --color-border: #e2e8f0;
    --color-card-bg: #ffffff;

    /* Dark theme */
    --color-bg-dark: #0f172a;
    --color-bg-offset-dark: #1e293b;
    --color-text-main-dark: #f1f5f9;
    --color-text-light-dark: #cbd5e1;
    --color-text-lighter-dark: #94a3b8;
    --color-border-dark: #334155;
    --color-card-bg-dark: #1e293b;

    /* Other variables */
    --border-radius-sm: 0.5rem;
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    --container-width: 1200px;
    --header-height: 70px;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

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

body.dark-mode {
    --color-bg: var(--color-bg-dark);
    --color-bg-offset: var(--color-bg-offset-dark);
    --color-text-main: var(--color-text-main-dark);
    --color-text-light: var(--color-text-light-dark);
    --color-text-lighter: var(--color-text-lighter-dark);
    --color-border: var(--color-border-dark);
    --color-card-bg: var(--color-card-bg-dark);
}

.container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1vw, 1.125rem);
}

/* ===== UTILITIES ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-padding {
    padding: 4rem 0;
    /* Reduced padding for better spacing */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    /* Reduced margin for better spacing */
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
    /* Reduced margin for better spacing */
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.5rem;
    /* Adjusted for better spacing */
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

/* ===== ACCESSIBILITY ===== */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:focus,
.nav-link:focus,
.social-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all var(--transition);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.dark-mode .navbar {
    background-color: rgba(15, 23, 42, 0.85);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    background-color: rgba(248, 250, 252, 0.95);
}

.dark-mode .navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo span {
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
    /* Centraliza o menu */
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--color-primary);
    background-color: rgba(59, 130, 246, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: calc(var(--header-height) + 3rem) 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 80%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: morphing 15s ease-in-out infinite alternate;
}

@keyframes morphing {
    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::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 40%;
    height: 60%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.1));
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    z-index: -1;
    animation: morphing-reverse 15s ease-in-out infinite alternate;
}

@keyframes morphing-reverse {
    0% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    25% {
        border-radius: 42% 58% 25% 75% / 46% 76% 24% 54%;
    }

    50% {
        border-radius: 50% 50% 67% 33% / 27% 55% 45% 73%;
    }

    75% {
        border-radius: 67% 33% 42% 58% / 68% 63% 37% 32%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.25em;
    bottom: 0.1em;
    left: 0;
    background-color: rgba(59, 130, 246, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-primary);
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.hero-image {
    flex: 1;
    max-width: 450px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.profile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 15s ease-in-out infinite alternate;
    box-shadow: var(--shadow-xl);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--color-text-light);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 4rem 0;
    /* Reduced padding */
    background-color: var(--color-bg-offset);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.about-content {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
    margin: 0 auto 3rem;
    /* Reduced margin */
}

.about-text p {
    margin-bottom: 1.25rem;
    /* Adjusted spacing */
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
    /* Improved line height for readability */
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    /* Reduced gap */
    width: 100%;
}

.stat-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 4rem 0;
    /* Reduced padding */
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    /* Reduced gap */
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

.project-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.project-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.project-image iframe {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform var(--transition);
}

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

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width var(--transition);
}

.project-card:hover .project-title::after {
    width: 100%;
}

.project-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.975rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-top: auto;
}

.project-link i {
    transition: transform var(--transition-fast);
}

.project-link:hover i {
    transform: translateX(5px);
}

.projects-footer {
    text-align: center;
    margin-top: 1rem;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 4rem 0;
    /* Reduced padding */
    background-color: var(--color-bg-offset);
    position: relative;
    overflow: hidden;
}

.skills::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.skills-container {
    width: min(var(--container-width), 60%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    /* Reduced gap */
}

.skills-category {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skills-category-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.skills-category i {
    color: var(--color-primary);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: -1;
}

.skill-item:hover::before {
    opacity: 0.1;
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.skill-item:hover .skill-icon {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.skill-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-align: center;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 6rem 0;
    position: relative;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 4rem 0;
    box-sizing: border-box;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 4rem 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: var(--shadow);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--color-card-bg);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--color-card-bg);
    transform: rotate(45deg);
}

.timeline-date {
    position: absolute;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -220px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -220px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: 6rem 0;
    background-color: var(--color-bg-offset);
}

.education-container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
}

.education-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.education-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all var(--transition-fast);
}

.education-card:hover .education-icon {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.education-content {
    flex: 1;
}

.education-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.education-details {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.education-date {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.contact-container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    max-width: 800px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-item {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-value {
    color: var(--color-text-light);
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-value a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.contact-value a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-card-bg);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    transition: all var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
.footer {
    padding: 1rem 0;
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-accent));
    color: white;
    text-align: center;
}

.footer-container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    :root {
        --container-width: 95%;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title .highlight::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 4rem 50px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding: 0 0 4rem 50px;
    }

    .timeline-dot {
        left: 10px;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        right: auto;
        left: 10px;
    }

    .timeline-item .timeline-card::after {
        display: none;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .navbar-container {
        padding: 0 1rem;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-card-bg);
        padding: 1rem 0;
        box-shadow: var(--shadow);
        transition: all var(--transition);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        margin: 0;
        /* Reset margin for mobile */
        z-index: 1001;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: none;
    }

    .skills-category {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-width: 95%;
    }

    html {
        font-size: 14px;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .navbar-logo {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .project-card {
        margin: 0 0.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .education-card {
        padding: 1.5rem;
    }
}


.section-container {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-footer {

    align-items: center;
    text-align: center;
}

.stats-container {
    padding-top: 2%;
    padding-bottom: 2%;
    align-items: center;
    text-align: center;
}

.social-links {
    padding-top: 2%;
    padding-bottom: 2%;
    align-items: center;
    text-align: center;
}

.contact-details {
    font-size: 1.2em;
    /* 1.2 vezes o tamanho da fonte do elemento pai */
}

.link {
    color: #e2e8f0;
}

.section-footer {
    padding-top: 3%;
}

.hero-text {
    padding-top: 3%;
    padding-bottom: 3%;
}

.space {
    padding-top: 4%;
    padding-bottom: 3%;
}


/* Estilos do conteúdo */
.about-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px 0 0 4px;
}

.about-content p {
    margin-bottom: 20px;
    padding-left: 15px;
    font-size: 16px;
    color: var(--text-color);
    position: relative;
}

.about-content p:last-of-type {
    margin-bottom: 35px;
}

/* Estatísticas */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 10px;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), rgba(79, 70, 229, 0.05));
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    min-width: 140px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.stat-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}