/* =====================================================
   VIBECHECK THEME OVERLAY - Modern & Playful Design
   Applied on top of existing Altum styles
   ===================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* =====================================================
   CSS VARIABLES - VibeCheck Color Palette
   ===================================================== */
:root {
    --vibe-primary: #8c2bee;
    --vibe-primary-light: #a855f7;
    --vibe-primary-dark: #6b21a8;
    --vibe-bg-dark: #191022;
    --vibe-bg-card: rgba(255, 255, 255, 0.05);
    --vibe-border: rgba(255, 255, 255, 0.1);
    --vibe-gradient: linear-gradient(135deg, #8c2bee, #ec4899);
    --vibe-shadow: 0 20px 40px -15px rgba(140, 43, 238, 0.3);
    --vibe-radius: 1.5rem;
    --vibe-radius-lg: 2rem;
    --vibe-radius-xl: 3rem;
}

/* =====================================================
   GLOBAL ENHANCEMENTS
   ===================================================== */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Smooth scrolling & Prevent horizontal overflow */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Custom Scrollbar - VibeCheck Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vibe-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #332a3d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vibe-primary);
}

/* =====================================================
   INDEX CONTAINER - Hero Section
   ===================================================== */
.index-container-content {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.index-container {
    width: 100%;
    padding: 0 0 4rem 0;
    position: relative;
}

@media (min-width: 992px) {
    .index-container-content {
        margin-top: 6rem;
    }

    .index-container {
        padding: 0 0 8rem 0;
    }
}

/* =====================================================
   HERO IMAGES - VibeCheck Floating Animation
   ===================================================== */
@keyframes index-image-one-switch {
    33% {
        transform: scale(1.05) rotate(2deg);
        left: 3rem;
    }

    66% {
        transform: scale(0.9) rotate(-1deg);
    }

    100% {
        z-index: 1;
        left: 9rem;
        transform: scale(0.9) rotate(-2deg);
        filter: blur(1px);
    }
}

@keyframes index-image-two-switch {
    33% {
        right: -6rem;
        transform: scale(0.95) rotate(-2deg);
    }

    66% {
        transform: scale(1.1) rotate(1deg);
        top: -2rem;
    }

    100% {
        z-index: 2;
        right: -3rem;
        top: -2rem;
        filter: blur(0px);
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.index-image {
    width: auto;
    max-height: 540px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--vibe-radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--vibe-border);
}

/* Mobile: Hide hero images to prevent overflow */
@media (max-width: 991px) {
    .index-image {
        display: none;
    }
}

.index-image:hover {
    transform: scale(1.02) rotate(0deg) !important;
    box-shadow: var(--vibe-shadow);
}

.index-image-one {
    z-index: 2;
    top: -1.5rem;
    right: 11.5rem;
    animation: float-gentle 6s ease-in-out infinite;
}

.index-image-two {
    z-index: 1;
    right: 0;
    top: -5rem;
    filter: blur(1px);
    animation: float-gentle 6s ease-in-out infinite 1s;
}

[dir="rtl"] .index-image-one {
    left: 3.5rem;
    right: inherit;
}

@media (min-width: 1325px) {
    .index-image {
        max-height: 600px;
    }

    .index-image-one {
        top: -1.5rem;
        left: 9rem;
        animation: index-image-one-switch 2s forwards, float-gentle 6s ease-in-out infinite 2s;
        animation-delay: 1s;
    }

    .index-image-two {
        right: -3rem;
        top: -5rem;
        left: inherit;
        animation: index-image-two-switch 2s forwards, float-gentle 6s ease-in-out infinite 3s;
        animation-delay: 1s;
    }

    [dir="rtl"] .index-image-one {
        animation: float-gentle 6s ease-in-out infinite;
    }

    [dir="rtl"] .index-image-two {
        animation: float-gentle 6s ease-in-out infinite 1s;
        right: 3rem;
    }
}

/* =====================================================
   HEADER - VibeCheck Typography
   ===================================================== */
.index-header {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--vibe-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme-style="dark"] .index-header {
    background: linear-gradient(135deg, #ffffff 0%, var(--vibe-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .index-header {
        font-size: 3.5rem;
    }
}

@media (min-width: 1200px) {
    .index-header {
        font-size: 4.5rem;
    }
}

/* =====================================================
   BADGE - Stars Badge Enhancement
   ===================================================== */
.badge-pill.badge-light {
    background: linear-gradient(135deg, rgba(140, 43, 238, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(140, 43, 238, 0.3);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme-style="dark"] .badge-pill.badge-light {
    background: rgba(140, 43, 238, 0.2);
    color: #fff;
}

/* =====================================================
   INPUT - VibeCheck Glassmorphism Input
   ===================================================== */
.index-input {
    padding: 1.5rem 1.2rem;
    border-radius: var(--vibe-radius) !important;
    border: 2px solid var(--vibe-border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-input:focus {
    border-color: var(--vibe-primary);
    box-shadow: 0 0 0 4px rgba(140, 43, 238, 0.15);
}

/* =====================================================
   FEATURE PILLS - VibeCheck Style
   ===================================================== */
.index-feature {
    line-height: 2.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.index-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vibe-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.index-feature a {
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.index-feature:hover {
    background: transparent;
    transform: translateY(-2px);
}

.index-feature:hover::before {
    opacity: 0.1;
}

.index-feature:hover a {
    color: var(--vibe-primary);
}

/* =====================================================
   BUTTONS - VibeCheck Primary & Outline
   ===================================================== */
.index-button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 100px !important;
    position: relative;
    overflow: hidden;
}

.index-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.index-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--vibe-shadow);
    filter: brightness(1.1);
}

.index-button:hover::before {
    opacity: 1;
}

.index-button-white,
.index-button-white:hover {
    color: white;
}

/* =====================================================
   CARDS - VibeCheck Glassmorphism Cards
   ===================================================== */
.index-highly-rounded {
    border-radius: var(--vibe-radius-lg) !important;
}

.card.index-highly-rounded {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

[data-theme-style="dark"] .card.index-highly-rounded {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--vibe-border);
}

.card.index-highly-rounded:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.15);
}

[data-theme-style="dark"] .card.index-highly-rounded:hover {
    box-shadow: var(--vibe-shadow);
    border-color: rgba(140, 43, 238, 0.3);
}

/* =====================================================
   CARD IMAGES - Enhanced Hover Effects
   ===================================================== */
.index-card-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 10px 10px 0 rgba(140, 43, 238, 0.1);
    border: 1px solid rgba(140, 43, 238, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--vibe-radius-lg);
}

[data-theme-style="dark"] .index-card-image {
    box-shadow: 10px 10px 0 rgba(140, 43, 238, 0.2);
    border-color: var(--vibe-border);
}

.index-card-image:hover {
    box-shadow: 0 0 0 transparent;
    transform: scale(1.02) rotate(-1deg);
}

/* =====================================================
   FADE OVERLAY
   ===================================================== */
.index-fade {
    position: absolute;
    background: linear-gradient(0deg, var(--body-bg), hsla(0, 0%, 100%, 0)) !important;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* =====================================================
   TESTIMONIALS - VibeCheck Style
   ===================================================== */
.index-testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    transform: translateY(-70%);
    border: 4px solid var(--vibe-primary);
    background: var(--white);
    position: absolute;
    left: 50%;
    margin-left: -52px;
    box-shadow: 0 10px 25px -5px rgba(140, 43, 238, 0.3);
    transition: all 0.3s ease;
}

.card:hover .index-testimonial-avatar {
    transform: translateY(-70%) scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(140, 43, 238, 0.4);
}

.index-testimonial-comment {
    margin-left: 18px;
}

/* Testimonial cards background */
.bg-primary-100 {
    background: linear-gradient(135deg, rgba(140, 43, 238, 0.08), rgba(236, 72, 153, 0.05)) !important;
}

[data-theme-style="dark"] .bg-primary-100 {
    background: linear-gradient(135deg, rgba(140, 43, 238, 0.15), rgba(236, 72, 153, 0.1)) !important;
}

/* =====================================================
   FAQ ACCORDION - VibeCheck Style
   ===================================================== */
.index-faq svg {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--vibe-primary);
}

.index-faq .card {
    margin-bottom: 1rem;
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.index-faq .card:hover {
    border-color: rgba(140, 43, 238, 0.2) !important;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.index-timeline {
    position: relative;
}

.index-timeline::before {
    content: '';
    position: absolute;
    border-left: 2px solid var(--vibe-primary);
    height: 100%;
    left: calc(57px / 2);
    opacity: 0.3;
}

/* =====================================================
   CTA SECTION - VibeCheck Gradient
   ===================================================== */
.index-cta {
    background: linear-gradient(135deg, var(--vibe-primary) 0%, #ec4899 50%, #f97316 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    color: white !important;
    transition: all 0.4s ease;
    border: none !important;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.index-cta:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 60px -20px rgba(140, 43, 238, 0.4);
}

.index-cta a.btn {
    color: var(--vibe-primary);
    background: var(--white);
    border-color: var(--white);
    padding: 1.1rem 4rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.index-cta a.btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
    transform: translateY(-2px);
}

[data-theme-style="dark"] .index-cta a.btn {
    background: var(--light);
    border-color: var(--light);
}

/* =====================================================
   GRADIENT TEXT - Enhanced
   ===================================================== */
.text-gradient-primary {
    background: var(--vibe-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   GRADIENT BACKGROUND - VibeCheck Animation
   ===================================================== */
.bg-gradient {
    animation: bg-gradient-animation 4s ease infinite alternate !important;
    background: linear-gradient(60deg, var(--vibe-primary), #ec4899, #f97316, #eab308, #22c55e, #06b6d4, var(--vibe-primary));
    background-size: 400% 400%;
}

@keyframes bg-gradient-animation {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* =====================================================
   INVERSE COLORS ANIMATION
   ===================================================== */
.inverse-colors-animation {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inverse-colors-animation:hover {
    filter: hue-rotate(30deg) saturate(1.2) brightness(1.05);
    transform: scale(1.02);
}

/* =====================================================
   INDEX BACKGROUND - VibeCheck Aurora Effect
   ===================================================== */
.index-background {
    position: relative;
    overflow: hidden;
}

/* Mobile-first: smaller aurora effects */
.index-background::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    left: -50px;
    top: -50px;
    filter: blur(80px);
    border-radius: 50%;
    background: rgba(140, 43, 238, 0.25);
    z-index: 0;
    transition: all 0.5s ease;
    opacity: 0.5;
    animation: aurora-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.index-background::after {
    content: '';
    position: absolute;
    pointer-events: none;
    width: 200px;
    height: 200px;
    right: -30px;
    top: 100px;
    filter: blur(60px);
    border-radius: 50%;
    background: rgba(236, 72, 153, 0.2);
    z-index: 0;
    opacity: 0.4;
    animation: aurora-pulse 8s ease-in-out infinite 2s;
}

/* Tablet and up: larger aurora effects */
@media (min-width: 768px) {
    .index-background::before {
        width: 400px;
        height: 400px;
        left: -100px;
        top: -100px;
        filter: blur(100px);
        opacity: 0.6;
    }

    .index-background::after {
        width: 350px;
        height: 350px;
        right: -50px;
        top: 120px;
        filter: blur(80px);
        opacity: 0.5;
    }
}

/* Desktop: full aurora effects */
@media (min-width: 992px) {
    .index-background::before {
        width: 600px;
        height: 600px;
        left: -150px;
        top: -150px;
        filter: blur(120px);
        opacity: 0.7;
    }

    .index-background::after {
        width: 500px;
        height: 500px;
        right: -100px;
        top: 150px;
        filter: blur(100px);
        opacity: 0.6;
    }
}

@keyframes aurora-pulse {

    0%,
    100% {
        transform: scale(1) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1) translateY(-20px);
        opacity: 0.7;
    }
}

[data-theme-style="dark"] .index-background::before {
    background: rgba(140, 43, 238, 0.4);
}

[data-theme-style="dark"] .index-background::after {
    background: rgba(236, 72, 153, 0.3);
}

/* =====================================================
   ICON CONTAINER
   ===================================================== */
.index-icon-container {
    background: linear-gradient(135deg, rgba(140, 43, 238, 0.1), rgba(236, 72, 153, 0.1));
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    color: var(--vibe-primary);
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--vibe-radius);
}

.index-icon-container:hover {
    background: var(--vibe-gradient);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* =====================================================
   FEATURE LINK CARDS - VibeCheck Colors
   ===================================================== */
.file-links-background {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #0b4e3a;
    border-radius: var(--vibe-radius);
    transition: all 0.3s ease;
}

.file-links-icon {
    color: #10b981;
}

.vcard-links-background {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #04505a;
    border-radius: var(--vibe-radius);
}

.vcard-links-icon {
    color: #06b6d4;
}

.event-links-background {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #444088;
    border-radius: var(--vibe-radius);
}

.event-links-icon {
    color: #6366f1;
}

.splash-pages-background {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #044852;
    border-radius: var(--vibe-radius);
}

.splash-pages-icon {
    color: #06b6d4;
}

.domains-background {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    color: #4b1d7a;
    border-radius: var(--vibe-radius);
}

.domains-icon {
    color: #a855f7;
}

.projects-background {
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    color: #851c8d;
    border-radius: var(--vibe-radius);
}

.projects-icon {
    color: #d946ef;
}

/* Dark Theme Variants */
[data-theme-style='dark'] .file-links-background {
    background: linear-gradient(135deg, #1a4731, #14532d);
    color: #9ee5c9;
}

[data-theme-style='dark'] .file-links-icon {
    color: #34d399;
}

[data-theme-style='dark'] .vcard-links-background {
    background: linear-gradient(135deg, #1a4044, #164e63);
    color: #8fe2da;
}

[data-theme-style='dark'] .vcard-links-icon {
    color: #22d3d1;
}

[data-theme-style='dark'] .event-links-background {
    background: linear-gradient(135deg, #1a1c36, #1e1b4b);
    color: #b6bde7;
}

[data-theme-style='dark'] .event-links-icon {
    color: #818cf8;
}

[data-theme-style='dark'] .splash-pages-background {
    background: linear-gradient(135deg, #1a1c36, #164e63);
    color: #99e0e7;
}

[data-theme-style='dark'] .splash-pages-icon {
    color: #22d3d1;
}

[data-theme-style='dark'] .domains-background {
    background: linear-gradient(135deg, #2d1e3f, #3b0764);
    color: #d8c1f2;
}

[data-theme-style='dark'] .domains-icon {
    color: #c084fc;
}

[data-theme-style='dark'] .projects-background {
    background: linear-gradient(135deg, #321a36, #4a044e);
    color: #f0c9e7;
}

[data-theme-style='dark'] .projects-icon {
    color: #e879f9;
}

/* =====================================================
   STATS SECTION - VibeCheck Dark Card
   ===================================================== */
.bg-gray-900 {
    background: linear-gradient(135deg, #0f0a14, #1a1025) !important;
    border: 1px solid var(--vibe-border);
}

/* =====================================================
   ZOOM ANIMATIONS - Enhanced
   ===================================================== */
.zoom-animation-subtle {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-animation-subtle:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.icon-zoom-animation {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-zoom-animation:hover {
    transform: translateY(-5px);
}

/* =====================================================
   TOOL CARDS - VibeCheck Style
   ===================================================== */
.tool-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

/* =====================================================
   API DOCUMENTATION - Code Block Enhancement
   ===================================================== */
.reveal-effect {
    visibility: hidden;
}

.reveal-effect-prepared .reveal-effect-word {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 8px, 0);
    display: inline-block;
    transition: opacity .5s ease, filter .5s ease, transform .5s ease;
}

.reveal-effect-prepared.reveal-effect-in .reveal-effect-word {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

/* =====================================================
   ROUNDED UTILITIES
   ===================================================== */
.rounded-2x {
    border-radius: var(--vibe-radius) !important;
}

.rounded-3x {
    border-radius: var(--vibe-radius-lg) !important;
}

/* =====================================================
   ADDITIONAL POLISH
   ===================================================== */

/* Links without underline */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Primary color accents */
.text-primary {
    color: var(--vibe-primary) !important;
}

.bg-primary-100,
.bg-primary-50 {
    background: linear-gradient(135deg, rgba(140, 43, 238, 0.1), rgba(236, 72, 153, 0.05)) !important;
}

/* Check circle icons */
.fa-check-circle.text-success {
    color: #22c55e !important;
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.3));
}

/* Primary button outline */
.btn-outline-primary {
    border-color: var(--vibe-primary);
    color: var(--vibe-primary);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--vibe-primary);
    border-color: var(--vibe-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--vibe-shadow);
}

/* =====================================================
   ACCESSIBILITY & FOCUS STATES
   ===================================================== */
.no-focus:focus {
    outline: none;
    box-shadow: none;
}

*:focus-visible {
    outline: 2px solid var(--vibe-primary);
    outline-offset: 2px;
}