/* Responsive Design - Professional Mobile Menu */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .hero-image img {
        max-height: 400px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    /* Professional Hamburger Menu */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(52, 152, 219, 0.1);
    }
    
    .nav-toggle span {
        width: 24px;
        height: 3px;
        background: var(--primary);
        margin: 3px 0;
        display: block;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-radius: 3px;
        transform-origin: center;
    }
    
    .nav-toggle:hover span {
        background: var(--secondary);
    }
    
    /* Professional Mobile Menu */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        z-index: 1000;
        overflow-y: auto;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
        animation: menuSlideIn 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-menu li {
        margin: 8px 0;
        width: 100%;
        opacity: 1; /* CHANGED FROM 0 to 1 - MENU ITEMS VISIBLE */
        transform: translateY(0); /* CHANGED FROM translateY(10px) to 0 */
        transition: all 0.3s ease;
        transition-delay: calc(var(--i) * 0.1s);
    }
    
    .nav-menu.active li {
        opacity: 1; /* KEPT AS 1 - ALWAYS VISIBLE */
        transform: translateY(0);
    }
    
    .nav-menu li:nth-child(1) { --i: 1; }
    .nav-menu li:nth-child(2) { --i: 2; }
    .nav-menu li:nth-child(3) { --i: 3; }
    .nav-menu li:nth-child(4) { --i: 4; }
    .nav-menu li:nth-child(5) { --i: 5; }
    .nav-menu li:nth-child(6) { --i: 6; }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--dark);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
        transition: left 0.6s ease;
    }
    
    .nav-menu a:hover::before {
        left: 100%;
    }
    
    .nav-menu a:hover {
        background: rgba(52, 152, 219, 0.08);
        color: var(--secondary);
        transform: translateX(5px);
    }
    
    .nav-menu a.active {
        background: rgba(52, 152, 219, 0.1);
        color: var(--secondary);
        font-weight: 600;
    }
    
    .nav-menu a.active::after {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 5px;
        height: 2px;
        background: var(--secondary);
        border-radius: 1px;
    }
    
    /* Professional Contact Button in Mobile */
    .contact-btn {
        margin: 20px 0 0 0 !important;
        padding: 12px 30px !important;
        background: linear-gradient(135deg, var(--secondary), #2980b9) !important;
        color: white !important;
        border-radius: 8px !important;
        display: inline-block;
        width: auto;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        transition: all 0.3s ease !important;
    }
    
    .contact-btn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
        background: linear-gradient(135deg, #2980b9, var(--secondary)) !important;
        color: white !important;
    }
    
    .contact-btn.active {
        background: linear-gradient(135deg, #2980b9, var(--secondary)) !important;
    }
    
    /* Smooth Page Transitions */
    .mission-vision .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mission, .vision {
        padding: 30px;
        animation: fadeUp 0.6s ease-out;
    }
    
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero {
        padding: 120px 0 60px;
        animation: fadeIn 0.8s ease-out;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        animation: slideInLeft 0.6s ease-out 0.2s both;
    }
    
    .hero p {
        animation: slideInRight 0.6s ease-out 0.4s both;
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Services Grid */
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 15px;
        animation: fadeUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Better Mobile Typography */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    p, li { font-size: 0.95rem !important; line-height: 1.6 !important; }
}
