/* Neotech AI - Main Stylesheet */

:root {
    --primary-color: #1653A7;
    --primary-dark: #0F3A6B;
    --secondary-color: #FF6B35;
    --accent-color: #4CAF50;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', 'Kanit', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.thai-text {
    font-family: 'Kanit', 'Inter', sans-serif;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-white);
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.language-toggle button {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.language-toggle button.active {
    background: var(--primary-color);
    color: white;
}

.language-toggle button:not(.active) {
    color: var(--text-secondary);
}

.language-toggle button:hover:not(.active) {
    background: var(--bg-light);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 0 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Mobile Navigation - Enhanced - VERTICAL DROPDOWN */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container - VERTICAL DROPDOWN */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 100vh;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
}

.mobile-menu-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 1rem 0;
}

/* Mobile Language Toggle */
.mobile-language-toggle {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-language-toggle h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-lang-buttons {
    display: flex;
    gap: 0.5rem;
}

.mobile-lang-buttons button {
    flex: 1;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-lang-buttons button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-lang-buttons button:not(.active) {
    color: var(--text-secondary);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    padding: 1rem 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

/* Mobile CTA Button */
.mobile-cta-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.mobile-cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mobile-cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: 'Kanit', Arial, sans-serif;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #fff;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-text {
    flex: 1;
    line-height: 1.4;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    margin-left: 8px;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}

/* Show mobile menu on mobile screens */
@media (max-width: 768px) {
    .language-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }
    
    /* Adjust mobile menu for smaller screens */
    .mobile-menu {
        max-height: 100vh;
    }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-language-toggle {
        padding: 0.75rem;
    }
    
    .mobile-nav-links a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .mobile-cta-container {
        padding: 1rem;
    }
    
    .mobile-cta-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Sections */
.section {
    padding: 5rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services - FIXED RESPONSIVE LAYOUT */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 520px; /* Ensures consistent minimum height */
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1; /* This allows the features to expand and push pricing to bottom */
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1rem;
}

/* Pricing section - Always at bottom */
.service-pricing {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Benefits */
.benefits {
    background: var(--bg-light);
}

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

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

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

.benefit-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-submit {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Language Content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Success Message */
.success-message {
    background: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card {
        min-height: 480px;
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .language-toggle {
        top: 85px;
        right: 15px;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        min-height: auto; /* Allow natural height on mobile */
        padding: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-features li {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    
    .service-price {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-step::after {
        display: none;
    }

    .contact-form {
        padding: 2rem;
        margin: 2rem auto 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .service-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .service-pricing {
        padding-top: 1rem;
    }
    
    .service-price {
        font-size: 1.4rem;
    }
    
    .service-price-note {
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 520px; /* Ensures consistent minimum height */
}

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-shrink: 0;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1; /* This allows the features to expand and push pricing to bottom */
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1rem;
}

/* Pricing section - Always at bottom */
.service-pricing {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.service-price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card {
        min-height: 480px;
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        min-height: auto; /* Allow natural height on mobile */
        padding: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-features li {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    
    .service-price {
        font-size: 1.6rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .service-pricing {
        padding-top: 1rem;
    }
    
    .service-price {
        font-size: 1.4rem;
    }
    
    .service-price-note {
        font-size: 0.8rem;
    }
}

/* Hide desktop elements and show mobile menu on tablet AND mobile */
@media (max-width: 1024px) {
    /* Hide desktop language toggle on tablet and mobile */
    .language-toggle {
        display: none;
    }

    /* Show mobile menu toggle on tablet and mobile */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop navigation on tablet and mobile */
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    /* Reset any special tablet positioning */
    .hero {
        padding: 7rem 2rem 5rem; /* Consistent padding for tablet */
    }
}

/* Tablet-specific adjustments (1024px down to 769px) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Slightly larger mobile menu for tablet */
    .mobile-menu {
        width: 320px; /* Wider menu for tablet */
        max-width: 90vw; /* Responsive width */
    }
    
    /* Larger touch targets for tablet */
    .mobile-nav-links a {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .mobile-lang-buttons button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .mobile-cta-button {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Larger menu header for tablet */
    .mobile-menu-header {
        padding: 2rem 1.5rem;
    }
    
    .mobile-menu-logo {
        font-size: 1.4rem;
    }
    
    .mobile-menu-close {
        font-size: 1.75rem;
        padding: 0.75rem;
    }
    
    /* More spacious language toggle section */
    .mobile-language-toggle {
        padding: 1.5rem;
    }
    
    .mobile-language-toggle h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Tablet hero section adjustments */
    .hero {
        padding: 8rem 2rem 6rem;
    }
    
    .hero h1 {
        font-size: clamp(2.8rem, 5vw, 3.5rem);
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

/* Mobile-specific adjustments (768px and below) */
@media (max-width: 768px) {
    /* Standard mobile menu width */
    .mobile-menu {
        width: 280px;
        max-width: 85vw;
    }
    
    /* Standard mobile sizing */
    .mobile-nav-links a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .mobile-lang-buttons button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .mobile-cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile hero section */
    .hero {
        padding: 6rem 1rem 4rem;
    }
    
    /* Mobile sections */
    .section {
        padding: 3rem 1rem;
    }
}

/* Small mobile adjustments (480px and below) */
@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        max-width: 95vw; /* Almost full width on very small screens */
    }
    
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-language-toggle {
        padding: 0.75rem;
    }
    
    .mobile-nav-links a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .mobile-cta-container {
        padding: 1rem;
    }
    
    .mobile-cta-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Navigation z-index management */
nav {
    z-index: 999;
}

.mobile-menu {
    z-index: 1001;
}

.mobile-menu-overlay {
    z-index: 1000;
}

/* Ensure mobile menu toggle is visible and properly styled on tablet */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
}

/* Tablet-specific mobile menu toggle styling */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-toggle {
        font-size: 1.75rem; /* Slightly larger for tablet */
        padding: 0.75rem;
    }
}