/* Root Variables */
:root {
    --bg-light: #F9F9F9;
    --bg-alt: #FFFFFF;
    --text-dark: #1D1D1F;
    --text-muted: #555555;
    --accent-start: #004643;
    --accent-end: #00796B;
    --border-color: #EAEAEA;
}

/* Base Styles */
html {
    background-color: var(--bg-light);
}

body {
    font-family: 'Satoshi', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent layout shifts during font loading */
    font-display: swap;
}

/* Performance Optimizations */
img {
    /* Prevent layout shift during image loading */
    height: auto;
    max-width: 100%;
}

/* Critical rendering path optimization */
.above-fold {
    /* Prioritize above-the-fold content */
    contain: layout style paint;
}

/* Reduce repaints and reflows */
.transform-gpu {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: no-preference) {
    .smooth-transform {
        will-change: transform;
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

/* Respect user motion preferences */
@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;
    }
}

/* Scroll-triggered Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-bottom.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for groups */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Add stagger delays */
.stagger-item:nth-child(1).animate { transition-delay: 0.1s; }
.stagger-item:nth-child(2).animate { transition-delay: 0.2s; }
.stagger-item:nth-child(3).animate { transition-delay: 0.3s; }
.stagger-item:nth-child(4).animate { transition-delay: 0.4s; }
.stagger-item:nth-child(5).animate { transition-delay: 0.5s; }
.stagger-item:nth-child(6).animate { transition-delay: 0.6s; }

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

.counter.animate {
    animation: countUp 1.5s ease-out;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Navigation */
html {
    scroll-behavior: smooth;
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

.nav-link.active {
    color: var(--accent-start);
    font-weight: 600;
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 5rem;
}

/* Navigation scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced header with scroll effects */
.header-scrolled {
    background: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(234, 234, 234, 0.8);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 70, 67, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 70, 67, 0.4);
}

/* Parallax Effects */
.parallax-container {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.parallax-element {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Subtle parallax for hero sections */
.hero-parallax {
    position: relative;
    overflow: hidden;
}

.hero-parallax::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0, 70, 67, 0.03) 0%, transparent 70%);
    z-index: -1;
    will-change: transform;
}

/* Floating elements for depth */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(even) {
    animation-delay: -3s;
    animation-duration: 8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

/* Depth layers for parallax */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    z-index: -2;
    will-change: transform;
}

.parallax-mid {
    position: relative;
    z-index: 1;
    will-change: transform;
}

.parallax-fg {
    position: relative;
    z-index: 2;
    will-change: transform;
}

/* Geometric shapes for visual interest */
.shape-decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    will-change: transform;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-start), var(--accent-end));
}

.shape-square {
    background: linear-gradient(45deg, var(--accent-start), var(--accent-end));
    transform: rotate(45deg);
}

/* Respect reduced motion preferences for parallax */
@media (prefers-reduced-motion: reduce) {
    .parallax-element,
    .hero-parallax::before,
    .floating-element,
    .parallax-bg,
    .parallax-mid,
    .parallax-fg,
    .shape-decoration {
        transform: none !important;
        animation: none !important;
    }
}

/* Enhanced Button Micro-interactions */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    color: var(--bg-light);
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.cta-button::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;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 70, 67, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 70, 67, 0.4);
    transition-duration: 0.1s;
}

/* Button ripple effect */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form Input Micro-interactions */
input[type="text"], 
input[type="email"], 
input[type="url"], 
textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    position: relative;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="url"]:focus, 
textarea:focus {
    outline: none;
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px rgba(0, 70, 67, 0.1);
    transform: translateY(-1px);
}

/* Floating label effect */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    color: var(--text-muted);
    background: white;
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--accent-start);
    font-weight: 600;
}

/* Enhanced Hover Effects System */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
}

.hover-lift:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.card-hover {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 70, 67, 0.05), rgba(0, 121, 107, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

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

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Tilt hover effect */
.hover-tilt {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) translateZ(20px);
}

/* Glow hover effect */
.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-start), var(--accent-end), var(--accent-start));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.hover-glow:hover::after {
    opacity: 0.7;
}

/* Scale and rotate effect */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Image hover effects */
.image-hover {
    overflow: hidden;
    position: relative;
}

.image-hover img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.image-hover:hover img {
    transform: scale(1.1) rotate(2deg);
}

