/* ================================================
   PAGE 1: HOME HERO SECTION
   ================================================ */

.page-home-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0e12 0%, #151a1f 50%, #0f1417 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 0;
    margin-top: 70px;
    overflow: hidden;
}

/* Simple Background Accent */
.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(234, 212, 48, 0.12) 0%, 
        transparent 70%);
    z-index: 0;
}

/* Simple Decorative Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent-yellow-alt);
    top: -150px;
    right: 10%;
    opacity: 0.4;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-yellow-alt);
    bottom: -100px;
    left: 5%;
    opacity: 0.35;
}

/* Simple Grid Pattern */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(234, 212, 48, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 212, 48, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    opacity: 0.4;
}

/* Hero Right Rail */
.hero-right-rail {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}

.hero-right-rail__bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(234, 212, 48, 0.15) 0%, 
        transparent 100%);
    width: 50px;
    height: 100%;
    border-right: 1px solid rgba(234, 212, 48, 0.20);
}

/* 3D Right Element */
.hero-3d-element {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    perspective: 1500px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-3d {
    position: relative;
    width: 220px;
    height: 220px;
    transform-style: preserve-3d;
    animation: rotateCube 35s infinite linear;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 3px solid var(--color-accent-yellow-alt);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 0 40px rgba(234, 212, 48, 0.40),
        0 0 60px rgba(234, 212, 48, 0.35),
        0 0 100px rgba(234, 212, 48, 0.20);
    z-index: 1;
}

.cube-front {
    transform: rotateY(0deg) translateZ(110px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(110px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(110px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(110px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(110px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(110px);
}

.mining-icon-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 90px;
    color: var(--color-accent-yellow-alt);
    filter: drop-shadow(0 0 20px var(--color-accent-yellow-alt));
    text-shadow: 
        0 0 40px rgba(234, 212, 48, 0.90),
        0 0 80px rgba(234, 212, 48, 0.70),
        0 0 120px rgba(234, 212, 48, 0.50);
    animation: pulseIcon 3s ease-in-out infinite;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    display: block;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg) rotateZ(0deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg) rotateZ(180deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -1px;
    position: relative;
    opacity: 0; /* GSAP will handle animation */
    transform-style: preserve-3d;
    perspective: 1000px;
    text-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
}

.hero-title-accent {
    color: var(--color-accent-yellow-alt);
    position: relative;
    display: inline-block;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--color-accent-yellow-alt) 0%, var(--color-accent-yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    text-fill-color: transparent;
    transform-style: preserve-3d;
    animation: gradientText 3s ease infinite;
}

@keyframes gradientText {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(10deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0;
    max-width: 600px;
    opacity: 1; /* Will be animated by GSAP */
    visibility: visible; /* Ensure visibility */
    text-shadow: 
        0 1px 15px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 0, 0, 0.2);
}

.hero-subtitle .hero-word {
    display: inline-block;
    margin-right: 0.3em;
    opacity: 0; /* Will be animated by GSAP */
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-accent-yellow-alt) 0%, var(--color-accent-yellow) 100%);
    color: var(--color-primary);
    padding: 18px 36px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(234, 212, 48, 0.4);
    position: relative;
    overflow: hidden;
    opacity: 0; /* GSAP will handle animation */
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-cta-primary:hover::before {
    left: 100%;
}

.hero-cta-primary:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 6px 25px rgba(234, 212, 48, 0.6);
    background: linear-gradient(135deg, var(--color-accent-yellow) 0%, var(--color-accent-yellow-alt) 100%);
}

.hero-cta-primary svg {
    flex-shrink: 0;
}

.hero-cta-secondary {
    padding: 18px 36px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0; /* GSAP will handle animation */
    position: relative;
    overflow: hidden;
}

.hero-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(234, 212, 48, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.hero-cta-secondary:hover::before {
    width: 100%;
}

.hero-cta-secondary:hover {
    border-color: var(--color-accent-yellow-alt);
    color: var(--color-accent-yellow-alt);
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 212, 48, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--color-accent-yellow-alt);
    border-bottom: 3px solid var(--color-accent-yellow-alt);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(234, 212, 48, 0.5);
    transition: all 0.3s ease;
}

.hero-scroll-indicator:hover .scroll-arrow {
    border-color: var(--color-accent-yellow);
    box-shadow: 0 0 20px rgba(234, 212, 48, 0.8);
    transform: translateY(-5px) rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ================================================
   RESPONSIVE HERO SECTION
   ================================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-3d-element {
        right: 5%;
        width: 160px;
        height: 160px;
    }
    
    .cube-3d {
        width: 120px;
        height: 120px;
    }
    
    .cube-face {
        width: 120px;
        height: 120px;
    }
    
    .cube-front {
        transform: rotateY(0deg) translateZ(60px);
    }
    
    .cube-back {
        transform: rotateY(180deg) translateZ(60px);
    }
    
    .cube-right {
        transform: rotateY(90deg) translateZ(60px);
    }
    
    .cube-left {
        transform: rotateY(-90deg) translateZ(60px);
    }
    
    .cube-top {
        transform: rotateX(90deg) translateZ(60px);
    }
    
    .cube-bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }
    
    .mining-icon-3d {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .page-home-hero {
        padding: 60px 30px 0;
        margin-top: 50px;
    }
    
    .hero-3d-element {
        right: 5%;
        width: 120px;
        height: 120px;
    }
    
    .cube-3d {
        width: 100px;
        height: 100px;
    }
    
    .cube-face {
        width: 100px;
        height: 100px;
    }
    
    .cube-front {
        transform: rotateY(0deg) translateZ(50px);
    }
    
    .cube-back {
        transform: rotateY(180deg) translateZ(50px);
    }
    
    .cube-right {
        transform: rotateY(90deg) translateZ(50px);
    }
    
    .cube-left {
        transform: rotateY(-90deg) translateZ(50px);
    }
    
    .cube-top {
        transform: rotateX(90deg) translateZ(50px);
    }
    
    .cube-bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }
    
    .mining-icon-3d {
        font-size: 40px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-title-accent {
        white-space: nowrap;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-3d-element {
        right: 2%;
        width: 80px;
        height: 80px;
        opacity: 0.7;
    }
    
    .cube-3d {
        width: 70px;
        height: 70px;
    }
    
    .cube-face {
        width: 70px;
        height: 70px;
    }
    
    .cube-front {
        transform: rotateY(0deg) translateZ(35px);
    }
    
    .cube-back {
        transform: rotateY(180deg) translateZ(35px);
    }
    
    .cube-right {
        transform: rotateY(90deg) translateZ(35px);
    }
    
    .cube-left {
        transform: rotateY(-90deg) translateZ(35px);
    }
    
    .cube-top {
        transform: rotateX(90deg) translateZ(35px);
    }
    
    .cube-bottom {
        transform: rotateX(-90deg) translateZ(35px);
    }
    
    .mining-icon-3d {
        font-size: 30px;
    }
}

