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

:root {
    --primary-color: #2d7a3e;
    --secondary-color: #1f5c2e;
    --accent-color: #b8621b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);

    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
}

/* Dark mode colors */
.dark {
    --primary-color: #3b9750;
    --secondary-color: #2d7a3e;
    --accent-color: #d97f2e;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #1f2937;
    --white: #111827;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --card-bg: #1f2937;
}

.dark body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark mode support for mobile menu */
.dark-mode #mobileMenu {
    background-color: #1f2937;
    border-color: #374151;
}

.dark-mode #mobileMenu a {
    color: #f9fafb;
    border-color: #374151;
}

.dark-mode #mobileMenu a:hover {
    color: #3b9750;
}

.dark-mode #mobileMenu button {
    background-color: #374151;
    color: #f9fafb;
}

.dark-mode #mobileMenu button:hover {
    background-color: #4b5563;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 90px !important;
    width: auto;
    display: block;
    max-height: 90px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    color: var(--white);
    padding: 150px 0 100px;
    margin-top: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 122, 62, 0.85) 0%, rgba(31, 92, 46, 0.75) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="white" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,0 L0,0 Z" fill="%232563eb" opacity="0.03"/></svg>');
    background-size: cover;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.card-image-decoration {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 140px;
    height: 140px;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.card-image-decoration svg {
    width: 100%;
    height: 100%;
}

.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
}

.service-icon {
    position: relative;
    z-index: 2;
}

/* Add sports-related background patterns to service cards - enhanced visual design */
.service-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(37,99,235,0.02)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect x="50" y="80" width="120" height="140" rx="8" fill="%232563eb" opacity="0.08"/><rect x="200" y="100" width="120" height="120" rx="8" fill="%232563eb" opacity="0.06"/><circle cx="340" cy="60" r="30" fill="%231e40af" opacity="0.08"/><path d="M 50 250 Q 200 200 350 250" stroke="%232563eb" stroke-width="3" fill="none" opacity="0.1"/><line x1="100" y1="50" x2="100" y2="70" stroke="%232563eb" stroke-width="2" opacity="0.15"/><line x1="250" y1="40" x2="250" y2="60" stroke="%232563eb" stroke-width="2" opacity="0.15"/></svg>');
    background-size: cover, 90%;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}

.service-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(16,185,129,0.02)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><circle cx="80" cy="100" r="50" fill="%2310b981" opacity="0.08"/><rect x="180" y="80" width="150" height="150" rx="12" fill="%2310b981" opacity="0.06"/><path d="M 20 250 L 80 200 L 140 220 L 200 180 L 260 200 L 320 160 L 380 180" stroke="%2310b981" stroke-width="3" fill="none" opacity="0.12"/><circle cx="320" cy="160" r="6" fill="%2310b981" opacity="0.15"/><circle cx="200" cy="180" r="6" fill="%2310b981" opacity="0.15"/></svg>');
    background-size: cover, 90%;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}

.service-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,158,11,0.02)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect x="60" y="60" width="100" height="180" rx="8" fill="%23f59e0b" opacity="0.08"/><rect x="180" y="100" width="100" height="140" rx="8" fill="%23f59e0b" opacity="0.06"/><rect x="300" y="120" width="60" height="120" rx="8" fill="%23d97706" opacity="0.08"/><circle cx="100" cy="40" r="20" fill="%23f59e0b" opacity="0.1"/><path d="M 40 250 L 360 250" stroke="%23f59e0b" stroke-width="3" opacity="0.12"/></svg>');
    background-size: cover, 90%;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}

.service-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(139,92,246,0.02)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><circle cx="100" cy="150" r="60" fill="%238b5cf6" opacity="0.08"/><circle cx="250" cy="120" r="70" fill="%237c3aed" opacity="0.06"/><rect x="180" y="180" width="180" height="90" rx="8" fill="%238b5cf6" opacity="0.06"/><path d="M 50 50 Q 200 30 350 50" stroke="%238b5cf6" stroke-width="2" fill="none" opacity="0.1"/><circle cx="320" cy="80" r="25" fill="%238b5cf6" opacity="0.08"/></svg>');
    background-size: cover, 90%;
    background-position: center, center right;
    background-repeat: no-repeat, no-repeat;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Add unique background patterns for different card types */