.image-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 70, 67, 0.2), rgba(0, 121, 107, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Service card enhanced hover */
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 70, 67, 0.1), transparent);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
    animation: rotate 10s linear infinite;
}

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

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.1);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Button group hover effects */
.button-group .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    z-index: 2;
}

.button-group .cta-button:hover + .cta-button {
    transform: translateX(5px);
}

/* Navigation hover effects */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 70, 67, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hover-lift,
    .card-hover,
    .hover-tilt,
    .hover-glow,
    .hover-scale,
    .image-hover,
    .service-card {
        transform: none !important;
        animation: none !important;
    }
    
    .hover-lift:hover,
    .card-hover:hover,
    .hover-tilt:hover,
    .hover-scale:hover,
    .image-hover:hover,
    .service-card:hover {
        transform: none !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Magnetic button effect */
.magnetic-button {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Loading state for buttons */
.button-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* Portfolio Filter System */
.portfolio-item {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    will-change: transform, opacity;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-item.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
    filter: blur(2px);
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
    transition: all 0.4s ease;
}

/* Filter animation states */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn:not(.active) {
    background: #6B7280 !important;
    color: white;
}

.filter-btn:not(.active):hover {
    background: #4B5563 !important;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end)) !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 70, 67, 0.3);
}

/* Filter count animation */
.filter-count {
    display: inline-block;
    margin-left: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* Masonry-style grid animations */
.portfolio-masonry {
    column-count: 3;
    column-gap: 2rem;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .portfolio-masonry {
        column-count: 1;
    }
}

@media (max-width: 1024px) {
    .portfolio-masonry {
        column-count: 2;
    }
}

.portfolio-masonry .portfolio-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Loading Animations & Skeleton Screens */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 0.375rem;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-title {
    height: 1.5rem;
    width: 80%;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 12rem;
    border-radius: 0.5rem;
}

.skeleton-card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
}

/* Portfolio skeleton */
.portfolio-skeleton {
    height: 300px;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(0, 70, 67, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-start);
    animation: spin 1s ease-in-out infinite;
}

.spinner-small {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.spinner-large {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--text-dark);
}

.loading-content .spinner {
    margin-bottom: 1rem;
}

/* Pulse animation for loading states */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Progressive image loading */
.progressive-image {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.progressive-image img {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.progressive-image img.loaded {
    opacity: 1;
}

.progressive-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top-color: var(--accent-start);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progressive-image img.loaded + ::before {
    display: none;
}

/* Staggered loading animation */
.stagger-load {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-load:nth-child(1) { animation-delay: 0.1s; }
.stagger-load:nth-child(2) { animation-delay: 0.2s; }
.stagger-load:nth-child(3) { animation-delay: 0.3s; }
.stagger-load:nth-child(4) { animation-delay: 0.4s; }
.stagger-load:nth-child(5) { animation-delay: 0.5s; }
.stagger-load:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content loading states */
.content-loading {
    pointer-events: none;
    user-select: none;
}

.content-loading * {
    color: transparent !important;
    background-color: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    animation: loading-shimmer 1.5s infinite;
}

/* Form loading states */
.form-loading input,
.form-loading textarea,
.form-loading select {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-loading button {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}


/* Testimonial */
.testimonial-text {
    font-size: 2rem;
    line-height: 2.75rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .testimonial-text {
        font-size: 2.5rem;
        line-height: 1.5;
    }
}

/* Bento Grid */
.bento-grid-item {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Service Cards on Homepage */
.spotlight-card {
    color: var(--text-dark) !important;
}

.spotlight-card h3,
.spotlight-card p {
    color: var(--text-dark) !important;
}

.bento-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.08);
}

/* Enhanced Bento Grid Hover Effects */
.bento-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px rgba(0,0,0,0.15);
}

.bento-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.bento-grid-item:hover::before {
    left: 100%;
}

/* Grid responsive adjustments */
@media (min-width: 768px) {
    .bento-grid-item {
        min-height: 200px;
    }
    
    .bento-grid-item.md\:col-span-2 {
        min-height: 250px;
    }
    
    .bento-grid-item.md\:row-span-2 {
        min-height: 420px;
    }
}

/* Work Items */
.work-item-image-wrap {
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
}

.work-item-image {
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-item:hover .work-item-image {
    transform: scale(1.05);
}

.work-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.work-item:hover .work-item-overlay {
    opacity: 1;
}

/* Team Members */
.team-member-photo {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    border-radius: 9999px;
}

.team-member:hover .team-member-photo {
    filter: grayscale(0%);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-start);
}

.faq-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Process Steps */
.process-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    bottom: -2.5rem;
    width: 2px;
    background-color: var(--border-color);
    transform: scaleY(0);
    transform-origin: top;
}

.process-step:last-child::before {
    display: none;
}

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end)) !important;
    color: white !important;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    margin: 0 2rem;
    font-weight: 500;
    color: white !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Growth Grader Specific Styles */
#analyzer-form {
    transition: opacity 0.3s ease;
}

