/* 
   Main Stylesheet for AI Assistant Management Platform
   Author: Manus AI
   Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Updated Typography Variables */
:root {
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Your existing color variables... */
    --primary-color: #0D3B66; /* Deep Blue */
    --primary-dark: #0A2E52; /* Slightly darker Deep Blue for hover/active states */
    --primary-light: #1A5C99; /* Slightly lighter Deep Blue */
    --secondary-color: #00B7C2; /* Vibrant Cyan */
    --accent-color: #00B7C2; /* Vibrant Cyan */
    --text-dark: white;
    --text-medium: rgba(255, 255, 255, 0.7);
    --text-light: rgba(255, 255, 255, 0.5);
    --background-light: hsl(0, 0%, 95.7%);
    --background-off: hsl(0, 0%, 98%);
    --background-dark: hsl(0, 0%, 20%);
    --border-color: hsl(0, 0%, 85%);
    --success-color: hsl(142, 76%, 36%);
    --error-color: hsl(0, 84%, 60%);
    --warning-color: hsl(38, 92%, 50%);
    
    /* Spacing, borders, shadows, transitions remain the same... */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Updated Base Typography Styles */
body {
    font-family: var(--body-font);
    font-weight: var(--font-regular);
    color: var(--text-dark);
    line-height: 1.6;
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: var(--font-bold);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.025em; /* Slight negative letter spacing for modern look*/
    color: white;
}

h1 {
    font-size: 2.5rem;
    font-weight: var(--font-extrabold);
    letter-spacing: -0.05em;
    
}

h2 {
    font-size: 2rem;
    font-weight: var(--font-bold);
}

h3 {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section Styles */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Header Styles ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: hsl(0, 0%, 95%); /* Light whitish background for better logo visibility */
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.scrolled {
    padding: var(--spacing-sm) 0;
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: black; /* Changed to black for visibility */
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-left: var(--spacing-xl); /* Add space between nav and auth buttons */
}

.header-social {
    display: flex;
    gap: var(--spacing-md);
    margin-left: auto; /* Push social media to the far right within its group */
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl); /* Space between nav, auth buttons, and social icons */
    margin-left: auto; /* Push the entire group to the far right */
}

.header-social a {
    width: 30px; /* Smaller size for header icons */
    height: 30px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-color); /* Use primary color for background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* White icons on primary background */
    transition: background-color var(--transition-fast);
    font-size: 0.9rem; /* Smaller icon size */
}

.header-social a:hover {
    background-color: var(--primary-dark); /* Darker primary on hover */
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem 0 5rem;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, var(--primary-color) 85%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0) 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 50%; /* Adjust to allow space for the image */
    padding-right: var(--spacing-xl); /* Add some space between text and image */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 100%; /* Ensure image doesn't exceed its container */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image is visible */
}

/* ===== Features Section ===== */
.features {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.feature-list li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-medium);
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== Analytics Section ===== */
.analytics {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.analytics-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

.analytics-image {
    flex: 1;
}

.analytics-features {
    flex: 1;
}

.analytics-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.analytics-feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.1);
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analytics-feature h3 {
    margin-bottom: var(--spacing-xs);
}

.analytics-feature p {
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ===== Pricing Section ===== */
.pricing {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-light);
    transition: var(--transition-normal);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-normal);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.discount {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    margin-left: var(--spacing-sm);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.pricing-card {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 400;
}

.pricing-features {
    margin-bottom: var(--spacing-xl);
}

.pricing-features ul li {
    margin-bottom: var(--spacing-md);
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features ul li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
}

.pricing-features ul li i.fa-check {
    color: var(--success-color);
}

.pricing-features ul li i.fa-times {
    color: var(--error-color);
}

.pricing-features ul li.disabled {
    color: var(--text-light);
}

.pricing-cta {
    text-align: center;
}

.enterprise-plan {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.enterprise-content h3 {
    margin-bottom: var(--spacing-xs);
}

.enterprise-content p {
    margin-bottom: 0;
    color: var(--text-medium);
}

/* ===== Additional Features Section ===== */
.additional-features {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.features-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-image {
    flex: 1;
}

.tab-info {
    flex: 1;
}

.tab-info h3 {
    margin-bottom: var(--spacing-md);
}

.tab-info p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-medium);
}

.tab-info ul li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tab-info ul li i {
    color: var(--success-color);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    padding: 0 var(--spacing-md);
}

.testimonial-content {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-icon i {
    color: white;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info p {
    margin-bottom: 0;
    color: var(--text-medium);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.prev-btn, .next-btn {
    background-color: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
    background-color: var(--text-light);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ===== CTA Section ===== */
.cta {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xxl) 0; /* Ensure consistent section padding */
}

.contact-content {
    display: flex;
    gap: var(--spacing-xxl);
    max-width: 1000px; /* Limit width for better readability */
    margin: 0 auto; /* Center the content */
    align-items: stretch; /* Ensure both columns stretch to the same height */
}

.contact-info, .contact-form {
    flex: 1;
    background-color: var(--primary-dark);
    padding: var(--spacing-xl); /* Add padding for internal spacing */
    border-radius: var(--border-radius-lg); /* Add border-radius for consistent styling */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    /* Removed background-color here as it's now on the parent .contact-info */
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.1);
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: var(--spacing-xs);
}

.contact-item p {
    color: var(--text-medium);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: var(--spacing-lg); /* Increased margin for better spacing between fields */
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: white; /* Ensure labels are white */
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid white; /* Changed border to white */
    border-radius: var(--border-radius-md);
    font-family: var(--body-font);
    transition: border-color var(--transition-fast);
    background-color: transparent; /* Ensure input fields are transparent */
    color: white; /* Ensure input text is white */
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl); /* Increased margin-top for better separation from fields */
    justify-content: flex-start; /* Ensure buttons are aligned to the start */
}

/* ===== Footer ===== */
footer {
    background: radial-gradient(circle at center, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}


/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tab-content.active {
        flex-direction: column;
    }
    
    .analytics-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-right-group { /* Hide the entire group on mobile */
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%; /* Allow content to take full width on small screens */
        padding-right: 0; /* Remove right padding on small screens */
        margin-bottom: var(--spacing-xl); /* Add space below content when stacked */
    }

    .hero-image {
        max-width: 80%; /* Adjust image width for better mobile display */
        justify-content: center; /* Center the image on small screens */
        margin-top: var(--spacing-xl); /* Add space above image when stacked */
    }
    
    .hero-content {
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .enterprise-plan {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: transparent;
    z-index: 1001;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-auth-buttons {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Adjustments for privacy and terms pages to clear fixed header */
.privacy, .terms, .page-section {
    padding-top: 5rem; /* Adjust as needed to clear the fixed header */
}