.service-card:nth-child(1)::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.service-card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.service-card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

.service-card:nth-child(4)::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Colorful gradient backgrounds for different service cards */
.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.service-icon svg {
    width: 45px;
    height: 45px;
    fill: white;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    padding: 80px 0;
}

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

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Our Clients Section */
.clients {
    padding: 80px 0;
    background: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.client-logo {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow);
    min-height: 150px;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.client-logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

.client-placeholder {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    border: 2px dashed #cbd5e1;
}

.client-placeholder span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.client-placeholder:hover {
    transform: none;
    border-color: #cbd5e1;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.info-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p,
.info-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
}

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

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

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

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 999;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .lang-btn {
        margin-top: 1rem;
        width: 100%;
    }

    /* Logo */
    .logo img {
        height: 60px !important;
        max-height: 60px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Platform Cards */
    .platform-card {
        padding: 1.5rem;
    }

    .platform-card-image {
        height: 200px;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    /* Container Padding */
    .container {
        padding: 0 15px;
    }

    /* About Content */
    .about-content {
        padding: 1.5rem;
    }

    /* Clients Section */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .client-logo {
        padding: 1.5rem;
        min-height: 120px;
    }

    .client-logo img {
        max-height: 60px;
    }
}

/* Tablet and Small Desktop */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .logo img {
        height: 50px !important;
        max-height: 50px;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .platform-card-image {
        height: 180px;
    }

    .roi-number {
        font-size: 3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: none;
}

.animate-on-scroll.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

.fade-in-up {
    animation-name: fadeInUp;
}

.fade-in-left {
    animation-name: fadeInLeft;
}

.fade-in-right {
    animation-name: fadeInRight;
}

.scale-in {
    animation-name: scaleIn;
}

.slide-down {
    animation-name: slideDown;
}

/* New Section Styles */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-section {
    margin-bottom: 4rem;
}

.feature-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.feature-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

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

.platform-card {
    background: linear-gradient(135deg, var(--white) 0%, #f0f7ff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
}

/* Parent/Player Mobile App Card - Mobile device illustration */
.platform-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(59, 130, 246, 0.05) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect x="140" y="40" width="120" height="220" rx="15" fill="%233b82f6" opacity="0.08" stroke="%232563eb" stroke-width="2"/><circle cx="200" cy="70" r="8" fill="%232563eb" opacity="0.15"/><rect x="160" y="85" width="80" height="150" rx="4" fill="%232563eb" opacity="0.1"/><circle cx="200" cy="250" r="12" fill="%232563eb" opacity="0.12"/></svg>');
    background-size: cover, 80%;
    background-position: center, center right;
    border: 2px solid #3b82f6;
}

/* Coach Mobile App Card - Whistle and stopwatch illustration */
.platform-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(16, 185, 129, 0.05) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><circle cx="280" cy="120" r="60" fill="none" stroke="%2310b981" stroke-width="3" opacity="0.12"/><circle cx="280" cy="120" r="50" fill="%2310b981" opacity="0.06"/><line x1="280" y1="120" x2="280" y2="80" stroke="%2310b981" stroke-width="2" opacity="0.15"/><line x1="280" y1="120" x2="310" y2="135" stroke="%2310b981" stroke-width="2" opacity="0.15"/><circle cx="160" cy="150" r="25" fill="%2310b981" opacity="0.1"/><path d="M 160 125 L 160 110 L 175 100" stroke="%2310b981" stroke-width="2" fill="none" opacity="0.12"/></svg>');
    background-size: cover, 80%;
    background-position: center, center right;
    border: 2px solid #10b981;
}

/* Management Web App Card - Dashboard/Computer illustration */
.platform-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(139, 92, 246, 0.05) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect x="80" y="60" width="240" height="150" rx="8" fill="%238b5cf6" opacity="0.08" stroke="%237c3aed" stroke-width="2"/><rect x="100" y="80" width="70" height="40" rx="4" fill="%238b5cf6" opacity="0.12"/><rect x="180" y="80" width="70" height="40" rx="4" fill="%238b5cf6" opacity="0.1"/><rect x="260" y="80" width="40" height="40" rx="4" fill="%238b5cf6" opacity="0.1"/><rect x="100" y="130" width="200" height="8" rx="2" fill="%238b5cf6" opacity="0.1"/><rect x="100" y="150" width="180" height="8" rx="2" fill="%238b5cf6" opacity="0.08"/><rect x="100" y="170" width="160" height="8" rx="2" fill="%238b5cf6" opacity="0.08"/><rect x="160" y="210" width="80" height="30" rx="4" fill="%237c3aed" opacity="0.1"/><line x1="200" y1="240" x2="200" y2="260" stroke="%238b5cf6" stroke-width="2" opacity="0.1"/><path d="M 140 260 L 260 260" stroke="%238b5cf6" stroke-width="3" opacity="0.12"/></svg>');
    background-size: cover, 85%;
    background-position: center, center;
    border: 2px solid #8b5cf6;
}

.platform-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    opacity: 0.05;
    border-radius: 50%;
}

