/* WORLD-CLASS UI ENHANCEMENTS - ULTRA PREMIUM */
/* Based on 2025 design trends from Apple, Stripe, Vercel, Linear, Framer */

/* ============================================
   BENTO GRID LAYOUT SYSTEM
   ============================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Bento grid sizes */
.bento-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 6;
    grid-row: span 1;
}

@media (max-width: 1024px) {

    .bento-large,
    .bento-medium,
    .bento-small,
    .bento-wide {
        grid-column: span 12 !important;
    }
}

/* ============================================
   STATISTICS COUNTER SECTION
   ============================================ */

.stats-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    transition: left 0.8s ease;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */

.testimonials-section {
    padding: 8rem 5%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 2rem 0;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    transition: all 0.6s ease;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

.testimonial-quote {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -2rem;
    left: -1rem;
    color: rgba(59, 130, 246, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.3);
}

.author-info h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.5);
}

/* ============================================
   MODERN SERVICE CARDS
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.8s ease;
    transform: scale(0);
}

.service-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.6s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-desc {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   INTERACTIVE CTA SECTION
   ============================================ */

.cta-section {
    padding: 8rem 5%;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.2), transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-primary,
.cta-button-secondary {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-button-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}

.cta-button-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.6);
}

.cta-button-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

/* ============================================
   SCROLL-TRIGGERED FADE-IN ANIMATIONS
   ============================================ */

[data-scroll-animate] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-scroll-animate="fade-left"] {
    transform: translateX(-50px);
}

[data-scroll-animate="fade-right"] {
    transform: translateX(50px);
}

[data-scroll-animate="zoom"] {
    transform: scale(0.8);
}

[data-scroll-animate].animate-in {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ============================================
   KINETIC TYPOGRAPHY
   ============================================ */

.kinetic-text {
    display: inline-block;
    perspective: 1000px;
}

.kinetic-text span {
    display: inline-block;
    animation: wave 3s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0) rotateZ(0);
    }

    25% {
        transform: translateY(-10px) rotateZ(5deg);
    }

    75% {
        transform: translateY(10px) rotateZ(-5deg);
    }
}

/* ============================================
   VIDEO BACKGROUND SECTION
   ============================================ */

.video-section {
    position: relative;
    height: 70vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.4) blur(2px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

/* ============================================
   MORPHING SHAPES BACKGROUND
   ============================================ */

.morphing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.morph-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
    filter: blur(80px);
    animation: morph 20s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* ============================================
   GLASS CARDS WITH DEPTH
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   SECTION HEADERS WITH STYLE
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}