/* Professional Navy Blue, Orange, White Color Scheme */
:root {
    --primary: #004A99;
    /* Navy Blue */
    --primary-light: #007BFF;
    /* Tech Blue */
    --primary-dark: #003366;
    /* Darker Navy */

    --accent: #FF9900;
    /* Vibrant Orange */
    --accent-light: #FFB347;
    /* Lighter Orange */

    --success: #10b981;
    /* Green unchanged */

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    --white: #ffffff;
    /* Pure White */

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Font */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: var(--gray-700);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Utility Classes */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-accent-light {
    background-color: var(--accent-light) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-primary-light {
    color: var(--primary-light) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-success {
    color: var(--success) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

/* Container with responsive padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Button Styles - Enhanced with Red Accent */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    font-size: 14px;
    text-align: center;
    justify-content: center;
    min-height: 44px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

@media (min-width: 768px) {
    .btn-primary {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 48px;
    }
}

@media (min-width: 1024px) {
    .btn-primary {
        padding: 16px 32px;
        font-size: 18px;
        min-height: 56px;
    }
}

.btn-primary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    min-height: 44px;
}

@media (min-width: 768px) {
    .btn-secondary {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 48px;
    }
}

@media (min-width: 1024px) {
    .btn-secondary {
        padding: 16px 32px;
        font-size: 18px;
        min-height: 56px;
    }
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    justify-content: center;
    min-height: 44px;
}

@media (min-width: 768px) {
    .btn-outline {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 48px;
    }
}

@media (min-width: 1024px) {
    .btn-outline {
        padding: 16px 32px;
        font-size: 18px;
        min-height: 56px;
    }
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

/* Navigation - Fixed for all pages */
.navbar-fixed {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar-fixed.navbar-hidden {
    transform: translateY(-100%);
}

nav .container>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0.75rem 0;
}

@media (min-width: 768px) {
    nav .container>div {
        min-height: 70px;
        padding: 1rem 0;
    }
}

/* Logo Section */
.flex.items-center.space-x-2,
.flex.items-center.space-x-3 {
    flex: 0 0 auto;
    margin-right: auto;
}

/* Menu Toggle - Always visible */
#menu-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 60;
}

/* Hamburger Lines - Static Button Style */
.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: none !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
}

#menu-toggle {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
}

#menu-toggle:hover .hamburger-line {
    background-color: var(--accent) !important;
}

#menu-toggle:focus,
#menu-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

#menu-toggle.active .hamburger-line {
    background-color: var(--accent) !important;
}

/* Unified Menu Styles - Fixed positioning */
.menu-link {
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.menu-link:last-of-type {
    border-bottom: none;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transition: width 0.3s ease;
    z-index: -1;
}

.menu-link:hover::before {
    width: 100%;
}

.menu-link:hover i {
    color: white !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Menu States */
#menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#unified-menu.active {
    transform: translateX(0);
}

/* Menu Responsiveness */
@media (min-width: 640px) {
    #unified-menu {
        width: 384px;
        /* 96 in Tailwind */
    }
}

@media (min-width: 768px) {
    #unified-menu {
        width: 400px;
    }
}

@media (min-width: 1024px) {
    #unified-menu {
        width: 450px;
    }
}

@media (max-width: 480px) {
    #unified-menu {
        width: 100%;
        max-width: 320px;
    }
}

/* Menu Header Gradient */
#unified-menu .bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* Enhanced Social Icons */
#unified-menu .social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

@media (min-width: 768px) {
    #unified-menu .social-icon {
        width: 44px;
        height: 44px;
    }
}

#unified-menu .social-icon:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.facebook-icon {
    background: #1877F2;
}

.twitter-icon {
    background: #1DA1F2;
}

.linkedin-icon {
    background: #0A66C2;
}

.instagram-icon {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

/* Slideshow Styles - Responsive */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .slideshow-container {
        height: 80vh;
    }
}

@media (min-width: 1024px) {
    .slideshow-container {
        height: 100vh;
    }
}

