/* ========================================
   JZDS - Components Stylesheet
   ======================================== */

/* ========================================
   1. HERO SECTION
   ======================================== */
.hero-full-centered-jzds {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: var(--jz-black);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 50;
    overflow: hidden;
    perspective: 1000px;
}

/* Fondo con degradados animados */
.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    mix-blend-mode: screen;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform;
}

.blob-teal {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--jz-teal) 0%, rgba(0,0,0,0) 70%);
    transform: translate(
        calc((var(--mouse-x, 0.5) - 0.5) * -120px),
        calc((var(--mouse-y, 0.5) - 0.5) * -120px)
    );
}

.blob-lime {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--jz-lime) 0%, rgba(0,0,0,0) 70%);
    transform: translate(
        calc((var(--mouse-x, 0.5) - 0.5) * 150px),
        calc((var(--mouse-y, 0.5) - 0.5) * 150px)
    );
}

.hero-content-wrapper {
    max-width: 950px;
    animation: heroFadeIn 1s ease-out;
    position: relative;
    z-index: 10;
    will-change: transform;
}

.hero-badge {
    display: inline-block;
    background: rgba(3, 180, 178, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--jz-teal);
    color: var(--jz-lime);
    margin-bottom: 2.5rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    color: var(--jz-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gradient-text-brand {
    background: var(--gradient-lime-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   2. BENTO SERVICES SECTION
   ======================================== */
.bento-section-jzds {
    padding: var(--section-padding) 20px;
    background: transparent;
}

.bento-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 13px;
    color: var(--jz-teal);
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--jz-white);
    font-weight: 900;
    line-height: 1.2;
}

.highlight-color {
    color: var(--jz-lime);
}

.bento-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}

.bento-card {
    background: var(--jz-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    backdrop-filter: blur(10px);
    transition: all var(--transition-slow);
}

.bento-card:hover {
    transform: scale(1.02);
    border-color: var(--jz-teal);
    background: var(--jz-glass-light);
}

.card-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150px;
    height: 150px;
    filter: blur(70px);
    opacity: 0.15;
    pointer-events: none;
}

.card-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 12px;
    border: 1px solid;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 15px;
}

.card-info h3 {
    font-size: 24px;
    color: var(--jz-white);
    margin-bottom: 10px;
    font-weight: 800;
}

.card-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.5;
}

.card-large { grid-column: span 2; grid-row: span 2; }
.card-medium { grid-column: span 2; }
.card-small { grid-column: span 1; }

.highlight-border {
    border-color: rgba(221, 255, 25, 0.3);
}

.card-preview-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
    margin-bottom: 20px;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    max-height: 40px;
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 28px;
    }
}

.bento-card:has(.card-preview-img) {
    padding-top: 20px;
}

@media (max-width: 992px) {
    .bento-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .card-large, .card-medium, .card-small {
        grid-column: span 2;
        min-height: 250px;
    }
}

/* ========================================
   3. PORTFOLIO PREVIEW SECTION
   ======================================== */
.portfolio-preview-section {
    padding: var(--section-padding) 20px;
    background: transparent;
}

.portfolio-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.portfolio-header {
    margin-bottom: 60px;
    text-align: left;
}

.portfolio-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
}

.portfolio-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--jz-white);
    font-weight: 900;
    line-height: 1.1;
}

.portfolio-grid-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.project-card-preview {
    background: var(--jz-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.project-card-preview:hover {
    transform: translateY(-10px);
    border-color: var(--jz-teal);
    box-shadow: var(--shadow-dark);
}

.border-lime {
    border-color: rgba(221, 255, 25, 0.2);
}

.project-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: var(--jz-dark-card);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 5px;
}

.project-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.project-tag {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: var(--jz-white);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 40px;
}

.project-info h3 {
    color: var(--jz-white);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 800;
}

.project-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.project-metric {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    border-left: 3px solid var(--jz-lime);
}

.metric-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--jz-teal);
    font-weight: 700;
    margin-top: 5px;
}

.portfolio-cta {
    text-align: center;
}

@media (max-width: 900px) {
    .portfolio-grid-preview {
        grid-template-columns: 1fr;
    }
    .project-image-wrapper {
        height: 280px;
    }
}

/* ========================================
   4. TECH STACK SECTION
   ======================================== */
.tech-stack-section {
    padding: 80px 20px;
    background: transparent;
}

.tech-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-header {
    text-align: center;
    margin-bottom: 60px;
}

.tech-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}

.tech-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--jz-white);
    font-weight: 900;
    line-height: 1.2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.tech-group {
    background: var(--jz-glass);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-base);
}

.tech-group:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.tech-group h3 {
    color: var(--jz-white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-badge {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.teal-bg {
    background: rgba(3, 180, 178, 0.1);
    color: var(--jz-teal);
    border: 1px solid var(--jz-teal);
}

.lime-bg {
    background: rgba(221, 255, 25, 0.1);
    color: var(--jz-lime);
    border: 1px solid var(--jz-lime);
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   5. CTA FINAL SECTION
   ======================================== */
.jz-cta-final {
    padding: 120px 20px;
    background: transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.jz-cta-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.jz-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 350px;
    background: radial-gradient(circle, rgba(3, 180, 178, 0.15) 0%, rgba(221, 255, 25, 0.05) 100%);
    filter: blur(100px);
    z-index: -1;
}

.jz-cta-eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 14px;
    color: var(--jz-teal);
    display: block;
    margin-bottom: 20px;
}

.jz-cta-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    color: var(--jz-white);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 25px;
}

.jz-lime-text {
    color: var(--jz-lime);
    text-shadow: 0 0 30px rgba(221, 255, 25, 0.2);
}

.jz-cta-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.jz-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.jz-btn {
    text-decoration: none;
    padding: 22px 42px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jz-btn-teal {
    background: var(--jz-teal);
    color: var(--jz-white);
    box-shadow: 0 10px 25px -5px rgba(3, 180, 178, 0.3);
}

.jz-btn-lime {
    background: var(--jz-lime);
    color: var(--jz-black);
    box-shadow: 0 10px 25px -5px rgba(221, 255, 25, 0.3);
}

.jz-btn:hover {
    transform: translateY(-8px);
    background: var(--jz-white);
    color: var(--jz-black);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.jz-cta-status {
    margin-top: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--jz-lime);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--jz-lime);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@media (max-width: 600px) {
    .jz-cta-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .jz-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE MOBILE OPTIMIZATION
   SEO & UX Optimized for Mobile First
   ======================================== */

@media (max-width: 768px) {
    /* HERO SECTION - MOBILE */
    .hero-full-centered-jzds {
        height: 100vh;
        min-height: 600px;
        padding: 60px 16px;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
    }
    
    .hero-cta-group .btn-jzds {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 30px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 1;
    }
    
    .scroll-indicator span {
        font-size: 10px;
    }
    
    /* NAVIGATION - MOBILE */
    .main-navigation {
        padding: 15px 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--jz-black);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-menu a {
        padding: 12px 0;
        display: block;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* BENTO GRID - MOBILE */
    .bento-grid-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bento-card {
        padding: 20px;
    }
    
    .bento-card h3 {
        font-size: 1.3rem;
    }
    
    .bento-card p {
        font-size: 0.9rem;
    }
    
    /* SECTIONS - MOBILE */
    .section-header {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* FEATURES - MOBILE */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    /* CTA SECTION - MOBILE */
    .cta-section {
        padding: 60px 16px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    /* PORTFOLIO - MOBILE */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    /* CONTACT - MOBILE */
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .btn-jzds:hover {
        transform: none;
    }
    
    .bento-card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
}
