/**
 * MoonMint Custom CSS - Enhanced Animations and Effects
 * Micro-interactions, hover effects, and visual polish
 */

/* ==========================================================================
   Page Load Animation
   ========================================================================== */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded) * {
    animation-play-state: paused !important;
}

body.loaded .hero-content {
    animation: heroFadeIn 1s ease-out forwards;
}

body.loaded .hero-title {
    animation: heroFadeIn 1s ease-out 0.15s forwards;
}

body.loaded .hero-subtitle {
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

body.loaded .hero-content .btn {
    animation: heroFadeIn 1s ease-out 0.45s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Enhanced Header Animations
   ========================================================================== */
.site-header {
    transition: 
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s ease,
        padding 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header.scrolled .header-inner {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
}

/* Logo hover effect */
.site-logo a {
    display: block;
    transition: transform 0.3s ease;
}

.site-logo a:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Advanced Mobile Menu Animation
   ========================================================================== */
.mobile-menu-toggle span {
    transition: 
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        background 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu items stagger animation */
.main-nav.active .nav-menu li {
    animation: menuItemSlide 0.4s ease forwards;
    opacity: 0;
}

.main-nav.active .nav-menu li:nth-child(1) { animation-delay: 0.05s; }
.main-nav.active .nav-menu li:nth-child(2) { animation-delay: 0.1s; }
.main-nav.active .nav-menu li:nth-child(3) { animation-delay: 0.15s; }
.main-nav.active .nav-menu li:nth-child(4) { animation-delay: 0.2s; }
.main-nav.active .nav-menu li:nth-child(5) { animation-delay: 0.25s; }
.main-nav.active .nav-menu li:nth-child(6) { animation-delay: 0.3s; }

@keyframes menuItemSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Button Micro-interactions
   ========================================================================== */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Shine effect on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

/* Icon animation on hover */
.btn-primary:hover .btn-icon svg {
    animation: iconSlide 0.4s ease forwards;
}

.btn-cta:hover .btn-cta-icon svg {
    animation: iconSlide 0.4s ease forwards;
}

@keyframes iconSlide {
    0% { transform: translate(0, 0); }
    50% { transform: translate(4px, -4px); }
    100% { transform: translate(2px, -2px); }
}

/* Touch ripple effect */
.ripple-active::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   Card Hover Effects - Enhanced
   ========================================================================== */
.stat-card {
    transition: 
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(165, 235, 77, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(165, 235, 77, 0.1);
}

/* Service card glow effect */
.service-card {
    transition: 
        background 0.4s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-green), transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::after {
    opacity: 0.3;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

/* Blog card image zoom */
.blog-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-card:hover {
    transform: translateY(-12px);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Portfolio card 3D tilt effect */
.portfolio-card {
    transition: 
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 
        0 30px 60px rgba(165, 235, 77, 0.15),
        0 0 0 1px rgba(165, 235, 77, 0.1);
}

/* ==========================================================================
   Link Animations
   ========================================================================== */
.main-nav a,
.footer-nav a,
.footer-menu a {
    position: relative;
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Underline slide from center */
.footer-nav a::after,
.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-nav a:hover::after,
.footer-menu a:hover::after {
    width: 100%;
}

/* Learn more arrow animation */
.learn-more-link {
    position: relative;
}

.learn-more-link svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.learn-more-link:hover svg {
    transform: translateX(10px);
    animation: arrowPulse 0.6s ease infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(10px); }
    50% { transform: translateX(15px); }
}

/* ==========================================================================
   Social Icons Animation
   ========================================================================== */
.social-sidebar a,
.footer-social a {
    transition: 
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.social-sidebar a:hover {
    transform: scale(1.2) translateX(-5px);
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(165, 235, 77, 0.3);
}

/* ==========================================================================
   Glow Effects
   ========================================================================== */
.footer-glow {
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.35;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.55;
        transform: translateX(-50%) scale(1.15);
    }
}

/* Portfolio section glow */
.portfolio-section::before {
    animation: portfolioGlow 8s ease-in-out infinite;
}

@keyframes portfolioGlow {
    0%, 100% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.35;
        transform: translateX(-50%) scale(1.1);
    }
}

/* ==========================================================================
   Text Gradient Animation (optional - for special elements)
   ========================================================================== */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        var(--primary-green),
        var(--primary-green-light),
        var(--primary-green)
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   Scroll Progress Indicator
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary-green);
}

/* ==========================================================================
   Focus States for Accessibility
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 10001;
    transition: top 0.3s ease;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
}

/* ==========================================================================
   Dropdown Menu Enhanced
   ========================================================================== */
.nav-item.has-dropdown .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(165, 235, 77, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.3s ease;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.nav-item.has-dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item.has-dropdown .sub-menu li {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-item.has-dropdown:hover .sub-menu li {
    opacity: 1;
    transform: translateX(0);
}

.nav-item.has-dropdown:hover .sub-menu li:nth-child(1) { transition-delay: 0.05s; }
.nav-item.has-dropdown:hover .sub-menu li:nth-child(2) { transition-delay: 0.1s; }
.nav-item.has-dropdown:hover .sub-menu li:nth-child(3) { transition-delay: 0.15s; }
.nav-item.has-dropdown:hover .sub-menu li:nth-child(4) { transition-delay: 0.2s; }

.nav-item.has-dropdown .sub-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.nav-item.has-dropdown .sub-menu a:hover {
    background: rgba(165, 235, 77, 0.1);
    padding-left: 30px;
}

/* ==========================================================================
   CTA Section Enhancements
   ========================================================================== */
.cta-bar {
    position: relative;
    overflow: hidden;
}

.cta-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: ctaShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ==========================================================================
   Portfolio Tags Hover
   ========================================================================== */
.portfolio-tag {
    transition: 
        background 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.portfolio-tag:hover {
    background: rgba(165, 235, 77, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(165, 235, 77, 0.2);
}

/* ==========================================================================
   Stats Counter Animation Enhancement
   ========================================================================== */
.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable complex hover effects on touch */
    .service-card:hover,
    .stat-card:hover,
    .blog-card:hover,
    .portfolio-card:hover {
        transform: none !important;
    }
    
    /* Add tap highlight instead */
    .service-card:active,
    .stat-card:active,
    .blog-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease;
    }
    
    /* Disable shine effects */
    .btn::before,
    .cta-bar::before {
        display: none;
    }
}

/* ==========================================================================
   Services Section - Horizontal Scroll-Linked Slider (NEW DESIGN)
   ========================================================================== */
.services-horizontal-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.98) 0%, rgba(28, 28, 28, 0.98) 100%);
}

.services-slider-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Section */
.services-header-wrapper {
    padding: 40px 0 20px;
    z-index: 10;
}

.services-horizontal-slider.is-locked .services-header-wrapper {
    padding: 40px 0 20px;
}

.services-header {
    text-align: left;
}

.services-header .section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.services-header .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.services-header .section-title .highlight {
    color: var(--primary-green);
    display: block;
}

.services-header .section-title span:not(.highlight) {
    display: block;
    color: #ffffff;
}

.services-header .section-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Horizontal Track - Simple Scroll */
.services-horizontal-track-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 40px 0;
    cursor: grab;
}

.services-horizontal-track-wrapper::-webkit-scrollbar {
    display: none;
}

.services-horizontal-track-wrapper:active {
    cursor: grabbing;
}

.services-horizontal-track {
    display: flex;
    gap: 40px;
    padding: 0 10vw;
    will-change: transform;
}

/* Individual Slide */
.services-slide {
    flex: 0 0 35vw;
    min-width: 320px;
    max-width: 450px;
    scroll-snap-align: center;
}

.services-horizontal-slider.is-locked .services-slide {
    flex: 0 0 35vw;
    min-width: 320px;
    max-width: 450px;
}

/* Service Card V2 - New Design */
.service-card-v2 {
    background: linear-gradient(145deg, rgba(165, 235, 77, 0.05) 0%, rgba(165, 235, 77, 0.02) 100%);
    border: 1px solid rgba(165, 235, 77, 0.15);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.services-horizontal-slider.is-locked .service-card-v2 {
    min-height: 380px;
    padding: 40px;
}

.service-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-v2:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(165, 235, 77, 0.4);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(165, 235, 77, 0.1),
        inset 0 0 60px rgba(165, 235, 77, 0.05);
}

.service-card-v2:hover::before {
    opacity: 1;
}

/* Service Number */
.service-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(165, 235, 77, 0.1);
    line-height: 1;
    font-family: var(--font-sora);
}

/* Service Icon V2 */
.service-icon-v2 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(165, 235, 77, 0.15) 0%, rgba(165, 235, 77, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.4s ease;
    border: 1px solid rgba(165, 235, 77, 0.2);
}

.service-card-v2:hover .service-icon-v2 {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(165, 235, 77, 0.25) 0%, rgba(165, 235, 77, 0.1) 100%);
    box-shadow: 0 10px 30px rgba(165, 235, 77, 0.2);
}

