/* Hero Section Main Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--hero-bg);
    overflow-x: hidden;
}

/* Hero section base */
#hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

/* Layer hierarchy for hero section */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-portrait {
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    opacity: var(--hero-overlay-opacity);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    background-color: transparent;
    padding: 2rem 3rem;
    border-radius: 1rem;
    margin: 1rem;
    max-width: 42ch;
}

/* Ensure text content stays on top */
#hero .relative.mx-auto {
    position: relative;
    z-index: 10;
}

#hero picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.object-right {
    object-position: right center !important;
}

.object-contain {
    object-fit: contain !important;
}

/* Content grid */
#hero .relative.mx-auto {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
}

#hero .flex {
    display: flex;
    height: 100vh;
}

#hero .min-h-\[var\(--hero-min-height\)\] {
    min-height: var(--hero-min-height);
}

#hero .items-center {
    align-items: center;
}

#hero .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#hero .py-14 {
    padding-top: 0;
    padding-bottom: 0;
}

#hero .sm\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* Grid layout */
#hero .grid {
    display: grid;
}

#hero .w-full {
    width: 100%;
}

#hero .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

#hero .gap-10 {
    gap: 2.5rem;
}

#hero .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

#hero .lg\:col-span-7 {
    grid-column: span 7 / span 7;
}

#hero .lg\:col-span-5 {
    grid-column: span 5 / span 5;
}

#hero .hidden {
    display: none;
}

#hero .lg\:block {
    display: block;
}

#hero .max-w-\[42ch\] {
    max-width: 42ch;
}

/* Headline spacing */
#hero .hero-headline-xl {
    margin-bottom: 1rem;
}

#hero .mt-3 {
    margin-top: 0.75rem;
}

#hero .mt-4 {
    margin-top: 1rem;
}

#hero .mt-8 {
    margin-top: 2rem;
}

#hero .mt-12 {
    margin-top: 3rem;
}

#hero .mb-3 {
    margin-bottom: 0.75rem;
}

#hero .mb-4 {
    margin-bottom: 1rem;
}

#hero .mb-8 {
    margin-bottom: 2rem;
}

#hero .mb-12 {
    margin-bottom: 3rem;
}

/* Accent dot positioned after SMITH */
.hero-headline-xl .accent-dot {
    display: inline-block;
    position: relative;
    width: var(--hero-dot-size);
    height: var(--hero-dot-size);
    background-color: var(--hero-accent);
    border-radius: 50%;
    opacity: 1;
    transform: none;
    vertical-align: baseline;
}

/* Professional metrics */
.hero-metrics {
    display: flex;
    gap: 2rem;
    max-width: 100%;
    justify-content: flex-start;
}

.metric-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 8ch;
}

/* CTA buttons */
.hero-cta-scroll {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'AvenirLTStd-85Heavy', 'Inter', system-ui, -apple-system, sans-serif;
}

.cta-primary {
    background-color: var(--hero-accent);
    color: #000000;
}

.cta-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 102, 0.3);
}

.cta-secondary {
    background-color: transparent;
    color: var(--hero-text);
    border: 2px solid var(--hero-text);
}

.cta-secondary:hover {
    background-color: var(--hero-text);
    color: var(--hero-bg);
    transform: scale(1.05);
}

/* Scroll indicator */
.hero-scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.scroll-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--hero-text);
    border-radius: 12px;
    position: relative;
    opacity: 0.7;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background-color: var(--hero-text);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-mouse 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--hero-text);
    opacity: 0.7;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'AvenirLTStd-85Heavy', 'Inter', system-ui, -apple-system, sans-serif;
}

@keyframes scroll-mouse {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

/* Animation classes */
.hero-animate-in {
    opacity: 1;
    transform: translateX(0);
}

.hero-animate-out {
    opacity: 0;
    transform: translateX(-50px);
}

/* Tablet and below */
@media (max-width: 1023px) {
    #hero picture img {
        transform: translateX(calc((1024px - 100vw) * 0.15));
        object-fit: cover;
        object-position: right center !important;
    }
    
    .hero-content {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
        min-height: auto !important;
    }
    
    .hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .hero-headline-xl .accent-dot {
        width: 6px;
        height: 6px;
        margin-left: 0.25rem;
        vertical-align: baseline;
    }
}

