/* Logo Styling for 1536x1024 dimensions (3:2 aspect ratio) */
.header-logo img {
    max-height: 70px;
    width: auto;
    height: auto;
}

/* Responsive logo adjustments */
@media (max-width: 991px) {
    .header-logo img {
        max-height: 70px;
    }
}

@media (max-width: 575px) {
    .header-logo img {
        max-height: 70px;
    }
}

/* Footer logo styling */
footer .header-logo img,
footer img[alt*="logo"],
footer img[src*="logo"] {
    max-height: 90px;
    width: auto;
    height: auto;
}

/* Ensure logo maintains aspect ratio */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo a {
    display: inline-block;
    line-height: 1;
}

/* Off-canvas logo styling */
#offCanvasLogo img {
    max-height: 90px;
    width: auto;
    height: auto;
}
/* Newsletter Form Fixes */
#newsletterForm .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
}

#newsletterForm .btn span {
    display: inline-block;
    transition: all 0.3s ease;
}

#newsletterForm .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert styling improvements */
#newsletterSuccess,
#newsletterError {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* Form spacing */
#newsletterForm .form-group {
    margin-bottom: 15px;
}

/* Button hover effects */
#newsletterForm .btn-swap-1:hover span {
    transform: translateX(-2px);
}

/* Responsive newsletter form */
@media (max-width: 767px) {
    #newsletterForm .btn {
        width: 100%;
        text-align: center;
    }
}/* 
Contact Form Success/Error Messages */
#contactSuccess,
#contactError {
    animation: slideInDown 0.5s ease-out;
    border-left: 4px solid;
    font-weight: 500;
}

#contactSuccess {
    border-left-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

#contactError {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

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

/* Contact form improvements */
.contact-form {
    position: relative;
}

.contact-form .alert {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Contact section scroll padding */
#contact {
    scroll-margin-top: 100px;
}

/* Contact form submit button loading state */
.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form .btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form field focus improvements */
.contact-form .form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Alert positioning */
.contact-form .alert {
    position: sticky;
    top: 20px;
    z-index: 1000;
}

/* Form submission visual feedback */
.contact-form.submitting {
    opacity: 0.8;
    pointer-events: none;
}

.contact-form.submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success message highlight */
#contactSuccess {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    border-radius: 8px;
}

#contactError {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border-radius: 8px;
}

/* Smooth transitions for alerts */
.alert {
    transition: all 0.3s ease;
}

/* Focus ring for better accessibility */
.contact-form .form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}
/* C
ontact form loader overlay */
.contact-form.submitting::after {
    content: 'Sending your message...';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-radius: 8px;
}

/* Spinner animation for submit button */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Form field validation states */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert strong {
    font-weight: 600;
}

/* Success alert animation */
#contactSuccess {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
    animation: slideInDown 0.6s ease-out, pulse 2s ease-in-out;
}

/* Error alert animation */
#contactError {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
    animation: slideInDown 0.6s ease-out, shake 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile Menu Navigation Fixes */
.offcanvas {
    z-index: 1055;
}

/* Prevent scroll jump when offcanvas closes */
body.modal-open {
    overflow: hidden;
}

/* Smooth scroll behavior for hash links */
html {
    scroll-behavior: smooth;
}

/* Ensure sections have proper scroll margin for mobile */
@media (max-width: 991px) {
    section[id], 
    div[id] {
        scroll-margin-top: 80px;
    }
}

/* Off-canvas navigation styling */
.offcanvas-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.offcanvas-nav .nav-link:hover {
    color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.1);
    padding-left: 10px;
}

.offcanvas-nav .nav-link:last-child {
    border-bottom: none;
}

/* Offcanvas header styling */
.offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 20px;
}

.offcanvas-body {
    padding: 20px;
}

/* Mobile menu button styling */
.header-btn-collapse-nav {
    border: none;
    background: transparent;
    color: #333;
    font-size: 18px;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-btn-collapse-nav:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

/* Prevent body scroll when offcanvas is open */
body.offcanvas-open {
    overflow: hidden;
}

/* Mobile navigation menu specific styling */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-menu li {
    margin: 0;
    padding: 0;
}

.mobile-nav-menu .nav-link {
    display: block;
    color: #333 !important;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.mobile-nav-menu .nav-link:hover {
    color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.1);
    padding-left: 10px;
    transform: translateX(5px);
}

.mobile-nav-menu .nav-link:last-child {
    border-bottom: none;
}

/* Hide any desktop navigation elements in offcanvas */
.offcanvas .header-nav,
.offcanvas .nav-pills,
.offcanvas #mainNav {
    display: none !important;
}

/* Ensure only mobile navigation shows in offcanvas */
.offcanvas-nav > *:not(.mobile-nav-menu) {
    display: none;
}