/* CSS Custom Properties */
:root {
    --licorice: #231b1dff;
    --azul: #246eb9ff;
    --magnolia: rgba(255, 253, 243, 0.95);
    --ut-orange: #ff871fff;
    
    /* Additional utility colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark: #1a1a1a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;
    --border-radius: 12px;
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--licorice);
    background-color: var(--magnolia);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 244, 239, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(35, 27, 29, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--azul);
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--licorice);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* CV Download Button */
.cv-download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--ut-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 135, 31, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cv-download-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: var(--transition);
}

.cv-download-btn:hover::before {
    left: 100%;
}

.cv-download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 135, 31, 0.4);
    background: #e6780d;
}

.cv-download-btn:active {
    transform: translateY(0) scale(0.98);
}

.cv-download-btn i {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--licorice);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--magnolia) 0%, rgba(36, 110, 185, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 135, 31, 0.03) 50%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.title-line {
    display: block;
    color: var(--licorice);
}

.title-line.highlight {
    color: var(--azul);
    position: relative;
}

.title-line.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.15em;
    background: var(--ut-orange);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--medium-gray);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.hero-location {
    font-size: 1.1rem;
    color: var(--azul);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-link {
    text-decoration: none;
    color: var(--licorice);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(35, 27, 29, 0.1);
}

.hero-link:hover {
    border-color: var(--azul);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 110, 185, 0.2);
}

/* Hero Artistic Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--azul);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--ut-orange);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--azul);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    background: var(--ut-orange);
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: var(--azul);
    top: 70%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Particle System */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ut-orange);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 60%; animation-delay: 4s; }
.particle:nth-child(6) { left: 70%; animation-delay: 5s; }
.particle:nth-child(7) { left: 80%; animation-delay: 6s; }
.particle:nth-child(8) { left: 90%; animation-delay: 7s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.hero-decoration-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 5%;
    animation: gentleFloat 4s ease-in-out infinite;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 10%;
    animation: gentleFloat 5s ease-in-out infinite reverse;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Code Decoration */
.code-decoration {
    position: absolute;
    top: 20%;
    right: 8%;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--medium-gray);
    opacity: 0.4;
    pointer-events: none;
}

.code-line {
    display: block;
    margin-bottom: 0.5rem;
    animation: codeTyping 3s ease-in-out infinite;
}

.code-line:nth-child(2) {
    animation-delay: 1s;
}

.code-line:nth-child(3) {
    animation-delay: 2s;
}

@keyframes codeTyping {
    0%, 50% {
        opacity: 0.2;
    }
    25% {
        opacity: 0.6;
    }
}

/* Typing Animation */
.typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--ut-orange);
    font-weight: 300;
}

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

/* Enhanced Hero Title Animation */
.title-line {
    display: block;
    animation: slideInFromLeft 1s ease-out;
}

.title-line.highlight {
    animation: slideInFromRight 1s ease-out 0.3s both;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--licorice);
    position: relative;
    font-family: var(--font-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--ut-orange);
    border-radius: 2px;
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
    background: var(--white);
}

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

.skill-category {
    background: var(--magnolia);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(35, 27, 29, 0.1);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(35, 27, 29, 0.1);
}

.skill-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category-title i {
    font-size: 1.5rem;
    color: var(--ut-orange);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--white);
    color: var(--licorice);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(35, 27, 29, 0.1);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--azul);
    color: var(--white);
    transform: scale(1.05);
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background: var(--magnolia);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--azul);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    left: 22px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--ut-orange);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--azul);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(35, 27, 29, 0.1);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(35, 27, 29, 0.15);
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--licorice);
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.1rem;
    color: var(--azul);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.duration {
    font-size: 0.95rem;
    color: var(--ut-orange);
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.job-description {
    list-style: none;
    margin-left: 0;
}

.job-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--medium-gray);
}

.job-description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--ut-orange);
    font-size: 0.8rem;
}

/* Education Section */
.education {
    padding: var(--section-padding);
    background: var(--white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: var(--magnolia);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(35, 27, 29, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background:  var(--ut-orange);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(35, 27, 29, 0.15);
}

.education-icon {
    font-size: 3rem;
    color: var(--azul);
    margin-bottom: 1.5rem;
}

.degree {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--licorice);
    margin-bottom: 1rem;
}

.institution {
    font-size: 1.1rem;
    color: var(--azul);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.duration {
    font-family: var(--font-mono);
    color: var(--ut-orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.grade {
    font-weight: 600;
    color: var(--licorice);
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background: var(--magnolia);
}

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

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(35, 27, 29, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(35, 27, 29, 0.2);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(35, 27, 29, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-image:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    background: var(--ut-orange);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--azul);
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--licorice);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--magnolia);
    color: var(--azul);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(36, 110, 185, 0.2);
}

/* Certificates Section */
.certificates {
    padding: var(--section-padding);
    background: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--magnolia);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(35, 27, 29, 0.1);
    transition: var(--transition);
    position: relative;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ut-orange);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(35, 27, 29, 0.15);
}

.certificate-icon {
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 1.5rem;
}