.service-icon-v2 svg {
    width: 32px;
    height: 32px;
    color: var(--primary-green);
}

.service-icon-v2 img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Service Content V2 */
.service-content-v2 {
    flex: 1;
}

.service-content-v2 h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.3;
}

.service-content-v2 p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Service Arrow */
.service-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(165, 235, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.service-card-v2:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
    background: var(--primary-green);
    color: var(--primary-dark);
}

/* Progress Section */
.services-progress-wrapper {
    padding: 20px 0 40px;
    z-index: 10;
}

.services-horizontal-slider.is-locked .services-progress-wrapper {
    padding: 20px 0 40px;
}

.services-progress {
    display: flex;
    align-items: center;
    gap: 24px;
}

.services-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(165, 235, 77, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.services-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light, #b8f066));
    width: 0%;
    transition: width 0.1s linear;
}

.services-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sora);
    font-size: 1rem;
    font-weight: 500;
}

.services-counter .current-slide {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
}

.services-counter .separator {
    color: rgba(255, 255, 255, 0.3);
}

.services-counter .total-slides {
    color: rgba(255, 255, 255, 0.5);
}

/* Services Horizontal Slider - Simple Scroll */
.services-horizontal-slider {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

/* Remove locked state styles - not needed for simple scroll */
.services-horizontal-slider.is-locked {
    position: relative;
    overflow: hidden;
}

.services-horizontal-slider.is-locked .services-slider-container {
    height: auto;
    display: block;
}

body:has(.services-horizontal-slider.is-locked) {
    overflow: auto;
}

/* Disabled State - same as normal now */
.services-slider-disabled .services-horizontal-track-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.services-slider-disabled .services-slide {
    scroll-snap-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-slide {
        flex: 0 0 50vw;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .services-slide {
        flex: 0 0 80vw;
        min-width: 280px;
    }
    
    .service-card-v2 {
        padding: 30px;
        min-height: 320px;
    }
    
    .service-number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Services Scroll-Linked Slider (OLD - Keep for reference)
   ========================================================================== */
/* Default: show static grid, hide slider viewport */
.services-slider-viewport,
.services-slider-indicator,
.services-slider-dots {
    display: none;
}

.services-section--no-slider .services-slider-viewport,
.services-section--no-slider .services-slider-indicator,
.services-section--no-slider .services-slider-dots {
    display: none;
}

.services-section--no-slider .services-grid--static {
    display: grid;
}

/* When slider is active: hide static grid, show slider */
.services-section--slider-active .services-grid--static {
    display: none;
}

.services-section--slider-active .services-slider-viewport,
.services-section--slider-active .services-slider-indicator,
.services-section--slider-active .services-slider-dots {
    display: block;
}

.services-section--slider-active .services-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.services-slider-viewport {
    overflow: hidden;
    margin-top: var(--gap-lg);
    border-radius: var(--radius-sm);
    background: linear-gradient(292.81deg, rgba(165, 235, 77, 0) 80.02%, #A5EB4D 100%), rgba(165, 235, 77, 0.1);
    padding: 2px;
}

.services-slider-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.services-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    padding: 2px;
}

.services-slider-slide .service-card {
    width: 100%;
    min-height: 280px;
}

.services-slider-indicator {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-varela);
    font-size: var(--fs-small);
    color: var(--text-muted-light);
}

.services-slider-indicator .current {
    color: var(--primary-green);
    font-weight: 600;
}

body.services-slider-locked {
    overflow: hidden;
    height: 100vh;
}

/* Service Section Design Fixes */
.services-section {
    position: relative;
}

.services-grid--static {
    display: grid;
    gap: 20px;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: linear-gradient(292.81deg, rgba(165, 235, 77, 0) 80.02%, #A5EB4D 100%), rgba(165, 235, 77, 0.1);
    border: 2px solid rgba(165, 235, 77, 0.2);
    border-radius: var(--radius-sm);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card.active,
.service-card:hover {
    background: linear-gradient(292.81deg, rgba(165, 235, 77, 0.2) 80.02%, #A5EB4D 100%), rgba(165, 235, 77, 0.15);
    border-color: rgba(165, 235, 77, 0.4);
    transform: translateY(-8px);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-green);
}

.service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary, #ffffff);
}

.service-content p {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--text-secondary, #b8b8b8);
}

/* Pagination Dots for Slider */
.services-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(165, 235, 77, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-slider-dots .dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

.services-slider-dots .dot:hover {
    background: rgba(165, 235, 77, 0.6);
}

/* Cursor blob transition fix */
.cursor-blob {
    transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Cursor Effects (blob + sparks)
   ========================================================================== */
.cursor-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#page,
.site-header,
.scroll-progress {
    position: relative;
    z-index: 1;
}

.cursor-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(165, 235, 77, 0.15) 0%,
        rgba(165, 235, 77, 0.06) 40%,
        transparent 70%
    );
    filter: blur(40px);
    transform: translate(0, 0);
    transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, opacity 0.3s ease, scale 0.3s ease;
    will-change: transform;
}

.cursor-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.cursor-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    border-radius: 50%;
    background: rgba(165, 235, 77, 0.9);
    box-shadow: 0 0 12px rgba(165, 235, 77, 0.8);
    pointer-events: none;
    animation: cursor-spark-fade 0.8s ease-out forwards;
}

@keyframes cursor-spark-fade {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(var(--spark-dx, 0), var(--spark-dy, 0));
    }
}

/* Hide cursor effects when reduced motion or on touch */
@media (prefers-reduced-motion: reduce) {
    .cursor-effects {
        display: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .cursor-effects {
        display: none !important;
    }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .footer-glow,
    .portfolio-section::before,
    .cta-bar::before {
        animation: none !important;
    }
    
    .scroll-progress {
        display: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .btn::before,
    .btn::after,
    .card::before,
    .card::after,
    .footer-glow,
    .scroll-progress,
    .social-sidebar {
        display: none !important;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Blog and Archive Page Styles
   ========================================================================== */
.blog-archive,
.single-post-content,
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.archive-header-section,
.single-post-header {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98) 0%, rgba(28, 28, 28, 0.98) 100%);
    border-bottom: 1px solid rgba(165, 235, 77, 0.1);
}

.archive-title,
.entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary, #ffffff);
}

.archive-description {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    color: var(--text-secondary, #b8b8b8);
    margin: 1rem auto 0;
}

.archive-content-section {
    padding: 80px 0;
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-green, #a5eb4d);
    color: var(--primary-dark, #111);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-category {
    transform: translateY(-3px);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green, #a5eb4d);
    font-weight: 600;
    font-size: 0.938rem;
    transition: gap 0.3s ease;
    margin-top: 12px;
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* Single Post Styles */
.single-post-header .container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.post-category {
    display: inline-block;
    background: var(--primary-green, #a5eb4d);
    color: var(--primary-dark, #111);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.post-category:hover {
    transform: translateY(-2px);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    color: var(--text-secondary, #b8b8b8);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.938rem;
}

.meta-item svg {
    flex-shrink: 0;
}

.post-thumbnail {
    margin-top: 30px;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-body {
    padding: 80px 0;
}

.single-post-body .container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary, #ffffff);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem;
    color: var(--text-primary, #ffffff);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md, 12px);
    margin: 2rem 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags strong {
    display: block;
    margin-bottom: 12px;
    color: var(--text-primary, #ffffff);
}

.tag-link {
    display: inline-block;
    background: rgba(165, 235, 77, 0.1);
    color: var(--primary-green, #a5eb4d);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-green, #a5eb4d);
    color: var(--primary-dark, #111);
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    padding: 60px 0;
    background: rgba(17, 17, 17, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #b8b8b8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-previous a,
.nav-next a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-green, #a5eb4d);
    transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--primary-green-light, #b8f066);
    transform: translateX(-5px);
}

.nav-next a:hover {
    transform: translateX(5px);
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98) 0%, rgba(28, 28, 28, 0.98) 100%);
}

.related-posts .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Page Template Styles */
.page-section {
    padding: 80px 0;
    position: relative;
}

.page-section.page-default-content {
    min-height: 60vh;
}

.page-section .entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-section .featured-image {
    margin: 40px 0;
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
}

.page-section .section-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm, 8px);
    color: var(--text-primary, #ffffff);
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-green, #a5eb4d);
    color: var(--primary-dark, #111);
    border-color: var(--primary-green, #a5eb4d);
    transform: translateY(-2px);
}

.page-numbers svg {
    width: 20px;
    height: 20px;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-found h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary, #ffffff);
}

.no-posts-found p {
    font-size: 1.125rem;
    color: var(--text-secondary, #b8b8b8);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-archive,
    .single-post-content,
    .page-content {
        padding-top: 80px;
    }
    
    .archive-header-section,
    .single-post-header {
        padding: 40px 0;
    }
    
    .archive-content-section,
    .single-post-body,
    .related-posts {
        padding: 60px 0;
    }
    
    .blog-archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .post-nav-links {
        grid-template-columns: 1fr;
    }
}
