/* ========================================
   Homepage — Premium Enterprise Design
   ======================================== */

/* Animated Gradient Mesh Hero */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: #0a0f1e;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    animation: meshShift 12s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes meshShift {
    0% {
        background:
            radial-gradient(ellipse 80% 50% at 20% 40%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 60%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
            radial-gradient(ellipse 50% 50% at 50% 100%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    }

    100% {
        background:
            radial-gradient(ellipse 70% 60% at 40% 50%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
            radial-gradient(ellipse 80% 50% at 60% 30%, rgba(37, 99, 235, 0.25) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 30% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
    }
}

.home-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.home-hero .container {
    position: relative;
    z-index: 3;
}

/* Floating geometric shapes */
.hero-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    transform: rotate(25deg);
    animation: floatShape 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: -3%;
    transform: rotate(-15deg);
    animation: floatShape 15s ease-in-out infinite reverse;
    border-radius: 50%;
}

.hero-shape-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite 2s;
}

@keyframes floatShape {

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

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

.home-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.04em;
}

.home-hero h1 .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btns .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.hero-btns .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.hero-btns .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

/* ========================================
   Logo Ticker
   ======================================== */
.logo-ticker-wrap {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.logo-ticker {
    display: flex;
    width: 200%;
    animation: ticker 35s linear infinite;
}

.ticker-item {
    flex: 0 0 auto;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
}

.ticker-item img {
    height: 28px;
    filter: grayscale(100%);
    opacity: 0.35;
    transition: all 0.4s var(--transition-smooth);
}

.ticker-item span {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.ticker-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.ticker-item:hover span {
    color: var(--dark);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   Services Highlight Cards
   ======================================== */
.services-highlight {
    background: var(--lighter);
}

.service-card-modern {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--transition-smooth);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.08);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern .icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.07);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s var(--transition-smooth);
}

.service-card-modern:hover .icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.service-card-modern h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card-modern p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card-modern a {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease;
}

.service-card-modern:hover a {
    gap: 0.7rem;
}

/* ========================================
   Why Choose Us / Stats
   ======================================== */
.stats-counter-section {
    background: var(--dark);
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.counter-item {
    position: relative;
    z-index: 1;
}

.counter-item h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.counter-item h2 i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ========================================
   Featured Work (Case Study Spotlight)
   ======================================== */
.featured-work-section {
    padding: 100px 0;
    background: var(--white);
}

.featured-work-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 550px;
}

.fw-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.featured-work-wrapper:hover .fw-bg-image {
    transform: scale(1.08);
}

.fw-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.5) 40%, transparent 70%);
    padding: 3.5rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fw-overlay-content h4 {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.fw-overlay-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.fw-overlay-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fw-overlay-content .btn {
    width: fit-content;
}

/* ========================================
   Testimonials (Redesigned)
   ======================================== */
.testimonial-section {
    background: var(--lighter);
    padding: 100px 0;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 70px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-box {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.testimonial-box .quote {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 500;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 2rem;
    font-style: normal;
}

.testimonial-box .author img {
    width: 56px;
    height: 56px;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}

.testimonial-box .author-name {
    font-size: 1rem;
    color: var(--dark);
    margin-top: 0.75rem;
}

.testimonial-box .author-title {
    color: var(--text-light);
    font-size: 0.85rem;
}

.testimonial-nav {
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.testimonial-nav:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2.5rem;
    }

    .fw-overlay-content {
        padding: 2rem;
    }

    .fw-overlay-content h2 {
        font-size: 1.75rem;
    }

    .featured-work-wrapper {
        height: 400px;
    }

    .testimonial-box .quote {
        font-size: 1.25rem;
    }

    .testimonial-slider-container {
        padding: 0 40px;
    }

    .hero-shape {
        display: none;
    }
}