:root {
    --bg-color: #0a0a0a;
    --text-main: #f5f5f5;
    --text-muted: #888888;
    --accent-red: #d90429;
    --accent-dark: #8b0000;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(217, 4, 41, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(217, 4, 41, 0.1);
    border-color: var(--accent-red);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 5px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--accent-red);
    animation: loading 2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    /*border: 2px solid white;*/
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 80;
    letter-spacing: 2px;
}

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

.logo img
{
    width: 75px;
    height: 60px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

nav a:hover::after {
    width: 100%;
}

/* Typography Utilities */
.text-red {
    color: var(--accent-red);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.section-title span {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    height: 800px;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 8rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
    /*border: 2px solid white;*/
}

.line {
    display: block;
    overflow: hidden;
}

.line-inner {
    display: inline-block;
    transform: translateY(100%);
}

.line-inner.text-red  {
    color: #9C2323;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    border: 1px solid #9C2323;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9C2323;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button:hover {
    color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5vw;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    transform: rotate(90deg);
    transform-origin: right bottom;
}

/* About Section */
.about {
    padding: 150px 0;
    background-color: #0f0f0f;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text-col p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-text-col p:first-child {
    color: var(--text-main);

}

span.mim{
    color:#9C2323
}

/* Projects Section */
.work {
    padding: 150px 0;
}

span.recentes{
    color: #9C2323;
}

.work .section-title {
    margin-bottom: 1.2rem;
}

.texto{
    margin: 0 0 45px;
    padding: 0 5px;
    color: var(--text-muted);
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.project-card {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: center;
}

.project-card:nth-child(even) {
    grid-template-columns: 1fr 3fr;
}

.project-card:nth-child(even) .project-info {
    order: -1;
    text-align: right;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(139, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.view-project {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    border: 1px solid #fff;
    padding: 15px 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.view-project:hover {
    background-color: #fff;
    color: var(--accent-red);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Tools Marquee */
.tools {
    padding: 100px 0;
    background-color: #9C2323;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: #fff;
    text-transform: uppercase;
    padding: 0 2vw;
}

.marquee-content .dot {
    width: 15px;
    height: 15px;
    background-color: #0a0a0a;
    border-radius: 50%;
    display: inline-block;
    padding: 0;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Contact Section */
.contact {
    padding: 150px 0 100px;
    text-align: center;
    height: 800px;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 1;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.contact-heading span {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-red);
}

.cta-button fade-up hover-target{
    height: 2px;
    padding: 60px 90px;
}


.email-link {
    display: inline-block;
    font-size: 12px;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 80px;
    position: relative;
    transition: color 0.3s ease;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.email-link:hover {
    color: var(--accent-red);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 120px;
    margin-bottom: 50px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-red);
}

footer {
    padding: 40px 0;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-card, .project-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(even) .project-info {
        order: 1;
        text-align: left;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    * {
        cursor: auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
