/* =========================
   HOMEPAGE PREMIUM ENHANCEMENTS
   Enhanced CSS for SeriusHunt Homepage
   ========================= */

/* =========================
   Scroll Progress Indicator
   ========================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--accent-color) 0%,
            #ffdb58 100%);
    transform-origin: left;
    z-index: 10000;
    transition: transform 0.1s ease-out;
}

/* =========================
   Enhanced Typography
   ========================= */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    font-weight: 600;
}

/* Hero title with gradient effect */
.hero-title {
    background: linear-gradient(135deg, #FFD37F 0%, #FFF 50%, #FFD37F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* =========================
   Enhanced Spacing
   ========================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
}

.features-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.pricing-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.widget-showcase {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* =========================
   Enhanced Cards with Glassmorphism
   ========================= */
.feature-card,
.widget-card,
.plan-card,
.stat-card {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated border on hover */
.feature-card::before,
.widget-card::before,
.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg,
            var(--accent-color) 0%,
            transparent 50%,
            var(--accent-color) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before,
.widget-card:hover::before,
.plan-card:hover::before {
    opacity: 1;
}

/* Enhanced hover effects */
.feature-card:hover,
.widget-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 211, 127, 0.3);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 211, 127, 0.1),
        0 0 40px rgba(255, 211, 127, 0.15);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Plan card highlight enhancement */
.plan-card.highlight {
    border: 2px solid rgba(255, 211, 127, 0.3);
    box-shadow:
        0 25px 50px rgba(255, 211, 127, 0.15),
        0 0 60px rgba(255, 211, 127, 0.1);
    transform: scale(1.05);
}

.plan-card.highlight::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #ffdb58);
    color: #000;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255, 211, 127, 0.4);
}

/* =========================
   Enhanced Buttons
   ========================= */
.button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect on buttons */
.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffdb58 100%);
    box-shadow:
        0 8px 24px rgba(255, 211, 127, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(255, 211, 127, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: rgba(255, 211, 127, 0.4);
    background: rgba(255, 211, 127, 0.05);
    transform: translateY(-2px);
}

/* =========================
   Hero Mockup Enhancements
   ========================= */
.hero-mockup {
    background: linear-gradient(160deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease;
}

.hero-mockup:hover {
    transform: translateY(-4px);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 211, 127, 0.1);
}

/* Animated mockup dots */
.mockup-dot {
    animation: pulse 2s ease-in-out infinite;
}

.mockup-dot:nth-child(1) {
    animation-delay: 0s;
    background: rgba(255, 95, 95, 0.3);
}

.mockup-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: rgba(255, 211, 127, 0.3);
}

.mockup-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: rgba(95, 255, 95, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* =========================
   Feature List Enhancements
   ========================= */
.feature-list li {
    transition: all 0.3s ease;
    padding-left: 2.5rem;
}

.feature-list li:hover {
    transform: translateX(8px);
    color: var(--accent-color);
}

.feature-list li::before {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.feature-list li:hover::before {
    transform: scale(1.2) rotate(10deg);
}

/* =========================
   CTA Section Enhancement
   ========================= */
.cta-final {
    background: linear-gradient(135deg,
            rgba(255, 211, 127, 0.08) 0%,
            rgba(255, 211, 127, 0.02) 100%);
    border: 1px solid rgba(255, 211, 127, 0.2);
    box-shadow: 0 20px 40px rgba(255, 211, 127, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(255, 211, 127, 0.1) 0%,
            transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   Footer Enhancement
   ========================= */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 100%);
}

.footer-nav a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-nav a:hover::after {
    width: 100%;
}

/* =========================
   Smooth Scroll Behavior
   ========================= */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            var(--accent-color) 0%,
            var(--accent-color-dark) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* =========================
   Enhanced Animations
   ========================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.widget-grid .widget-card:nth-child(1) {
    transition-delay: 0.1s;
}

.widget-grid .widget-card:nth-child(2) {
    transition-delay: 0.2s;
}

.widget-grid .widget-card:nth-child(3) {
    transition-delay: 0.3s;
}

.pricing-grid .plan-card:nth-child(1) {
    transition-delay: 0.1s;
}

.pricing-grid .plan-card:nth-child(2) {
    transition-delay: 0.2s;
}

.pricing-grid .plan-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* =========================
   Loading State Enhancement
   ========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeIn 0.6s ease-out;
}

/* =========================
   Mobile Optimizations
   ========================= */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .features-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .plan-card.highlight::after {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }

    /* Reduce transform on mobile for performance */
    .feature-card:hover,
    .widget-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* =========================
   Accessibility Enhancements
   ========================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-title {
        animation: none;
        background: var(--accent-color);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Focus visible for keyboard navigation */
.button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}