/* AURAFX Custom Styles - Enhanced Version */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.25rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

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

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--light);
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fdf4;
    border-color: var(--success);
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: #f0f9ff;
    border-color: var(--info);
    color: #0c4a6e;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Animations */
@keyframes floatUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.float-up { 
    animation: floatUp 0.9s cubic-bezier(.2,.9,.2,1) both; 
}

@keyframes pulseSoft {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.98; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-soft { 
    animation: pulseSoft 4s ease-in-out infinite; 
}

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

.shiny {
    background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.06) 100%);
    background-size: 200% 100%;
    animation: glassShine 3s linear infinite;
}

.text-gradient { 
    background: linear-gradient(90deg, var(--primary), var(--primary-dark)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Button ripple effect */
.btn:after {
    content: '';
    position: absolute;
    left: 50%; 
    top: 50%;
    width: 0; 
    height: 0; 
    opacity: 0.2;
    background: white; 
    transform: translate(-50%, -50%);
    border-radius: 50%; 
    transition: width 0.45s ease, height 0.45s ease, opacity 0.6s ease;
}

.btn:active:after { 
    width: 300px; 
    height: 300px; 
    opacity: 0; 
    transition: 0s; 
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

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

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

/* Glow effect */
.glow {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* Newsletter input */
.newsletter-input { 
    max-width: 360px; 
    display:inline-block 
}

/* Notification */
.notification { 
    right: 1rem; 
}

.notification .notification-icon { 
    font-weight: 700; 
}

/* Container utility */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1rem; 
}

/* Hero background elements */
.hero-bg-float { 
    position: absolute; 
    border-radius: 999px; 
    filter: blur(36px); 
    opacity: 0.12; 
    transform: translateZ(0); 
}

/* Counter styles */
.stat-number.counter { 
    font-variant-numeric: tabular-nums; 
}

/* Parallax effect */
.parallax { 
    transform: translateY(0); 
    transition: transform 0.2s linear; 
    will-change: transform; 
}

/* Tilt effect for cards */
.card-tilt { 
    perspective: 1000px; 
}

.card-tilt .card { 
    transform-style: preserve-3d; 
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1); 
}

.card-tilt:hover .card { 
    transform: rotateX(3deg) rotateY(-3deg) translateZ(6px); 
}

/* Mobile Menu Styles - Fixed */
.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    z-index: 40;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu.hidden {
    display: block !important;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-button {
    transition: all 0.3s ease;
}

.mobile-menu-item {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Particles
.particle {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
} */

/* Typing Animation */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

/* Section Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-reveal.revealed .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Form Focus States */
.form-group.focused .form-label {
    color: var(--primary);
    transform: translateY(-20px) scale(0.85);
}

/* Footer styles */
.color{
    color: white !important;
}
.place-color{
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero {
        padding: 4rem 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1e293b;
        --dark: #f8fafc;
        --border: #334155;
    }
    
    body {
        background: #0f172a;
        color: #f8fafc;
    }
    
    .card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .form-control {
        background: #334155;
        border-color: #475569;
        color: #f8fafc;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .float-up, .slide-in, .pulse-soft, .shiny { 
        animation: none !important; 
    }
    .card-tilt .card { 
        transition: none !important; 
        transform: none !important; 
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* Add to your existing style.css file */

/* Client Logos Marquee Section */
.clients-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.clients-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.clients-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Marquee Container */
.marquee-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Reverse marquee for second track */
.marquee-track.reverse {
    animation: marquee-reverse 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 3rem));
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(calc(-100% - 3rem));
    }
    100% {
        transform: translateX(0);
    }
}

/* Client Logo Item */
.client-logo-item {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.client-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.client-logo-item:hover::before {
    opacity: 0.05;
}

.client-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.client-logo-item:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Logo Name Tooltip */
.client-logo-item::after {
    content: attr(data-client);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.client-logo-item:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* Fade Edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, #f8fafc, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(90deg, transparent, #f8fafc);
}

/* Stats Counter */
.clients-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clients-section {
        padding: 3rem 0;
    }
    
    .clients-header h2 {
        font-size: 2rem;
    }
    
    .client-logo-item {
        width: 120px;
        height: 80px;
        padding: 1rem;
    }
    
    .marquee-track {
        gap: 2rem;
    }
    
    .clients-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .stat-item {
        flex: 1 0 calc(50% - 2rem);
        min-width: 120px;
    }
    
    .marquee-container::before,
    .marquee-container::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .client-logo-item {
        width: 100px;
        height: 70px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Pause animation on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .marquee-track.reverse {
        animation: none;
    }
    
    .marquee-track {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Alternative Grid Layout for When Animation is Disabled */
.marquee-track.no-animation {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.testimonials-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

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

.testimonial-content {
    flex: 1;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.1);
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.author-company {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.author-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.rating-star {
    color: #FFD700;
    font-size: 1rem;
}

/* Testimonial Stats */
.testimonial-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-stat-item {
    text-align: center;
}

.testimonial-stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonial Carousel (for mobile) */
.testimonial-carousel {
    display: none;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-header h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        display: none;
    }
    
    .testimonial-carousel {
        display: block;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .testimonial-stat-item {
        flex: 1 0 calc(50% - 2rem);
        min-width: 120px;
    }
    
    .testimonial-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testimonial-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .testimonial-stat-item {
        flex: 1 0 100%;
    }
}

/* Animation for testimonial cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for grid */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }



