/* Base Styles and Variables */
/* Typography: Using Apple's SF Pro font family for modern, crisp appearance */
/* SF Pro Display: Optimized for headlines and large text */
/* SF Pro Text: Optimized for body text and smaller sizes */
@import url('legal-styles.css');

:root {
    --primary-solid: #54bd95; /* Keep the original as a fallback */
    --primary-gradient: linear-gradient(to right top, #a8df7f 0%, #57adc6 33%, #a46be9 100%);
    --primary-light: rgba(168, 223, 127, 0.2); /* Light version of first gradient color */
    --primary-color: #57adc6; /* Added for language switcher active state */
    --dark: #191A15;
    --gray: #A6A6A6;
    --light-gray: #F9F8FE;
    --white: #FFFFFF;
    --dark-blue: #161C28;
    --transition: all 0.3s ease;
    
    /* Individual gradient colors for specific use cases */
    --gradient-green: #a8df7f;
    --gradient-blue: #57adc6;
    --gradient-purple: #a46be9;
    
    /* Text visibility enhancement */
    --text-gradient-fallback: #4a4a4a; /* Darker fallback color for gradient text */
    --heading-gradient-fallback: #333333; /* Even darker for headings with gradients */
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow for better readability */
    
    /* Roadmap specific colors */
    --primary-rgb: 87, 173, 198;
    --accent-color: #a8df7f;
    --accent-rgb: 168, 223, 127;
    --secondary-color: #a46be9;
    --secondary-rgb: 164, 107, 233;
}

/* Media Protection Styles - Prevent easy downloading of images and videos */
img, video {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none; /* Disables direct interaction with media elements */
    -webkit-touch-callout: none; /* Disables iOS callout when long-pressing */
}

/* Custom context menu to be used with JavaScript to override default browser behavior */
.custom-context-menu {
    position: fixed;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 10px 0;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.8);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-context-menu.active {
    opacity: 1;
    transform: scale(1);
}

.custom-context-menu-item {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.custom-context-menu-item:hover {
    background-color: var(--primary-light);
}

.custom-context-menu-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

/* Light/Dark Mode Variables */
:root {
    /* Light mode (default) */
    --background-color: #ffffff;
    --text-color: #333333;
    --heading-color: #1e1e1e;
    --card-bg: #ffffff;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --border-color: #e9ecef;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --tab-bg: #f5f7fa;
    --tab-active: #ffffff;
    --feature-card-bg: #ffffff;
    --input-bg: #f5f7fa;
    --footer-bg: #1e1e1e;
    --footer-text: #ffffff;
    --footer-link-color: #a6a6a6;
    --pricing-card-bg: #ffffff;
    --popup-bg: #ffffff;
    --hamburger-color: #333333;
    --section-bg: #f8f9fa;
    --benefit-item-hover-bg: rgba(84, 189, 149, 0.1);
    --legal-card-bg: #f8f9fa;
    --btn-text-color: #333333;
    
    /* Roadmap specific colors */
    --primary-rgb: 87, 173, 198;
    --accent-color: #a8df7f;
    --accent-rgb: 168, 223, 127;
    --secondary-color: #a46be9;
    --secondary-rgb: 164, 107, 233;
}

[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #ffffff; /* Enhanced from #e0e0e0 to pure white for better readability */
    --heading-color: #ffffff;
    --card-bg: #1e1e1e;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); /* Stronger shadow for better depth */
    --border-color: #444444; /* Enhanced from #333333 for better visibility */
    --nav-bg: rgba(18, 18, 18, 0.97); /* Made more opaque */
    --tab-bg: #252525; /* Slightly lighter for better contrast */
    --tab-active: #333333;
    --feature-card-bg: #232323;
    --input-bg: #333333; /* Lighter input background for better contrast */
    --footer-bg: #0a0a0a;
    --footer-text: #ffffff; /* Enhanced to pure white */
    --footer-link-color: #ffffff; /* Changed from #cccccc to white for better visibility */
    --pricing-card-bg: #232323;
    --popup-bg: #232323;
    --hamburger-color: #ffffff;
    --section-bg: #181818;
    --benefit-item-hover-bg: rgba(84, 189, 149, 0.3); /* Increased opacity for better visibility */
    --legal-card-bg: #232323;
    --btn-text-color: #ffffff;
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    --primary-light: rgba(168, 223, 127, 0.3); /* Increased opacity for better visibility */
    
    /* Text visibility enhancement for dark mode */
    --text-gradient-fallback: #d4d4d4; /* Lighter fallback color for gradient text in dark mode */
    --heading-gradient-fallback: #ffffff; /* White for headings with gradients in dark mode */
    --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Enhanced shadow for better readability */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', system-ui, 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', system-ui, 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.btn-primary {
    display: inline-block;
    background-image: var(--primary-gradient);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    transition: var(--transition);
    letter-spacing: -0.01em;
    font-feature-settings: 'kern' 1;
}

.btn-primary:hover {
    background-image: none;
    background-color: transparent;
    color: var(--gradient-purple);
    border: 2px solid var(--gradient-purple);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gradient-blue);
    padding: 15px 30px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Animation for elements entering viewport */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    background-color: var(--nav-bg); /* Changed from var(--white) to var(--nav-bg) to maintain header color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li a.active,
nav ul li a:hover {
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: var(--primary-gradient);
    transform: scaleX(1);
    transform-origin: left;
    transition: var(--transition);
}

.auth-buttons {
    display: none; /* Hide the auth buttons */
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background-color: var(--hamburger-color);
    transition: var(--transition);
}

/* Updated responsive styles for the header */
@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--card-bg); /* Changed from var(--white) to var(--card-bg) */
        padding: 100px 40px 40px 40px; /* Increased top padding for better spacing */
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
        transform: translateX(0);
        z-index: 999; /* Ensure it's below the hamburger but above content */
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 30px; /* Increased for better touch targets */
    }
    
    nav ul li a {
        font-size: 20px; /* Larger font for better mobile readability */
        display: block;
        padding: 10px 0;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: var(--background-color);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 0 0 45%;
    max-width: 600px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero p {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Video Styles */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

.hero-video {
    width: auto;
    height: 600px;
    max-width: 100%;
    display: block;
    background: transparent;
    object-fit: contain;
}

.dashboard-img {
    max-width: 100%;
    border-radius: 10px;
}

/* Mobile Hero Optimization */
@media (max-width: 768px) {
    .hero {
        padding: 90px 0 50px; /* Reduced padding for mobile */
    }
    
    .hero .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 36px; /* Smaller heading on mobile */
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 16px; /* Smaller paragraph text */
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-video {
        height: auto;
        max-height: 400px;
        width: 100%;
    }
    
    .btn-primary {
        padding: 12px 25px; /* Slightly smaller buttons */
        font-size: 16px;
    }
}

/* Concept Section */
.concept {
    padding: 80px 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.concept .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.concept-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.concept-img {
    max-width: 100%;
    border-radius: 20px;
    transition: transform 0.3s ease;
    /* Remove box shadow for better GIF rendering */
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); */
}

/* Add specific styles to ensure GIF animations work properly */
img[src$=".gif"].concept-img {
    display: block;
    background: transparent;
    /* Ensure animation plays */
    pointer-events: none; /* Prevent potential interaction issues with animated GIF */
    /* Optimize rendering for smoother animation */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Apply the same styling to the video element */
video.concept-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: transparent;
}

.concept-content {
    flex: 1;
    max-width: 600px;
}

.concept-content h2 {
    margin-bottom: 20px;
    font-size: 40px;
}

.concept-content p {
    margin-bottom: 30px;
    color: var(--gray);
}

.concept-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.concept-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.concept-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 15px;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.concept-text h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--heading-color); /* Changed from var(--dark) to var(--heading-color) for better dark mode visibility */
}

