/* Premium Hero Section - Clean & Elegant WOW Factor */
/* Apple-level design with Canva purple */

/* 1. Premium Gradient Background */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        #5e18ea 0%,
        #7c3aed 25%,
        #a78bfa 50%,
        #c4b5fd 75%,
        #e9d5ff 100%);
    background-size: 400% 400%;
    animation: etherealGradient 20s ease infinite;
    overflow: hidden;
}

@keyframes etherealGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Atmospheric layers */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%,
        rgba(94, 24, 234, 0.25) 0%,
        transparent 50%),
        radial-gradient(circle at 70% 50%,
        rgba(124, 58, 237, 0.2) 0%,
        transparent 50%);
    animation: breathingLight 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breathingLight {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Glass morphism overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

/* Premium Floating Particles */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Subtle ambient glow */
.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(94, 24, 234, 0.2) 0%,
        rgba(124, 58, 237, 0.1) 40%,
        transparent 70%);
    filter: blur(80px);
    animation: pulseGlow 6s ease-in-out infinite;
    pointer-events: none;
}

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

/* Container positioning */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Content positioning */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 2. Premium Text with Clean Animations */
.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
    /* Removed opacity animation to allow typing effect to be visible immediately */
    opacity: 1;
    transform: translateY(0);
    /* animation: elegantFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; */
    /* animation-delay: 0.2s; */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(94, 24, 234, 0.1),
        0 16px 32px rgba(94, 24, 234, 0.05);
    letter-spacing: -0.02em;
    cursor: default;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 48px;
    color: #2d2d2d;
    opacity: 0;
    transform: translateY(30px);
    animation: elegantFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: default;
    position: relative;
}

@keyframes elegantFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gufi highlight - Premium Interactive */
.hero-subtitle .gufi-highlight {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #f0e7ff 50%, #e9d5ff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: shimmerText 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle .gufi-highlight:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px rgba(94, 24, 234, 0.6));
}

/* Elegant animated underline */
.hero-subtitle .gufi-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #5e18ea, #7C3AED, #5e18ea);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: elegantUnderline 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s,
               underlineShimmer 2s ease-in-out infinite 2s;
    box-shadow: 0 2px 12px rgba(94, 24, 234, 0.5), 0 0 20px rgba(94, 24, 234, 0.3);
}

@keyframes elegantUnderline {
    to { width: 100%; }
}

@keyframes underlineShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle .gufi-highlight:hover::after {
    box-shadow: 0 4px 20px rgba(94, 24, 234, 0.8), 0 0 40px rgba(94, 24, 234, 0.5);
}

/* 3. Premium CTA Button */
.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: elegantFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    margin-top: 16px;
}

.hero-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: white;
    background: linear-gradient(135deg, #5e18ea 0%, #7C3AED 100%);
    border: none;
    border-radius: 12px;
    box-shadow:
        0 4px 16px rgba(94, 24, 234, 0.35),
        0 8px 32px rgba(94, 24, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.hero-cta .btn-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.6s ease;
}

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

.hero-cta .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(94, 24, 234, 0.45),
        0 16px 48px rgba(94, 24, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 2px 8px rgba(94, 24, 234, 0.35),
        0 4px 16px rgba(94, 24, 234, 0.25);
}

/* 4. Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 80px 20px 60px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 32px;
    }

    /* Make "Gufi" text more visible on mobile */
    .hero-subtitle .gufi-highlight {
        color: #ffffff;
        background: linear-gradient(135deg, #ffffff 0%, #f0e7ff 50%, #e9d5ff 100%);
        background-size: 200% 200%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
        text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    }

    .hero-cta .btn-primary {
        padding: 14px 36px;
        font-size: 16px;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
    }
}

/* 5. Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero,
    .hero::before,
    .hero::after,
    .hero-particles,
    .hero-glow,
    .hero-title,
    .hero-subtitle,
    .hero-cta {
        animation: none !important;
    }

    .hero-title,
    .hero-subtitle,
    .hero-cta {
        opacity: 1;
        transform: none;
    }
}

/* 6. Premium Polish */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero * {
    will-change: transform, opacity;
}

.hero-content {
    transform: translateZ(0);
    backface-visibility: hidden;
}
