/* Mobile View (1024px and below) */
@media (max-width: 1024px) {
    /* Hide desktop menu */
    .nav-links {
        display: none !important;
    }
    
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Landscape specific adjustments */
@media (max-width: 1024px) and (orientation: landscape) {
    .nav-links a {
        text-decoration: none !important;
        color: white !important;
        background: transparent !important;
    }
    
    .nav-links .login-button {
        background: var(--secondary-color) !important;
        color: white !important;
        padding: 8px 20px !important;
        border-radius: 5px !important;
    }
    
    /* Add this for landscape tablets */
    @media (min-width: 769px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }
}


.mobile-menu-toggle.active + .nav-links {
    display: none !important;
}


.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger:before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger:after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000; /* Fixed z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.8rem;
}

.mobile-nav-links a:not(.login-button):hover {
    color: var(--secondary-color);
    transform: translateX(10px);
}

.mobile-nav-links .login-button {
    background: var(--secondary-color);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    transition: all 0.3s;
    width: auto;
}

.mobile-nav-links .login-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Mobile Section Styling */
.hero {
    padding-top: 70px;
}

.hero-content h1 {
    font-size: 2.2rem;
}

.security-logos {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.logo-item i {
    font-size: 1.8rem;
}

.director-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

.director-image img {
    width: 120px;
    height: 120px;
}

.contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3000;
}