#results-area {
    min-height: 400px;
}

.grade-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    margin: 0 auto 2rem;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 70, 67, 0.3);
}

.metric-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    transition: width 1s ease-out;
}

.recommendation-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-start);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grade-circle {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}

/* Work Page Filter Buttons */
.filter-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end)) !important;
}

.filter-btn:hover {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end)) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 70, 67, 0.3);
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.shine-effect:hover::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

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

/* Pricing Cards */
.pricing-card {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border: 2px solid var(--accent-start);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Site Intro Animation */
.site-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, var(--accent-start), var(--accent-end));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.site-intro.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.intro-logo {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0;
    animation: fadeInScale 1.5s ease 0.5s forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .intro-logo {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }
}

@keyframes textScramble {
    0% { opacity: 0; }
    20% { opacity: 1; content: "█████████"; }
    40% { content: "H█m█T█w█"; }
    60% { content: "Ho█eT█wn"; }
    80% { content: "HomeT█wn"; }
    100% { opacity: 1; content: "HomeTown"; }
}

.scramble-text {
    position: relative;
    display: inline-block;
}

.scramble-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    color: inherit;
    animation: scrambleEffect 0.1s infinite;
}

@keyframes scrambleEffect {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* Multi-Step Form Styles */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    color: white;
    transform: scale(1.1);
}

.step-indicator.completed .step-number {
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    color: white;
}

.step-indicator.completed .step-number::before {
    content: "✓";
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

.step-indicator.active .step-label {
    color: var(--accent-start);
    font-weight: 600;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 1rem;
    position: relative;
    top: -1.75rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-start), var(--accent-end));
    border-radius: 2px;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-step.prev {
    transform: translateX(-20px);
}

.project-type-card input:checked + .card-content {
    border-color: var(--accent-start);
    background: rgba(0, 70, 67, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 70, 67, 0.15);
}

.timeline-option input:checked + div,
.budget-option input:checked + div {
    border-color: var(--accent-start);
    background: rgba(0, 70, 67, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 70, 67, 0.1);
}

.form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-input:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 70, 67, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.error-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

/* Form Animation States */
.step-enter {
    opacity: 0;
    transform: translateX(30px);
}

.step-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-exit {
    opacity: 1;
    transform: translateX(0);
}

.step-exit-active {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .step-indicator {
        flex-direction: row;
        margin-bottom: 1rem;
    }
    
    .step-number {
        margin-bottom: 0;
        margin-right: 0.5rem;
        width: 2rem;
        height: 2rem;
    }
    
    .step-label {
        white-space: normal;
        text-align: left;
    }
    
    .step-connector {
        display: none;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 70, 67, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 70, 67, 0.4);
}

.chat-toggle:active {
    transform: scale(0.95);
}

.chat-toggle-icon {
    color: white;
    transition: transform 0.3s ease;
}

.chat-toggle.active .chat-icon {
    display: none;
}

