/* Client Section */
.clients-section {
    padding: 4rem 1rem;
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.client-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #673ab7 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hover effects (enhanced) */
.client-card:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.client-logo {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.8s ease;
    transform: scale(1);
}

.client-card.animate-in .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    animation: logoReveal 1.2s ease-out forwards;
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-logo.smooth-reveal {
    animation: smoothGrayscaleReveal 2s ease-out forwards;
}

/* Responsive Design */
@media (min-width: 640px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .client-logo {
        max-height: 120px;
    }
}

@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .client-card {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .clients-section {
        padding: 6rem 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }

    .client-logo {
        max-height: 150px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.client-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Base Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Properties */
:root {
    /* Client Section */
    --client-card-bg: #ffffff;
    --client-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --client-card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --logo-max-size: 150px;
    /* NEW LOGO-INSPIRED COLORS */
    --primary-color: #e91e63;
    /* Pink from logo */
    --primary-dark: #c2185b;
    /* Darker pink */
    --secondary-color: #9c27b0;
    /* Purple from logo */
    --accent-color: #673ab7;
    /* Deep purple accent */
    --accent-dark: #512da8;
    /* Darker deep purple */
    --gradient-start: #e91e63;
    /* Pink start */
    --gradient-middle: #9c27b0;
    /* Purple middle */
    --gradient-end: #673ab7;
    /* Deep purple end */

    /* Text colors */
    --text-primary: #1a1a1a;
    /* Dark text for readability */
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;

    /* Border and shadow */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Logo gradient */
    --logo-gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
}

.dark {
    /* Dark mode colors - maintaining logo theme */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #0f172a;
    /* Dark blue-gray */
    --bg-secondary: #1e293b;
    /* Slightly lighter */
    --bg-tertiary: #334155;
    /* Even lighter for contrast */
    --border-color: #475569;
    --border-light: #334155;
}

/* Utility Classes - Mobile First */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tablet and up */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
}

/* Button Styles - Mobile First */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--logo-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Tablet and up button styles */
@media (min-width: 768px) {
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary::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;
}

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

/* Navigation Styles - Mobile First */
.nav-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-gradient);
    transition: width 0.3s ease;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(233, 30, 99, 0.1) 100%);
    padding-left: 0.5rem;
    transform: translateX(4px);
}

/* Theme Toggle Button - Mobile First */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--logo-gradient);
    color: white;
    transform: scale(1.05);
}

/* Form Styles - Mobile First */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    /* border-color: var(--primary-color); */
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* Card Styles - Mobile First */
.service-card {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--logo-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Tablet and up card styles */
@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
    }
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color);
}

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

