/* ══════════════════════════════════════════
   HOME.CSS — Cronos Creations Home Page
   ══════════════════════════════════════════ */

/* ─── HERO EXTENSIONS ─── */
.hero-container {
    height: 100vh;
    min-height: 700px;
}

/* ─── FIXED SECTION LIST ─── */
.section-list {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    padding: 28px 30px 28px 50px;
    pointer-events: none;
    visibility: hidden;
    /* hidden by default via JS — GSAP controls opacity */
    isolation: isolate;
}

.section-list.visible {
    pointer-events: none;
    visibility: visible;
}

.section-list-label {
    font-size: 0.58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-align: right;
}

.sl-item {
    font-family: var(--font-logo);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(241, 241, 241, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-right: 20px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.sl-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(111, 111, 111, 0.4);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sl-item:hover {
    color: var(--text-main);
}

.sl-item.active {
    color: rgba(241, 241, 241, 0.8);
}

.sl-item.active::after {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.sl-item:hover::after {
    border-color: rgba(241, 241, 241, 0.5);
}

/* ─── STICKY NAV CLOUD MODE ─── */
/* No backdrop-filter here — already set in .nav-wrapper base; re-setting it doubles GPU composite cost */
.nav-wrapper.cloud-mode {
    background: rgba(10, 10, 12, 0.82);
    border-color: rgba(16, 212, 118, 0.1);
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.85);
}

/* ─── HORIZONTAL SCROLL ─── */
.hscroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--bg-color);
}

.hscroll-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

/* ─── HCARD ─── */
.hcard {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px;
    background: var(--bg-color);
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hcard-tag {
    position: absolute;
    top: 50px;
    right: 60px;
    font-family: var(--font-logo);
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    z-index: 1;
    letter-spacing: -4px;
}

/* Two-column layout inside card */
.hcard-layout {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hcard-layout-reverse {
    direction: rtl;
}

.hcard-layout-reverse>* {
    direction: ltr;
}

.hcard-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hcard-inner.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hcard-image-wrap {
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
    max-height: 560px;
}

.hcard-image-wrap.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.85) contrast(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: filter 0.4s ease, box-shadow 0.4s ease;
}

.hcard-image-wrap:hover .hcard-img {
    filter: brightness(1) contrast(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 212, 118, 0.1), 0 0 0 1px rgba(16, 212, 118, 0.1);
}

/* Profile image — show full height, contained */
.hcard-img-profile {
    object-fit: contain;
    object-position: bottom;
    background: linear-gradient(to top, rgba(13, 13, 15, 0.3) 0%, transparent 40%);
}

.hcard-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 18px;
    text-shadow: 0 0 10px rgba(16, 212, 118, 0.3);
}

.hcard-title {
    font-family: var(--font-logo);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hcard-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 40px;
}

.btn-card {
    padding: 13px 30px;
    font-size: 0.82rem;
}

/* ─── GLASS FOOTER ─── */
.glass-footer {
    position: relative;
    z-index: 10;
    margin: 0 2.5% 30px;
    border-radius: 22px;
    background: rgba(20, 20, 24, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(16, 212, 118, 0.04);
    overflow: hidden;
    /* Cursor glow via CSS custom properties */
    --glow-x: 50%;
    --glow-y: 50%;
}

/* Radial mouse-follow glow inside footer */
.footer-mouse-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(600px circle at var(--glow-x) var(--glow-y),
            rgba(16, 212, 118, 0.08) 0%,
            rgba(16, 212, 118, 0.03) 30%,
            transparent 70%);
    border-radius: 22px;
}

.glass-footer:hover .footer-mouse-glow {
    opacity: 1;
}

.footer-accent-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(16, 212, 118, 0.4) 30%,
            rgba(16, 212, 118, 0.9) 50%,
            rgba(16, 212, 118, 0.4) 70%,
            transparent 100%);
    animation: accentPulse 4s ease-in-out infinite;
}

@keyframes accentPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(16, 212, 118, 0.5);
    }
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-logo:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(16, 212, 118, 0.5);
}

.footer-tagline {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    width: max-content;
    transition: color 0.3s ease, padding-left 0.3s ease;
    padding-left: 16px;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.footer-nav a:hover {
    color: var(--text-main);
    padding-left: 22px;
}

.footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(16, 212, 118, 0.06);
    box-shadow: 0 0 15px rgba(16, 212, 118, 0.2);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.72rem;
    color: rgba(111, 111, 111, 0.5);
}