/* Import Google Fonts - Marker Style */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Patrick+Hand:wght@400;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Permanent Marker', 'Patrick Hand', cursive;
    background-color: #f5f5f0;
    background-image:
        linear-gradient(rgba(220, 220, 220, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 220, 220, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Header Styles */
header {
    text-align: center;
    padding: 15px 15px 12px;
    border-bottom: 3px solid #1a1a1a;
    background-color: #f5f5f0;
    position: relative;
}

.main-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-family: 'Patrick Hand', cursive;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: none;
    position: relative;
    display: inline-block;
    padding: 8px 30px;
}

/* Navigation Menu Styles */
.navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 30px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.nav-box {
    text-decoration: none;
    color: #1a1a1a;
    display: block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-content {
    border: 4px solid #1a1a1a;
    padding: 30px 28px;
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    background-color: #ffffff;
    position: relative;
    transform: rotate(-0.5deg);
    box-shadow: 4px 4px 0px #1a1a1a;
    font-family: 'Patrick Hand', cursive;
    font-weight: 700;
}

.nav-box:nth-child(even) .nav-content {
    transform: rotate(0.5deg);
}

.nav-box:hover {
    transform: translateY(-4px) scale(1.02);
}

.nav-box:hover .nav-content {
    box-shadow: 6px 6px 0px #1a1a1a;
    background-color: #fffef8;
}

.nav-box:active .nav-content {
    transform: rotate(0deg) translateY(2px);
    box-shadow: 1px 1px 0px #1a1a1a;
}

.nav-box.active .nav-content {
    background-color: #fff9e6;
    border-width: 4px;
}

/* Special 3D Effect for 3D Cards Box */
.nav-box:nth-child(3):hover .nav-content {
    animation: anaglyph-3d 0.3s ease forwards;
    text-shadow:
        -2px -2px 0 rgba(255, 0, 0, 0.8),
        2px 2px 0 rgba(0, 191, 255, 0.8);
}

@keyframes anaglyph-3d {
    0% {
        text-shadow: none;
    }
    100% {
        text-shadow:
            -2px -2px 0 rgba(255, 0, 0, 0.8),
            2px 2px 0 rgba(0, 191, 255, 0.8);
    }
}

/* Special Underline Effect for AsesorIAs Box */
.nav-box:nth-child(1):hover .nav-content {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Special Underline Effect for Popl Chile Box */
.nav-box:nth-child(2):hover .nav-content {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Special Underline Effect for About Me Box */
.nav-box:nth-child(4):hover .nav-content {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Content Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.section-box {
    background-color: #ffffff;
    border: 4px solid #1a1a1a;
    padding: 40px;
    box-shadow: 5px 5px 0px #1a1a1a;
    max-width: 800px;
    width: 100%;
    transform: rotate(-0.3deg);
    position: relative;
}

.content-section:nth-child(even) .section-box {
    transform: rotate(0.3deg);
}

.section-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a1a1a;
    font-weight: 400;
}

.section-box p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Patrick Hand', cursive;
}

.section-box ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.section-box ul li {
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-family: 'Patrick Hand', cursive;
}

.section-box ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    font-size: 1.3em;
    color: #1a1a1a;
}

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: none;
    background-image: linear-gradient(to right, #1a1a1a 0%, #1a1a1a 40%, transparent 40%, transparent 100%);
    background-size: 30px 2px;
    background-repeat: repeat-x;
    background-position: top;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Responsive Design */

/* Small Laptops - MacBook Air 13", Budget Windows laptops (769-1280px) */
@media (min-width: 769px) and (max-width: 1280px) {
    body {
        zoom: 100%;
    }

    .navigation-menu {
        max-width: 1000px;
        gap: 18px;
    }

    main {
        max-width: 1200px;
    }

    .section-box {
        max-width: 950px;
    }
}

/* Medium Laptops - MacBook Air 13" Retina, Standard 14-15" laptops (1281-1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
    body {
        zoom: 105%;
    }

    .navigation-menu {
        max-width: 1050px;
        gap: 20px;
    }

    main {
        max-width: 1250px;
    }

    .section-box {
        max-width: 1000px;
    }
}

/* Large Laptops - MacBook Pro 14"/16", Gaming laptops 17" (1441-1680px) */
@media (min-width: 1441px) and (max-width: 1680px) {
    body {
        zoom: 110%;
    }

    .navigation-menu {
        max-width: 1100px;
        gap: 22px;
    }

    main {
        max-width: 1300px;
    }

    .section-box {
        max-width: 1050px;
    }
}

/* 15.6" Full HD Laptops & 24" Monitors (1681-1920px) */
@media (min-width: 1681px) and (max-width: 1920px) {
    body {
        zoom: 115%;
    }

    .navigation-menu {
        max-width: 1150px;
        gap: 24px;
    }

    main {
        max-width: 1350px;
    }

    .section-box {
        max-width: 1100px;
    }
}

/* 27" QHD Monitors - 2560x1440 displays (1921-2560px) */
@media (min-width: 1921px) and (max-width: 2560px) {
    body {
        zoom: 120%;
    }

    .navigation-menu {
        max-width: 1200px;
        gap: 26px;
    }

    main {
        max-width: 1400px;
    }

    .section-box {
        max-width: 1150px;
    }
}

/* 32" 4K / Ultra-wide 34" - Large desktop displays (2561-3440px) */
@media (min-width: 2561px) and (max-width: 3440px) {
    body {
        zoom: 125%;
    }

    .navigation-menu {
        max-width: 1250px;
        gap: 28px;
    }

    main {
        max-width: 1450px;
    }

    .section-box {
        max-width: 1200px;
    }
}

/* Large 4K / Ultra-wide 49" - Extra large displays (3441px+) */
@media (min-width: 3441px) {
    body {
        zoom: 130%;
    }

    .navigation-menu {
        max-width: 1300px;
        gap: 30px;
    }

    main {
        max-width: 1500px;
    }

    .section-box {
        max-width: 1250px;
    }
}

/* Tablet and Mobile Screens */
@media (max-width: 768px) {
    .navigation-menu {
        padding: 22px 15px;
        gap: 15px;
    }

    .nav-content {
        padding: 32px 18px;
        font-size: clamp(1.5rem, 3.75vw, 1.875rem);
    }

    header {
        padding: 22px 12px 12px;
    }

    .section-box {
        padding: 30px 20px;
    }

    .content-section {
        min-height: auto;
        padding: 40px 10px;
    }

    .contact-info {
        background-size: 25px 2px;
    }
}

@media (max-width: 480px) {
    .main-title::before {
        border-width: 2px;
    }

    .nav-content,
    .section-box {
        border-width: 2px;
    }

    .section-box {
        box-shadow: 2px 2px 0px #1a1a1a;
    }

    .contact-info {
        background-size: 20px 2px;
    }
}

/* Smooth Scroll Animation Enhancement */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}