.concept-text p {
    font-size: 16px;
    margin-bottom: 0;
    color: var(--text-color); /* Changed from var(--gray) to var(--text-color) for better dark mode visibility */
}

@media (max-width: 991px) {
    .concept .container {
        gap: 40px;
    }
    
    .concept-content h2 {
        font-size: 32px;
    }
    
    .concept-feature {
        gap: 12px;
    }
    
    .concept-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }
    
    .concept-text h4 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .concept {
        padding: 60px 0;
    }
    
    .concept .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .concept-content {
        max-width: 100%;
        order: 1;
    }
    
    .concept-image {
        order: 2;
        width: 100%;
    }
    
    .concept-content h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .concept-content p {
        text-align: center;
    }
    
    .concept-content .btn-primary {
        display: block;
        margin: 0 auto;
        max-width: 200px;
        text-align: center;
    }
}

/* Brands Section */
.brands {
    padding: 60px 0;
    background-color: var(--background-color);
}

.brands h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 34px;
}

.brand-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand {
    color: var(--gray);
    font-size: 24px;
    font-weight: 600;
    transition: var(--transition);
}

.brand:hover {
    color: var(--primary);
}

/* Features Section */
.features {
    background-color: var(--section-bg);
    padding: 100px 0;
}

/* Features Section With Mobile Carousel */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.carousel-nav {
    display: none; /* Hidden by default, shown only on mobile */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
}

.carousel-prev {
    left: -10px;
}

.carousel-next {
    right: -10px;
}

.carousel-nav:hover {
    background-image: var(--primary-gradient);
    color: var(--white);
}

