/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --touch-target: 44px;
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
    --safe-area-right: env(safe-area-inset-right);
}

/* ===================================
   Mobile Performance Optimizations
   =================================== */

/* Disable animations for 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;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    /* Touch optimization */
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    -webkit-touch-callout: none;
    /* Smooth scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    /* GPU acceleration */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar.scrolled {
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-settings-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
}

.nav-settings-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-settings-toggle:active {
    transform: rotate(90deg) scale(0.95);
}


.logo a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    letter-spacing: -0.2px;
}

.logo i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    padding: 0.35rem 0;
    font-size: 0.93rem;
    letter-spacing: -0.1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(99, 102, 241, 0.1);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.menu-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.menu-toggle:hover .menu-line {
    background: white;
}

.menu-line {
    width: 20px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
    transform-origin: center;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 20px;
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 20px;
}

.menu-toggle.active::before {
    width: 100%;
    height: 100%;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
    position: relative;
}

.menu-toggle.active {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0,0,0,0.08);
}

/* ===================================
   Advanced Animations & Effects
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.8), 0 0 60px rgba(139, 92, 246, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out both;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out both;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.animate-rotate-in {
    animation: rotateIn 0.8s ease-out both;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
    will-change: box-shadow;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.gradient-animated {
    background: linear-gradient(270deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    will-change: background-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.text-shimmer {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    will-change: background-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.animate-bounce {
    animation: bounce 2s infinite;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ===================================
   Particle Background
   =================================== */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    /* GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Optimize rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.particles-canvas:hover {
    opacity: 0.9;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding-top: 80px;
    z-index: 1;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
    z-index: 1;
    /* GPU acceleration */
    will-change: opacity, transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
    animation: pulse 10s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    /* GPU acceleration */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-gradient-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    filter: blur(50px);
    animation: float 20s ease-in-out infinite, pulse 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    z-index: 1;
    /* GPU acceleration */
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Optimize blur on mobile */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-gradient-orb.orb-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-gradient-orb.orb-2 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
    width: 400px;
    height: 400px;
}

.hero-gradient-orb.orb-3 {
    top: 50%;
    right: 20%;
    animation-delay: 4s;
    width: 250px;
    height: 250px;
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: floatSlow 15s ease-in-out infinite;
}

.decoration-circle.circle-1 {
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: 10%;
    animation-delay: 0s;
}

.decoration-circle.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 10px;
    left: 20%;
    animation-delay: 3s;
}