.certificate-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--licorice);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.certificate-description {
    color: var(--azul);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificate-date {
    color: var(--ut-orange);
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Footer */
.footer {
    background: var(--licorice);
    color: var(--magnolia);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--azul);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--ut-orange);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .cv-download-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }
    
    .cv-download-btn span {
        display: none;
    }
    
    .cv-download-btn i {
        margin: 0;
        font-size: 1.1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--magnolia);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(35, 27, 29, 0.1);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }
    
    .hero-links {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hide some artistic elements on mobile for better performance */
    .hero-decoration-1,
    .hero-decoration-2 {
        display: none;
    }
    
    .code-decoration {
        display: none;
    }
    
    .floating-shape {
        opacity: 0.05;
    }
    
    .particles .particle:nth-child(n+5) {
        display: none;
    }
    
    :root {
        --section-padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .education-card,
    .certificate-card {
        padding: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .skill-category,
    .timeline-item,
    .education-card,
    .project-card,
    .certificate-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .skill-category:nth-child(1) { animation-delay: 0.1s; }
    .skill-category:nth-child(2) { animation-delay: 0.2s; }
    .skill-category:nth-child(3) { animation-delay: 0.3s; }
    .skill-category:nth-child(4) { animation-delay: 0.4s; }
    .skill-category:nth-child(5) { animation-delay: 0.5s; }
    .skill-category:nth-child(6) { animation-delay: 0.6s; }
    
    .timeline-item:nth-child(1) { animation-delay: 0.1s; }
    .timeline-item:nth-child(2) { animation-delay: 0.3s; }
    .timeline-item:nth-child(3) { animation-delay: 0.5s; }
    
    .project-card:nth-child(1) { animation-delay: 0.2s; }
    .project-card:nth-child(2) { animation-delay: 0.4s; }
    
    .certificate-card:nth-child(1) { animation-delay: 0.1s; }
    .certificate-card:nth-child(2) { animation-delay: 0.3s; }
    .certificate-card:nth-child(3) { animation-delay: 0.5s; }
}

/* Dark Theme Styles */
body.dark-theme {
    --magnolia: #1a1a1a;
    --white: #2d2d2d;
    --licorice: #f3eff5;
    --medium-gray: #b0b0b0;
    --light-gray: #2a2a2a;
    background-color: #1a1a1a;
    color: #f3eff5;
}

body.dark-theme .navbar {
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(243, 239, 245, 0.1);
}

body.dark-theme .nav-link {
    color: #f3eff5 !important;
}

body.dark-theme .nav-link:hover {
    color: #246eb9 !important;
}

body.dark-theme .logo-text {
    color: #246eb9 !important;
}

body.dark-theme .hamburger .bar {
    background: #f3eff5 !important;
}

body.dark-theme .nav-link::after {
    background: #ff871f !important;
}

body.dark-theme .cv-download-btn {
    background: #246eb9 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(36, 110, 185, 0.3) !important;
}

body.dark-theme .cv-download-btn:hover {
    background: #1e5aa3 !important;
    box-shadow: 0 8px 25px rgba(36, 110, 185, 0.4) !important;
}

body.dark-theme .hero-location {
    color: #246eb9 !important;
}

body.dark-theme .hero-subtitle {
    color: #b0b0b0 !important;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, rgba(36, 110, 185, 0.1) 100%);
}

body.dark-theme .code-decoration {
    color: #6c757d !important;
    opacity: 0.6;
}

body.dark-theme .hero-decoration path {
    stroke: #246eb9 !important;
    opacity: 0.4;
}

body.dark-theme .hero-decoration circle {
    fill: #ff871f !important;
    opacity: 0.5;
}

body.dark-theme .cursor {
    color: #ff871f !important;
}

body.dark-theme .skills {
    background: #2d2d2d;
}

body.dark-theme .experience {
    background: #1a1a1a;
}

body.dark-theme .education {
    background: #2d2d2d;
}

body.dark-theme .projects {
    background: #1a1a1a;
}

body.dark-theme .certificates {
    background: #2d2d2d;
}

body.dark-theme .skill-category,
body.dark-theme .timeline-content,
body.dark-theme .education-card,
body.dark-theme .project-card,
body.dark-theme .certificate-card {
    border: 1px solid rgba(243, 239, 245, 0.1);
}

body.dark-theme .hero-link {
    background: #2d2d2d;
    border-color: rgba(243, 239, 245, 0.2);
}

body.dark-theme .hero-link:hover {
    border-color: var(--azul);
    background: rgba(36, 110, 185, 0.1);
}

body.dark-theme .skill-tag {
    background: #2d2d2d;
    border: 1px solid rgba(243, 239, 245, 0.1);
}

body.dark-theme .tech-tag {
    background: #2a2a2a;
    border: 1px solid rgba(36, 110, 185, 0.3);
}

body.dark-theme .grade {
    background: #2a2a2a;
}

body.dark-theme .footer {
    background: #0f0f0f !important;
    color: #f3eff5 !important;
}

body.dark-theme .footer-text {
    color: #f3eff5 !important;
}

body.dark-theme .social-link {
    background: #246eb9 !important;
    color: #ffffff !important;
}

body.dark-theme .social-link:hover {
    background: #ff871f !important;
    color: #ffffff !important;
}

/* Theme Toggle Button Styles */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--azul);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(36, 110, 185, 0.3);
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(36, 110, 185, 0.4);
}
