/*
 * Modern Design System - WASender Platform
 * Professional, Modern, Impressive UI
 * ========================================
 */

/* ==========================================
   1. CSS Variables / Design Tokens
   ========================================== */
:root {
    /* Primary Colors - WhatsApp Inspired */
    --primary-green: #25d366;
    --primary-green-dark: #128c7e;
    --primary-green-light: #34eb83;

    /* Secondary Colors */
    --secondary-blue: #0a1128;
    --secondary-blue-light: #1a2744;
    --secondary-purple: #6366f1;
    --secondary-violet: #8b5cf6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    --gradient-hero: linear-gradient(135deg, #0a1128 0%, #1a2744 50%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glow: linear-gradient(135deg, #25d366 0%, #6366f1 50%, #8b5cf6 100%);
    --gradient-button: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    --gradient-button-hover: linear-gradient(135deg, #34eb83 0%, #25d366 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 211, 102, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

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

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

/* Header for pages with light backgrounds (non-hero pages) */
.modern-header.header-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.modern-header.header-light .nav-link {
    color: var(--gray-700);
}

.modern-header.header-light .nav-link:hover {
    color: var(--primary-green);
}

.modern-header.header-light .btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.modern-header.header-light .btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modern-header.header-light .lang-btn {
    background: var(--gray-100) !important;
    border-color: var(--gray-300) !important;
    color: var(--gray-700) !important;
}

.modern-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-header .logo img {
    height: 45px;
    transition: transform var(--transition-base);
}

.modern-header .logo:hover img {
    transform: scale(1.05);
}

.modern-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-header .nav-link {
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.modern-header.scrolled .nav-link {
    color: var(--gray-700);
}

.modern-header .nav-link:hover {
    color: var(--primary-green);
}

.modern-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.modern-header .nav-link:hover::after {
    width: 80%;
}

.modern-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================
   4. Modern Buttons
   ========================================== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--gradient-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--gray-900);
}

/* ==========================================
   5. Hero Section
   ========================================== */
.modern-hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 211, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.modern-hero .hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.modern-hero .hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.modern-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-green);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

.modern-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.modern-hero .hero-title .highlight {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-hero .hero-description {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.modern-hero .hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.modern-hero .hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

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

.modern-hero .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    display: block;
}

.modern-hero .stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

/* Hero Image */
.modern-hero .hero-image {
    margin-top: 4rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.modern-hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

/* Floating Elements */
.hero-floating {
    position: absolute;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-floating.left {
    left: 5%;
    top: 40%;
    animation: floatLeft 8s ease-in-out infinite;
}

.hero-floating.right {
    right: 5%;
    top: 50%;
    animation: floatRight 8s ease-in-out infinite;
}

/* ==========================================
   6. Platform Features Section
   ========================================== */
.platform-features {
    padding: 120px 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.platform-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--white), transparent);
    z-index: 0;
}

.platform-features .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: var(--radius-full);
    color: var(--primary-green);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

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

/* Feature Colors */
.feature-card.api .feature-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
}

.feature-card.bulk .feature-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
}

.feature-card.schedule .feature-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.feature-card.bot .feature-icon {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: var(--white);
}

.feature-card.buttons .feature-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: var(--white);
}

.feature-card.templates .feature-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: var(--white);
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.feature-link:hover {
    gap: 0.75rem;
    color: var(--primary-green-dark);
}

/* ==========================================
   7. Modern Pricing Section
   ========================================== */
.modern-pricing {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.modern-pricing .pricing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    transition: all var(--transition-base);
}

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

.pricing-card.featured {
    background: var(--gradient-hero);
    border-color: transparent;
    transform: scale(1.05);
}

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

.pricing-card.featured * {
    color: var(--white);
}


.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.pricing-card:not(.featured) .pricing-icon {
    background: var(--gray-100);
    color: var(--gray-700);
}