.chat-toggle.active .close-icon {
    display: block;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-notification.show {
    opacity: 1;
    transform: scale(1);
}

.notification-dot {
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    display: block;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
}

.avatar-gradient {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.avatar-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.chat-status {
    font-size: 13px;
    margin: 4px 0 0 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.chat-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideInMessage 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.message-avatar .avatar-text {
    font-size: 12px;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}


.message-content {
    flex: 1;
    max-width: 280px;
}

.message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    margin-left: auto;
}

.message-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #64748b;
    text-align: left;
    padding: 0 4px;
}

.user-message .message-time {
    text-align: right;
    color: #94a3b8;
}

.quick-actions {
    margin-top: 16px;
    animation: slideInMessage 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.quick-actions-title {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.quick-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-action-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
    color: #475569;
}

.quick-action-btn:hover {
    border-color: var(--accent-start);
    background: rgba(0, 70, 67, 0.05);
    transform: translateY(-1px);
}

.quick-action-btn:active {
    transform: translateY(0);
}

.chat-input-container {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 16px 20px;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    background: #e2e8f0;
    box-shadow: 0 0 0 2px rgba(0, 70, 67, 0.1);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 12px 0;
    color: #374151;
}

.chat-input::placeholder {
    color: #94a3b8;
}

.chat-send {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 70, 67, 0.3);
}

.chat-send:active {
    transform: scale(0.95);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.chat-typing-indicator.show {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .chat-window {
        width: 100%;
        height: 70vh;
        max-height: 500px;
        bottom: 80px;
        right: 0;
        left: 0;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
        margin-left: auto;
    }
}

/* Pricing Calculator Styles */
.billing-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    position: relative;
}

.billing-option {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-option.active {
    background: white;
    color: var(--accent-start);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.service-category {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
}

.service-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.service-option,
.addon-option {
    cursor: pointer;
}

.option-card,
.addon-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.addon-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.option-card:hover,
.addon-card:hover {
    border-color: var(--accent-start);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 70, 67, 0.1);
}

.service-option input:checked + .option-card,
.addon-option input:checked + .addon-card {
    border-color: var(--accent-start);
    background: rgba(0, 70, 67, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 70, 67, 0.15);
}

.option-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price,
.addon-price {
    font-weight: 600;
    color: var(--accent-start);
    font-size: 1.1rem;
}

.addon-info {
    flex: 1;
}

.addon-checkbox {
    display: none;
}

.pricing-summary {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-line,
.total-line,
.roi-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.total-line.final {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.discount-line {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.roi-input input {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.roi-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.roi-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.action-buttons button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Price update animations */
.price-change {
    animation: priceUpdate 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #10b981; }
    100% { transform: scale(1); }
}

/* Service selection animations */
.service-line {
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .pricing-summary {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .billing-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .billing-option {
        flex: 1;
        justify-content: center;
    }
    
    .option-card,
    .addon-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
}

/* ========================================
   SERVICE COMPARISON STYLES
   ======================================== */

/* Service Comparison Controls */
.service-comparison-controls {
    margin-bottom: 2rem;
}

.comparison-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #004643, #00796B);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 70, 67, 0.3);
}

.comparison-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 70, 67, 0.4);
}

.comparison-toggle-btn.active {
    background: linear-gradient(135deg, #00796B, #004643);
}

.service-filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #EAEAEA;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #004643;
}

.comparison-counter {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 70, 67, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.counter-text {
    font-weight: 500;
    color: #004643;
}

.compare-selected-btn {
    padding: 0.5rem 1rem;
    background: #004643;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-selected-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compare-selected-btn:not(:disabled):hover {
    background: #00796B;
    transform: translateY(-1px);
}

/* Service Card Enhancements */
.service-card {
    position: relative;
    transition: all 0.3s ease;
}

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

.service-comparison-checkbox {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.comparison-checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: white;
    border: 2px solid #EAEAEA;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-label:hover {
    border-color: #004643;
    transform: scale(1.05);
}

.comparison-checkbox:checked + .checkbox-label {
    background: #004643;
    border-color: #004643;
}

.comparison-checkbox:checked + .checkbox-label .checkmark {
    stroke: white;
}

.checkmark {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comparison-checkbox:checked + .checkbox-label .checkmark {
    opacity: 1;
}

/* Service Details */
.service-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item-small {
    display: block;
    margin-bottom: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.detail-value {
    font-weight: 600;
}

/* Service Features */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.feature-tag-small {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 70, 67, 0.1);
    color: inherit;
    font-size: 0.625rem;
    font-weight: 500;
    border-radius: 0.75rem;
}

/* Service Detail Buttons */
.service-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-details-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.service-details-btn-small {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.service-details-btn-small:hover {
    background: rgba(0, 70, 67, 0.1);
    transform: translateX(2px);
}

/* Comparison Modal */
.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comparison-modal.active {
    opacity: 1;
    visibility: visible;
}

.comparison-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comparison-modal.active .comparison-modal-content {
    transform: scale(1);
}

.comparison-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #EAEAEA;
}

.comparison-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D1D1F;
}

.comparison-modal-close {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #555555;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.comparison-modal-close:hover {
    background: #F9F9F9;
    color: #1D1D1F;
}

.comparison-modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.comparison-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid #EAEAEA;
    gap: 1rem;
}

.clear-comparison-btn {
    padding: 0.75rem 1.5rem;
    background: #F9F9F9;
    color: #555555;
    border: 1px solid #EAEAEA;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-comparison-btn:hover {
    background: #EAEAEA;
}

.contact-about-services-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #004643, #00796B);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-about-services-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 70, 67, 0.3);
}

.contact-about-services-btn a {
    color: inherit;
    text-decoration: none;
}

/* Service Detail Modal */
.service-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-detail-modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    max-height: 80vh;
    width: 100%;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.service-detail-modal.active .service-detail-modal-content {
    transform: translateY(0);
}

.service-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #EAEAEA;
}

.service-detail-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D1D1F;
}

.service-detail-modal-close {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #555555;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.service-detail-modal-close:hover {
    background: #F9F9F9;
    color: #1D1D1F;
}

.service-detail-modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.service-detail-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid #EAEAEA;
    gap: 1rem;
}

