/* ===================================
   MARUT EDGE - Premium Landing Page Styles
   Created for Gujarat Govt Primary Schools
   =================================== */

/* Custom CSS Variables for consistent theming */
:root {
    /* Primary Colors */
    --color-1: #2c3e50; /* Dark Navy Blue */
    --color-2: #3498db; /* Bright Blue */
    --color-3: #e74c3c; /* Accent Red */
    --color-4: #27ae60; /* Success Green */
    --color-5: #f39c12; /* Warning/Highlight */
    
    /* Text Colors */
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    
    /* Background Colors */
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, var(--color-1) 0%, var(--color-2) 100%);
    
    /* Spacing & Layout */
    --section-padding: 5rem 0;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    
    /* Font Sizes */
    --font-size-xl: 4.5rem;
    --font-size-lg: 3rem;
    --font-size-md: 2rem;
    --font-size-sm: 1.1rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle Button */
.language-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.lang-btn:hover {
    background: var(--light-bg);
    color: var(--color-2);
}

.lang-btn.active {
    background: var(--color-2);
    color: var(--white);
    border-color: var(--color-2);
}

/* Section Styling */
.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: block; /* Changed from inline-block to block for better centering control */
    font-size: var(--font-size-md);
    color: var(--color-1);
    margin-left: auto;
    margin-right: auto;
    /* Removed the transform translate hack for better alignment */
}

.section-dark .section-title {
    color: var(--text-light);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--color-2);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important; /* Force white in dark sections */
}

/* ===================================
   HERO SECTION WITH LOGIN
   =================================== */
.hero-section {
    position: relative;
    background: var(--gradient-bg);
    color: var(--text-light);
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease;
}

.brand-name {
    font-weight: 800;
    font-size: var(--font-size-xl);
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--color-4);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: #219150;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
    color: #fff;
}

.btn-hero-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: #fff;
    color: var(--color-1);
    transform: translateY(-3px);
}

/* Offer Badge in Hero (Updated for inline position) */
.hero-offer-badge {
    display: inline-block;
    margin-bottom: 1rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ff00cc, #333399);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    animation: bounceInSmall 1s ease;
}

.hero-offer-badge:hover {
    transform: scale(1.05);
}

@keyframes bounceInSmall {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

/* Login Form Container */
.login-container {
    animation: fadeInRight 0.8s ease;
}

.login-form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
    max-width: 450px;
    margin-left: auto;
    /* Removed max-height to prevent cutting off content */
    height: auto;
}

.login-header {
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-2) 100%);
    color: var(--text-light);
    padding: 0.8rem 1rem; /* Reduced padding for compactness */
    text-align: center;
}

.login-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.login-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.login-form-body {
    padding: 1rem 1.2rem; /* Adjusted padding */
}

.form-group {
    margin-bottom: 0.9rem; /* Reduced from 1.5rem for compact look */
}

/* Input Group Styles */
.input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--color-2);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-icon {
    padding: 0 12px;
    color: var(--text-muted);
    background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #e9ecef;
    font-size: 1rem;
    min-height: 45px; /* Match input height */
    justify-content: center;
    min-width: 45px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: none !important; /* Remove individual border */
    border-radius: 0 !important; /* Remove individual radius */
    font-size: 0.9rem;
    background: var(--white);
    box-shadow: none !important; /* Remove focus shadow */
}

.form-control:focus {
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    padding: 12px; /* Compact button */
    background: var(--color-2);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Demo Login Section */
.demo-login-section {
    border-top: 1px solid #e9ecef;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    background: rgba(248, 249, 250, 0.9);
}

.demo-header {
    text-align: center;
    margin-bottom: 0.6rem;
}

.demo-header small {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

.demo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.demo-buttons .btn-full {
    grid-column: 1 / -1;
}

.demo-btn {
    padding: 8px 10px;
    border: 2px solid;
    border-radius: 6px;
    background: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.demo-btn i {
    font-size: 0.9em;
}

.demo-status {
    text-align: center;
    padding: 10px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 6px;
    display: none;
}

.demo-status small {
    color: var(--color-4);
    font-weight: 600;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--color-2);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-2) 0%, #5dade2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-4);
    font-weight: 700;
}

/* ===================================
   REVISED PRICING SECTION
   =================================== */
.pricing-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--light-bg) 0%, #e8f4f8 100%);
}

.pricing-unified-container {
    max-width: 900px;
    margin: 0 auto;
}

