/* Contact Page Styles */

/* Global overflow prevention */
* {
    box-sizing: border-box;
}

/* Header Layout Fixes - Ensure proper responsive behavior */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
}

/* Ensure logo is properly positioned */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Desktop navigation styles */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Ensure desktop navigation is always visible on desktop */
@media (min-width: 769px) {
    .nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.nav a {
    color: #0a1128;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #3b82f6;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

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

.contact-btn {
    background: #3b82f6;
    color: white !important;
    padding: 9px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    font-size: 14px;
    border-radius: 52px;
}

.contact-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.contact-btn::after {
    display: none;
}

/* Ensure proper scrolling on contact page */
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
}

/* Force remove any potential scroll locks */
body:not(.menu-open) {
    overflow: auto !important;
}

/* Mobile menu behavior is handled by style.css */

/* Header styles are handled by style.css - only contact-specific overrides here */

/* Add padding for fixed header */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* Mobile Responsive Styles - Contact Specific Only */
@media (max-width: 768px) {
    /* Contact Hero Mobile Styles */
    .contact-hero {
        padding: 120px 0 80px;
    }
    
    .contact-hero h1 {
        font-size: 36px;
        line-height: 1.3;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    /* Contact Form Mobile Styles */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .btn.btn-primary {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero p {
        font-size: 15px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Header scroll behavior is handled by style.css */

/* Ensure page has enough height to be scrollable */
.contact-hero,
.contact-form-section,
.faq-section {
    min-height: fit-content;
    position: relative;
}

/* Body scroll behavior for mobile menu is handled by style.css */

/* Ensure main sections are properly positioned */
main,
.main-content {
    position: relative;
    min-height: 100vh;
}

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(59, 130, 246, 0.4) 100%);
    background-image: url('pexels-hcdigital-3619870.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 160px 0 120px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.8) 0%, rgba(59, 130, 246, 0.4) 50%, rgba(139, 92, 246, 0.3) 100%);
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 500;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 18px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.contact-form-section {
    background-color: #f8fafc;
    padding: 100px 0;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(59,130,246,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-dots)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Contact Information */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-info-header {
    margin-bottom: 40px;
}

.contact-info-header h2 {
    font-size: 32px;
    color: #0a1128;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-info-header p {
    font-size: 16px;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contact-method:hover {
    background: #f1f5f9;
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-method-icon {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

.contact-method-content h3 {
    font-size: 18px;
    color: #0a1128;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.contact-method-content p {
    font-size: 16px;
    color: #3b82f6;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.contact-method-content span {
    font-size: 14px;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

.social-links {
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding-top: 30px;
}

.social-links h3 {
    font-size: 18px;
    color: #0a1128;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    color: #0a1128;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.form-group.focused label {
    color: #3b82f6;
    transform: translateY(-2px);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    background: white;
    color: #0a1128;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

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

.btn.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: auto;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 100px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-header h2 {
    font-size: 36px;
    color: #0a1128;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    margin: 15px 0;
    line-height: 1.3;
}

.faq-header p {
    font-size: 18px;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f1f5f9;
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

.faq-question {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 18px;
    color: #0a1128;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    color: #3b82f6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.faq-answer p {
    font-size: 16px;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 60px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .contact-hero {
        padding: 100px 0 60px;
        background-attachment: scroll;
        background-position: center center;
    }
    
    .contact-hero-content {
        padding: 0 20px;
        margin-top: 40px;
    }
    
    .contact-hero h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .contact-hero p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Contact Form Section Mobile */
    .contact-form-section {
        padding: 50px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 25px;
        border-radius: 16px;
    }
    
    .contact-info-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .contact-info-header h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .contact-info-header p {
        font-size: 15px;
    }
    
    /* Contact Methods Mobile */
    .contact-methods {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .contact-method {
        padding: 16px;
        gap: 14px;
        border-radius: 12px;
    }
    
    .contact-method-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .contact-method-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .contact-method-content p {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .contact-method-content span {
        font-size: 13px;
    }
    
    /* Social Links Mobile */
    .social-links {
        padding-top: 25px;
        text-align: center;
    }
    
    .social-links h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 25px;
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .btn.btn-primary {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 10px;
        width: 100%;
    }
    
    /* FAQ Section Mobile */
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .faq-header h2 {
        font-size: 26px;
        margin: 12px 0;
    }
    
    .faq-header p {
        font-size: 15px;
    }
    
    .faq-grid {
        padding: 0 20px;
        gap: 16px;
    }
    
    .faq-question {
        padding: 18px;
    }
    
    .faq-question h3 {
        font-size: 15px;
        padding-right: 15px;
    }
    
    .faq-answer {
        padding: 0 18px 18px 18px;
    }
    
    .faq-answer p {
        font-size: 14px;
    }
    
    /* Container adjustments for mobile */
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Prevent horizontal overflow on all sections */
    .contact-hero,
    .contact-form-section,
    .faq-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure all content stays within viewport */
    .contact-grid,
    .contact-info,
    .contact-form-container,
    .faq-grid,
    .faq-item {
        width: 105%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    /* Hero Section Small Mobile */
    .contact-hero {
        padding: 80px 0 50px;
    }
    
    .contact-hero h1 {
        font-size: 26px;
        line-height: 1.4;
    }
    
    .contact-hero p {
        font-size: 15px;
    }
    
    /* Contact Form Section Small Mobile */
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-grid {
        gap: 25px;
        padding: 0 15px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .contact-info-header {
        margin-bottom: 25px;
    }
    
    .contact-info-header h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .contact-info-header p {
        font-size: 14px;
    }
    
    /* Contact Methods Small Mobile */
    .contact-methods {
        gap: 14px;
        margin-bottom: 25px;
    }
    
    .contact-method {
        padding: 14px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .contact-method-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .contact-method-content h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .contact-method-content p {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .contact-method-content span {
        font-size: 12px;
    }
    
    /* Social Links Small Mobile */
    .social-links {
        padding-top: 20px;
    }
    
    .social-links h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    /* Contact Form Small Mobile */
    .contact-form {
        gap: 14px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* FAQ Section Small Mobile */
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .faq-header h2 {
        font-size: 22px;
        margin: 10px 0;
    }
    
    .faq-header p {
        font-size: 14px;
    }
    
    .faq-grid {
        padding: 0 15px;
        gap: 14px;
    }
    
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h3 {
        font-size: 14px;
        padding-right: 12px;
    }
    
    .faq-answer {
        padding: 0 16px 16px 16px;
    }
    
    .faq-answer p {
        font-size: 13px;
    }
    
    /* Container adjustments for small mobile */
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Additional overflow prevention for small screens */
    .contact-grid {
        padding: 0 10px;
    }
    
    .contact-info,
    .contact-form-container {
        width: 105%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Loading Spinner Animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Form Message Styles */
.form-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

.form-message.success {
    background: #10b981;
    color: white;
}

.form-message.error {
    background: #ef4444;
    color: white;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message-content svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.message-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.lang-btn:hover {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}

.lang-btn.active {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.lang-separator {
    color: #d1d5db;
    font-weight: 300;
}

/* Mobile Navigation Fixes for Contact Page */
.mobile-nav-overlay {
    z-index: 100000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Ensure proper mobile positioning */
    box-sizing: border-box;
}

/* Ensure mobile nav overlay is properly hidden on desktop */
@media (min-width: 769px) {
    .mobile-nav-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Mobile-specific overlay styles */
@media (max-width: 768px) {
    .mobile-nav-overlay {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    .mobile-nav-overlay.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 100000 !important;
        background: rgba(255, 255, 255, 1) !important;
    }
    
    /* Ensure mobile navigation is properly styled */
    .mobile-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        text-align: center !important;
        position: relative !important;
        z-index: 100001 !important;
    }
    
    .mobile-nav a {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        color: #0a1128 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        padding: 10px 0 !important;
        cursor: pointer !important;
        display: block !important;
    }
    
    .mobile-nav a:hover {
        color: #3b82f6 !important;
        transform: translateY(-2px) !important;
    }
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    z-index: 100000 !important;
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

/* Ensure hamburger menu is completely hidden on desktop */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0a1128;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Ensure mobile nav is visible */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 100001;
}

.mobile-nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #0a1128;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    cursor: pointer;
    display: block;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-lang-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-align: center;
}

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

.mobile-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #3b82f6;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    color: #3b82f6;
    border-radius: 9999px;
}

.mobile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-lang-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Responsive Header Behavior - Ensure proper desktop/mobile display */
@media (min-width: 769px) {
    /* Desktop styles - hide mobile elements */
    .hamburger-menu {
        display: none !important;
    }
    
    .mobile-nav-overlay {
        display: none !important;
    }
    
    /* Ensure desktop navigation is visible */
    .nav {
        display: flex !important;
    }
    
    /* Ensure mobile nav is completely hidden on desktop */
    .mobile-nav-overlay.active {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 768px) {
    /* Mobile styles - show mobile elements */
    .hamburger-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Hide desktop navigation on mobile */
    .nav {
        display: none !important;
    }
    
    /* Ensure mobile nav overlay is properly positioned on mobile */
    .mobile-nav-overlay {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 100000 !important;
        background: rgba(255, 255, 255, 1) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    /* Show mobile navigation overlay when active */
    .mobile-nav-overlay.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Ensure mobile navigation is properly styled */
    .mobile-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        text-align: center !important;
        position: relative !important;
        z-index: 100001 !important;
    }
    
    .mobile-nav a {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        color: #0a1128 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        padding: 10px 0 !important;
        cursor: pointer !important;
        display: block !important;
    }
    
    .mobile-nav a:hover {
        color: #3b82f6 !important;
        transform: translateY(-2px) !important;
    }
}
