/* =========================================================
   SOUVENRA NEXUS — HERO SECTION
   FINAL / CLEAN / CROSS-PLATFORM & LIGHT/DARK ADAPTIVE
   ========================================================= */

/* =========================================================
   HERO BASE
   ========================================================= */

souvenra-hero,
.hero-section {
    position: relative;
    width: 100%;
    min-height: 660px;
    display: flex;
    align-items: center;
    background-color: var(--sn-bg-primary, #05070b);
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    transition: background-color 300ms ease;
}


/* =========================================================
   FULL-WIDTH HERO BACKGROUND
   ========================================================= */

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-color: var(--sn-bg-primary, #05070b);
    overflow: hidden;
    transition: background-color 300ms ease;

    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 65%,
        rgba(0, 0, 0, 0) 100%
    );

    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 65%,
        rgba(0, 0, 0, 0) 100%
    );
}


/* =========================================================
   HERO THEME IMAGES
   ========================================================= */

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    object-fit: cover;
    object-position: right 40%;
    pointer-events: none;
    transition: opacity 300ms ease-in-out;
}

.hero-bg-wrapper[data-active-theme="dark"] .hero-img-dark {
    opacity: 1;
}

.hero-bg-wrapper[data-active-theme="light"] .hero-img-light {
    opacity: 1;
}


/* =========================================================
   HERO OVERLAY (DYNAMIC LIGHT & DARK GRADIENT)
   ========================================================= */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to top,
        var(--sn-bg-primary, #05070b) 0%,
        var(--sn-overlay-shade, rgba(3, 7, 18, 0.15)) 25%,
        transparent 55%
    );
    transition: background 300ms ease;
}


/* =========================================================
   HERO CONTENT CONTAINER
   ========================================================= */

.hero-section .container {
    position: relative;
    z-index: 3;

    width: 100% !important;
    max-width: var(--content-max-width, 1280px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: var(--content-padding, 24px) !important;
    padding-right: var(--content-padding, 24px) !important;

    display: flex;
    align-items: center;

    box-sizing: border-box !important;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    width: 100%;
    max-width: 680px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.hero-content > *:first-child {
    margin-top: 0 !important;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;

    color: var(--sn-accent-primary, #3d8bfd);

    text-transform: uppercase;
    margin: 0;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    animation: fadeInDown 0.8s ease-out;
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-spacing: -0.05em;

    color: var(--sn-text-primary, #ffffff);

    margin: 0;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    animation: fadeInDown 0.8s ease-out 0.1s backwards;
}

.h1 .accent {
    color: var(--sn-accent-primary, #3d8bfd);
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-desc {
    max-width: 560px;

    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;

    color: var(--sn-text-muted, #8d96a8);

    margin: 0;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}


/* =========================================================
   HERO ACTIONS
   ========================================================= */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}


/* =========================================================
   BUTTON BASE
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 24px;

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;

    border: none;
    border-radius: var(--sn-button-radius, 8px);

    transition:
        transform var(--sn-motion-normal, 200ms)
            cubic-bezier(0.4, 0, 0.2, 1),
        background-color var(--sn-motion-normal, 200ms)
            cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow var(--sn-motion-normal, 200ms)
            cubic-bezier(0.4, 0, 0.2, 1),
        border-color var(--sn-motion-normal, 200ms)
            cubic-bezier(0.4, 0, 0.2, 1),
        color var(--sn-motion-normal, 200ms)
            cubic-bezier(0.4, 0, 0.2, 1);
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.btn-primary {
    background: var(--sn-accent-primary, #3d8bfd);
    color: #ffffff;

    box-shadow:
        0 4px 15px
        var(--sn-accent-glow, rgba(61, 139, 253, 0.3));
}

.btn-primary:hover:not(:active) {
    background: var(--sn-accent-hover, #2b6cd4);
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 24px;

    font-size: 0.95rem;
    font-weight: 600;

    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;

    background: rgba(15, 23, 42, 0.6);
    color: var(--sn-text-primary, #ffffff);

    border: 1px solid
        var(--sn-border-strong, rgba(255, 255, 255, 0.14));

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled):not(:active) {
    background: rgba(15, 23, 42, 0.85);

    border-color: var(--sn-accent-primary, #3d8bfd);

    color: #ffffff;

    box-shadow:
        0 6px 24px rgba(61, 139, 253, 0.25),
        inset 0 0 12px rgba(61, 139, 253, 0.15);

    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;

    transition:
        transform var(--sn-motion-normal, 200ms)
        cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover:not(:disabled) svg {
    transform: translateX(3px);
}


/* =========================================================
   LIGHT THEME OVERRIDES (FIXES DARK SHADE AT BOTTOM)
   ========================================================= */

html[data-theme="light"] {
    --sn-overlay-shade: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] souvenra-hero,
html[data-theme="light"] .hero-section,
html[data-theme="light"] .hero-bg-wrapper {
    background-color: var(--sn-bg-primary, #ffffff) !important;
}

html[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        to top,
        var(--sn-bg-primary, #ffffff) 0%,
        rgba(255, 255, 255, 0.5) 30%,
        transparent 60%
    ) !important;
}

html[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.8);

    color: #0f172a !important;

    border-color: rgba(15, 23, 42, 0.15);

    box-shadow:
        0 4px 15px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .btn-secondary:hover:not(:disabled):not(:active) {
    background: #ffffff !important;

    border-color:
        var(--sn-accent-primary, #3d8bfd) !important;

    color:
        var(--sn-accent-primary, #3d8bfd) !important;

    box-shadow:
        0 8px 25px rgba(61, 139, 253, 0.2);

    transform: translateY(-2px);
}


/* =========================================================
   HERO ANIMATIONS
   ========================================================= */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================= */

@media (max-width: 1024px) {

    souvenra-hero,
    .hero-section {
        min-height: 580px;
    }

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

@media (max-width: 600px) {

    souvenra-hero,
    .hero-section {
        min-height: auto;
        padding-top: 0 !important;
        padding-bottom: 40px;
    }

    .hero-section .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: var(--header-height-mobile, 68px);
    }

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

    .hero-actions .btn {
        width: 100%;
    }
}