.pricing-unified-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
}

.pricing-unified-header {
    background: var(--gradient-bg);
    padding: 2.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-unified-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-icon {
    font-size: 3.5rem;
    opacity: 0.2;
}

.pricing-body {
    padding: 2.5rem;
}

/* Pricing Timeline */
.pricing-timeline-wrapper h4 {
    color: var(--color-1);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.pricing-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    border-color: var(--color-2);
}

.timeline-date {
    font-weight: 600;
    color: var(--color-1);
}

.timeline-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-2);
}

/* Offer Box inside Pricing */
.pricing-offer-box {
    background: linear-gradient(45deg, #fff0f5, #f5f0ff);
    border: 2px dashed #ff69b4;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.offer-title {
    color: #c71585;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.offer-code {
    background: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    border: 1px solid #ccc;
    display: inline-block;
    margin-top: 5px;
}

.pricing-benefits {
    margin-bottom: 2.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.benefits-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.benefits-grid i {
    color: var(--color-4);
}

.pricing-btn-large {
    width: 100%;
    padding: 18px;
    background: var(--color-2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.pricing-btn-large:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

/* ===================================
   REVIEWS SECTION
   =================================== */
.reviews-section {
    padding: var(--section-padding);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviewer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-2);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.reviewer-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 0.2rem;
}

.reviewer-info small {
    color: var(--text-muted);
    font-weight: 500;
}

.school-name {
    color: var(--color-2);
    font-weight: 600;
    font-size: 0.9rem;
}

.review-rating {
    color: var(--color-5);
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   BLOG SECTION
   =================================== */
.blog-section {
    padding: var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    color: var(--color-2);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--color-1);
    transform: translateX(5px);
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    padding: var(--section-padding);
    background: var(--gradient-bg);
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===================================
   DEVELOPER SECTION
   =================================== */
.developer-section {
    padding: var(--section-padding);
    text-align: center;
}

.developer-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensure center alignment */
}

.developer-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-2);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    margin-bottom: 1.5rem;
}

.developer-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 0.5rem;
}

.developer-education {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.developer-quote {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
    border-left: 4px solid var(--color-2);
    padding-left: 1.5rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: var(--section-padding);
}

.contact-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}

.contact-icon {
    font-size: 4rem;
    color: var(--color-2);
    margin-bottom: 1.5rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--color-2);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-1);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    border-top: 5px solid var(--color-2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 5px 10px;
}

.footer-links a:hover {
    color: var(--color-2);
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 1rem;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    :root {
        --section-padding: 4rem 0;
        --font-size-xl: 3.5rem;
        --font-size-lg: 2.5rem;
    }

    .hero-section {
        height: auto;       /* Allow height to grow */
        min-height: 100vh;  /* At least full screen */
        padding-bottom: 4rem; /* Space at bottom */
        overflow: visible;    /* Allow content to flow */
        display: block; /* Remove flex constraint to avoid cutting top/bottom */
        padding-top: 8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text {
        order: 2;
    }

    .login-container {
        order: 1;
    }

    .login-form-wrapper {
        margin: 0 auto 2rem auto;
        max-width: 400px; /* Limit width on tablets */
    }

    .language-toggle {
        top: 10px;
        right: 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .features-grid,
    .pricing-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 3rem 0;
        --font-size-xl: 2.5rem;
        --font-size-lg: 2rem;
        --font-size-md: 1.5rem;
    }

    .hero-section {
        padding-top: 120px; /* More space for top nav */
        padding-bottom: 100px; /* Space for bottom elements */
    }

    .brand-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-header h3 {
        font-size: 1.3rem;
    }

    .demo-buttons {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }

    .feature-card,
    .pricing-card,
    .review-card,
    .blog-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .developer-card,
    .contact-card {
        padding: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .language-toggle {
        width: max-content; /* Prevent full width */
        max-width: 90vw;    /* Safety margin */
        left: 50%;          /* Center horizontally */
        right: auto;        /* Reset right alignment */
        transform: translateX(-50%); /* Center align */
        bottom: 15px;       /* Bottom spacing */
        top: auto;          /* Reset top from tablet styles */
        padding: 8px 12px;
        justify-content: center;
    }

    .lang-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s ease-in-out infinite;
}

/* Success State */
.form-success {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid var(--color-4);
    color: var(--color-4);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    display: none;
}

/* Print Styles */
@media print {
    .language-toggle,
    .hero-section,
    .login-container {
        display: none;
    }
}