/* Mobile portrait */
@media (orientation: portrait) {
    #hero picture img {
        transform: translateX(calc((1024px - 100vw) * 0.4));
        object-position: right bottom !important;
    }
    
    #hero .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #hero .py-14 {
        padding-top: 5rem !important;
        padding-bottom: 1rem !important;
    }
    
    #hero .flex {
        padding-top: 3rem !important;
        align-items: flex-start !important;
    }
    
    .hero-content {
        padding-top: 4rem !important;
        padding-bottom: 1rem !important;
        margin-top: 0 !important;
    }
    
    .hero-metrics {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }
    
    .mb-8 {
        margin-bottom: 0.5rem !important;
    }
    
    .metric-item {
        flex-direction: column !important;
        text-align: center !important;
        min-width: unset !important;
    }
    
    .metric-number {
        font-size: 1.25rem !important;
    }
    
    .metric-label {
        font-size: 0.65rem !important;
    }
    
    .hero-cta-scroll {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        margin-top: 0 !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    
    .cta-button {
        width: 100% !important;
        padding: 0.6rem 1.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .hero-scroll-indicator {
        display: none !important;
    }
}

/* Mobile landscape */
@media (max-width: 767px) and (orientation: landscape) {
    #hero picture img {
        transform: translateX(calc((768px - 100vw) * 0.25));
    }
    
    #hero .py-14 {
        padding-top: 1.5rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    #hero .flex {
        padding-top: 0.5rem !important;
    }
    
    .hero-content {
        padding-top: 1rem !important;
        padding-bottom: 0.5rem !important;
        margin: 0.5rem !important;
    }
    
    .hero-headline-xl {
        margin-bottom: 0.15rem !important;
        font-size: 1rem !important;
    }
    
    .hero-subtitle {
        margin-bottom: 0.15rem !important;
        font-size: 0.5rem !important;
    }
    
    .hero-one-liner {
        margin-bottom: 0.25rem !important;
        font-size: 0.5rem !important;
    }
    
    .hero-metrics {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        margin-bottom: 0.25rem !important;
        margin-top: 0.25rem !important;
    }
    
    .mb-8 {
        margin-bottom: 0.25rem !important;
    }
    
    .metric-item {
        min-width: unset !important;
    }
    
    .metric-number {
        font-size: 0.75rem !important;
    }
    
    .metric-label {
        font-size: 0.35rem !important;
    }
    
    .hero-cta-scroll {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-top: 0.25rem !important;
    }
    
    .mb-20 {
        margin-bottom: 0.25rem !important;
    }
    
    .hero-cta {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        gap: 0.5rem !important;
    }
    
    .cta-button {
        display: inline-flex !important;
        width: auto !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 0.3rem 0.75rem !important;
        font-size: 0.5rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .hero-scroll-indicator {
        display: none !important;
    }
}

/* Small height (short viewports) */
@media (max-width: 1024px) and (max-height: 500px) {
    .hero-content {
        padding-top: 2rem !important;
        padding-bottom: 0.5rem !important;
        margin: 0.5rem !important;
    }
    
    .hero-headline-xl {
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        margin-bottom: 0.25rem;
    }
    
    .hero-one-liner {
        margin-bottom: 0.25rem;
    }
    
    .hero-metrics {
        gap: 0.5rem;
        margin-bottom: 0.25rem;
        margin-top: 0.25rem;
    }
    
    .metric-number {
        font-size: 0.9rem;
    }
    
    .metric-label {
        font-size: 0.5rem;
    }
    
    .hero-cta-scroll {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }
    
    .hero-cta {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.3rem 0.75rem;
        font-size: 0.6rem;
        flex-shrink: 0;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .mouse::before {
        animation: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .accent-dot {
        animation: none;
    }
}
