* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /*scroll-behavior: smooth;*/
    font-size: 16px;
    /*scroll-snap-type: y mandatory;*/
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #1a1a2e;
    background-image: url('../src/resources/mesh-gradient-1773029365127.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: rgb(245, 248, 255);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   NAVBAR
============================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: rgb(245, 248, 255);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo i {
    color: #FF6B35;
    font-size: 28px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.menu a {
    color: rgb(245, 248, 255);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.menu a:hover {
    color: #FF6B35;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: rgb(245, 248, 255);
    border-radius: 2px;
}

/* ============================
    HERO SECTION
============================ */
.hero {
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    color: rgb(245, 248, 255);
}

.hero p {
    font-size: 18px;
    color: rgb(200, 217, 230);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: #FF6B35;
    color: rgb(255, 255, 255);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: rgb(255, 255, 255);
    background: #FF8555;
}

.btn-secondary {
    border: 2px solid #FF6B35;
    background: transparent;
    color: #FF6B35
}

.btn-secondary:hover {
    background: rgba(255, 107, 53, 0.15);
    color: #FF6B35;
    transform: translateY(-2px);
}

.hero-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ============================
   ABOUT SECTION
============================ */
.about {
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.about h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 60px;
    color: rgb(245, 248, 255);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgb(200, 217, 230);
}

.about-text strong {
    color: rgb(245, 248, 255);
    font-weight: 700;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 20px;
    border-radius: 8px;
    flex: 1;
}

.stat-box h3 {
    font-size: 32px;
    font-weight: 800;
    color: #FF6B35;
}

.stat-box p {
    font-size: 12px;
    color: rgb(130, 150, 170);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1;
}

/* ============================
   SKILLS SECTION
============================ */
.skills {
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.skills h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 40px;
    color: rgb(245, 248, 255);
    text-align: center;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 80px;
    padding: 40px 0;
}

.badge {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: #1a1a2e;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
}

.badge:hover {
    cursor: pointer;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.skill-card i {
    font-size: 48px;
    color: #FF6B35;
    margin-bottom: 16px;
    display: block;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.skill-card p {
    font-size: 14px;
    color: rgb(180, 200, 220);
    line-height: 1.6;
}

/* ============================
   SERVICES SECTION
============================ */
.services {
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.services h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    color: rgb(245, 248, 255);
    text-align: center;
}

.services .section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: rgb(180, 200, 225);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.service-card i {
    font-size: 48px;
    color: #FF6B35;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.service-card p {
    font-size: 15px;
    color: rgb(180, 200, 220);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.service-tags span {
    background: rgba(255, 107, 53, 0.2);
    color: #FF6B35;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.4);
}

/* ============================
   PROJECTS SECTION
============================ */
.projects {
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.projects h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    color: rgb(245, 248, 255);
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 60px;
}

.view-more {
    display: block;
    text-align: center;
    margin-top: 60px;
    padding: 16px 32px;
    background: #FF6B35;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.view-more:hover {
    background: #FF8555;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: rgb(248, 248, 248);
}

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

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

.project-info {
    padding: 28px;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.project-info p {
    font-size: 14px;
    color: rgb(180, 200, 220);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #f0f0f0;
    color: #1a1a2e;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.project-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FF6B35;
}

.project-link:hover {
    color: #FF6B35;
}

.project-link i {
    font-size: 12px;
}

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

/* ============================
   CONTACT SECTION
============================ */
.contact {
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.contact h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 40px;
    color: rgb(245, 248, 255);
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: rgb(180, 200, 225);
    margin-bottom: 60px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: rgba(30, 41, 82, 0.85);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgb(245, 248, 255);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #FF6B35;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: rgb(245, 248, 255);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: none;
    min-height: 150px;
}

/* Botón de contacto sin gradiente */
.contact .btn-primary {
    background: #FF6B35;
    color: rgb(255, 255, 255);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact .btn-primary:hover {
    transform: translateY(-3px);
    color: rgb(255, 255, 255);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-card {
    background: rgba(30, 41, 82, 0.85);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: #FF6B35;
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}

.info-card i {
    font-size: 36px;
    color: #FF6B35;
    margin-bottom: 16px;
    display: block;
}

.info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: rgb(245, 248, 255);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 14px;
    color: rgb(180, 200, 220);
    margin: 0;
}

.info-card a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    color: #FF6B35;
    text-decoration: underline;
}

/* ============================
   FOOTER
============================ */
.footer {
    color: rgb(255, 255, 255);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }

    .navbar-content {
        flex-wrap: wrap;
    }

    .menu {
        display: none;
        gap: 20px;
        flex-basis: 100%;
        flex-direction: column;
        padding: 20px 0;
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about h2,
    .projects h2 {
        font-size: 36px;
    }

    .skills h2 {
        font-size: 36px;
    }

    .skills-badges {
        justify-content: flex-start;
    }

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

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

    .contact h2 {
        font-size: 32px;
    }

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

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

    .contact-form {
        padding: 32px;
    }

    .stats-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar-content {
        padding: 0 16px;
    }

    .menu {
        gap: 12px;
    }

    .menu a {
        font-size: 13px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 60px 0;
    }

    .about h2,
    .projects h2 {
        font-size: 28px;
    }

    .skills h2 {
        font-size: 28px;
    }

    .services h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-card i {
        font-size: 40px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .contact h2 {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .skills-badges {
        gap: 8px;
    }

    .badge {
        padding: 8px 16px;
        font-size: 12px;
    }

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

    .contact-form {
        padding: 24px;
    }

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

    .info-card {
        padding: 24px;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 20px;
    }
}