.add-to-comparison-btn {
    padding: 0.75rem 1.5rem;
    background: #F9F9F9;
    color: #004643;
    border: 1px solid #004643;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-comparison-btn:hover {
    background: #004643;
    color: white;
}

.get-quote-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #004643, #00796B);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.get-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 70, 67, 0.3);
}

.get-quote-btn a {
    color: inherit;
    text-decoration: none;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #EAEAEA;
}

.comparison-table th {
    background: #F9F9F9;
    font-weight: 600;
    color: #1D1D1F;
}

.comparison-table .service-header {
    background: linear-gradient(135deg, #004643, #00796B);
    color: white;
    text-align: center;
}

.comparison-table .feature-check {
    color: #22C55E;
    font-weight: 600;
}

.comparison-table .feature-cross {
    color: #EF4444;
    font-weight: 600;
}

/* Filter States */
.service-card.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
}

/* Service Detail Modal Content */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #EAEAEA;
}

.detail-description {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555555;
}

.feature-list,
.deliverable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li,
.deliverable-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #F9F9F9;
    color: #555555;
}

.feature-list li::before,
.deliverable-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #004643;
    font-weight: 600;
}

.deliverable-list li::before {
    content: '→';
    color: #00796B;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-counter {
        flex-direction: column;
        text-align: center;
    }
    
    .comparison-modal-content {
        margin: 0.5rem;
    }
    
    .comparison-modal-footer {
        flex-direction: column;
    }
    
    .service-detail-modal-footer {
        flex-direction: column;
    }
}

/* Dynamic Testimonial Carousel Styles */
.testimonial-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    padding: 2rem 1rem;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.testimonial-text {
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 300;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial-text::before {
    top: -1rem;
    left: -2rem;
}

.testimonial-text::after {
    bottom: -2rem;
    right: -2rem;
    transform: rotate(180deg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-avatar {
    position: relative;
}

.author-image {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.author-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.author-location {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.prev-btn {
    margin-left: 1rem;
}

.next-btn {
    margin-right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Autoplay Controls */
.autoplay-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.autoplay-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.autoplay-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.autoplay-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

/* Smooth Transitions */
.testimonial-slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-text {
        font-size: 1.25rem;
        line-height: 1.5;
    }
    
    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 2.5rem;
    }
    
    .testimonial-text::before {
        top: -0.5rem;
        left: -1rem;
    }
    
    .testimonial-text::after {
        bottom: -1rem;
        right: -1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .author-info {
        text-align: center;
    }
    
    .author-image {
        width: 3rem;
        height: 3rem;
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .autoplay-controls {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Fade-in animation for testimonials */
.testimonial-slide.entering {
    animation: slideInTestimonial 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.exiting {
    animation: slideOutTestimonial 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* Progress bar for autoplay */
.autoplay-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 2px;
    transform-origin: left;
    transition: transform 0.1s linear;
}

.autoplay-progress.paused {
    animation-play-state: paused;
}

