/* ============================================
   HERO SECTION - Unified Component Styles
   ============================================ */

/* Base Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 479px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Hero Background Container */
.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background-color: #030303;
}

/* Hero Background Image */
.hero-background .cover-image {
    position: absolute;
    width: 100%;
    height: 119.42%;
    top: -18.97%;
    left: 0;
    object-fit: cover;
    object-position: right bottom;
    z-index: 0;
    display: block;
}

/* Index page: Show desktop image on desktop, mobile image on mobile */
.hero-section--with-nav .cover-image--desktop {
    display: block;
}

.hero-section--with-nav .cover-image--mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-section--with-nav .cover-image--desktop {
        display: none;
    }
    
    .hero-section--with-nav .cover-image--mobile {
        display: block;
    }
}

/* Playground Page: Image aligned to bottom-left */
.hero-section--playground .hero-background .cover-image {
    object-position: left bottom;
}

/* Portfolio Page: Image aligned to bottom-right */
.hero-section--portfolio .hero-background .cover-image {
    object-position: right bottom;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    max-width: 1069px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Title */
.hero-title {
    color: #ffffff;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.42px;
    margin: 0;
    padding: 0;
    text-align: center;
    max-width: 640px;
}

/* Hero Subtitle */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.22px;
    margin: 16px 0 0 0;
    padding: 0;
    text-align: center;
}

/* Hero Currently Badge (for index page) */
.hero-currently {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 24px;
    padding: 0;
    background: transparent;
    border: none;
    align-self: flex-start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.currently-text {
    color: #f9faf7;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
}

.company-logo-small {
    position: relative;
    width: 96px;
    height: 32px;
    padding: 6.154px;
    display: flex;
    flex-direction: column;
    gap: 6.154px;
    overflow: hidden;
}

.company-logo-small .logo-img {
    position: absolute;
    inset: 24.4% 6.92% 16.87% 19.61%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.company-logo-small .logo-img-part2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Hero Transition (curved bottom) */
.hero-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 43px;
    background-color: #f9faf7;
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

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

/* Responsive Design - Match other containers */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 90%;
    }
}

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .hero-section {
        height: 414px;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: -0.28px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: -0.16px;
        text-align: center;
    }

    .hero-background .cover-image {
        object-position: left bottom;
    }

    .hero-currently {
        gap: 2px;
        align-self: center;
        margin-top: 24px;
    }

    .currently-text {
        font-size: 14px;
    }

    .company-logo-small {
        width: 96px;
        height: 32px;
        padding: 6.154px;
    }
}

/* ============================================
   VARIANT STYLES
   ============================================ */

/* Hero Section with Navigation (for index page) */
.hero-section--with-nav {
    overflow: visible;
}

/* Index page: Hide dark overlay */
.hero-section--with-nav .hero-overlay {
    display: none;
    /* Dark transparent overlay hidden for index page */
}

/* Index page: Keep left alignment and increase height by 20% */
.hero-section--with-nav {
    height: 575px; /* 479px * 1.2 = 574.8px, rounded to 575px */
}

.hero-section--with-nav .hero-content {
    align-items: flex-start;
    text-align: left;
}

.hero-section--with-nav .hero-title {
    text-align: left;
}

.hero-section--with-nav .hero-subtitle {
    text-align: left;
}

.hero-section--with-nav .hero-transition {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 43px !important;
    background-color: #f9faf7 !important;
    border-radius: 16px 16px 0 0 !important;
    z-index: 10 !important;
    display: block !important;
}

/* Hero Title - Large (for index page) */
.hero-title--large {
    font-size: 42px;
    max-width: 640px;
}

@media (max-width: 768px) {
    .hero-title--large {
        font-size: 28px;
    }
    
    /* Index page: Increase height by 20% on mobile (414px * 1.2 = 497px) */
    .hero-section--with-nav {
        height: 497px;
    }
    
    /* Index page: Center align on mobile */
    .hero-section--with-nav .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-section--with-nav .hero-title {
        text-align: center;
    }
    
    .hero-section--with-nav .hero-subtitle {
        text-align: center;
    }
}

/* Desktop specific: Use background image instead of img tag for certain pages */
@media (min-width: 769px) {
    .hero-background--bg-image {
        background-size: cover;
        background-position: right top;
        background-repeat: no-repeat;
    }

    .hero-background--bg-image .cover-image {
        display: none;
    }
}

/* Mobile: Show img tag */
@media (max-width: 768px) {
    .hero-background--bg-image {
        background-image: none !important;
    }

    .hero-background--bg-image .cover-image {
        display: block;
        object-position: left;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.4) 100%
        );
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-section * {
        animation: none !important;
        transition: none !important;
    }
}
