/* ==========================================
   MODERN SAP TRAINING WEBSITE - DEV1 BRANCH
   Ultra-Modern Design with Glassmorphism & Dark Mode
   ========================================== */

/* ========== CSS Variables ========== */
:root {
    /* Colors - Light Mode */
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #4facfe;

    /* Backgrounds */
    --bg-primary: #f8f9fd;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Borders & Shadows */
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-glass: rgba(51, 65, 85, 0.85);
    --bg-glass-dark: rgba(51, 65, 85, 0.6);

    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-muted: #e2e8f0;

    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--primary);
    color: white;
}

/* ========== Animated Background ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    display: none; /* Hide purple background animations */
}

.bg-animation .gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
    animation: gradientMove 20s ease infinite;
}

/* Gradient background for icons and buttons */
.feature-icon.gradient-bg,
.contact-icon.gradient-bg,
.gradient-bg:not(.bg-animation .gradient-bg) {
    position: static;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: gentlePulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon.gradient-bg,
.contact-card:hover .contact-icon.gradient-bg {
    transform: scale(1.1);
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(102, 126, 234, 0.1);
    }
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, -5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 10%;
    animation-delay: 4s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-success);
    bottom: 20%;
    left: 30%;
    animation-delay: 8s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: var(--gradient-warm);
    top: 40%;
    right: 30%;
    animation-delay: 12s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    bottom: 40%;
    right: 20%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* ========== Glass Effect ========== */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* ========== Container ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-glass);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    position: relative;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.moon-icon {
    display: none;
    position: absolute;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
    border-radius: 2px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-white {
    background: white;
    color: #667eea;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.4);
    background: #f8f9fd;
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    background: var(--bg-primary);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.3rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 900;
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    font-weight: 500;
}

/* Dark mode specific overrides for better visibility */
[data-theme="dark"] .hero-title {
    color: #ffffff;
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero-description {
    color: #e2e8f0;
}

[data-theme="dark"] .badge-text {
    color: #c084fc;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    animation: fadeInUp 1.4s ease;
    box-shadow: var(--shadow-lg);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

/* Dark mode overrides for hero stats */
[data-theme="dark"] .stat-number {
    color: #a78bfa;
}

[data-theme="dark"] .stat-label {
    color: #e2e8f0;
}

.hero-visual {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    animation: floatCard 3s ease-in-out infinite;
    z-index: 1;
}

/* Ensure floating cards only appear in hero section */
section:not(.hero) .floating-card {
    display: none !important;
}

.floating-card.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: 10%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: progressFill 2s ease;
}

@keyframes progressFill {
    from { width: 0; }
}

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

/* ========== Section Styles ========== */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Ensure text is visible on white background sections */
section:not(.hero):not(.cta) {
    color: var(--text-primary);
}

section:not(.hero):not(.cta) h1,
section:not(.hero):not(.cta) h2,
section:not(.hero):not(.cta) h3,
section:not(.hero):not(.cta) h4,
section:not(.hero):not(.cta) h5,
section:not(.hero):not(.cta) h6 {
    color: var(--text-primary);
}

section:not(.hero):not(.cta) p {
    color: var(--text-secondary);
}

/* ========== Features Section ========== */
.features {
    color: var(--text-primary);
}

.features h1,
.features h2,
.features h3,
.features h4 {
    color: var(--text-primary);
}

.features p {
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
    max-width: 450px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid .feature-card:nth-child(4),
    .features-grid .feature-card:nth-child(5) {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== Courses Section ========== */
.courses {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.courses h1,
.courses h2,
.courses h3,
.courses h4 {
    color: var(--text-primary);
}

.courses p,
.courses li {
    color: var(--text-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.course-badge.trending {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.3);
}

.course-badge.popular {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.course-badge.new {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.course-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.icon-gradient {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.course-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.course-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.course-duration svg {
    width: 18px;
    height: 18px;
}

.view-all-courses {
    text-align: center;
}

/* ========== Testimonials Section ========== */
.testimonials {
    color: var(--text-primary);
}

.testimonials h1,
.testimonials h2,
.testimonials h3,
.testimonials h4 {
    color: var(--text-primary);
}

.testimonials p {
    color: var(--text-secondary);
}

.testimonials-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.testimonials-grid-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.testimonials-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    min-width: calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    flex-shrink: 0;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.testimonial-avatar {
    position: relative;
}

.avatar-gradient {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.testimonial-author h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    width: 18px;
    height: 18px;
    color: #ffc107;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    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"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.cta-card {
    padding: 4rem;
    border-radius: var(--radius-xl);
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Contact Section ========== */
#contact {
    color: var(--text-primary);
}

#contact h1,
#contact h2,
#contact h3,
#contact h4 {
    color: var(--text-primary);
}

#contact p {
    color: var(--text-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
}

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

.contact-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-card h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-form-wrapper {
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p, .footer-section li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover svg {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========== WhatsApp Button ========== */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

/* ========== Chat Widget ========== */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transform: none !important;
    animation: none !important;
}

.chat-widget * {
    transform: none !important;
}

.chat-widget .avatar-gradient {
    animation: none !important;
    transform: none !important;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.chat-icon {
    width: 28px;
    height: 28px;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #f5576c;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulseNotification 2s infinite !important;
}

@keyframes pulseNotification {
    0%, 100% {
        transform: scale(1) rotate(0deg) !important;
    }
    50% {
        transform: scale(1.1) rotate(0deg) !important;
    }
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 550px;
    border-radius: var(--radius-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    will-change: opacity;
}

.chat-box.active {
    display: flex;
    animation: slideUp 0.3s ease forwards;
}

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

.chat-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: none !important;
    animation: none !important;
}

.chat-header * {
    transform: none !important;
    animation: none !important;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: none !important;
}

.chat-avatar {
    position: relative;
    transform: none !important;
}

.chat-avatar .avatar-gradient {
    transform: none !important;
    animation: none !important;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid white;
    border-radius: var(--radius-full);
}

.chat-header h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

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

.close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-chat svg {
    width: 18px;
    height: 18px;
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-primary);
    transform: none !important;
}

.chat-content * {
    transform: none !important;
}

.welcome-screen {
    text-align: center;
    transform: none !important;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: none !important;
}

.welcome-screen h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transform: none !important;
}

.welcome-screen p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    transform: none !important;
}

.chat-signup-form {
    transform: none !important;
}

.chat-signup-form .form-group {
    margin-bottom: 1rem;
    transform: none !important;
}

.chat-signup-form input {
    width: 100%;
    transform: none !important;
}

.chat-signup-form button {
    transform: none !important;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border-radius: var(--radius-md);
    max-width: 85%;
    animation: messageIn 0.3s ease;
}

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

.bot-message {
    background: var(--bg-glass);
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.user-message {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: inherit;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-send {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

.btn-send svg {
    width: 20px;
    height: 20px;
}

/* ========== Utility Classes ========== */
.gradient-bg {
    background: var(--gradient-primary);
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Reduce header height on mobile */
    .header {
        padding: 0.4rem 0;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text h1 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .logo-text span {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .container {
        padding: 0 0.8rem;
    }

    .nav-wrapper {
        gap: 0.5rem;
    }

    /* Make buttons smaller and fit in one line */
    .nav-right {
        flex-direction: row;
        gap: 0.4rem;
        width: auto;
        flex-wrap: nowrap;
    }

    .btn-primary {
        width: auto;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .theme-toggle {
        width: auto;
        padding: 0.5rem;
        min-width: auto;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    /* Mobile navigation improvements */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
        backdrop-filter: blur(20px);
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 999;
        overflow-y: auto;
    }

    [data-theme="dark"] .nav-menu {
        background: linear-gradient(135deg, rgba(80, 95, 200, 0.98) 0%, rgba(90, 55, 130, 0.98) 100%);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 600;
        color: #fff !important;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        margin-bottom: 0.3rem;
        transition: all 0.2s ease;
        display: block;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        padding-left: 1.3rem;
        color: #fff !important;
    }

    .nav-link::after {
        display: none;
    }

    /* Buttons in mobile menu */
    .nav-menu .nav-right {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-menu .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95) !important;
        color: #667eea !important;
        font-weight: 700;
        padding: 1rem !important;
        font-size: 1rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu .btn-primary:hover {
        background: #fff !important;
        transform: translateY(-2px);
    }

    /* Theme toggle in mobile menu */
    .nav-menu .theme-toggle {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        padding: 0.8rem !important;
        width: 100%;
        justify-content: center;
    }

    .nav-menu .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .nav-menu .theme-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-visual {
        display: none;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .chat-box {
        width: calc(100vw - 2rem);
        right: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
