@import url('style.css');

/* =============================================
   HERO RECONSTRUCTION (60/40 SPLIT)
   ============================================= */

/* Global fix for overflow and alignment */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Reset Hero container to be a full-screen flex layout */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8f8f8 100%);
}

/* TOP 60% — Content & Navigation */
.hero-top {
    flex: 0 0 60%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    z-index: 10;
}

/* BOTTOM 40% — Slider */
.hero-bottom {
    flex: 0 0 40%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
}

/* =============================================
   NEW NAVIGATION MENU (POLISHED)
   ============================================= */

.hero-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    width: auto;
    /* Fix potential overflow from width: 100% + padding */
}

.nav-brand {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-transform: lowercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-menu .nav-btn {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.nav-menu .nav-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.3);
}

/* =============================================
   CONTENT REFINEMENT (POLISHED)
   ============================================= */

.hero-content {
    text-align: center;
    max-width: 900px;
    margin-top: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero-customers-badge {
    margin-bottom: 28px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* =============================================
   SELECTED WORKS — MISSING IMAGES FIX
   ============================================= */

.project-mockup {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.novodots-mockup {
    background-image: url('assets/work-app.png');
}

.wealthwave-mockup {
    background-image: url('assets/work-wealthwave.webp');
}

.aaexports-mockup {
    background-image: url('assets/work-aaexports.png');
}

.thecado-mockup {
    background-image: url('assets/work-thecado.png');
}

.project-mockup::before,
.project-mockup::after {
    display: none;
}

/* =============================================
   PORTFOLIO GRID & INTERACTION
   ============================================= */

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

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    position: relative;
    border-radius: 24px;
    height: 480px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 24px;
}

.project-mockup {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.project-overlay span {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 100px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

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

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

.project-card:hover .project-overlay span {
    transform: translateY(0);
}

/* Vertically stack title, meta, and description */
.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 40px;
    text-align: left;
    gap: 0;
}

.project-info h5 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.project-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: center;
}

.meta-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.meta-year {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    display: none;
}

.project-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

/* =============================================
   SLIDER ADJUSTMENTS (POLISHED)
   ============================================= */

.hero-slider {
    width: 100%;
    padding: 0;
    mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.hero-slide {
    width: 440px;
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide:hover {
    transform: scale(0.93);
}

.slide-mockup {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    height: 280px;
    /* Fixed height for consistent carousel */
}

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


/* Responsive adjustments */
@media (max-width: 1300px) {
    .hero-nav {
        padding: 20px 32px;
    }

    .hero-title {
        font-size: clamp(38px, 5vw, 56px);
    }

    .hero-content {
        margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .hero-top {
        flex: 0 0 auto;
        padding: 100px 20px 60px;
    }

    .hero-bottom {
        flex: 0 0 auto;
        padding: 40px 0;
        height: 320px;
    }

    .nav-menu {
        display: none;
    }

    .hero-nav {
        padding: 20px;
        justify-content: center;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
        max-width: 90%;
    }

    .hero-slide {
        width: 300px;
        transform: scale(1);
    }

    .hero-slide:hover {
        transform: scale(1);
    }
    .projects-list { 
        grid-template-columns: repeat(1, 1fr); 
    }
}