.carousel-dots {
    display: none; /* Hidden by default, shown only on mobile */
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

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

.carousel-container {
    display: contents; /* By default acts like its children are part of the grid */
}

/* Mobile Features Optimization with Carousel */
@media (max-width: 768px) {
    .features {
        padding: 60px 0; /* Reduced section padding */
        overflow: hidden; /* Prevent horizontal scrolling */
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 0;
        margin: 40px -20px 0; /* Negative margin to stretch container */
        padding: 0 20px;
        position: relative;
        display: block; /* Changed from grid to block for carousel */
    }
    
    .carousel-container {
        display: flex; /* Change to flex for horizontal scrolling */
        overflow-x: hidden; /* Hide overflow */
        scroll-snap-type: x mandatory; /* For better scroll experience */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
        width: 100%;
    }
    
    .feature-item {
        flex: 0 0 100%; /* Each item takes full width */
        max-width: none; /* Override max-width */
        scroll-snap-align: center;
        opacity: 0.7; /* Slightly dim inactive slides */
        transform: scale(0.95);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .feature-item.active {
        opacity: 1;
        transform: scale(1);
    }
    
    .carousel-nav {
        display: flex; /* Show navigation arrows on mobile */
    }
    
    .carousel-dots {
        display: flex; /* Show dots on mobile */
    }
    
    .feature-item:hover {
        transform: translateY(0) scale(1); /* Disable hover animation on mobile */
    }
    
    .section-header .btn-primary {
        margin-top: 20px;
    }
}

.feature-item {
    background-color: var(--feature-card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
}

.feature-btn {
    margin-top: auto;
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--light-gray);
    background-image: none;
    color: var(--gradient-blue);
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    margin-top: 20px;
}

.feature-btn:hover {
    background-image: var(--primary-gradient);
    color: var(--white);
}

/* Mobile Features Optimization */
@media (max-width: 768px) {
    .features {
        padding: 60px 0; /* Reduced section padding */
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 32px; /* Smaller section headings */
    }
    
    .section-header p {
        font-size: 16px; /* Smaller paragraph size */
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* Stack in single column on mobile */
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-item {
        padding: 25px; /* Slightly smaller padding */
    }
    
    .feature-item:hover {
        transform: translateY(-5px); /* Reduced hover effect on mobile */
    }
    
    .section-header .btn-primary {
        margin-top: 10px;
        display: inline-block;
    }
}

/* Feature Tabs Styles */
.feature-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px;
    max-width: 800px;
    border-radius: 15px;
    background-color: var(--tab-bg);
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.feature-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feature-tabs .tab i {
    font-size: 16px;
}

.feature-tabs .tab.active {
    color: var(--white);
    background-image: var(--primary-gradient);
    transform: scale(1.02);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.feature-tabs .tab:hover:not(.active) {
    color: var(--primary-color);
    background-color: rgba(87, 173, 198, 0.1);
}

/* Feature Categories Container */
.feature-category {
    display: none;
}

.feature-category.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

@media (max-width: 768px) {
    .feature-tabs {
        flex-wrap: wrap;
        border-radius: 12px;
        padding: 4px;
        max-width: 95%;
        margin-bottom: 30px;
        gap: 4px;
    }
    
    .feature-tabs .tab {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        margin: 2px;
    }
    
    .feature-category.active {
        display: block;
        margin: 0 -20px;
    }
}

/* Benefits Section (now Sports Section) */
.benefits {
    padding: 100px 0;
    background-color: var(--background-color);
}

/* Sports Content Layout */
.sports-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.current-sports h3, 
.upcoming-sports h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var (--heading-color);
}

.sport-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

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

.sport-item.active {
    border-left: 4px solid var(--gradient-blue);
    transform: translateX(5px);
}

.sport-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    font-size: 24px;
}

.sport-info {
    flex: 1;
}

.sport-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.sport-info p {
    color: var(--text-color);
    line-height: 1.5;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsive Styles for Sports Section */
@media (max-width: 768px) {
    .sports-content {
        gap: 40px;
    }
    
    .sport-item {
        padding: 15px;
    }
    
    .sport-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .sport-info h4 {
        font-size: 1.1rem;
    }
    
    .sports-grid {
        grid-template-columns: 1fr;
    }
}

/* Remove old benefits styles that are no longer needed */
.benefits-content,
.benefits-list,
.benefit-item,
.benefit-image,
.benefit-image-container,
.benefit-img,
.check-icon {
    /* These styles are being kept for backwards compatibility */
    /* but are no longer actively used */
}

/* Roadmap Styles */
.roadmap-container {
    position: relative;
    padding: 40px 20px;
    margin: 40px 0;
}

.roadmap-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 6px;
    opacity: 0.3;
}

.roadmap-phase {
    position: relative;
    margin: 60px 0;
}

.phase-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}

.marker {
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.marker.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.3);
}

.phase-label {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 10;
}

/* Fix specific label colors */
.current-phase .phase-label {
    background-color: var(--primary-color);
    color: white;
}

.next-phase .phase-label {
    background-color: var(--accent-color);
    color: white;
}

.future-phase .phase-label, 
.extended-phase .phase-label {
    background-color: var(--secondary-color);
    color: white;
}

.phase-content {
    position: relative;
    width: calc(50% - 50px);
    padding: 20px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.roadmap-phase:nth-child(odd) .phase-content {
    margin-left: 0;
    margin-right: auto;
}

.sport-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.sport-item.active {
    border-left: 4px solid var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.15);
}

.sport-icon {
    background-image: var(--primary-gradient);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sport-item.active .sport-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(87, 173, 198, 0.4);
}

.sport-item:hover .sport-icon {
    transform: scale(1.05);
}

.sport-icon i {
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

.sport-item.active .sport-icon i {
    transform: rotate(5deg);
}

.sport-info h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--heading-color);
}

.sport-info p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.current-phase .phase-label {
    background-color: var(--primary-color);
}

.next-phase .phase-label {
    background-color: var(--accent-color);
}

.future-phase .phase-label, 
.extended-phase .phase-label {
    background-color: var(--secondary-color);
}

