﻿/* --- Global Overrides for Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: var(--text-base);
}

    .btn.primary {
        background: linear-gradient(135deg, #5b7cff 0%, #7a94ff 100%);
        color: #ffffff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(91, 124, 255, 0.25);
    }

        .btn.primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-25deg);
            transition: left 0.5s ease;
        }

        .btn.primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(91, 124, 255, 0.4);
        }

            .btn.primary:hover::before {
                left: 200%;
            }

    .btn.secondary {
        background: transparent;
        color: #ffffff;
        border: 1px solid rgba(91, 124, 255, 0.6);
    }

        .btn.secondary:hover {
            background: rgba(91, 124, 255, 0.1);
            border-color: #5b7cff;
        }

/* --- Typography & Branding --- */
.hero-main-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 32px;
    display: block;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 24px;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #b8c1d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    color: #a0aec0;
    margin-bottom: 40px;
}

/* --- Hero Section (Overlapping Card Pattern) --- */
.hero-overlap {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    min-height: 85vh;
    padding-top: 120px;
    gap: 0;
}

.hero-overlap-text {
    grid-column: 1 / 8;
    grid-row: 1;
    z-index: 2;
    background: #11162a;
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hero-overlap-visual {
    grid-column: 6 / 13;
    grid-row: 1;
    z-index: 1;
    width: 100%;
}

    .hero-overlap-visual .card-image-wrapper {
        max-width: 100% !important;
        width: 100%;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

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

/* --- Features Section (Z-Pattern) --- */
.features-section {
    display: flex;
    flex-direction: column;
    gap: 140px;
    padding-bottom: 100px;
    margin-top: 60px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
    scroll-margin-top: 100px;
}

    .feature-row.reverse .feature-text {
        order: 2;
    }

    .feature-row.reverse .feature-visual {
        order: 1;
    }

.feature-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: var(--leading-tight);
}

.feature-description {
    font-size: var(--text-base);
    color: #b8c1d9;
    line-height: var(--leading-relaxed);
    margin-bottom: 32px;
}

/* --- Shared Image Wrapper Settings --- */
.card-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .card-image-wrapper img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.5s ease;
    }

.feature-row:hover .card-image-wrapper img {
    transform: scale(1.06);
}

/* --- Hero Actions & Button Icons --- */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

    .hero-actions .bi {
        margin-right: 8px;
        font-size: 1.2rem;
        display: inline-flex;
        align-items: center;
    }

    .hero-actions .btn svg {
        width: 22px;
        height: 22px;
        margin-right: 10px;
        flex-shrink: 0;
        display: inline-block;
        vertical-align: middle;
    }

/* --- Pure CSS Chevron Icon --- */
.css-chevron-down {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: translateY(-2px) rotate(45deg);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn.secondary:hover .css-chevron-down {
    transform: translateY(2px) rotate(45deg);
}


@media (max-width: 1024px) {
    .hero-overlap {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .hero-overlap-text {
        margin-top: -80px;
        z-index: 3;
        position: relative;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .feature-row {
        gap: 40px;
    }
}


@media (max-width: 768px) {
    /* 1. Global overflow fix */
    body, html {
        overflow-x: hidden;
    }

   
    .hero-main-logo {
        max-width: 200px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 24px;
    }


    .hero-overlap-text {
        padding: 24px 16px;
        width: 100%;
        box-sizing: border-box;
        margin-top: -60px;
    }


    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        font-size: 14px;
        justify-content: center;
    }

    .hero-actions .btn svg {
        width: 18px;
        height: 18px;
    }


    .features-section {
        gap: 80px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

        .feature-visual,
        .feature-row.reverse .feature-visual {
            order: 1;
        }

        .feature-text,
        .feature-row.reverse .feature-text {
            order: 2;
        }
}



.card-image-wrapper {
    cursor: zoom-in; 
}

.magnify-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: rgba(17, 22, 42, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    pointer-events: none; 
    backdrop-filter: blur(4px);
}

.card-image-wrapper:hover .magnify-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-overlay {
    display: flex;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .lightbox-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #a0aec0;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 100000;
}

    .lightbox-close:hover {
        color: #ffffff;
    }

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }
}