.portfolio-card {
    background-color: var(--bg-primary);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--logo-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.portfolio-card:hover::after {
    transform: scaleX(1);
}

/* Section Styles - Mobile First */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.03) 0%, rgba(156, 39, 176, 0.03) 50%, rgba(103, 58, 183, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

section:hover::before {
    opacity: 1;
}

/* Why Choose Us Section - Mobile First */
.why-choose-us-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

/* Desktop and up */
@media (min-width: 1024px) {
    .why-choose-us-section {
        padding: 5rem 0;
    }
}

.why-choose-content {
    animation: slideInFromLeft 0.8s ease-out;
    text-align: center;
}

/* Desktop and up */
@media (min-width: 1024px) {
    .why-choose-content {
        text-align: left;
    }
}

.why-choose-visual {
    animation: slideInFromRight 0.8s ease-out;
    order: -1;
}

/* Desktop and up */
@media (min-width: 1024px) {
    .why-choose-visual {
        order: 0;
    }
}

.why-choose-us-section .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Desktop and up */
@media (min-width: 1024px) {
    .why-choose-us-section .grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.benefit-item {
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: left;
}

/* Tablet and up */
@media (min-width: 768px) {
    .benefit-item {
        padding: 1rem;
    }
}

.benefit-item:hover {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(233, 30, 99, 0.08) 100%);
    transform: translateX(8px);
    border-left: 3px solid var(--primary-color);
}

.benefit-item:hover .flex-shrink-0 {
    transform: scale(1.1);
    transition: var(--transition);
    color: var(--primary-color);
}

.why-choose-content h2 {
    font-size: 2rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .why-choose-content h2 {
        font-size: 2.5rem;
    }
}

/* Instagram Post Animation */
.why-choose-visual .bg-\[var\(--primary-color\)\] {
    animation: float 3s ease-in-out infinite;
    padding: 1.5rem;
    background: var(--logo-gradient) !important;
}

/* Tablet and up */
@media (min-width: 768px) {
    .why-choose-visual .bg-\[var\(--primary-color\)\] {
        padding: 2rem;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Testimonials Section - Mobile First */
.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonials-section {
        padding: 5rem 0;
    }
}

.testimonials-carousel {
    position: relative;
    margin: 0;
    padding: 0 1rem;
    overflow: hidden;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonials-carousel {
        margin: 0 auto;
        padding: 0;
    }
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    scroll-snap-type: x mandatory;
}

/* Tablet and up */
@media (min-width: 640px) {
    .testimonials-track {
        scroll-snap-type: none;
    }
}

.testimonial-card {
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    width: 100%;
    scroll-snap-align: center;
}

/* Tablet and up */
@media (min-width: 640px) {
    .testimonial-card {
        padding: 1rem;
        width: auto;
        scroll-snap-align: unset;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .p-6 {
    padding: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonial-card .p-6 {
        padding: 1.5rem;
    }
}

.testimonial-card h3 {
    font-size: 1.125rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonial-card h3 {
        font-size: 1.25rem;
    }
}

.testimonial-card p {
    font-size: 0.875rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonial-card p {
        font-size: 1rem;
    }
}

.testimonial-image {
    width: 100%;
    height: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonial-image {
        max-height: none;
    }
}

.testimonial-image:hover {
    transform: scale(1.02);
}

/* Carousel Navigation - Mobile First */
.carousel-nav {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    display: none;
}

/* Tablet and up */
@media (min-width: 640px) {
    .carousel-nav {
        display: flex;
        width: 3rem;
        height: 3rem;
        padding: 0.75rem;
    }
}

.carousel-nav:hover {
    opacity: 1;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav i {
    font-size: 1.25rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .carousel-nav i {
        font-size: 1.5rem;
    }
}

/* Carousel Indicators */
.indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    opacity: 1 !important;
    transform: scale(1.2);
}

.indicator.active {
    opacity: 1 !important;
    background: var(--logo-gradient) !important;
}

/* Enhanced Visual Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text effect */
.gradient-text {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button variants */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--logo-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Enhanced card hover effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Animated background */
.animated-bg {
    background: linear-gradient(-45deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end), var(--gradient-start));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes smoothGrayscaleReveal {
    0% {
        filter: grayscale(100%);
        opacity: 0.6;
    }

    100% {
        filter: grayscale(0%);
        opacity: 1;
    }
}

/* Keyframe animation for logo reveal */
@keyframes logoReveal {
    0% {
        filter: grayscale(100%);
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        filter: grayscale(50%);
        opacity: 0.9;
        transform: scale(1.02);
    }

    100% {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1);
    }
}

/* Print Styles */
@media print {

    .theme-toggle-btn,
    #mobile-menu-btn,
    #mobile-menu {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* 
 * FIXED ANIMATIONS.CSS
 * This file contains all the animation keyframes and classes
 * Think of keyframes as "recipes" for how elements should move
 */

/* ============= KEYFRAME ANIMATIONS ============= */
/* These are like "recipes" that tell the browser how to animate */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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

@keyframes slideUpSlow {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-8px);
    }

    70% {
        transform: translateY(-4px);
    }

    90% {
        transform: translateY(-2px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* ============= ANIMATION CLASSES ============= */
/* These classes can be added to HTML elements to animate them */

/* Initial state - elements start invisible */
.animate-fade-in,
.animate-slide-up,
.animate-slide-down,
.animate-slide-left,
.animate-slide-right,
.animate-scale-in,
.scroll-animate,
.hero-animate-slide-up,
.hero-animate-slide-down,
.hero-animate-fade-in,
.service-card {
    opacity: 0;
}

/* When 'active' class is added, the animation plays */
.animate-fade-in.active {
    animation: fadeIn 1.5s ease-out 0.3s forwards;
}

.animate-slide-up.active {
    animation: slideUp 1.8s ease-out 0.3s forwards;
}

.animate-slide-down.active {
    animation: slideDown 1.8s ease-out 0.3s forwards;
}

.animate-slide-left.active {
    animation: slideInLeft 1.5s ease-out 0.3s forwards;
}

.animate-slide-right.active {
    animation: slideInRight 1.5s ease-out 0.3s forwards;
}

.animate-scale-in.active {
    animation: scaleIn 1s ease-out 0.3s forwards;
}

/* Continuous animations (these run forever) */
.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

/* ============= STAGGERED ANIMATIONS ============= */
/* These create a "wave" effect where elements animate one after another */

.animate-stagger-1.active {
    animation-delay: 0.2s;
}

.animate-stagger-2.active {
    animation-delay: 0.4s;
}

.animate-stagger-3.active {
    animation-delay: 0.6s;
}

.animate-stagger-4.active {
    animation-delay: 0.8s;
}

.animate-stagger-5.active {
    animation-delay: 1s;
}

/* ============= HOVER ANIMATIONS ============= */
/* These animations happen when you hover over elements */

.hover-lift {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.5s ease;
}

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

.hover-glow {
    transition: box-shadow 0.5s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* ============= SCROLL-TRIGGERED ANIMATIONS ============= */
/* These animations happen when elements come into view */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease, transform 2s ease;
}

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

/* ============= CARD ANIMATIONS ============= */
/* Special animations for cards (service cards, portfolio cards, etc.) */

.portfolio-card,
.team-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover,
.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============= BUTTON ANIMATIONS ============= */
/* Nice effects for buttons */

.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::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;
}

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

/* ============= NAVIGATION ANIMATIONS ============= */
/* Cool underline effect for navigation links */

.nav-item {
    position: relative;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-gradient);
    transition: width 0.3s ease;
}

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

/* ============= THEME TRANSITION ============= */
/* Smooth transition when switching between light and dark mode */

.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============= HERO SECTION ANIMATIONS ============= */
/* Special slower animations for the hero section */

.hero-animate-slide-up.active {
    animation: slideUp 2.5s ease-out 0.5s forwards;
}

.hero-animate-slide-down.active {
    animation: slideDown 2.5s ease-out 0.5s forwards;
}

.hero-animate-fade-in.active {
    animation: fadeIn 2s ease-out 0.5s forwards;
}

/* ============= RESPONSIVE DESIGN ============= */
/* Adjust animations for smaller screens */

@media (max-width: 768px) {
    .animate-slide-up.active {
        animation-duration: 1.2s;
    }

    .hero-animate-slide-up.active {
        animation-duration: 2s;
    }

    .hero-animate-slide-down.active {
        animation-duration: 2s;
    }

    .service-card:hover,
    .portfolio-card:hover,
    .team-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .learn-more-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Mobile-specific service card animations */
    .service-card {
        opacity: 0;
        transform: translateY(60px);
        transition: opacity 1s ease, transform 1.5s ease;
    }

    .service-card.animate {
        opacity: 1;
        transform: translateY(0);
        animation: none;
        /* Disable keyframe animation on mobile */
    }

    /* Faster stagger delays for mobile */
    .service-stagger-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .service-stagger-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .service-stagger-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .service-stagger-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .service-stagger-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .service-stagger-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .service-stagger-item:nth-child(7) {
        transition-delay: 0.7s;
    }

    .service-stagger-item:nth-child(8) {
        transition-delay: 0.8s;
    }

    .service-stagger-item:nth-child(9) {
        transition-delay: 0.9s;
    }

    .service-stagger-item:nth-child(10) {
        transition-delay: 1s;
    }
}

/* ============= ACCESSIBILITY ============= */
/* Respect users who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============= SERVICE CARD STAGGER ANIMATION ============= */
/* Slower stagger animation for service cards */

.service-stagger-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 2.5s ease;
}

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

.service-stagger-item {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 2.5s ease, transform 2.5s ease;
}

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

/* Slower stagger delays for service cards */
.service-stagger-item:nth-child(1) {
    transition-delay: 0.2s;
}

.service-stagger-item:nth-child(2) {
    transition-delay: 0.4s;
}

.service-stagger-item:nth-child(3) {
    transition-delay: 0.6s;
}

.service-stagger-item:nth-child(4) {
    transition-delay: 0.8s;
}

.service-stagger-item:nth-child(5) {
    transition-delay: 1s;
}

.service-stagger-item:nth-child(6) {
    transition-delay: 1.2s;
}

.service-stagger-item:nth-child(7) {
    transition-delay: 1.4s;
}

.service-stagger-item:nth-child(8) {
    transition-delay: 1.6s;
}

.service-stagger-item:nth-child(9) {
    transition-delay: 1.8s;
}

.service-stagger-item:nth-child(10) {
    transition-delay: 2s;
}

/* ============= SERVICE CARD SLIDE UP ANIMATION ============= */
/* Specific slow slide-up animation for service cards */

.service-card.animate {
    animation: slideUpSlow 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Individual service card stagger delays */
.service-card:nth-child(1).animate {
    animation-delay: 0.1s;
}

.service-card:nth-child(2).animate {
    animation-delay: 0.2s;
}

.service-card:nth-child(3).animate {
    animation-delay: 0.3s;
}

.service-card:nth-child(4).animate {
    animation-delay: 0.4s;
}

.service-card:nth-child(5).animate {
    animation-delay: 0.5s;
}

.service-card:nth-child(6).animate {
    animation-delay: 0.6s;
}

.service-card:nth-child(7).animate {
    animation-delay: 0.7s;
}

.service-card:nth-child(8).animate {
    animation-delay: 0.8s;
}

.service-card:nth-child(9).animate {
    animation-delay: 0.9s;
}

.service-card:nth-child(10).animate {
    animation-delay: 1s;
}


/* ============= LEARN MORE BUTTON STYLING ============= */
/* Styling for the learn more buttons in service cards */

.learn-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--logo-gradient);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    margin-top: auto;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: var(--logo-gradient);
}

.learn-more-btn:active {
    transform: translateY(0);
}

.learn-more-btn i {
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(3px);
}

/* Dark mode support for learn more button */
/* .dark .learn-more-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.dark .learn-more-btn:hover {
    background: linear-gradient(135deg, #5855eb, #4338ca);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
} */

/* ============= SERVICE CARD ENHANCEMENTS ============= */
/* Improved styling for service cards */

.service-card {
    display: flex;
    flex-direction: column;
    height: 350px;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    /* Start invisible for animation */
    opacity: 0;
    transform: translateY(80px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.dark .service-card {
    background: #1f2937;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.dark .service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Component-specific styles - Mobile First */

/* Header Component - Mobile First */
.header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section - Mobile First */
.hero-gradient {
    background: var(--logo-gradient);
}

.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Headers - Mobile First */
.section-header {
    position: relative;
    margin-bottom: 2rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--logo-gradient);
    border-radius: 2px;
}

/* Service Cards - Mobile First */
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    background: var(--logo-gradient);
    color: white;
}

/* Tablet and up */
@media (min-width: 768px) {
    .service-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        margin-bottom: 1.5rem;
        background: var(--logo-gradient);
        color: white;
    }
}

.service-icon i {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet and up */
@media (min-width: 768px) {
    .service-icon i {
        font-size: 2.25rem;
    }
}

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

/* Portfolio Grid - Mobile First */
.portfolio-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Small tablets and up */
@media (min-width: 425px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Contact Form - Mobile First */
.contact-form {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Tablet and up */
@media (min-width: 768px) {
    .contact-form {
        padding: 2rem;
        border-radius: 16px;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .form-label {
        font-size: 1rem;
    }
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .form-textarea {
        min-height: 120px;
    }
}

/* Footer - Mobile First */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Tablet and up */
@media (min-width: 768px) {
    .social-link {
        width: 40px;
        height: 40px;
    }
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Testimonials - Mobile First */
.testimonial-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonial-card {
        padding: 2rem;
        border-radius: 16px;
        width: 300px;
    }
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

/* Tablet and up */
@media (min-width: 768px) {
    .testimonial-card::before {
        top: -10px;
        left: 20px;
        font-size: 4rem;
    }
}

/* Testimonials Carousel - Mobile First */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
}

/* Carousel Navigation - Mobile First */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Tablet and up */
@media (min-width: 768px) {
    .carousel-nav {
        width: 48px;
        height: 48px;
    }
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: -20px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .carousel-nav.prev {
        left: -24px;
    }

    .carousel-nav.next {
        right: -24px;
    }
}

/* Carousel Indicators - Mobile First */
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 3px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .indicator {
        width: 12px;
        height: 12px;
        margin: 0 4px;
    }
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--primary-color);
    opacity: 0.8;
}

/* Image Modal - Mobile First */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#image-modal.flex {
    display: flex;
}

#image-modal.hidden {
    display: none;
}

#modal-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Tablet and up */
@media (min-width: 768px) {
    #modal-image {
        max-width: 90vw;
        max-height: 90vh;
    }
}

#close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Tablet and up */
@media (min-width: 768px) {
    #close-modal {
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

#close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Testimonial Image Hover Effect */
.testimonial-card img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.testimonial-card img:hover {
    transform: scale(1.05);
}

/* Dark mode adjustments for carousel */
.dark .carousel-nav {
    background: #374151;
    color: white;
}

.dark .carousel-nav:hover {
    background: var(--primary-color);
}

.dark .indicator {
    background: #6b7280;
}

.dark .indicator.active {
    background: var(--primary-color);
}

/* Stats - Mobile First */
.stat-item {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .stat-item {
        padding: 2rem 1rem;
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Tablet and up */
@media (min-width: 768px) {
    .stat-label {
        font-size: 1.1rem;
    }
}

.stats-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 1.5rem 1rem;
    margin: 2rem auto;
    max-width: 300px;
    position: relative;
    z-index: 2;
    gap: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .stats-card {
        flex-direction: row;
        border-radius: 2rem;
        padding: 2rem 1rem;
        max-width: 900px;
        gap: 0;
    }
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    background: var(--bg-secondary);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .stat-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

.stat-icon i {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet and up */
@media (min-width: 768px) {
    .stat-icon i {
        font-size: 2.5rem;
    }
}

/* Timeline - Mobile First */
.timeline {
    position: relative;
    padding-left: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .timeline {
        padding-left: 2rem;
    }
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .timeline-item {
        margin-bottom: 2rem;
        padding-left: 2rem;
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
}

/* Pricing Cards - Mobile First */
.pricing-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Tablet and up */
@media (min-width: 768px) {
    .pricing-card {
        border-radius: 16px;
        padding: 2rem;
    }
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: none;
}

/* Tablet and up */
@media (min-width: 768px) {
    .pricing-card.featured {
        transform: scale(1.05);
    }
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

/* Tablet and up */
@media (min-width: 768px) {
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-8px);
    }
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .pricing-header {
        margin-bottom: 2rem;
    }
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Tablet and up */
@media (min-width: 768px) {
    .pricing-price {
        font-size: 3rem;
    }
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

/* Tablet and up */
@media (min-width: 768px) {
    .pricing-features {
        margin: 2rem 0;
    }
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Blog Cards - Mobile First */
.blog-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Tablet and up */
@media (min-width: 768px) {
    .blog-image {
        height: 200px;
    }
}

.blog-content {
    padding: 1.25rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .blog-content {
        padding: 1.5rem;
    }
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .blog-meta {
        gap: 1rem;
    }
}

/* Team Cards - Mobile First */
.team-card {
    text-align: center;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

/* Tablet and up */
@media (min-width: 768px) {
    .team-card {
        border-radius: 16px;
        padding: 2rem;
    }
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-secondary);
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2.5rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .team-avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
        font-size: 3rem;
    }
}

/* Loading States - Mobile First */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200px 100%;
}

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

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

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

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Print Styles for Components */
@media print {

    .portfolio-overlay,
    .social-link,
    .theme-toggle-btn {
        display: none !important;
    }

    .pricing-card.featured {
        transform: none !important;
    }

    .service-card,
    .portfolio-card,
    .testimonial-card {
        break-inside: avoid;
    }
}

.custom-scroll::-webkit-scrollbar {
    width: 5px;
}

/* .custom-scroll::-webkit-scrollbar-track {
    background: var(--text-primary);
} */

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 8px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 15px;
    padding: 20px 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--logo-gradient);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

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

.indicator.active {
    background: var(--logo-gradient);
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

/* Clients Carousel Styles */
.clients-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    /* border-radius: 15px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    /* background: white; */
    padding: 20px;
}

.clients-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    padding: 20px 0;
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.clients-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    backdrop-filter: blur(10px);
}

.clients-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.clients-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.clients-nav-btn.prev {
    left: 20px;
}

.clients-nav-btn.next {
    right: 20px;
}

.clients-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.client-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-indicator.active {
    background: var(--logo-gradient);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    /* .client-card {
        width: 150px;
        height: 90px;
    } */

    .clients-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .clients-nav-btn.prev {
        left: 10px;
    }

    .clients-nav-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    /* .client-card {
        width: 120px;
        height: 80px;
    } */
}

/* Add this to your fab.css file */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    /* Same level as main FAB */
    left: 30px;
    /* Position on left side */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--logo-gradient);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    color: white;
}

/* .scroll-to-top:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.6);
} */

/* .scroll-to-top:active {
    transform: scale(0.95);
} */

/* Scroll tooltip styling */
.scroll-tooltip {
    position: absolute;
    left: 60px;
    /* Changed from right to left */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-tooltip::after {
    content: '';
    position: absolute;
    left: -5px;
    /* Changed from right to left */
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
    /* Changed border direction */
}

/* .scroll-to-top:hover .scroll-tooltip {
    opacity: 1;
    visibility: visible;
} */

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        /* Changed from right to left */
    }

    .scroll-tooltip {
        display: none;
        /* Hide tooltip on mobile */
    }
}

/* Animation for scroll button appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Enhanced arrow icon animation */
.scroll-to-top svg {
    transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Main toggle button */
.fab-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--logo-gradient);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(238, 90, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.fab-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(238, 90, 36, 0.6);
}

/* Toggle icon */
.toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Contact icons container */
.contact-icons {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contact-icons.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual contact buttons */
.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn:hover {
    transform: scale(1.1);
}

/* Phone button */
.phone-btn {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.4);
}

.phone-btn:hover {
    box-shadow: 0 6px 20px rgba(58, 123, 213, 0.6);
}

/* WhatsApp button */
.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Message button */
.message-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.message-btn:hover {
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Tooltip */
.tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.contact-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animation delays for staggered effect */
.contact-icons.show .contact-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-icons.show .contact-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-icons.show .contact-btn:nth-child(3) {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .tooltip {
        display: none;
    }
}

/* Feature Cards - Reusable Component Styles */

.feature-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(156, 39, 176, 0.05) 50%, rgba(103, 58, 183, 0.05) 100%);
}

.feature-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    background: var(--bg-primary);
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);


}

.feature-card:hover .feature-icon {
    background: var(--logo-gradient);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.feature-icon svg {
    /* font-size: 3rem; */
    height: 2rem;
    width: 2rem;
    /* height: ; */
}

.feature-card:hover .feature-icon i {
    color: var(--bg-primary);
}

.feature-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* Dark mode support - now handled by CSS custom properties */
/* The dark mode styles are automatically applied through the .dark class in styles.css */

/* Responsive design */
@media (max-width: 768px) {
    .feature-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .feature-icon {
        width: 4rem;
        height: 4rem;
        margin: 0 auto;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-title {
        font-size: 1.125rem;
    }
}

/* Alternative layout for different use cases */
.feature-card-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
}

.feature-card-vertical .feature-icon {
    margin-bottom: 0.5rem;
}

/* Compact version for smaller spaces */
.feature-card-compact {
    gap: 0.75rem;
    padding: 0.75rem;
}

.feature-card-compact .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
}

.feature-card-compact .feature-icon i {
    font-size: 1.5rem;
}

.feature-card-compact .feature-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-card-compact .feature-description {
    font-size: 0.875rem;
}