/* ============================================
   SHARED STYLES — Jeffry Patino Portfolio
   Common base styles used across all pages
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --black: #0a0a0a;
    --white: #f5f5f0;
    --accent: #00d4ff;
    --accent-2: #a855f7;
    --accent-3: #22c55e;
    --gray: #888;
    --dark-gray: #1a1a1a;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Space Grotesk', sans-serif; overflow-x: hidden; }

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ===== FOCUS STYLES (Accessibility) ===== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(3);
    background: var(--accent);
    border-color: var(--accent);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-contact {
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

.lang-btn.active {
    font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 6vh; }

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
}

.section-title .outline {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

.section-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    display: block;
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 1.25rem 2.5rem;
    background: var(--accent);
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-outline {
    padding: 1.25rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 15vh 5vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    padding: 3rem 5vw;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 0.1em;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray);
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    font-size: 0.8rem;
    color: var(--gray);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

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

/* ===== COMMON ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== GRADIENT TEXT ===== */
.gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--black);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ===== MOBILE MENU (hidden by default) ===== */
.menu-toggle,
.mobile-menu {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    * { cursor: auto !important; }
    .cursor, .cursor-dot { display: none !important; }

    nav { padding: 1.25rem 1.5rem; }
    .nav-links, .nav-contact { display: none; }

    .lang-selector {
        position: fixed;
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
        right: 1.5rem;
        z-index: 1000;
        margin: 0;
    }

    .lang-btn {
        background: var(--black);
        padding: 0.5rem 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
        z-index: 1001;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        background: var(--accent);
        border: none;
        cursor: pointer;
        z-index: 1001;
        gap: 5px;
        transition: all 0.3s ease;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--black);
        transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .menu-toggle.active { background: transparent; }
    .menu-toggle.active span { background: var(--white); }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .mobile-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--black);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-menu::before {
        content: 'MENU';
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Bebas Neue', sans-serif;
        font-size: 40vw;
        color: rgba(255,255,255,0.03);
        pointer-events: none;
    }

    .mobile-menu.active { opacity: 1; visibility: visible; }

    .mobile-menu-links {
        display: block;
        list-style: none;
        position: relative;
        z-index: 1;
    }

    .mobile-menu-links li {
        margin: 0.5rem 0;
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu.active .mobile-menu-links li { opacity: 1; transform: translateX(0); }
    .mobile-menu.active .mobile-menu-links li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu.active .mobile-menu-links li:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu.active .mobile-menu-links li:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu.active .mobile-menu-links li:nth-child(4) { transition-delay: 0.25s; }
    .mobile-menu.active .mobile-menu-links li:nth-child(5) { transition-delay: 0.3s; }
    .mobile-menu.active .mobile-menu-links li:nth-child(6) { transition-delay: 0.35s; }

    .mobile-menu-links a {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 12vw;
        color: var(--white);
        text-decoration: none;
        letter-spacing: 0.05em;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-links a::after {
        content: '\2192';
        font-size: 6vw;
        color: var(--accent);
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .mobile-menu-links a:active { color: var(--accent); }
    .mobile-menu-links a:active::after { opacity: 1; transform: translateX(0); }

    .mobile-menu-social {
        display: flex;
        position: absolute;
        bottom: calc(2rem + env(safe-area-inset-bottom));
        left: 2rem;
        gap: 1.5rem;
    }

    .mobile-menu-social a {
        color: var(--accent);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        text-decoration: none;
    }

    /* Footer mobile */
    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 4rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    }

    .footer-left {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-social {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Stats responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section titles */
    .section-title {
        font-size: clamp(2.5rem, 12vw, 6rem) !important;
    }

    /* Buttons */
    .btn-primary, .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 2rem;
    }

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

@media (max-width: 380px) {
    .mobile-menu-links a { font-size: 10vw; }
}
