/* assets/css/pages/index.css */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.hero-content {
    max-width: 600px;
}

.hero-tagline {
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8125rem;
    font-family: var(--font-mono);
}

.hero h1 {
    font-size: 3.25rem;
    /* Standardized H1 */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--brand-dark);
    /* Deepest Teal for H1 */
}

.hero h1 span {
    color: var(--brand-primary);
}

.hero p.subheading {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(13, 148, 136, 0.4) 50%,
            transparent 100%);
    background-size: 100% 200%;
    animation: scanline 3s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Target the section immediately following the hero for visual separation */
/* Target the section immediately following the hero for visual separation */
.hero+.section {
    background-color: var(--bg-alt);
    /* Light Teal Graphity/Shade */
    background-image: url('../../images/graffiti-pattern.svg');
    background-repeat: repeat;
    background-size: 100px 100px;
    padding: 6rem 0;
    /* Add padding for better spacing */
}

.section-title {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-title h2 {
    margin-bottom: 1rem;
    color: var(--brand-dark);
    /* Deepest Teal for H2 */
    font-size: 2.25rem;
    /* Standardized H2 */
}

.section-title p {
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

/* Horizontal Scroll Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.scrolling-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    padding-top: 1rem;
    /* Space for shadow */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.scrolling-wrapper .card {
    min-width: 300px;
    width: 300px;
    height: 320px;
    /* Nearly square, slight vertical bias for text content */
    scroll-snap-align: start;
    border-top-width: 4px;
    border-top-style: solid;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Ensure content starts at top */
}

/* Navigation Arrows */
.nav-arrow {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--brand-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow:hover {
    background: var(--brand-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.nav-arrow.prev {
    left: -24px;
}

.nav-arrow.next {
    right: -24px;
}

/* Hide scrollbar for clean UI */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Card Accent Colors - Monochromatic Teal Variations */
.card.accent-primary {
    border-top-color: var(--brand-primary);
}

.card.accent-dark {
    border-top-color: var(--brand-dark);
}

.card.accent-medium {
    border-top-color: var(--brand-medium);
}

.card.accent-accent {
    border-top-color: var(--brand-accent);
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-track {
    width: 100%;
    max-width: 200px;
    height: 4px;
    background: rgba(13, 148, 136, 0.2);
    /* Brand Primary 20% */
    border-radius: 2px;
    overflow: hidden;
}

.scroll-bar {
    width: 33%;
    height: 100%;
    background: var(--brand-primary);
    border-radius: 2px;
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Tablet Portrait & Large Phones */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 90px 0 48px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero p.subheading {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-group .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        justify-content: center;
        min-height: 48px;
    }

    .hero-image {
        order: -1;
    }

    /* Navigation Cards Carousel */
    .scrolling-wrapper {
        scroll-snap-type: x mandatory;
        scroll-padding: 1rem;
        padding-left: 1rem;
        gap: 1rem;
    }

    .scrolling-wrapper .card {
        min-width: calc(100vw - 3rem);
        width: calc(100vw - 3rem);
        scroll-snap-align: center;
        height: auto;
        min-height: 260px;
    }

    .nav-arrow {
        display: none;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* Small Phones */
@media (max-width: 576px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p.subheading {
        font-size: 0.9375rem;
    }

    .scrolling-wrapper .card {
        min-width: calc(100vw - 2rem);
        width: calc(100vw - 2rem);
        min-height: 240px;
        padding: 1.5rem;
    }

    .scrolling-wrapper .card h3 {
        font-size: 1.125rem;
    }

    .scrolling-wrapper .card p {
        font-size: 0.875rem;
    }
}

/* Disable hover on touch devices */
@media (hover: none) and (pointer: coarse) {
    .scrolling-wrapper .card:hover {
        transform: none;
    }
}