* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: white;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

header {
    padding: 0.5rem 2rem 0.5rem;
    display: flex;
    justify-content: center; /* Center the logo container */
    align-items: center;
    position: relative; /* Position for absolute elements inside */
    width: 100%;
    background: white; /* Add background to prevent content showing through */
    z-index: 20; /* Higher z-index than sections */
}

.logo-container {
    text-align: center;
    max-width: 300px; /* Control maximum width */
    width: 100%; /* Fill available space */
}

/* Language selector styles - keep it absolute */
.language-selector {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.language-btn {
    background: none;
    border: 1px solid rgba(94, 46, 201, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #5e2ec9;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-btn:hover, .language-btn.active {
    background: rgba(94, 46, 201, 0.1);
    border-color: rgba(94, 46, 201, 0.4);
    transform: translateY(-2px);
}

.language-btn.active {
    background: rgba(94, 46, 201, 0.2);
    color: #5e2ec9;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 120px 0 0px 0; 
    margin-bottom: 60px; 
}

.section {
    position: absolute;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem 0px 2rem; /* Reduced padding at bottom */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    top: 10px;
    bottom: 60px; /* Fixed distance from bottom to make room for footer */
    max-height: none; /* Remove the fixed height constraint that was causing issues */
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 0; /* Removed top margin */
    margin-bottom: 2rem;
    color: #555;
    max-width: 600px;
    text-align: center;
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, #5e2ec9, #7341db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.nav-item {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(94, 46, 201, 0.2);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #5e2ec9;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.nav-item:hover, .nav-item.active {
    background: rgba(94, 46, 201, 0.1);
    border-color: rgba(94, 46, 201, 0.4);
    box-shadow: 0 3px 8px rgba(94, 46, 201, 0.1);
    transform: translateY(-2px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    background-color: #ffffff;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(94, 46, 201, 0.08);
}

.feature-icon {
    margin-right: 1rem;
    background: rgba(94, 46, 201, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: #5e2ec9;
    font-size: 1.3rem;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.9rem;
    color: #666;
}

.comparison {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.comparison-column {
    flex: 1;
}

.comparison-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 8px;
}

.comparison-title i {
    margin-right: 0.5rem;
}

.comparison-item {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.comparison-item:hover {
    transform: translateY(-2px);
}

.traditional .comparison-title {
    color: white;
    background-color: #dc9083;
}

.omia .comparison-title {
    color: white;
    background-color: #5e2ec9;
}

.traditional .comparison-item {
    border-left: 3px solid #dc9083;
}

.omia .comparison-item {
    border-left: 3px solid #5e2ec9;
}

.stat-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    width: 28%;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5e2ec9, #7341db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #5e2ec9, #7341db);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(94, 46, 201, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94, 46, 201, 0.3);
}

.back-btn {
    background: none;
    border: none;
    color: #5e2ec9;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 1.5rem auto; /* Reduced margin */
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    position: relative; /* Ensure proper stacking */
    z-index: 5;
}

footer {
    text-align: center;
    padding: 1rem; /* Reduced padding */
    font-size: 0.8rem;
    color: #888;
    width: 100%;
    position: fixed; /* Fix to bottom of viewport */
    bottom: 0;
    left: 0;
    z-index: 15;
    background: white;
    box-shadow: 0 -2px 5px -2px rgba(0,0,0,0.1); /* Lighter shadow */
    height: 60px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(94, 46, 201, 0.2);
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: rgba(94, 46, 201, 0.5);
    box-shadow: 0 0 0 2px rgba(94, 46, 201, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Add this to the existing code to display error/success messages */
.message {
    padding: 10px 15px;
    margin-bottom: 1rem;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    visibility: hidden;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

/* Human verification modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #5e2ec9, #7341db);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    align-items: center; /* Changed from stretch to center */
    justify-content: center;
    gap: 1rem;
}

.modal-footer .contact-btn,
.modal-footer .cancel-btn {
    height: 48px; /* Set exact height */
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0 1.5rem; /* Changed from 1rem 1.5rem to adjust vertical padding */
    border-radius: 50px;
    margin: 0;
}

.modal-footer .cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #eeeeee;
    color: #333;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Updated success message styles */
.success-message {
    display: none;
    background-color: #f0f7f0;
    border-left: 4px solid #5cb85c;
    color: #3c763d;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    max-width: 400px;
    width: 100%;
    visibility: hidden; /* Keep hidden by default */
}

.success-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.success-message i {
    color: #5cb85c;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.success-message h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.success-message p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .comparison {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-item {
        padding: 0.6rem 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1.2rem;
    }
    
    .stat-item {
        width: 30%;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .logo {
        width: 200px;
    }
    
    .stat-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .language-selector {
        top: 1rem;
        right: 1rem;
    }
    
    .language-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 360px) {
    /* Extra small screens */
    .logo-container {
        max-width: 180px; /* Even smaller */
    }
    
    .language-selector {
        top: 0.5rem;
        right: 0.5rem;
    }
}

.logo {
    max-width: 340px; /* Changed from fixed width to max-width */
    width: 100%; /* Make it responsive */
    margin-bottom: -80px;
    height: auto; /* Maintain aspect ratio */
}

/* Update the main container styles */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Change from center to flex-start */
    position: relative;
    padding: 0px 0 10px 0; /* Add top padding to account for header */
    margin-bottom: 10px; /* Add bottom margin to account for fixed footer */
}

/* Update the section positioning */
.section {
    position: absolute;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem 60px 2rem; /* Reduced padding at bottom */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    top: 30px;
    bottom: 60px; /* Fixed distance from bottom to make room for footer */
    max-height: none; /* Remove the fixed height constraint that was causing issues */
}

@media (max-height: 700px) {
    main {
        padding-top: 100px; /* Less padding on short screens */
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .intro-text {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .section {
        top: 20px;
    }
}

@media (max-height: 500px) {
    header {
        padding: 0.8rem 1rem 0.5rem;
    }
    
    .logo-container {
        max-width: 180px; /* Smaller logo on very short screens */
    }
    
    main {
        padding-top: 80px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .section {
        padding-top: 0;
        top: 10px;
    }
}

@media (max-height: 600px) {
    .section {
        padding-top: 0;
        padding-bottom: 60px;
        bottom: 60px; /* Less space reserved for footer on small screens */
    }
    
    footer {
        height: 50px; /* Smaller footer height */
        padding: 0.8rem;
    }
    
    main {
        margin-bottom: 50px; /* Match footer height */
        padding-top: 80px; /* Less top padding */
    }
    
    .back-btn {
        margin: 1rem auto;
    }
}