.mySlides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mySlides.active {
    opacity: 1;
    z-index: 10;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(30, 64, 175, 0.8) 0%,
            rgba(59, 130, 246, 0.6) 50%,
            rgba(220, 38, 38, 0.7) 100%);
    z-index: 10;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .slide-content {
        min-height: 80vh;
    }
}

@media (min-width: 1024px) {
    .slide-content {
        min-height: 100vh;
    }
}

/* Navigation arrows - Responsive */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 900;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    z-index: 25;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {

    .prev,
    .next {
        font-size: 2.5rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (min-width: 1024px) {

    .prev,
    .next {
        font-size: 3rem;
        padding: 1rem 1.5rem;
    }
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

@media (min-width: 768px) {
    .prev {
        left: 1.5rem;
    }

    .next {
        right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .prev {
        left: 2rem;
    }

    .next {
        right: 2rem;
    }
}

.prev:hover,
.next:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

/* Service Cards - Responsive */
.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
}

@media (min-width: 768px) {
    .service-card {
        padding: 2rem;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .service-card {
        padding: 2.5rem;
        border-radius: 24px;
    }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-12px);
    }
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .service-icon {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .service-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
        margin-bottom: 2rem;
    }
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: scale(1.1);
}

.service-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

@media (min-width: 768px) {
    .service-link {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .service-link {
        font-size: 18px;
    }
}

.service-link:hover {
    color: var(--primary);
}

/* Form Styles - Responsive */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--white);
    min-height: 44px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .form-input {
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 16px;
        min-height: 48px;
    }
}

@media (min-width: 1024px) {
    .form-input {
        min-height: 56px;
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Social Icons - Responsive */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

@media (min-width: 768px) {
    .social-icon {
        width: 48px;
        height: 48px;
    }
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Typography - Responsive */
h1 {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

@media (min-width: 640px) {
    h1 {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 5rem;
    }
}

@media (min-width: 1280px) {
    h1 {
        font-size: 6rem;
    }
}

h2 {
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 900;
}

@media (min-width: 640px) {
    h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    h2 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1280px) {
    h2 {
        font-size: 4rem;
    }
}

h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 800;
}

@media (min-width: 768px) {
    h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    h3 {
        font-size: 2rem;
    }
}

/* Back to Top Button - Responsive */
#back-to-top {
    position: fixed;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 12px;
}

@media (min-width: 768px) {
    #back-to-top {
        width: 56px;
        height: 56px;
        padding: 16px;
    }
}

@media (min-width: 1024px) {
    #back-to-top {
        width: 64px;
        height: 64px;
        padding: 20px;
    }
}

#back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
}

@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 12px;
    }
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .slideshow-container,
    #contact,
    footer,
    nav,
    #back-to-top,
    #unified-menu,
    #menu-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* About Section Visibility Fix */
#about {
    background: linear-gradient(135deg,
            rgba(30, 64, 175, 0.95) 0%,
            rgba(59, 130, 246, 0.85) 50%,
            rgba(29, 78, 216, 0.95) 100%) !important;
    color: #ffffff !important;
    padding: 4rem 0 !important;
    position: relative;
}

@media (min-width: 768px) {
    #about {
        padding: 5rem 0 !important;
    }
}

/* Ensure all text is visible */
#about * {
    color: white !important;
}

#about .fade-in-left h2,
#about .fade-in-right h3 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#about .fade-in-left p {
    color: #f3f4f6 !important;
    font-size: 1.125rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    #about .fade-in-left p {
        font-size: 1.25rem !important;
    }
}

/* Fix button visibility in about section */
#about .bg-red-600,
#about .btn-accent,
#about .btn-primary {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
}

#about .bg-red-600:hover,
#about .btn-accent:hover,
#about .btn-primary:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6) !important;
}

#about .border-2.border-white {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
    position: relative !important;
    z-index: 10 !important;
    text-shadow: none !important;
}

#about .border-2.border-white:hover {
    background-color: #ffffff !important;
    color: #1e40af !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* Mission card visibility */
