/* =====================================================
   HOME.CSS
   Styles specific to the homepage layout
   ===================================================== */

/* =====================================================
   1. HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 70px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero h1 {
    font-family: 'Anton', sans-serif;
    font-size: 88px;
    line-height: 1;
    letter-spacing: 2px;
    max-width: 800px;
}

.hero h1 span {
    color: var(--green);
}

.sub {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: .7;
    margin-bottom: 15px;
    color: var(--green);
}

/* =====================================================
   2. BRAND WRAP & VIDEO / EFFECTS
   ===================================================== */
.brand-wrap {
    position: absolute;
    top: 15rem;
    left: 35.5rem;
    z-index: 20;
    pointer-events: none;
    isolation: isolate;
}

.graph-video {
    width: 30.5rem;
    height: auto;
    display: block;
    margin-bottom: 20px;
    margin-left: 13.5rem;
    border-radius: 10%;
    filter: contrast(1.1);
}

.brand-text {
    font-family: 'Anton', sans-serif;
    font-size: 93px;
    letter-spacing: 3px;
    color: transparent;
    -webkit-text-stroke: 2px var(--green);
    text-transform: uppercase;
    white-space: nowrap;
}

/* .flow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 60% 40%, rgba(156, 255, 0, .9), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(156, 255, 0, .6), transparent 50%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
} */

.flow {
    position: fixed; /* Changed from absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 60% 40%, rgba(156, 255, 0, .9), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(156, 255, 0, .6), transparent 50%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* =====================================================
   3. HOME ABOUT
   ===================================================== */
.home-about {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 120px 10%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 30%, rgba(156, 255, 0, .15), transparent 40%),
        linear-gradient(180deg, rgba(2, 6, 23, .65), rgba(5, 6, 5, .9));
}

.home-about::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(156, 255, 0, .3), transparent 70%);
    top: -120px;
    left: -120px;
    filter: blur(90px);
    z-index: 0;
}

.about-inner {
    max-width: 900px;
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(12px);
    padding: 50px 60px;
    border-radius: 22px;
    border: 1px solid rgba(156, 255, 0, .2);
    position: relative;
    z-index: 2;
}

.home-about p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .9);
}

/* =====================================================
   4. HOME SERVICES
   ===================================================== */
.home-services {
    padding: 120px 10%;
    background:
        radial-gradient(circle at 80% 20%, rgba(156, 255, 0, .12), transparent 40%),
        linear-gradient(180deg, rgba(5, 6, 5, .95), rgba(2, 6, 23, .85));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 50px 0 30px;
}

.service-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(156, 255, 0, .18);
    border-radius: 18px;
    padding: 32px 26px;
    backdrop-filter: blur(10px);
    transition: transform .4s ease, box-shadow .4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(156, 255, 0, .25);
}

.service-card h4 {
    color: var(--green);
    margin-bottom: 14px;
    font-size: 20px;
}

.service-card p {
    font-size: 15px;
}

/* =====================================================
   5. HOME WHY CHOOSE
   ===================================================== */
.home-why {
    padding: 110px 10%;
    background: #050605;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 40px;
}

.why-box {
    padding: 26px;
    border: 1px dashed rgba(156, 255, 0, .35);
    border-radius: 16px;
    text-align: center;
    font-size: 16px;
    transition: background .3s ease;
}

.why-box:hover {
    background: rgba(156, 255, 0, .08);
}

/* =====================================================
   6. HOME CTA
   ===================================================== */
.home-cta {
    padding: 120px 10%;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(156, 255, 0, .18), transparent 55%),
        #050605;
}

.home-cta p {
    font-size: 18px;
    margin: 20px auto 40px;
    max-width: 650px;
}

/* =====================================================
   7. RESPONSIVE BREAKPOINTS
   ===================================================== */

/* DESKTOP/LARGE TABLET */
@media (max-width: 1200px) {
    .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 72px; }
    .brand-wrap { left: 24rem; }
    .graph-video { width: 24rem; margin-left: 8rem; }
}

/* TABLET */
@media (max-width: 900px) {
    .hero { padding: 0 40px; }
    .hero h1 { font-size: 60px; }
    .home-about, .home-services, .home-why, .home-cta { padding: 80px 6%; }
    .about-inner { padding: 36px 36px; }
}

/* MOBILE FIXES (Where the overflow was happening) */
@media (max-width: 768px) {
    /* Hero adjustments */
    .hero {
        padding: 100px 6% 60px;
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    /* Force hero description left on mobile so it doesn't break boundaries */
    .hero-desc {
        margin: 15px 0 30px 0 !important;
        text-align: left;
        font-size: 15px;
    }

    /* Hiding absolute brand elements that stretch viewport horizontally */
    .brand-wrap {
        display: none !important;
    }

    /* Standardized mobile paddings to fit 100vw constraint */
    .home-about,
    .home-services,
    .home-why,
    .home-cta {
        padding: 60px 6%;
    }

    .home-about {
        min-height: auto;
    }

    .about-inner {
        padding: 28px 22px;
        border-radius: 16px;
        width: 100%; /* Force grid compliance */
    }

    /* Force grids into a single vertical column that won't break width */
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%; 
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .hero { padding: 90px 5% 50px; }
    .hero h1 { font-size: 36px; }
    
    .home-about h2 { font-size: 28px; }
    .about-inner { padding: 22px 16px; }
    .home-about p { font-size: 14px; }
    
    .service-card { padding: 24px 18px; }
    .why-box { padding: 20px; }
    
    .home-cta { padding: 60px 5%; }
    .home-cta h2 { font-size: 26px; }
    .home-cta p { font-size: 14px; }
    
    /* Make buttons span full width for better tapping on small phones */
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}