.decoration-circle.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 50px;
    left: 50%;
    animation-delay: 6s;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.highlight {
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    /* Touch-friendly */
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    /* Touch feedback */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-primary:hover::after {
    width: 400px;
    height: 400px;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn-secondary:hover::after {
    width: 400px;
    height: 400px;
}

.btn-secondary > * {
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.stat-item:hover .stat-icon {
    animation: rotateIn 0.6s ease-out;
    transform: scale(1.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
    height: 500px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 1s;
}

.card-3 {
    top: 50%;
    right: -30px;
    animation-delay: 2s;
}

/* ===================================
   Services Section
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.03) rotateY(2deg);
    box-shadow: 0 35px 70px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    z-index: 10;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotateY(360deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* ===================================
   Mini Portfolio Section
   =================================== */
.mini-portfolio {
    padding: 4rem 0;
    background: var(--bg-light);
}

.mini-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.mini-portfolio-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.mini-portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.mini-portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.mini-portfolio-item:hover::before {
    transform: scaleX(1);
}

.mini-portfolio-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.mini-portfolio-item:hover .mini-portfolio-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.mini-portfolio-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.mini-portfolio-item:hover h4 {
    color: var(--primary-color);
}

.mini-portfolio-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .mini-portfolio {
        padding: 3rem 0;
    }
    
    .mini-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .mini-portfolio-item {
        padding: 1.5rem 1rem;
    }
    
    .mini-portfolio-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .mini-portfolio-item h4 {
        font-size: 1rem;
    }
    
    .mini-portfolio-item p {
        font-size: 0.8rem;
    }
}

.dark-theme .mini-portfolio {
    background: #1f2937 !important;
}

.dark-theme .mini-portfolio-item {
    background: #111827 !important;
    border-color: #374151 !important;
}

.dark-theme .mini-portfolio-item:hover {
    border-color: #818cf8 !important;
    background: #1a1f2e !important;
}

.dark-theme .mini-portfolio-item h4 {
    color: #f9fafb !important;
}

.dark-theme .mini-portfolio-item:hover h4 {
    color: #818cf8 !important;
}

.dark-theme .mini-portfolio-item p {
    color: #d1d5db !important;
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio {
    background: var(--bg-light);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.filter-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(99, 102, 241, 0.2);
}

.portfolio-image {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 2rem;
    z-index: 2;
    backdrop-filter: blur(8px);
    transform: scale(0.95);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.portfolio-link:hover::before {
    width: 100px;
    height: 100px;
}

.portfolio-link i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.portfolio-link:hover {
    transform: scale(1.15) rotate(90deg);
    color: white;
}

.portfolio-link:hover i {
    transform: rotate(-90deg);
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-text p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
}

.newsletter-form button {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: scale(0.9);
}

/* ===================================
   Floating Action Button (FAB)
   =================================== */
.fab-button {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 998;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    /* Touch-friendly */
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.fab-button.show {
    display: flex;
}

.fab-button:active {
    transform: scale(0.9);
}

.fab-button i {
    font-size: 1.5rem;
}

.fab-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.fab-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.fab-button:hover .fab-tooltip,
.fab-button:active .fab-tooltip {
    opacity: 1;
}

/* ===================================
   Bottom Navigation (Mobile)
   =================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + var(--safe-area-bottom));
    z-index: 997;
    border-top: 1px solid var(--border-color);
}

.bottom-nav.show {
    display: flex;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
    min-width: 60px;
    min-height: var(--touch-target);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.bottom-nav-item i {
    font-size: 1.25rem;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.bottom-nav-item:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.2);
}

/* ===================================
   Pull to Refresh
   =================================== */
.pull-to-refresh {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: top 0.3s ease;
    font-size: 0.875rem;
}

.pull-to-refresh.show {
    top: 0;
}

.pull-to-refresh i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Touch Feedback Improvements
   =================================== */
.nav-link,
.service-link,
.portfolio-link,
.social-link,
.filter-btn {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    touch-action: manipulation;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link:active,
.service-link:active,
.portfolio-link:active,
.social-link:active,
.filter-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* ===================================
   Mobile Menu Improvements
   =================================== */
.nav-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu li {
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
}

.nav-menu .nav-link {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-menu .nav-link:hover::before,
.nav-menu .nav-link.active::before {
    transform: scaleY(1);
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 14px;
    z-index: -1;
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    opacity: 1;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    transform: translateX(-10px) scale(1.03);
    color: var(--primary-color);
    box-shadow: -6px 0 20px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
}

.nav-menu .nav-link:hover i,
.nav-menu .nav-link.active i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-color);
}

.nav-menu .nav-link:active {
    transform: translateX(-5px) scale(0.98);
}

.nav-menu .nav-link span {
    position: relative;
    z-index: 1;
}

.nav-menu-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.nav-settings-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-settings-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(-5px);
}

.nav-settings-btn i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.dark-theme .nav-settings-btn {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #f9fafb !important;
}

.dark-theme .nav-settings-btn:hover {
    background: rgba(99, 102, 241, 0.25) !important;
}

/* ===================================
   Form Mobile Optimizations
   =================================== */
.form-group input,
.form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.02);
}

/* ===================================
   Service Cards Swipeable (Mobile)
   =================================== */
@media (max-width: 768px) {
    .services-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1rem;
    }
    
    .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .service-card {
        scroll-snap-align: start;
        min-width: 85%;
        margin-right: 1rem;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
    50% {
        transform: translateY(-30px) translateX(0) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) translateX(-10px) rotate(-5deg);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(5px);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        padding: 4rem 1.5rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: all 0.35s ease;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
        transform: translateX(0);
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .nav-menu.active::before {
        opacity: 1;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
        background: var(--primary-color);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: var(--primary-color);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .settings-panel-content {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        width: 90%;
        max-width: 380px;
    }
    
    /* Safe area support */
    .navbar {
        padding-top: var(--safe-area-top);
    }
    
    .hero {
        padding-top: calc(80px + var(--safe-area-top));
    }
    
    .component-card-preview {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        border-radius: 0;
        transform: scale(1) translateY(100%);
    }
    
    .component-card.active .component-card-preview {
        opacity: 1;
        visibility: visible;
        transform: scale(1) translateY(0);
        pointer-events: all;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-image {
        height: 300px;
    }
    
    /* Show bottom nav and FAB on mobile */
    .bottom-nav {
        display: flex;
    }
    
    .fab-button {
        display: flex;
    }
    
    /* Adjust back to top position */
    .back-to-top {
        bottom: 90px;
    }
    
    /* Better spacing for mobile */
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Improve touch targets */
    .btn {
        min-width: 120px;
        padding: 0.875rem 1.5rem;
    }
    
    /* Better form spacing */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Portfolio filter buttons */
    .portfolio-filter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    
    .portfolio-filter::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Extra small spacing */
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Bottom nav adjustments */
    .bottom-nav-item span {
        font-size: 0.7rem;
    }
    
    .bottom-nav-item i {
        font-size: 1.1rem;
    }
    
    /* FAB position adjustment */
    .fab-button {
        width: 56px;
        height: 56px;
        bottom: 80px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }


/* ===================================
   Theme & Language Switchers
   =================================== */
.theme-switcher,
.lang-switcher {
    margin-right: 1rem;
}

.theme-toggle,
.lang-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle:active,
.lang-toggle:active {
    transform: scale(0.95);
}

.lang-toggle span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

/* ===================================
   Loading Screen
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===================================
   Blog Section
   =================================== */
.blog {
    background: var(--bg-white);
}

.blog-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn:active {
    transform: scale(0.95);
}

/* Slider Type 1: Carousel */
.slider-container {
    position: relative;
    margin: 2rem 0;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.slider-nav.prev {
    right: 1rem;
}

.slider-nav.next {
    left: 1rem;
}

.slider-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    touch-action: manipulation;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* Blog Grid Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card.style-1 .blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.blog-card.style-1:hover .blog-overlay {
    opacity: 1;
}

.blog-overlay a {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0.8);
    transition: var(--transition);
}

.blog-card.style-1:hover .blog-overlay a {
    transform: scale(1);
}

.blog-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-footer {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-footer span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-card.style-3 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.blog-card.style-3 .blog-content {
    position: relative;
}

.blog-date {
    position: absolute;
    top: -2rem;
    right: 1.5rem;
    background: white;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.blog-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author div strong {
    display: block;
    margin-bottom: 0.25rem;
}

.blog-author div span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Featured Slider */
.featured-slider {
    position: relative;
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 500px;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.featured-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.slide-image {
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.slide-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.9);
}

/* Card Slider */
.card-slider-wrapper {
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.card-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.card-slide {
    min-width: 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    height: 200px;
    overflow: hidden;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-slide:hover .card-header img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-body p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Team Section
   =================================== */
.team {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.member-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay .social-links {
    display: flex;
    gap: 1rem;
}

.member-overlay .social-links a {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.member-overlay .social-links a:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
}

.member-info {
    padding: 2rem 1.5rem;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.member-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   Pricing Section
   =================================== */
.pricing {
    background: var(--bg-white);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-toggle span {
    font-weight: 600;
    color: var(--text-dark);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 34px;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    right: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(-26px);
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.price {
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.25rem;
    color: var(--text-light);
    vertical-align: top;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    text-align: right;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pricing-features li i.fa-times {
    color: var(--text-light);
    opacity: 0.5;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--bg-light);
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.testimonial-author h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-nav {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.testimonial-nav:active {
    transform: scale(0.9);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    touch-action: manipulation;
}

.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    background: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* ===================================
   Cookie Consent
   =================================== */
.cookie-consent {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 3px solid var(--primary-color);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    color: var(--text-dark);
    margin: 0;
    min-width: 200px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    min-width: 100px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem 1rem;
        bottom: -300px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-content p {
        text-align: center;
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   Live Chat Widget
   =================================== */
.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9998;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    position: relative;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle:active {
    transform: scale(0.9);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 5px;
    transition: var(--transition);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    word-wrap: break-word;
}

.message.bot {
    background: var(--bg-light);
    align-self: flex-start;
    border-bottom-right-radius: 5px;
}

.message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 5px;
}

.message p {
    margin: 0;
    line-height: 1.5;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input button {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    touch-action: manipulation;
}

.chat-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.chat-input button:active {
    transform: scale(0.9);
}

/* ===================================
   Toast Notifications
   =================================== */
.toast-container {
    position: fixed;
    top: 100px;
    left: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(-100px);
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast i {
    font-size: 1.5rem;
}

.toast-success {
    border-right: 4px solid #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-right: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-info {
    border-right: 4px solid var(--primary-color);
}

.toast-info i {
    color: var(--primary-color);
}

.toast span {
    flex: 1;
    color: var(--text-dark);
}

/* ===================================
   Scroll Progress Bar
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 10000;
    width: 0%;
    transition: width 0.1s ease;
}

/* ===================================
   Dark Theme
   =================================== */
body.dark-theme {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --border-color: #374151;
    background-color: var(--bg-white) !important;
    color: var(--text-dark) !important;
}

body.dark-theme * {
    color: inherit;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
}

body.dark-theme .hero::before,
body.dark-theme .hero-overlay,
body.dark-theme .hero-particles {
    opacity: 0.3;
}

body.dark-theme .hero-gradient-orb {
    opacity: 0.2;
}

body.dark-theme .decoration-circle {
    opacity: 0.15;
}

body.dark-theme .hero-title,
body.dark-theme .hero-description,
body.dark-theme .hero-badge {
    color: #f9fafb !important;
}

body.dark-theme .section-title,
body.dark-theme .section-subtitle,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #f9fafb !important;
}

body.dark-theme p,
body.dark-theme span,
body.dark-theme div {
    color: var(--text-light) !important;
}

body.dark-theme .about-text p,
body.dark-theme .service-card p,
body.dark-theme .portfolio-overlay p,
body.dark-theme .contact-info p,
body.dark-theme .info-text p,
body.dark-theme .info-text h4 {
    color: #d1d5db !important;
}

body.dark-theme .about-text h3,
body.dark-theme .info-text h4 {
    color: #f9fafb !important;
}

body.dark-theme .btn-primary {
    background: #6366f1 !important;
    color: white !important;
}

body.dark-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f9fafb !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .btn-primary:hover {
    background: #4f46e5 !important;
}

body.dark-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .navbar {
    background: rgba(17, 24, 39, 0.98) !important;
    backdrop-filter: blur(10px);
}

body.dark-theme .logo a,
body.dark-theme .nav-link {
    color: #f9fafb !important;
}

body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active {
    color: #818cf8 !important;
}

body.dark-theme .menu-toggle span {
    background: #f9fafb !important;
}

body.dark-theme .menu-toggle.active span {
    background: #818cf8 !important;
}

body.dark-theme .about {
    background: #1f2937 !important;
}

body.dark-theme .portfolio {
    background: #1f2937 !important;
}

body.dark-theme .services {
    background: var(--bg-white) !important;
}

body.dark-theme .components {
    background: #1f2937 !important;
}

body.dark-theme .contact {
    background: var(--bg-white) !important;
}

body.dark-theme .section-subtitle {
    color: #d1d5db !important;
}

body.dark-theme .portfolio-overlay {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95)) !important;
}

body.dark-theme .portfolio-overlay h4,
body.dark-theme .portfolio-overlay p {
    color: white !important;
}

body.dark-theme .filter-btn {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #d1d5db !important;
}

body.dark-theme .filter-btn:hover,
body.dark-theme .filter-btn.active {
    background: #6366f1 !important;
    color: white !important;
    border-color: #6366f1 !important;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
    color: #6b7280 !important;
}

body.dark-theme .form-group i {
    color: #9ca3af !important;
}

body.dark-theme .social-link {
    background: #1f2937 !important;
    color: #818cf8 !important;
}

body.dark-theme .social-link:hover {
    background: #6366f1 !important;
    color: white !important;
}

body.dark-theme .back-to-top {
    background: #6366f1 !important;
}

body.dark-theme .back-to-top:hover {
    background: #4f46e5 !important;
}

body.dark-theme .fab-button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

body.dark-theme .bottom-nav {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

body.dark-theme .bottom-nav-item {
    color: #9ca3af !important;
}

body.dark-theme .bottom-nav-item.active {
    color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.15) !important;
}

.dark-theme .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.dark-theme .service-card,
.dark-theme .portfolio-item,
.dark-theme .blog-card,
.dark-theme .team-member,
.dark-theme .pricing-card,
.dark-theme .testimonial-card,
.dark-theme .faq-item,
.dark-theme .contact-form,
.dark-theme .stat-item,
.dark-theme .component-card,
.dark-theme .filter-btn,
.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background: #1f2937 !important;
    border-color: var(--border-color) !important;
    color: var(--text-light) !important;
}

.dark-theme .service-card h3,
.dark-theme .service-card p,
.dark-theme .portfolio-overlay h4,
.dark-theme .portfolio-overlay p,
.dark-theme .component-card-title,
.dark-theme .component-card-description {
    color: var(--text-light) !important;
}

.dark-theme .service-link,
.dark-theme .nav-link,
.dark-theme .portfolio-link {
    color: #818cf8 !important;
}

.dark-theme .service-link:hover,
.dark-theme .nav-link:hover {
    color: #a5b4fc !important;
}

.dark-theme .stat-item {
    background: #1f2937 !important;
}

.dark-theme .stat-number {
    color: #818cf8 !important;
    -webkit-text-fill-color: #818cf8 !important;
}

.dark-theme .stat-label {
    color: #d1d5db !important;
}

.dark-theme .footer {
    background: #030712 !important;
}

.dark-theme .footer-section h3,
.dark-theme .footer-section p,
.dark-theme .footer-section a {
    color: #d1d5db !important;
}

.dark-theme .footer-section a:hover {
    color: #f9fafb !important;
}

.dark-theme .cookie-consent,
.dark-theme .chat-window,
.dark-theme .toast {
    background: #1f2937;
    border-color: var(--border-color);
}

.dark-theme .theme-toggle,
.dark-theme .lang-toggle {
    background: #1f2937;
    border-color: var(--border-color);
    color: var(--text-dark);
}

/* ===================================
   Settings Panel (Modal/Sidebar)
   =================================== */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: none;
    pointer-events: none;
}

.settings-panel.active {
    display: block;
    pointer-events: all;
}

.settings-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-panel.active .settings-panel-overlay {
    opacity: 1;
}

.settings-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-panel.active .settings-panel-content {
    transform: translateX(0);
}

.settings-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.settings-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-panel-title i {
    color: var(--primary-color);
}

.settings-panel-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.25rem;
}

.settings-panel-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.settings-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.settings-panel-body .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.settings-panel-body .option-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-panel-body .option-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
    background: rgba(99, 102, 241, 0.05);
}

.settings-panel-body .option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-panel-body .option-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.settings-panel-body .option-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.toggle-switch:active .toggle-slider:before {
    transform: scale(0.9);
}

.toggle-switch input:checked:active + .toggle-slider:before {
    transform: translateX(24px) scale(0.9);
}

/* Settings FAB Button */
.settings-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    touch-action: manipulation;
}

.settings-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

.settings-fab:active {
    transform: scale(0.95);
}

.settings-fab i {
    transition: transform 0.3s;
}

.settings-fab:hover i {
    transform: rotate(-90deg);
}

.dark-theme .settings-panel-content {
    background: #111827 !important;
}

.dark-theme .settings-panel-header {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

.dark-theme .settings-panel-title {
    color: #f9fafb !important;
}

.dark-theme .settings-panel-close {
    background: #374151 !important;
    color: #f9fafb !important;
}

.dark-theme .settings-panel-body .option-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

.dark-theme .settings-panel-body .option-item:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #818cf8 !important;
}

.dark-theme .settings-panel-body .option-title {
    color: #f9fafb !important;
}

.dark-theme .settings-panel-body .option-desc {
    color: #d1d5db !important;
}

/* ===================================
   Components Menu (Full Screen)
   =================================== */
.components-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.3s ease;
}

.components-menu.active {
    display: flex;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.components-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.components-menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.components-menu-title i {
    color: var(--primary-color);
}

.components-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.25rem;
    touch-action: manipulation;
}

.components-menu-close:hover,
.components-menu-close:active {
    background: var(--danger-color);
    color: white;
    transform: scale(0.95);
}

.components-menu-search {
    position: relative;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.components-menu-search i {
    position: absolute;
    right: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

.components-menu-search input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.components-menu-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.components-search-clear {
    position: absolute;
    left: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--text-light);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.75rem;
}

.components-search-clear:hover {
    background: var(--danger-color);
    transform: translateY(-50%) scale(1.1);
}

.components-menu-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    flex: 1;
}

.component-menu-item {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
}

.component-menu-item:active {
    transform: scale(0.95);
}

.component-menu-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.component-menu-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: var(--transition);
}

.component-menu-item:hover .component-menu-icon {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.component-menu-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.component-menu-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.component-menu-item:hover .component-menu-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .components-menu-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.875rem;
        padding: 1rem;
    }

    .component-menu-item {
        padding: 1.25rem 0.75rem;
    }

    .component-menu-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .component-menu-title {
        font-size: 0.8rem;
    }

    .components-menu-header {
        padding: 1rem 1.25rem;
    }

    .components-menu-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .components-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dark-theme .components-menu {
    background: #111827;
}

.dark-theme .components-menu-header {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .components-menu-search {
    background: #1f2937;
    border-color: #374151;
}

.dark-theme .components-menu-search input {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

.dark-theme .component-menu-item {
    background: #1f2937;
}

.dark-theme .components-menu-close {
    background: #374151;
    color: #f9fafb;
}

/* ===================================
   Components Section (Desktop)
   =================================== */
.components {
    padding: 5rem 0;
    background: var(--bg-light);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.component-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.component-card:hover::before {
    transform: scaleX(1);
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.component-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transition: var(--transition);
}

.component-card:hover .component-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.component-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.component-card-description {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.component-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.component-card:hover .component-card-badge {
    background: var(--primary-color);
    color: white;
}

.component-card-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.component-card:hover .component-card-preview {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.component-card-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.component-preview-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.component-preview-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .component-preview-close {
        display: flex;
    }
}

.component-card {
    position: relative;
    overflow: visible;
}

.component-card:hover {
    z-index: 100;
}

@media (max-width: 768px) {
    .components {
        display: block;
    }
    
    .components-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .component-card {
        padding: 1.25rem;
    }
    
    .component-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .component-card-title {
        font-size: 1rem;
    }
    
    .component-card-preview {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        border-radius: 0;
        transform: scale(1) translateY(100%);
    }
    
    .component-card.active .component-card-preview {
        opacity: 1;
        visibility: visible;
        transform: scale(1) translateY(0);
        pointer-events: all;
    }
    
    .component-preview-close {
        display: flex;
    }
}

.dark-theme .components {
    background: #111827;
}

.dark-theme .component-card {
    background: #1f2937;
}


/* ===================================
   Custom Cursor (Desktop Only)
   =================================== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.5);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.2);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* ===================================
   Advanced Service Card Effects
   =================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
}

.service-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.service-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(360deg);
}

/* ===================================
   Advanced Portfolio Effects
   =================================== */
.portfolio-item {
    position: relative;
    perspective: 1000px;
}

.portfolio-image {
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.portfolio-item:hover .portfolio-image {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

.portfolio-overlay {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    transform: translateZ(20px);
}

/* ===================================
   Glowing Effects
   =================================== */
.component-card,
.service-card,
.portfolio-item {
    position: relative;
}

.component-card::after,
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.component-card:hover::after,
.service-card:hover::after {
    opacity: 1;
    animation: glow 2s ease-in-out infinite;
}

/* ===================================
   Loading Skeleton Animation
   =================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===================================
   Text Reveal Animation
   =================================== */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===================================
   3D Card Flip Effect
   =================================== */
.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.card-3d-front,
.card-3d-back {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.card-3d-back {
    transform: rotateY(180deg);
}

/* ===================================
   Liquid Effect
   =================================== */
@keyframes liquid {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.liquid-shape {
    animation: liquid 10s ease-in-out infinite;
}

/* ===================================
   Neon Glow Effect
   =================================== */
.neon-glow {
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color),
        0 0 40px var(--primary-color);
    animation: glow 2s ease-in-out infinite;
}

/* ===================================
   Advanced Button Hover Effects
   =================================== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

/* ===================================
   Scroll Progress Bar
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s linear infinite;
}

/* ===================================
   Floating Action Buttons Animation
   =================================== */
.fab-button {
    animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   Advanced Section Dividers
   =================================== */
.section-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

/* ===================================
   Glass Morphism Effect
   =================================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ===================================
   Advanced Hover Effects
   =================================== */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

/* ===================================
   User Option States
   =================================== */
body.reduce-motion * {
    animation: none !important;
    transition: none !important;
}

body.large-text {
    font-size: 17px;
}

body.high-contrast {
    --text-dark: #0f172a;
    --text-light: #0f172a;
    --bg-light: #ffffff;
    --bg-white: #f8fafc;
    --border-color: #0f172a;
}

body.mono-font {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
}

body.compact-header .nav-wrapper {
    padding: 0.3rem 0;
}

body.hero-minimal .hero-gradient-orb,
body.hero-minimal .hero-decoration {
    display: none;
}

body.hide-particles .particles-canvas {
    display: none;
}

body.no-shadows .service-card,
body.no-shadows .portfolio-item,
body.no-shadows .component-card,
body.no-shadows .stat-item {
    box-shadow: none;
    border: 1px solid var(--border-color);
}

body.minimal-shadows .service-card,
body.minimal-shadows .portfolio-item,
body.minimal-shadows .component-card,
body.minimal-shadows .stat-item {
    box-shadow: var(--shadow-sm);
}

body.calm-buttons .btn,
body.calm-buttons .filter-btn {
    box-shadow: var(--shadow-sm);
    transform: none !important;
}

body.card-edges .service-card,
body.card-edges .portfolio-item,
body.card-edges .component-card,
body.card-edges .stat-item {
    border-radius: 10px;
}

body.wide-layout .container {
    max-width: 1320px;
}

body.tight-spacing section {
    padding: 3.5rem 0;
}

body.muted-hero .hero {
    background: #5560d8;
}

body.simple-links a {
    text-decoration: none;
}

body.simple-links .nav-link::after,
body.simple-links .section-title::after {
    display: none;
}

body.soft-forms .contact-form,
body.soft-forms .form-group input,
body.soft-forms .form-group textarea {
    border-radius: 18px;
}

body.cursor-simple .custom-cursor {
    display: none !important;
}

body.show-bottom-nav .bottom-nav {
    display: flex;
}

body.no-animations * {
    animation: none !important;
    transition: none !important;
}

body.serif-headings h1,
body.serif-headings h2,
body.serif-headings h3,
body.serif-headings h4 {
    font-family: "Georgia", serif;
}

/* ===================================
   Responsive Updates for New Sections
   =================================== */
@media (max-width: 968px) {
    .theme-switcher,
    .lang-switcher {
        margin-right: 0.5rem;
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
    }
    
    .slide-text {
        padding: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        right: 0.5rem;
    }
    
    .slider-nav.next {
        left: 0.5rem;
    }
    
    .featured-slider {
        height: 400px;
    }
    
    .slide-text h2 {
        font-size: 2rem;
    }
    
    .card-slide {
        min-width: 85%;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-window {
        width: calc(100vw - 2rem);
        left: 1rem;
        height: 450px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    .live-chat-widget {
        bottom: 90px;
        left: 1rem;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .blog-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    
    .blog-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .blog-card,
    .team-member,
    .pricing-card,
    .testimonial-card {
        margin: 0 0.5rem;
    }
    
    .member-image {
        height: 300px;
    }
    
    .pricing-header h3 {
        font-size: 1.5rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent {
        padding: 1.25rem;
    }
    
    .chat-window {
        bottom: 70px;
        height: 400px;
    }
}
/* حذف هایلایت لمس موبایل */
* {
  -webkit-tap-highlight-color: transparent;
}

/* حذف outline پیش‌فرض */
/* حذف کامل highlight موبایل */
button,
.filter-btn,
a,
input,
textarea {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  outline: none !important;
  box-shadow: none !important;
}

/* حذف focus و active پیش‌فرض */
button:focus,
button:active,
.filter-btn:focus,
.filter-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

/* حذف استایل native موبایل */
button,
.filter-btn {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

/* جلوگیری از انتخاب متن */
button,
.filter-btn {
  user-select: none;
  -webkit-user-select: none;
}

/* جلوگیری از double-tap zoom */
button,
.filter-btn {
  touch-action: manipulation;
}
html {
  -webkit-tap-highlight-color: transparent;
}

/* ===================================
   Mobile Animation Optimizations (Performance-Focused)
   =================================== */

/* Optimize animations for mobile - keep them but make them smoother */
@media (max-width: 768px) {
    /* Optimize backdrop-filter - use simpler version on mobile */
    .navbar,
    .custom-header {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Optimize hero animations - keep them but lighter */
    .hero::before,
    .hero-overlay,
    .hero-particles {
        animation-duration: 15s !important;
        animation-timing-function: ease-in-out !important;
        will-change: opacity, transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .hero-gradient-orb {
        animation-duration: 12s !important;
        will-change: transform, opacity;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .decoration-circle {
        animation-duration: 10s !important;
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Keep hover effects but optimize */
    .portfolio-item:hover .portfolio-image,
    .portfolio-item:hover {
        transform: translateY(-4px) translateZ(0);
        -webkit-transform: translateY(-4px) translateZ(0);
        will-change: transform;
    }
    
    .btn-primary:hover::after,
    .filter-btn:hover::before {
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    /* Optimize transitions - faster but still smooth */
    * {
        transition-duration: 0.25s !important;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Keep animations but optimize them */
    .animate-pulse,
    .animate-glow,
    .animate-bounce,
    .gradient-animated,
    .text-shimmer {
        will-change: transform, opacity;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Optimize keyframe animations - keep them but GPU-accelerated */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate3d(0, 15px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translate3d(0, -15px, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translate3d(-15px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translate3d(15px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale3d(0.9, 0.9, 1);
        }
        to {
            opacity: 1;
            transform: scale3d(1, 1, 1);
        }
    }
    
    /* Optimize 3D transforms - use 2D instead */
    @keyframes rotateIn {
        from {
            opacity: 0;
            transform: scale3d(0.9, 0.9, 1);
        }
        to {
            opacity: 1;
            transform: scale3d(1, 1, 1);
        }
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translate3d(30px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translate3d(-30px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
    
    /* Optimize bounce animation */
    @keyframes bounce {
        0%, 100% {
            transform: translate3d(-50%, 0, 0);
        }
        50% {
            transform: translate3d(-50%, -8px, 0);
        }
    }
    
    /* Optimize float animation */
    @keyframes float {
        0%, 100% {
            transform: translate3d(0, 0, 0);
        }
        50% {
            transform: translate3d(0, -12px, 0);
        }
    }
    
    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale3d(1, 1, 1);
        }
        50% {
            opacity: 0.95;
            transform: scale3d(1.02, 1.02, 1);
        }
    }
    
    /* Optimize glow animation */
    @keyframes glow {
        0%, 100% {
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
        }
        50% {
            box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
        }
    }
    
    /* Optimize shimmer */
    @keyframes shimmer {
        0% {
            background-position: -400px 0;
        }
        100% {
            background-position: 400px 0;
        }
    }
    
    /* Optimize 3D spin - use 2D */
    @keyframes spin3d {
        0% {
            transform: rotateZ(0deg);
        }
        100% {
            transform: rotateZ(360deg);
        }
    }
    
    /* Optimize ripple */
    @keyframes ripple {
        0% {
            transform: scale3d(0, 0, 1);
            opacity: 1;
        }
        100% {
            transform: scale3d(2.5, 2.5, 1);
            opacity: 0;
        }
    }
    
    /* Optimize animation durations - faster but still smooth */
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-scale-in,
    .animate-rotate-in {
        animation-duration: 0.5s !important;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* GPU acceleration for smooth animations */
    .hero-content,
    .title-line,
    .hero-description,
    .hero-buttons,
    .btn,
    .portfolio-item,
    .event-card,
    .service-card,
    .component-card {
        will-change: transform, opacity;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
    }
    
    /* Optimize particles canvas - reduce particle count via JS */
    .particles-canvas {
        opacity: 0.6;
        will-change: transform;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    
    /* Optimize box-shadows on mobile */
    .event-card,
    .portfolio-item,
    .btn-primary {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .event-card:hover,
    .portfolio-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
}

/* Additional optimizations for very small screens */
@media (max-width: 480px) {
    /* Optimize transitions - still smooth but faster */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Keep animations but make them faster */
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-scale-in,
    .animate-rotate-in,
    .title-line {
        animation-duration: 0.4s !important;
        will-change: transform, opacity;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    
    /* Keep gradients but optimize */
    .gradient-animated,
    .text-shimmer {
        will-change: background-position;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
    
    /* Keep hover states but lighter */
    .btn-primary:hover,
    .btn-secondary:hover,
    .filter-btn:hover {
        transform: translate3d(0, -2px, 0) !important;
        -webkit-transform: translate3d(0, -2px, 0) !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Keep hover effects but lighter on touch devices */
    .portfolio-item:hover,
    .event-card:hover,
    .btn-primary:hover,
    .filter-btn:hover {
        transform: translate3d(0, -3px, 0) !important;
        -webkit-transform: translate3d(0, -3px, 0) !important;
        box-shadow: var(--shadow-lg) !important;
        will-change: transform;
    }
    
    /* Optimize for touch */
    .btn,
    .filter-btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        will-change: transform;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }
}