/* Responsive Roadmap */
@media (max-width: 992px) {
    .timeline-line {
        left: 60px;
    }
    
    .phase-marker {
        left: 60px;
    }
    
    .phase-content {
        width: calc(100% - 120px);
        margin-left: 120px !important;
    }
    
    .roadmap-phase:nth-child(odd) .phase-content {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .sport-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sport-icon {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .timeline-line {
        left: 30px;
    }
    
    .phase-marker {
        left: 30px;
    }
    
    .phase-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .phase-label {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Pricing Section */
.pricing {
    background-color: var(--section-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.pricing .container {
    position: relative;
    z-index: 1;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.billing-toggle span {
    color: var(--gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.billing-toggle span.active {
    color: var(--text-color); /* Updated to use text-color variable */
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 30px;
    background-color: var(--tab-bg);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
}

.toggle-switch label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background-image: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-switch input:checked + label::before {
    opacity: 1;
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.toggle-switch input:checked + label::after {
    transform: translateX(30px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.toggle-switch label:hover::after {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--pricing-card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: none;
    position: relative;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background-image: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.save-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-image: var(--primary-gradient);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    color: var(--heading-color); /* Updated to use heading-color variable */
    font-size: 24px;
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--heading-color); /* Updated to use heading-color variable */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-feature-settings: 'tnum' 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.price span:first-child {
    font-size: 24px;
    margin-right: 5px;
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.price-period {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
}

.tagline {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
}

.card-header p {
    color: var(--text-color); /* Updated to use text-color variable */
    font-size: 16px;
}

.pricing-card .features-list {
    margin-bottom: 30px;
}

.pricing-card .features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.pricing-card .features-list li i {
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 14px;
}

.pricing-btn {
    display: block;
    background-color: transparent;
    color: var(--gradient-blue);
    padding: 12px 20px;
    border: 2px solid var(--gradient-blue);
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.pricing-btn:hover {
    background-image: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

.pricing-card.featured .pricing-btn {
    background-image: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

.pricing-card.featured .pricing-btn:hover {
    background-image: none;
    background-color: transparent;
    color: var(--gradient-purple);
    border: 2px solid var(--gradient-purple);
}

/* Mobile Pricing Optimization */
@media (max-width: 992px) {
    .pricing-cards {
        gap: 20px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .pricing-card {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 60px 0; /* Reduced padding */
    }
    
    .billing-toggle {
        margin-bottom: 30px;
    }
    
    .billing-toggle span {
        font-size: 15px; /* Slightly smaller font */
    }
    
    .toggle-switch {
        width: 50px; /* Slightly smaller toggle */
        height: 26px;
    }
    
    .toggle-switch label {
        width: 50px;
        height: 26px;
    }
    
    .toggle-switch label::after {
        width: 22px;
        height: 22px;
    }
    
    .toggle-switch input:checked + label::after {
        transform: translateX(24px);
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        max-width: 100%;
        margin-bottom: 20px; /* Add spacing between stacked cards */
    }
    
    .save-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .card-header h3 {
        font-size: 22px;
    }
    
    .price {
        font-size: 40px;
    }
}

/* Footer Section */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: url('images/footer-background.png'); */
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.footer-main {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo .logo {
    margin-bottom: 20px;
}

.footer-logo .logo img {
    max-height: 40px;
}

.subscribe-form p {
    color: var(--white);
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    max-width: 400px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    outline: none;
}

.input-group button {
    background-image: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.input-group button:hover {
    background-image: var(--primary-gradient);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-links-column {
    min-width: 160px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--footer-link-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: var(--footer-link-color);
    margin-bottom: 0;
    font-size: 14px;
}

.legal-links {
    display: flex;
    align-items: center;
}

.legal-links a {
    color: var(--white); /* Changed from var(--footer-link-color) to white for better visibility */
    font-size: 14px;
    transition: var(--transition);
}

.legal-links a:hover, .legal-links a.active {
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--gray);
    border-radius: 50%;
    margin: 0 10px;
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px; /* Reduced padding */
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        min-width: 100%;
    }
    
    .input-group {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .copyright p {
        font-size: 12px;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .legal-links a {
        font-size: 12px;
    }
}

/* Feature Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 9000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -52%) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupSlideOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8);
    }
}

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

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

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

/* Mobile-optimized animations */
@media (max-width: 768px) {
    @keyframes popupSlideIn {
        0% {
            opacity: 0;
            transform: translate(-50%, -45%) scale(0.9);
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}

.feature-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background-color: var(--popup-bg);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9500;
    display: none;
    opacity: 0;
    overflow: hidden;
}

.feature-popup.active {
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.feature-popup.closing {
    animation: popupSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-popup.active .popup-header {
    animation: popupHeaderSlideIn 0.5s ease 0.1s both;
}

.feature-popup.active .popup-image img {
    animation: popupImageSlideIn 0.7s ease 0.2s both;
}

.feature-popup.active .popup-text {
    animation: popupTextSlideIn 0.7s ease 0.3s both;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-image: var(--primary-gradient);
    color: var(--white);
}

.popup-header h2 {
    margin: 0;
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-popup {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.close-popup:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.popup-content {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(90vh - 76px); /* 76px accounts for header */
}

@media (min-width: 768px) {
    .popup-content {
        flex-direction: row;
    }
}

.popup-image {
    flex: 1;
    max-width: 100%;
    min-height: 250px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .popup-image {
        max-width: 40%;
        min-height: auto;
    }
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.popup-text {
    flex: 1.5;
    padding: 30px;
    overflow-y: auto;
}

.popup-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.popup-text h4 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-text h4:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background-image: var(--primary-gradient);
    border-radius: 3px;
}

.popup-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.popup-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.popup-text li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.5;
}

.popup-navigation {
    margin-top: 30px;
    text-align: right;
}

.continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-image: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.continue-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.continue-btn i {
    transition: transform 0.3s ease;
}

.continue-btn:hover i {
    transform: translateX(3px);
}

/* Mobile Popup Optimizations */
@media (max-width: 768px) {
    .feature-popup {
        width: 95%; /* Slightly wider on mobile */
        max-height: 85vh; /* Slightly shorter to ensure visibility of top UI elements */
    }
    
    .popup-header {
        padding: 15px 20px; /* Smaller padding */
    }
    
    .popup-header h2 {
        font-size: 20px; /* Smaller title */
    }
    
    .close-popup {
        width: 32px;
        height: 32px;
    }
    
    .popup-image {
        min-height: 180px; /* Smaller image height */
    }
    
    .popup-text {
        padding: 20px; /* Reduced padding */
    }
    
    .popup-text h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .popup-text h4 {
        font-size: 16px;
        margin: 20px 0 8px;
    }
    
    .popup-text p,
    .popup-text li {
        font-size: 15px; /* Smaller text */
    }
    
    .popup-navigation {
        margin-top: 20px;
        display: flex;
        justify-content: center; /* Center the button on mobile */
    }
    
    .continue-btn {
        width: 100%; /* Full width button */
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Add Newsletter Form Styles */
.newsletter-form {
    width: 100%;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--input-bg);
    color: var(--text-color);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--gradient-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 173, 198, 0.2);
}

/* New error states for form inputs */
.form-group.error input[type="text"],
.form-group.error input[type="email"] {
    border: 2px solid #ff3b30;
    background-color: #fff8f8;
    padding-right: 40px; /* Make room for the warning icon */
}

.form-group.error input[type="text"]:focus,
.form-group.error input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
}

/* Warning icon - completely removed */
.warning-icon {
    display: none !important; /* Force hiding any warning icons */
}

/* Error message styles remain for validation */
.error-message {
    color: #ff3b30;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Error state for checkbox */
.checkbox-group.error {
    padding-bottom: 25px;
}

.checkbox-group.error label {
    color: #ff3b30;
}

.checkbox-group .warning-icon {
    top: 0;
}

.checkbox-group .error-message {
    position: absolute;
    left: 0;
    bottom: 0;
}

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

/* Mobile form improvements */
@media (max-width: 768px) {
    .form-group input[type="text"],
    .form-group input[type="email"] {
        padding: 15px; /* Larger touch target */
        font-size: 16px; /* Ensure iOS doesn't zoom */
    }
    
    .checkbox-group {
        padding-bottom: 5px;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 20px; /* Larger checkbox */
        height: 20px;
        margin-top: 0;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
        padding: 15px; /* Larger touch target */
    }
}

/* Rest of the existing newsletter form styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-group label a {
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: underline;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.submit-btn {
    padding: 12px 25px;
    background-image: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(164, 107, 233, 0.3);
}

.cancel-btn {
    padding: 12px 25px;
    background-color: transparent;
    color: var(--gray);
    border: 1px solid var(--gray);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    color: var(--dark);
    border-color: var(--dark);
}

.form-success {
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.5s ease;
}

.form-success i {
    font-size: 60px;
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.form-success h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--gray);
}

/* Add appropriate viewport meta tag for all pages */
@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    p {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .benefit-image-container {
        height: 250px;
    }
    
    .footer-logo .logo img {
        max-height: 30px;
    }
}

/* Fix for iOS form input focus */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Improve tap targets for mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .feature-btn,
    .pricing-btn {
        min-height: 44px; /* Apple's recommended minimum tap target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Share Icon and QR Code Popup Styles */
.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1000;
}

.share-icon i {
    font-size: 18px;
}

.share-icon:hover {
    background-image: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.1);
}

.mobile-only {
    display: none;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 20px auto;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code-img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .share-icon {
        display: none; /* Hide share icon in mobile view */
    }
    
    .mobile-only {
        display: block; /* Show mobile-only elements */
    }
    
    nav ul li.mobile-only {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    nav ul li.mobile-only a {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-color); /* Changed from var(--dark) to use theme-aware text color */
    }
    
    nav ul li.mobile-only a i {
        width: 24px;
        height: 24px;
        background-image: var(--primary-gradient);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

    .qr-content {
        flex-direction: column;
    }

    .qr-code-container {
        margin: 10px auto;
        max-width: 220px;
    }
}

/* Dark mode toggle icon and share icon */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
}

.theme-toggle-icon,
.share-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--section-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.theme-toggle-icon:hover,
.share-icon:hover {
    background-image: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.05);
}

.theme-toggle-icon i,
.share-icon i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.theme-toggle-icon:hover i {
    transform: rotate(30deg);
}

.share-icon:hover i {
    transform: scale(1.1);
}

/* Mobile navigation adjustments for consistent icon design */
.mobile-only .theme-toggle-link,
.mobile-only .share-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-only .theme-toggle-link i,
.mobile-only .share-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--section-bg);
    transition: var(--transition);
}

.mobile-only .theme-toggle-link:hover i,
.mobile-only .share-link:hover i {
    background-image: var(--primary-gradient);
    color: var (--white);
}

/* Hide header icons on mobile but keep them in the mobile menu */
@media (max-width: 768px) {
    .header-icons {
        display: none; /* Hide entire header icons container on mobile */
    }
}


/* Chatbot Icon Styles */
.chatbot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--background-color);
    border-radius: 50%;
    display: none; /* Hidden */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
    background-origin: border-box;
    position: relative;
}

.chatbot-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-image: var(--primary-gradient);
    border-radius: 50%;
    z-index: -1;
}

.bot-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.chatbot-icon:hover .bot-icon-img {
    transform: scale(1.1);
}

.chatbot-icon:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Other Features Section */
.other-features {
    padding: 100px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.other-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.other-feature-box {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(87, 173, 198, 0.1);
}

.other-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(87, 173, 198, 0.3);
}

.other-feature-box .feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.other-feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.other-feature-box .feature-icon i {
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
}

.other-feature-box:hover .feature-icon i {
    transform: rotate(5deg);
}

.other-feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--heading-color);
    transition: all 0.3s ease;
}

.other-feature-box p {
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 992px) {
    .other-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .other-features {
        padding: 70px 0;
    }
    
    .other-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .other-feature-box {
        padding: 25px;
    }
    
    .other-feature-box .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .other-feature-box .feature-icon i {
        font-size: 24px;
    }
    
    .other-feature-box h3 {
        font-size: 18px;
    }
    
    .other-feature-box p {
        font-size: 14px;
    }
}

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

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    z-index: 999;
    overflow: hidden;
    display: none;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.3s ease;
    border: 1px solid var(--border-color);
}

.chatbot-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chatbot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-image: var(--primary-gradient);
    z-index: 2;
}

.chatbot-iframe-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.chatbot-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: var(--card-bg);
    border-radius: 0 0 15px 15px;
}

/* Responsive Mobile Adjustments */
@media (max-width: 480px) {
    .chatbot-container {
        width: 90%;
        height: 60vh;
        right: 5%;
        left: 5%;
        bottom: 80px;
    }
    
    .chatbot-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* Ensure dark mode compatibility */
[data-theme="dark"] .chatbot-container {
    border-color: var(--border-color);
}

[data-theme="dark"] .chatbot-icon {
    background-color: var(--background-color);
}

/* ========================================
   NEW SECTIONS STYLES
   ======================================== */

/* Data Flow Section */
.data-flow {
    padding: 100px 0;
    background-color: var(--background-color);
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.flow-step {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.flow-step h3 {
    color: var(--heading-color);
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.flow-step p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}

.flow-step ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.flow-step ul li {
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.flow-step ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gradient-blue);
    font-weight: bold;
}

.flow-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--gradient-purple);
    margin: 20px 0;
    animation: bounce 2s infinite;
}

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

/* Data Metrics Cards */
.data-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.metric-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.metric-content {
    flex: 1;
}

.metric-content h4 {
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.metric-content p {
    color: var(--text-color);
    font-size: 13px;
    margin: 0;
    text-align: left;
    opacity: 0.8;
}

[data-theme="dark"] .metric-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .metric-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border-color: rgba(99, 102, 241, 0.25);
}

/* Two Services Section */
.two-services {
    padding: 100px 0;
    background-color: var(--background-color);
}

.two-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-box {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 223, 127, 0.05) 0%, rgba(87, 173, 198, 0.08) 50%, rgba(164, 107, 233, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-box:hover::before {
    opacity: 1;
}

.service-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(87, 173, 198, 0.2);
    border-color: rgba(87, 173, 198, 0.3);
}

/* App Icon Styles */
.service-app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-box:hover .service-app-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Web Icon Styles */
.service-web-icon {
    width: 200px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-web-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Logo theme switching */
[data-theme="light"] .logo-dark-img,
.logo-dark-img {
    display: none;
}

[data-theme="light"] .logo-white-img {
    display: block;
}

[data-theme="dark"] .logo-white-img {
    display: none;
}

[data-theme="dark"] .logo-dark-img {
    display: block;
}

.service-box:hover .service-web-icon {
    transform: scale(1.05);
}

.service-box h3 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-subtitle {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 16px;
    margin-bottom: 32px;
    display: block;
    min-height: 24px;
}

/* Service Metrics */
.service-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.service-metric-card {
    background: linear-gradient(135deg, rgba(168, 223, 127, 0.08) 0%, rgba(87, 173, 198, 0.12) 50%, rgba(164, 107, 233, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 173, 198, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(87, 173, 198, 0.05);
    min-height: 72px;
}

.service-metric-card i {
    grid-row: 1 / 3;
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.service-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 173, 198, 0.12);
    border-color: rgba(87, 173, 198, 0.25);
}

.service-metric-card h4 {
    grid-column: 2;
    grid-row: 1;
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

.service-metric-card p {
    grid-column: 2;
    grid-row: 2;
    color: var(--text-color);
    font-size: 15px;
    margin: 0;
    opacity: 0.85;
}

[data-theme="dark"] .service-metric-card {
    background: linear-gradient(135deg, rgba(168, 223, 127, 0.12) 0%, rgba(87, 173, 198, 0.15) 50%, rgba(164, 107, 233, 0.12) 100%);
    border-color: rgba(87, 173, 198, 0.2);
}

[data-theme="dark"] .service-metric-card i {
    color: rgba(87, 173, 198, 0.9);
}

[data-theme="dark"] .service-metric-card:hover {
    border-color: rgba(87, 173, 198, 0.3);
}

/* App Store Badges */
.app-store-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 64px;
}

.app-badge {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-4px);
}

.app-badge img {
    height: 48px;
    width: auto;
}

/* Web App Button */
.web-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background-image: var(--primary-gradient);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(87, 173, 198, 0.3);
    min-height: 64px;
}

.web-app-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(87, 173, 198, 0.4);
}

.web-app-button i {
    font-size: 14px;
}



/* Mobile App Features Section */
.mobile-features {
    padding: 100px 0;
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    align-items: stretch;
}

.mobile-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(87, 173, 198, 0.3);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 36px;
    color: white;
}

.mobile-feature-card h3 {
    color: var(--heading-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.feature-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    list-style: none;
    margin: 20px 0;
    flex-grow: 1;
}

[data-theme="dark"] .mobile-feature-card .feature-list {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.feature-list li {
    color: var(--text-color);
    padding: 12px 0;
    padding-left: 0;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .feature-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.feature-list li i {
    margin-right: 0;
    color: var(--gradient-blue);
    flex-shrink: 0;
    font-size: 18px;
}

.feature-benefit {
    color: var(--heading-color);
    font-weight: 600;
    margin-top: 20px;
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border-left: 4px solid var(--gradient-blue);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.feature-benefit:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(87, 173, 198, 0.15);
}

.feature-benefit::before {
    content: '→';
    font-size: 20px;
    color: var(--gradient-blue);
    font-weight: bold;
    flex-shrink: 0;
}

[data-theme="dark"] .feature-benefit {
    background: rgba(30, 30, 46, 0.5);
    border-left-color: var(--gradient-blue);
}

.feature-future {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.7;
    margin-top: 15px;
    font-style: italic;
}

/* Mobile App Footer (Logo and Store Badges) */
.mobile-app-footer {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-app-footer .service-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-app-footer .service-app-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.mobile-app-footer .service-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-footer-tagline {
    color: var(--heading-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-app-footer .app-store-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mobile-app-footer .app-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.mobile-app-footer .app-badge:hover {
    transform: scale(1.05);
}

.mobile-app-footer .app-badge img {
    height: 50px;
    width: auto;
}

/* Web App Features Section */
.web-features {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.03) 0%, rgba(156, 39, 176, 0.03) 100%);
}

/* Web App Footer (Logo and Link Button) */
.web-app-footer {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.web-app-footer .service-web-icon {
    width: 200px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.web-app-footer .service-web-icon:hover {
    transform: scale(1.05);
}

.web-app-footer .service-web-icon img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Logo theme switching */
.web-app-footer .logo-white-img {
    display: block;
}

.web-app-footer .logo-dark-img {
    display: none;
}

[data-theme="dark"] .web-app-footer .logo-white-img {
    display: none;
}

[data-theme="dark"] .web-app-footer .logo-dark-img {
    display: block;
}

.web-app-footer .app-footer-tagline {
    color: var(--heading-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-app-footer .web-app-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(87, 173, 198, 0.3);
    margin-top: 10px;
}

.web-app-footer .web-app-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(87, 173, 198, 0.4);
}

.web-app-footer .web-app-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.web-app-footer .web-app-button:hover svg {
    transform: translateX(3px);
}

.web-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.web-feature-block {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.web-feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.web-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 30px;
    color: white;
}

.web-feature-block h3 {
    color: var(--heading-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.web-feature-block ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.web-feature-block ul li {
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.web-feature-block ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gradient-blue);
    font-weight: bold;
    font-size: 20px;
}

/* New Web Feature Card Styles */
.web-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.web-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(87, 173, 198, 0.3);
}

.web-feature-card .section-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.web-feature-card .web-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-image: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.web-feature-card .section-card-header h3 {
    color: var(--heading-color);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.web-feature-card .feature-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    list-style: none;
    margin: 0;
}

.web-feature-card .feature-list li {
    color: var(--text-color);
    padding: 10px 0;
    padding-left: 0;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.web-feature-card .feature-list li i {
    color: var(--gradient-blue);
    flex-shrink: 0;
    font-size: 16px;
}

.web-feature-card .feature-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.web-feature-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

[data-theme="dark"] .web-feature-card .feature-list {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .web-feature-card .feature-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.auto-generated-label,
.manual-entry-label {
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--heading-color);
}

.auto-generated-label i,
.manual-entry-label i {
    font-size: 16px;
    color: var(--gradient-blue);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--background-color);
}

.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(63, 81, 181, 0.05);
}

.faq-question h3 {
    color: var(--heading-color);
    font-size: 18px;
    margin: 0;
    flex-grow: 1;
    font-weight: 600;
}

.faq-question i {
    color: var(--gradient-blue);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

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

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Additional Button Style */
.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--gradient-blue);
    border: 2px solid var(--gradient-blue);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--gradient-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(63, 81, 181, 0.3);
}

/* Responsive Styles for New Sections */
@media (max-width: 991px) {
    .features-grid,
    .web-features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .flow-step {
        padding: 30px;
    }
    
    .mobile-feature-card {
        padding: 30px;
    }
    
    .data-metrics {
        grid-template-columns: 1fr;
    }
    
    .service-section-card {
        padding: 24px;
    }
    
    .web-feature-card {
        padding: 24px;
    }
    
    .web-feature-card .section-card-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .data-flow,
    .two-services,
    .mobile-features,
    .web-features,
    .faq {
        padding: 60px 0;
    }
    
    .two-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-box {
        padding: 32px;
    }
    
    .service-app-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-web-icon {
        width: 160px;
        height: 80px;
    }
    
    .service-box h3 {
        font-size: 24px;
    }
    
    .app-store-badges {
        flex-direction: column;
    }
    
    .app-badge img {
        height: 44px;
    }
    
    .service-metric-card {
        padding: 16px 20px;
        column-gap: 12px;
    }
    
    .service-metric-card i {
        font-size: 24px;
    }
    
    .service-metric-card h4 {
        font-size: 15px;
    }
    
    .service-metric-card p {
        font-size: 14px;
    }
    
    .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .store-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .store-badge img {
        height: 44px;
    }
    
    .metric-item {
        flex-direction: column;
        text-align: center;
    }
    
    .metric-content h4,
    .metric-content p {
        text-align: center;
    }
    
    .mobile-feature-card h3 {
        font-size: 20px;
    }
    
    .mobile-app-footer {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .mobile-app-footer .service-app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-footer-tagline {
        font-size: 18px;
    }
    
    .mobile-app-footer .app-badge img {
        height: 45px;
    }
    
    .web-app-footer {
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .web-app-footer .service-web-icon {
        width: 180px;
    }
    
    .web-app-footer .app-footer-tagline {
        font-size: 18px;
    }
    
    .web-app-footer .web-app-button {
        font-size: 17px;
        padding: 13px 32px;
    }
    
    .web-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .web-feature-block h3 {
        font-size: 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 25px;
    }
    
    .mobile-feature-card {
        padding: 25px;
    }
    
    .mobile-app-footer {
        margin-top: 50px;
        padding-top: 35px;
        gap: 15px;
    }
    
    .mobile-app-footer .service-app-icon {
        width: 90px;
        height: 90px;
    }
    
    .app-footer-tagline {
        font-size: 16px;
    }
    
    .mobile-app-footer .app-badge img {
        height: 42px;
    }
    
    .web-app-footer {
        margin-top: 50px;
        padding-top: 35px;
        gap: 15px;
    }
    
    .web-app-footer .service-web-icon {
        width: 160px;
    }
    
    .web-app-footer .app-footer-tagline {
        font-size: 16px;
    }
    
    .web-app-footer .web-app-button {
        font-size: 16px;
        padding: 12px 30px;
    }
    
    .web-feature-block {
        padding: 25px;
    }
    
    .flow-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .flow-step h3 {
        font-size: 20px;
    }
}

/* GIF Placeholder Styles */
.gif-placeholder {
    background: linear-gradient(135deg, rgba(87, 173, 198, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    border: 2px dashed rgba(87, 173, 198, 0.3);
    border-radius: 15px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 300px;
    position: relative;
    transition: all 0.3s ease;
    will-change: transform;
}

.gif-placeholder:hover {
    background: linear-gradient(135deg, rgba(87, 173, 198, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-color: rgba(87, 173, 198, 0.5);
    transform: scale(1.02);
}

/* Lazy loading image/video optimization */
.gif-placeholder img,
.gif-placeholder video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gif-placeholder img.loaded,
.gif-placeholder video.loaded {
    opacity: 1;
}

/* Native lazy loading support */
img[loading="lazy"],
video[loading="lazy"] {
    content-visibility: auto;
}

.gif-placeholder i {
    font-size: 64px;
    background-image: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.gif-placeholder p {
    font-size: 20px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.gif-placeholder .gif-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    background-color: rgba(87, 173, 198, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

/* Hero GIF */
.hero-gif {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

/* Service GIF */
.service-gif {
    margin: 30px 0;
    min-height: 250px;
}

/* Features GIF */
.features-gif {
    margin: 40px auto 60px;
    max-width: 900px;
    min-height: 400px;
}

/* Features Video Container */
.features-video-container {
    margin: 40px auto 60px;
    max-width: 1000px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-video {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .gif-placeholder {
        padding: 40px 20px;
        min-height: 200px;
    }
    
    .gif-placeholder i {
        font-size: 48px;
    }
    
    .gif-placeholder p {
        font-size: 16px;
    }
    
    .features-gif {
        min-height: 250px;
    }
    
    .features-video-container {
        margin: 30px auto 40px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(87, 173, 198, 0.4);
}

.scroll-to-top svg {
    color: white;
    pointer-events: none;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}