html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
    background-color: #FAF4D0; 
}

body { 
    background-color: transparent; 
    color: #703B3B; 
    font-family: sans-serif; 
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

#fractal-canvas, #brownian-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.hero, section, footer {
    position: relative;
    z-index: 2;
}

#fractal-canvas {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
}

#brownian-canvas {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.8);
}

body.show-fluid #fractal-canvas {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.2); 
}

body.show-fluid #brownian-canvas {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1); 
}

nav { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 244, 208, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.6s ease;
    transform: translateY(-20px);
}

body.show-fluid nav {
    background-color: rgba(250, 244, 208, 0.1); 
}

nav.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
    display: flex; 
    justify-content: flex-end;
    gap: 20px; 
    border-bottom: 2px solid #C14545;
    padding-bottom: 10px;
    transition: border-color 0.6s ease;
}

body.show-fluid nav ul {
    border-bottom: 2px solid #FAF4D0;
}

nav a { 
    text-decoration: none; 
    color: #C14545; 
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.6s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #EA4C4C;
}

body.show-fluid nav a {
    color: #FAF4D0;
}

body.show-fluid nav a:hover {
    color: #FFFFFF;
}

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 5px;
}

.greeting {
    color: #703B3B;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.hero-content h1 { 
    color: #C14545; 
    font-size: 5.5rem; 
    letter-spacing: -2px;
    line-height: 1; 
    margin: 0;
}

.location {
    color: #EA4C4C;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    margin-top: 5px;
}

.subtitle { 
    color: #703B3B; 
    font-size: 1.2rem; 
    font-weight: bold;
    margin: 0;
    margin-top: 5px;
}

#social {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

#social img {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease;
    filter: brightness(0) saturate(100%) invert(24%) sepia(23%) saturate(1072%) hue-rotate(314deg) brightness(97%) contrast(89%);
}

#social .social-icon-link:hover img {
    transform: scale(1.15);
}

.resume-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    border: 2px solid #703B3B;
    color: #703B3B;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.resume-icon {
    width: 1.2rem;
    height: 1.2rem;
    background-color: #703B3B; 
    -webkit-mask: url('./assets/icons/file-user.svg') no-repeat center / contain;
    mask: url('./assets/icons/file-user.svg') no-repeat center / contain;
    transition: background-color 0.2s ease;
}

.resume-btn:hover {
    background-color: #703B3B;
    color: #FAF4D0;
    transform: translateY(-2px);
}

.resume-btn:hover .resume-icon {
    background-color: #FAF4D0; 
}

#about {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.about-content {
    max-width: 800px;
}

.about-content h2 {
    color: #C14545;
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-content p {
    color: #703B3B;
    font-size: 1.2rem;
    text-align: center;
}

#skills {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.skills-content {
    max-width: 800px;
    width: 100%;
}

.skills-content h2 {
    color: #C14545;
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
}

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

.skill-category h3 {
    color: #EA4C4C;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #C14545;
    padding-bottom: 5px;
    display: inline-block;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list li {
    background-color: transparent;
    border: 2px solid #703B3B;
    color: #703B3B;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.skill-list li:hover {
    background-color: #703B3B;
    color: #FAF4D0;
    transform: translateY(-2px);
}

#projects {
    min-height: 100vh;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.projects-content {
    max-width: 900px;
    width: 100%;
}

.projects-content h2 {
    color: #C14545;
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .projects-content h2 {
    color: #FAF4D0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.project-info {
    flex: 1;
    max-width: 50%;
}

.project-info h3 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

.project-info h3 a {
    color: #703B3B;
    text-decoration: none;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.project-info h3 a:hover {
    color: #C14545;
}

body.show-fluid .project-info h3 a {
    color: #FAF4D0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

body.show-fluid .project-info h3 a:hover {
    color: #FFFFFF;
}

.project-tag {
    color: #9c5c5c;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .project-tag {
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.interactive-stat {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.interactive-stat:hover {
    color: #C14545;
}

body.show-fluid .interactive-stat {
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

body.show-fluid .interactive-stat:hover {
    color: #FAF4D0;
}

.project-desc {
    color: #703B3B;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .project-desc {
    color: #FAF4D0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.project-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.project-image img,
.project-image video {
    max-width: 100%;
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(112, 59, 59, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block; 
}

.project-image img:hover,
.project-image video:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(112, 59, 59, 0.25);
}

.see-more {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid rgba(193, 69, 69, 0.3);
    transition: border-color 0.6s ease;
}

body.show-fluid .see-more {
    border-top: 2px solid rgba(250, 244, 208, 0.4);
}

.see-more h3 {
    color: #C14545;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .see-more h3 {
    color: #FAF4D0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.see-more-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.see-more-btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #C14545;
    color: #C14545;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.6s ease;
}

.see-more-btn:hover {
    background-color: #C14545;
    color: #FAF4D0;
    transform: translateY(-2px);
}

body.show-fluid .see-more-btn {
    color: #FFFFFF;
    border-color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.show-fluid .see-more-btn:hover {
    background-color: #FFFFFF;
    color: #703B3B;
    text-shadow: none;
}

#contact {
    min-height: 80vh;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.contact-content {
    max-width: 600px;
    text-align: center;
}

.contact-content h2 {
    color: #C14545;
    font-size: 3rem;
    margin-bottom: 20px;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .contact-content h2 {
    color: #FAF4D0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.contact-content p {
    color: #703B3B;
    font-size: 1.2rem;
    margin-bottom: 40px;
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .contact-content p {
    color: #FAF4D0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.contact-btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid #703B3B;
    color: #703B3B;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.6s ease;
}

.contact-btn:hover {
    background-color: #703B3B;
    color: #FAF4D0;
    transform: translateY(-2px);
}

body.show-fluid .contact-btn {
    color: #FFFFFF;
    border-color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.show-fluid .contact-btn:hover {
    background-color: #FFFFFF;
    color: #703B3B;
    text-shadow: none;
}

footer {
    background-color: #703B3B;
    color: #FAF4D0;
    text-align: center;
    padding: 15px 20px;
    transition: background-color 0.6s ease, color 0.6s ease;
}

body.show-fluid footer {
    background-color: transparent;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.footer-content .copyright {
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 2px;
    color: #E0A9A9; 
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

body.show-fluid .footer-content .copyright {
    color: #FAF4D0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    nav ul {
        gap: 12px;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.75rem;
    }

    .hero {
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 3.8rem;
    }
    
    #about, #skills, #projects, #contact {
        padding: 80px 20px;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .project-info {
        max-width: 100%;
    }
    
    .project-image {
        justify-content: center;
    }
}