#about .bg-gradient-to-br {
    background: linear-gradient(135deg, #2657dc 0%, #b91c1c 100%) !important;
    color: white !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
}

/* Ensure stat cards are visible */
#about .bg-white.bg-opacity-20 {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#about .bg-white.bg-opacity-20 .font-bold {
    color: #ffffff !important;
}

#about .bg-white.bg-opacity-20 .text-gray-200 {
    color: #e5e7eb !important;
}

/* Tag styling */
#about .bg-white.text-primary {
    background-color: #ffffff !important;
    color: #1e40af !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
}

/* Responsive spacing adjustments */
@media (max-width: 640px) {
    .space-x-2>*+* {
        margin-left: 0.5rem;
    }

    .space-x-3>*+* {
        margin-left: 0.5rem;
    }

    .gap-4 {
        gap: 1rem;
    }

    .gap-6 {
        gap: 1rem;
    }

    .gap-8 {
        gap: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .gap-4 {
        gap: 1rem;
    }

    .gap-6 {
        gap: 1.5rem;
    }

    .gap-8 {
        gap: 2rem;
    }
}

/* Ensure menu works on all screen sizes */
@media (max-width: 639px) {
    #unified-menu {
        width: 100vw;
        max-width: 100vw;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Fix overflow issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

#main-content {
    width: 100%;
    overflow-x: hidden;
}

/* Navbar hiding animation */
.navbar-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.navbar-fixed {
    transition: all 0.3s ease;
}

/* Fix toolbar overlapping issue */
#unified-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: 320px !important;
    max-width: 90vw !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
}

#unified-menu.active {
    transform: translateX(0) !important;
}

#menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

#menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Fix navbar positioning */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
}

/* Prevent horizontal scrolling */
html,
body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#main-content {
    padding-top: 70px !important;
}

/* Fix menu header spacing */
#unified-menu .bg-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem !important;
    min-height: 70px !important;
}

/* Ensure close button is visible and clickable */
#menu-close {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    z-index: 100000 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#menu-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

/* Fix scrollbar in menu */
#unified-menu::-webkit-scrollbar {
    width: 6px;
}

#unified-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#unified-menu::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

#unified-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Ensure menu content doesn't overlap */
#unified-menu .flex.flex-col.h-full {
    position: relative !important;
    height: 100vh !important;
    overflow-y: auto !important;
}

/* Fix responsive behavior */
@media (max-width: 480px) {
    #unified-menu {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* ===== RESPONSIVE ANIMATIONS FOR ALL SCREEN SIZES ===== */

/* Counter Animation - Responsive */
.count-up {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    animation-duration: clamp(1.5s, 3vw, 3s) !important;
}

/* Fade In Up Animation - Responsive */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, clamp(20px, 5vw, 40px), 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(clamp(-30px, -5vw, -50px), 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(clamp(30px, 5vw, 50px), 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp clamp(0.6s, 2vw, 1s) ease-out both;
}

.animate-fade-in-left {
    animation: fadeInLeft clamp(0.6s, 2vw, 1s) ease-out both;
}

.animate-fade-in-right {
    animation: fadeInRight clamp(0.6s, 2vw, 1s) ease-out both;
}

.animation-delay-200 {
    animation-delay: clamp(0.1s, 1vw, 0.2s);
}

/* Service Card Hover Animation - Responsive */
.service-card {
    transform: translateY(0);
    transition: all clamp(0.2s, 1vw, 0.3s) ease;
}

.service-card:hover {
    transform: translateY(clamp(-4px, -1vw, -12px));
}

.service-icon {
    transition: all clamp(0.2s, 1vw, 0.3s) ease;
    transform: scale(1);
}

.service-card:hover .service-icon {
    transform: scale(clamp(1.05, 1vw + 1, 1.1));
}

/* Floating Panel Animation - Responsive */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(clamp(-10px, -2vw, -20px)) rotate(clamp(2deg, 1vw, 5deg));
        opacity: 1;
    }
}

.floating-panel {
    animation: float clamp(4s, 2vw, 8s) ease-in-out infinite;
}