.platform-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
}

.platform-image-decoration {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.platform-image-decoration svg {
    width: 100%;
    height: 100%;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.platform-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.platform-card-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.platform-card-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

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

/* ROI Section */
.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.roi-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.roi-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.roi-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.roi-card p {
    opacity: 0.9;
}

/* Benefits List */
.benefits-list {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.benefits-list h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 5px;
}

.benefits-list li strong {
    color: var(--primary-color);
}

/* Language Toggle Button */
.lang-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Arial', 'Tahoma', sans-serif;
}

[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .feature-title,
[dir="rtl"] .feature-subtitle {
    text-align: right;
}

[dir="rtl"] .about-content {
    text-align: right;
}

[dir="rtl"] .service-card,
[dir="rtl"] .platform-card,
[dir="rtl"] .roi-card {
    text-align: right;
}

[dir="rtl"] .benefits-list {
    text-align: right;
}

[dir="rtl"] .benefits-list li {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .contact-content {
    direction: rtl;
}

[dir="rtl"] .footer {
    text-align: right;
}

/* Smooth transition for language change */
body {
    transition: direction 0.3s ease;
}

* {
    transition: text-align 0.3s ease;
}

/* Screenshots Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 3rem auto;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    justify-content: flex-start;
}

.carousel-slide {
    min-width: 300px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

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

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: #f9fafb;
}

.carousel-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

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

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 50px;
        max-width: 100%;
        margin: 2rem auto;
    }

    .carousel-slide {
        min-width: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Screenshots Gallery */
.screenshot-category {
    margin-bottom: 3rem;
}

.category-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

.screenshot-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
    max-height: 450px;
    object-fit: contain;
    background: #f9fafb;
}

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

/* Mobile screenshot styling */
.screenshot-item img[src*="profile-screenshot"],
.screenshot-item img[src*="players-list-screenshot"],
.screenshot-item img[src*="home-screen-screenshot"],
.screenshot-item img[src*="trainer-sessions-screenshot"],
.screenshot-item img[src*="trainer-evaluation-screenshot"] {
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

.screenshot-caption {
    padding: 1rem 1.5rem;
    background: var(--white);
}

.screenshot-caption h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.screenshot-caption p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

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

/* Card Flip Animation Styles */
.flip-card {
    perspective: 1000px;
    height: 100%;
    min-height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
}

.flip-card-front {
    background: var(--white);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.flip-card-back h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.flip-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    width: 100%;
}

.flip-card-back ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.flip-card-back ul li:last-child {
    border-bottom: none;
}

/* Smooth Page Transitions */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Section Transitions */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionSlideIn 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile: Disable flip on touch devices */
@media (hover: none) and (pointer: coarse) {
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-back {
        padding: 1rem;
    }

    .flip-card-back h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .flip-card-back ul li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .flip-card-back {
        padding: 0.8rem;
    }

    .flip-card-back h3 {
        font-size: 1rem;
    }

    .flip-card-back ul li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
}

/* Dark Mode Toggle Button */
.dark-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0187c4, #6fa217);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}

.dark-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-toggle:active {
    transform: scale(0.95);
}

.dark-toggle svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.dark .dark-toggle {
    background: linear-gradient(135deg, #6fa217, #0187c4);
}

/* Dark mode specific adjustments */
.dark .bg-white {
    background-color: var(--card-bg) !important;
}

.dark .text-text-main,
.dark .text-gray-900,
.dark .text-black {
    color: var(--text-primary) !important;
}

.dark .text-text-sub,
.dark .text-gray-600,
.dark .text-gray-700,
.dark .text-gray-800 {
    color: var(--text-secondary) !important;
}

.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300 {
    border-color: var(--border-color) !important;
}

.dark .bg-gray-50 {
    background-color: #374151 !important;
}

.dark .bg-gray-100 {
    background-color: #4b5563 !important;
}

.dark .hover\:bg-gray-50:hover {
    background-color: #374151 !important;
}

.dark .hover\:bg-gray-100:hover {
    background-color: #4b5563 !important;
}

/* Dark mode header adjustments */
.dark header {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

/* Dark mode text color overrides for all elements */
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #f9fafb !important;
}

.dark p {
    color: #d1d5db !important;
}

.dark span:not(.material-symbols-outlined) {
    color: inherit;
}

.dark div {
    color: inherit;
}

/* Force all feature section text to be visible */
.dark #features h3,
.dark #features h4,
.dark #features p,
.dark #features .text-text-main {
    color: #f9fafb !important;
}

.dark #features .text-text-sub {
    color: #d1d5db !important;
}

/* Specific fixes for hard-coded black text */
.dark [class*="text-[#"] {
    color: var(--text-primary) !important;
}

/* Dark mode gradient backgrounds need adjusted text */
.dark .bg-gradient-to-br,
.dark .bg-gradient-to-tr,
.dark .bg-gradient-to-r {
    color: white !important;
}

/* Override all Tailwind text color utilities in dark mode */
.dark .text-\[#111518\],
.dark .text-\[#1f2937\],
.dark .text-\[#000000\],
.dark .text-\[#000\] {
    color: #f9fafb !important;
}

/* Dark mode blue text adjustments */
.dark .text-blue-700,
.dark .text-blue-600 {
    color: #60a5fa !important;
}

.dark .text-green-700,
.dark .text-green-600 {
    color: #4ade80 !important;
}

.dark .text-purple-700,
.dark .text-purple-600 {
    color: #c084fc !important;
}

/* Universal dark mode text visibility - catch all */
.dark .rounded-2xl h4,
.dark .rounded-3xl h4,
.dark .p-7 h4,
.dark .p-8 h4 {
    color: #f9fafb !important;
}

.dark .rounded-2xl p,
.dark .rounded-3xl p,
.dark .p-7 p,
.dark .p-8 p {
    color: #d1d5db !important;
}

/* Smooth transition for dark mode */
*,
body,
.bg-white,
.text-text-main,
.text-text-sub,
.border-gray-100 {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode toggle button rotation animation */
.dark-toggle {
    transition: all 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Additional dark mode card adjustments */
.dark .shadow-lg,
.dark .shadow-xl,
.dark .shadow-2xl {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.dark .rounded-2xl,
.dark .rounded-3xl {
    background-color: var(--card-bg);
}

/* Dark mode gradient adjustments */
.dark .bg-gradient-to-br {
    filter: brightness(0.9);
}
