/* ========================================
   PREMIUM HERO SECTION - LUXURY WALLPAPER
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: #f8f6f3;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   ANIMATED BACKGROUND LAYERS
   ======================================== */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-layer.active {
    opacity: 1;
}

/* Layer-specific opacity for depth */
.layer-1 {
    z-index: 1;
}

.layer-2 {
    z-index: 2;
    opacity: 0.85;
}

.layer-3 {
    z-index: 3;
    opacity: 0.7;
}

.layer-4 {
    z-index: 4;
    opacity: 0.6;
}

/* Sliding Texture Animation */
.texture-slide {
    display: flex;
    width: 200%;
    height: 100%;
    animation: slideTexture 60s linear infinite;
}

.texture-item {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Different speeds for parallax effect */
.layer-1 .texture-slide {
    animation-duration: 80s;
}

.layer-2 .texture-slide {
    animation-duration: 60s;
}

.layer-3 .texture-slide {
    animation-duration: 45s;
}

.layer-4 .texture-slide {
    animation-duration: 35s;
}

@keyframes slideTexture {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   GRAIN TEXTURE OVERLAY
   ======================================== */

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.15;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, .03) 2px, rgba(0, 0, 0, .03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, .03) 2px, rgba(0, 0, 0, .03) 4px);
    pointer-events: none;
    animation: grainAnimation 8s steps(10) infinite;
}

@keyframes grainAnimation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }
}

/* ========================================
   GRADIENT OVERLAY
   ======================================== */

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    background: linear-gradient(135deg,
            rgba(248, 246, 243, 0.4) 0%,
            rgba(237, 229, 216, 0.3) 50%,
            rgba(218, 203, 183, 0.4) 100%);
    pointer-events: none;
}

/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   HERO TITLE - ANIMATED
   ======================================== */

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.15;
    color: #2c2416;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: titleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        letter-spacing: -0.02em;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.01em;
    }
}

/* ========================================
   HERO SUBTITLE - DELAYED ANIMATION
   ======================================== */

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.7;
    color: #5a4a3a;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CTA BUTTONS - PREMIUM HOVER EFFECTS
   ======================================== */

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: buttonsFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes buttonsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #c9a961 0%, #b8935a 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
    border-radius: 16px;
}

.btn-primary:active {
    transform: translateY(0) scale(1.02);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #5a4a3a;
    border: 2px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(201, 169, 97, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.btn-secondary:active {
    transform: translateY(0) scale(1.02);
}

/* Button Icon Animation */
.btn-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

/* ========================================
   TRUST INDICATORS
   ======================================== */

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: trustFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

@keyframes trustFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.trust-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #c9a961;
}

.trust-label {
    font-size: 0.875rem;
    color: #7a6a5a;
    font-weight: 400;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(201, 169, 97, 0.3),
            transparent);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: scrollFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes scrollFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(201, 169, 97, 0.5);
    border-radius: 14px;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #c9a961;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes scrollWheel {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.3;
        top: 20px;
    }
}

.scroll-text {
    font-size: 0.75rem;
    color: #7a6a5a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-trust {
        gap: 20px;
    }

    .trust-number {
        font-size: 1.25rem;
    }

    .trust-label {
        font-size: 0.75rem;
    }

    .trust-divider {
        height: 30px;
    }

    .scroll-indicator {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 16px 28px;
        font-size: 0.9rem;
    }

    .trust-item {
        flex: 0 0 auto;
    }

    .trust-divider {
        display: none;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU Acceleration */
.bg-layer,
.texture-slide,
.hero-title,
.hero-subtitle,
.btn {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}