/**
 * Premium Agency Styles - KOTA-Inspired
 * semity Enterprise - Creative Digital Agency Experience
 * 
 * Design Philosophy:
 * - Modern, minimal, creative agency aesthetic
 * - Strong visual hierarchy with large typography
 * - Generous spacing and clean grid system
 * - Premium hover effects and micro-interactions
 */

/* ============================================
   GLOBAL PREMIUM RESETS
   ============================================ */

html {
    scroll-behavior: smooth;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ============================================
   PREMIUM TYPOGRAPHY
   ============================================ */

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    text-transform: none;
}

.hero-title .word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
}

.hero-title .word {
    display: inline-block;
    will-change: transform, opacity;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-pro h2,
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ============================================
   PREMIUM HERO SECTION
   ============================================ */

.hero-video {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 120px;
}

.video-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.3) 100%
    ) !important;
    backdrop-filter: blur(1px);
}

/* Premium scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* ============================================
   PREMIUM CTA BUTTONS
   ============================================ */

.cta-btn {
    position: relative;
    padding: 1.1rem 2.8rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border-radius: 60px !important;
    overflow: hidden;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cta-btn.cta-primary {
    background: linear-gradient(135deg, #5a8ad8 0%, #1e7aa8 100%) !important;
    box-shadow: 
        0 4px 15px rgba(43, 161, 216, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.cta-btn.cta-primary:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 
        0 20px 40px rgba(43, 161, 216, 0.35),
        0 8px 16px rgba(43, 161, 216, 0.25) !important;
}

.cta-btn.cta-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(20px);
}

.cta-btn.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-4px) !important;
}

/* Button shine effect */
.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.cta-btn:hover::before {
    left: 100%;
}

/* ============================================
   PREMIUM CARD STYLES
   ============================================ */

.creative-card,
.glow-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.creative-card::before,
.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(247, 148, 29, 0.08) 0%,
        transparent 50%,
        rgba(232, 64, 10, 0.04) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.creative-card:hover::before,
.glow-card:hover::before {
    opacity: 1;
}

.creative-card:hover,
.glow-card:hover {
    border-color: rgba(247, 148, 29, 0.4);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(247, 148, 29, 0.15);
}

/* Card image container */
.creative-card-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.creative-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: opacity 0.4s ease;
}

.creative-card:hover .creative-card-image::after {
    opacity: 0.5;
}

/* Card content */
.creative-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Card icon */
.creative-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.creative-card:hover .creative-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ============================================
   SERVICE CARDS GRID
   ============================================ */

.services-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glow-card {
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
}

/* Service Icon Box - App Icon Style */
.service-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(145deg, #2B4A8C, #1A2F5C);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    box-shadow: 
        0 8px 24px rgba(27, 47, 92, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 22px 22px 0 0;
    pointer-events: none;
}

.service-icon-box i {
    color: white;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}



.glow-card > div:first-child {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover > div:first-child {
    transform: scale(1.1) translateY(-5px);
}

/* Glow effect on hover - Orange */
.glow-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #F7941D, #E8400A);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.glow-card:hover::after {
    opacity: 0.35;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    position: relative;
    padding: 2.5rem 2rem !important;
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-12px) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(43, 161, 216, 0.1) !important;
}

.stat-number {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* ============================================
   CLIENT LOGOS
   ============================================ */

.client-logo-card {
    position: relative;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.client-logo-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(43, 161, 216, 0.15) !important;
}

.client-logo-card img {
    transition: all 0.4s ease !important;
}

.client-logo-card:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    padding: 2.5rem !important;
    border-radius: 24px !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 0 0 4px 4px;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(43, 161, 216, 0.08) !important;
}

/* ============================================
   FRAMEWORK STEPS
   ============================================ */

.creative-framework {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.framework-step {
    position: relative;
    text-align: center;
    padding: 2rem;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.step-number {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-number span {
    position: relative;
    z-index: 2;
}

.step-glow {
    position: absolute;
    inset: -4px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(10px);
    transition: all 0.4s ease;
}

.framework-step:hover .step-number {
    transform: scale(1.1);
}

.framework-step:hover .step-glow {
    opacity: 0.5;
    filter: blur(15px);
    inset: -8px;
}

.step-connector {
    display: none;
}

@media (min-width: 769px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 40px;
        right: -1rem;
        width: 2rem;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
    }
    
    .framework-step:last-child .step-connector {
        display: none;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item::after {
    content: 'View';
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    position: relative;
    padding: 6rem 0 !important;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(43, 161, 216, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   NAVBAR ENHANCEMENTS
   ============================================ */

.navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: var(--glass-bg-strong);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   SECTION SPACING
   ============================================ */

.section {
    padding: 6rem 0;
}

.section-header-pro {
    text-align: center;
    margin: 1rem;
    margin-bottom: 0 !important;

}

.section-header-pro p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   CREATIVE CARDS GRID
   ============================================ */

.creative-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.trust-badges span:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trust-badges .check {
    color: #4ade80;
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid-home,
    .creative-cards-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .stats-grid,
    .services-grid-home,
    .creative-cards-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .creative-framework {
        flex-direction: column;
        align-items: center;
    }
    
    .framework-step {
        max-width: 100%;
    }
    
    .step-connector {
        display: none;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .trust-badges span {
        font-size: 0.85rem;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

[data-theme="dark"] .creative-card,
[data-theme="dark"] .glow-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .creative-card:hover,
[data-theme="dark"] .glow-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(247, 148, 29, 0.5);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(247, 148, 29, 0.2);
}

[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .stat-item:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(247, 148, 29, 0.2) !important;
}

[data-theme="dark"] .testimonial-card {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .client-logo-card {
    background: rgba(255, 255, 255, 0.03) !important;
}
