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

:root {
    --primary-color: #00BDF7;
    --secondary-color: #0693e3;
    --accent-color: #5DADE2;
    --light-blue: #AED6F1;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #00d084;
    --warning-color: #fcb900;
    --gradient-primary: linear-gradient(135deg, #00BDF7 0%, #0693e3 100%);
    --gradient-light: linear-gradient(135deg, #AED6F1 0%, #5DADE2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.logo h2 {
    color: var(--primary-color);
    margin: 0;
}

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

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-nav:hover {
    background: var(--secondary-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Simplified dropdown approach */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 150px;
    z-index: 9999;
    display: none; /* Start hidden */
}

.dropdown-menu.show {
    display: block !important; /* Show when .show class is added */
}

.dropdown.active .dropdown-menu {
    display: block !important; /* Fallback for active class */
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color) !important;
    font-weight: 500;
    background: transparent !important;
    border-radius: 0 !important;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--background-light) !important;
    color: var(--primary-color) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    /*filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));*/
    object-fit: contain;
}

/* App Showcase Section */
.app-showcase img {
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    border-radius: 10px;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--background-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
    background: var(--background-light);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

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

.feature {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    background: var(--background-light);
}

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

.faq-item {
    background: white;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    cursor: pointer;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.6;
}

/* Download Section */
.download {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
    margin-bottom: 1rem;
}

.download p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

.download-btn img {
    height: 40px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
}

.contact-item a {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Form Styles */
.contact-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

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

/* Form validation and message styles */
.form-messages {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
    animation: slideDown 0.3s ease;
}

.form-messages.success-message,
.form-messages.error-message {
    display: block;
}

.form-messages .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 5px;
}

.form-messages .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
}

.form-messages ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.form-messages li {
    margin: 0.25rem 0;
}

/* Individual field error messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

/* Submit button loading state */
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#btnLoader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

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

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

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

.social-links a:hover {
    background: rgba(255,255,255,0.2);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 100%;
        width: auto;
        height: auto;
    }
    
    .app-showcase > .container > div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .app-showcase img {
        margin: 2rem auto;
    }
    
    .download-content {
        grid-template-columns: 1fr !important;
    }
    
    .download-content h2,
    .download-content p {
        text-align: center !important;
    }
    
    .download-buttons {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-menu {
        position: static !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        background: white !important;
        margin: 0.5rem 0 !important;
        border-radius: 5px !important;
        right: auto !important;
        top: auto !important;
        min-width: 100% !important;
        display: none; /* Initially hidden */
    }
    
    .dropdown-menu.show {
        display: block !important; /* Show when .show class is added */
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Page specific headers */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background: var(--background-light);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.breadcrumb li::after {
    content: ">";
    margin-left: 1rem;
    color: var(--text-light);
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: var(--primary-color);
}

/* Content pages */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-wrapper p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}