/* Pulse Animation - Responsive */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(clamp(1.1, 1vw + 1, 1.2));
        opacity: 0.9;
    }
}

.solar-rays {
    animation: pulse clamp(2s, 1.5vw, 3s) ease-in-out infinite;
}

/* Button Hover Animation - Responsive */
.btn-primary,
.btn-secondary,
.btn-outline {
    transition: all clamp(0.2s, 1vw, 0.3s) ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(clamp(-1px, -0.5vw, -3px));
}

/* Social Icon Animation - Responsive */
.social-icon {
    transition: transform clamp(0.2s, 1vw, 0.3s) ease;
}

.social-icon:hover {
    transform: translateY(clamp(-1px, -0.5vw, -3px));
}

/* Back to Top Button Animation - Responsive */
#back-to-top {
    transition: all clamp(0.2s, 1vw, 0.3s) ease;
}

#back-to-top:hover {
    transform: translateY(clamp(-1px, -0.5vw, -3px));
}

#back-to-top.show {
    animation: fadeInUp 0.3s ease both;
}

/* Media Query Adjustments for Different Screen Sizes */

/* Large Screens (Desktop) */
@media (min-width: 1200px) {

    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: 1s;
    }

    .service-card:hover {
        transform: translateY(-12px);
    }

    .floating-panel {
        animation-duration: 8s;
    }
}

/* Medium Screens (Tablet) */
@media (min-width: 768px) and (max-width: 1199px) {

    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: 0.8s;
    }

    .service-card:hover {
        transform: translateY(-8px);
    }

    .floating-panel {
        animation-duration: 6s;
    }

    .count-up {
        font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    }
}

/* Small Screens (Mobile) */
@media (max-width: 767px) {

    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: 0.6s;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }

    .floating-panel {
        animation-duration: 4s;
        animation-play-state: paused;
        /* Reduce motion on mobile */
    }

    .count-up {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }

    /* Simplify animations on very small screens */
    .solar-rays {
        animation: none;
        /* Disable complex animations */
    }

    /* Reduce animation intensity */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translate3d(0, 15px, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translate3d(-20px, 0, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translate3d(20px, 0, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {

    /* Disable complex animations for performance */
    .floating-panel,
    .solar-rays {
        animation: none !important;
    }

    /* Keep only essential animations */
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: 0.4s;
    }

    .service-card:hover {
        transform: translateY(-2px);
    }

    .count-up {
        font-size: clamp(1.2rem, 8vw, 2rem) !important;
    }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation: none !important;
    }

    .floating-panel,
    .solar-rays {
        animation: none !important;
    }

    .service-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware Acceleration for Smooth Animations */
.animate-fade-in-up,
.animate-fade-in-left,
.animate-fade-in-right,
.service-card,
.floating-panel,
.solar-rays,
.btn-primary,
.btn-secondary,
.btn-outline,
.social-icon,
#back-to-top {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Intersection Observer Animation Trigger Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimization */
.animation-container {
    contain: layout style paint;
}

/* Logo Home Link Styling */
.logo-home-link {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-home-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo-home-link:hover .text-primary {
    color: var(--accent) !important;
}

/* More Transparent Slide Overlay */
.slide-overlay-transparent {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 74, 153, 0.6) 0%,
            rgba(0, 123, 255, 0.4) 50%,
            rgba(255, 153, 0, 0.5) 100%);
    z-index: 10;
}

/* Trust Indicators Logo Container */
.trust-logo-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.trust-logo-container img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.trust-logo-container:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Enhanced slideshow images */
.mySlides {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .mySlides {
        background-attachment: scroll;
    }
}

/* EMERGENCY FIX - Make hero content visible */
#home .slide-content * {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9) !important;
}

#home .slide-overlay-transparent {
    background: linear-gradient(135deg,
            rgba(0, 74, 153, 0.8) 0%,
            rgba(0, 123, 255, 0.7) 50%,
            rgba(255, 153, 0, 0.75) 100%) !important;
}