.pricing-card.featured .pricing-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-price small {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.featured .pricing-features li {
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-features li i {
    color: var(--primary-green);
    font-size: 1rem;
}

.pricing-card.featured .pricing-features li i {
    color: var(--primary-green-light);
}

.pricing-cta {
    width: 100%;
    margin-top: 1rem;
}

.pricing-card:not(.featured) .pricing-cta {
    background: var(--gray-900);
    color: var(--white);
}

.pricing-card:not(.featured) .pricing-cta:hover {
    background: var(--primary-green);
}

.pricing-card.featured .pricing-cta {
    background: var(--white);
    color: var(--gray-900);
}

/* ==========================================
   8. Testimonials Section
   ========================================== */
.modern-testimonials {
    padding: 120px 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.modern-testimonials .testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-green);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.testimonial-text {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1rem;
    padding-left: 1.5rem;
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ==========================================
   9. Modern FAQ Section
   ========================================== */
.modern-faq {
    padding: 120px 0;
    background: var(--white);
}

.modern-faq .faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-green);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--white);
    border: none;
    text-align: start;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all var(--transition-base);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary-green);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================
   10. Modern Footer
   ========================================== */
.modern-footer {
    background: var(--gradient-hero);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 100%, rgba(37, 211, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.modern-footer .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo img {
    height: 45px;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-inline-start: 0.5rem;
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

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

/* ==========================================
   11. Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatLeft {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, -15px);
    }
}

@keyframes floatRight {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, -15px);
    }
}

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

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

/* ==========================================
   12. Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .modern-header .nav-menu {
        display: none;
    }

    .modern-hero .hero-stats {
        gap: 2rem;
    }

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

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

@media (max-width: 768px) {
    .modern-hero {
        padding: 100px 0 60px;
    }

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

    .modern-hero .hero-description {
        font-size: 1rem;
    }

    .modern-hero .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .modern-hero .hero-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .modern-header .header-container {
        padding: 0 1rem;
    }

    .modern-hero .hero-container {
        padding: 0 1rem;
    }

    .btn-modern {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* ==========================================
   13. RTL Support
   ========================================== */
[dir='rtl'] .modern-header .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir='rtl'] .feature-link:hover {
    gap: 0.75rem;
}

[dir='rtl'] .feature-link i {
    transform: rotate(180deg);
}

[dir='rtl'] .footer-links a:hover {
    padding-inline-start: 0.5rem;
    padding-inline-end: 0;
}

/* ==========================================
   14. Utility Classes
   ========================================== */
.text-center {
    text-align: center;
}
.text-start {
    text-align: start;
}
.text-end {
    text-align: end;
}

.mt-1 {
    margin-top: 0.25rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-3 {
    margin-top: 1rem;
}
.mt-4 {
    margin-top: 1.5rem;
}
.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-3 {
    margin-bottom: 1rem;
}
.mb-4 {
    margin-bottom: 1.5rem;
}
.mb-5 {
    margin-bottom: 3rem;
}

.py-section {
    padding: 120px 0;
}

.d-flex {
    display: flex;
}
.align-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.gap-1 {
    gap: 0.5rem;
}
.gap-2 {
    gap: 1rem;
}
.gap-3 {
    gap: 1.5rem;
}

/* Wave Separator */
.wave-separator {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.wave-separator svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.modern-header.scrolled .mobile-menu-toggle {
    color: var(--gray-700);
    background: var(--gray-100);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Fix for featured pricing card CTA button visibility */
.pricing-card.featured .pricing-cta,
.pricing-card.featured .btn-modern.pricing-cta {
    background: var(--white) !important;
    color: var(--gray-900) !important;
}

.pricing-card.featured .pricing-cta span,
.pricing-card.featured .pricing-cta i,
.pricing-card.featured .btn-modern.pricing-cta span,
.pricing-card.featured .btn-modern.pricing-cta i {
    color: var(--gray-900) !important;
}

.pricing-card.featured .pricing-cta:hover,
.pricing-card.featured .btn-modern.pricing-cta:hover {
    background: var(--gray-100) !important;
    color: var(--gray-900) !important;
    transform: translateY(-2px);
}

/* ==========================================
   Page Hero Section (for inner pages)
   ========================================== */
.page-hero {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 211, 102, 0.1) 0%, transparent 50%);
}

.page-hero .hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.breadcrumb-nav a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb-nav a:hover {
    color: var(--primary-green);
}

.breadcrumb-nav i {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.breadcrumb-nav span {
    color: var(--white);
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero-description {
    font-size: 1.125rem;
    color: var(--gray-300);
    line-height: 1.7;
}

/* ==========================================
   Modern About Section
   ========================================== */
.modern-about-section {
    padding: 100px 0;
    background: var(--white);
}

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

.about-images {
    position: relative;
}

.about-image-main img {
    border-radius: var(--radius-2xl);
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.about-image-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 60%;
}

.about-image-secondary img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    border: 4px solid var(--white);
}

.experience-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.exp-text {
    font-size: 0.875rem;
}

.about-content .section-badge {
    margin-bottom: 1rem;
}

.about-description p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

.about-features li i {
    color: var(--primary-green);
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================
   Modern Stats Section
   ========================================== */
.modern-stats-section {
    padding: 80px 0;
    background: var(--gray-50);
}

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

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-green);
}

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ==========================================
   Modern Team Section
   ========================================== */
.modern-team-section {
    padding: 100px 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 1rem 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-base);
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all var(--transition-base);
}

.team-social a:hover {
    background: var(--primary-green);
    color: var(--white);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.team-info span {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ==========================================
   Modern Blog Section
   ========================================== */
.modern-blog-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: all var(--transition-base);
}

.blog-card:hover {
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.blog-meta i {
    margin-right: 0.5rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-base);
}

.blog-title a:hover {
    color: var(--primary-green);
}

.blog-excerpt {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--transition-base);
}

.blog-read-more:hover {
    gap: 0.75rem;
}

.no-posts-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
}

.no-posts-message i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-posts-message h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-posts-message p {
    color: var(--gray-500);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    outline: none;
}

.search-form button {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.recent-post-content .post-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.recent-post-content h5 {
    font-size: 0.95rem;
    margin: 0;
}

.recent-post-content h5 a {
    color: var(--gray-800);
    text-decoration: none;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
}

.category-list li:last-child a {
    border-bottom: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.tag-cloud a:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ==========================================
   Modern Contact Section
   ========================================== */
.modern-contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info-card h4 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.contact-info-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.contact-info-card a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-info-card a:hover {
    color: var(--primary-green);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gray-50);
    padding: 3rem;
    border-radius: var(--radius-2xl);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-header h3 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: var(--gray-600);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form button {
    margin-top: 1.5rem;
}

/* ==========================================
   Modern Feature Detail
   ========================================== */
.modern-feature-detail {
    padding: 80px 0;
    background: var(--white);
}

.feature-banner {
    margin-bottom: 3rem;
}

.feature-banner img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
}

.feature-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.feature-intro .lead {
    font-size: 1.25rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.8;
}

.feature-sidebar-image {
    margin-bottom: 2rem;
}

.feature-sidebar-image img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.feature-quick-actions {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

.feature-quick-actions h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-quick-actions .btn-modern {
    width: 100%;
    margin-bottom: 0.75rem;
}

.other-features {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.other-features h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.other-features ul {
    list-style: none;
    padding: 0;
}

.other-features li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
    transition: color var(--transition-base);
}

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

.other-features li a:hover {
    color: var(--primary-green);
}

/* ==========================================
   Responsive for New Sections
   ========================================== */
@media (max-width: 992px) {
    .about-grid,
    .blog-layout,
    .feature-content-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-secondary {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        margin-top: 1rem;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .blog-sidebar {
        position: static;
    }
}
