/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablets and Small Desktops (under 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .lux-gallery {
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
    /* Navbar Mobile Fix */
    nav {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: none; /* Usually, you'd implement a burger menu here */
    }

    /* Hero Section */
    .hero-content {
        left: 5%;
        width: 90%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding-left: 0;
        border-left: none;
        margin: 0 auto;
    }

    /* Grid Layouts to 1 Column */
    .grid-3, .lux-gallery{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .card, .lux-item {
        width: 100%;
        max-width: 400px;
    }

    /* Section Titles */
    h2 {
        font-size: 1.8rem;
    }

    .section-desc, .lux-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Rewards/Certificates */
    .cert-img-wrap img {
        height: 200px; /* Smaller height for mobile scroll */
    }

    /* Clients Marquee Speed up for mobile */
    .marquee-content {
        animation: scrollMarquee 15s linear infinite;
    }
    
    .client-logo {
        width: 150px;
    }
    
    .client-logo img {
        max-width: 100px;
    }

    /* Modal Image Size */
    .modal-content {
        width: 95%;
    }
}

/* Very Small Devices (under 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .lux-btn {
        padding: 10px 10px 10px 20px;
        letter-spacing: 1px;
    }
}
/* HAMBURGER STYLING */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 2px;
}

/* MOBILE OVERLAY STYLING */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 25px 0;
}

.mobile-nav-links a {
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* TABLET/MOBILE RULES */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide desktop links */
    }

    .menu-toggle {
        display: flex; /* Show hamburger */
    }

    /* Transform Hamburger to 'X' when active */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--accent); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--accent); }
}
/* --- CONSOLIDATED MOBILE FOOTER (768px and below) --- */
@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the containers */
        text-align: center;  /* Centers the text inside containers */
        padding: 60px 20px;
        gap: 40px;
    }

    .footer-about, .footer-links, .footer-contact {
        width: 100%;
        max-width: 350px; /* Prevents text from stretching too wide */
    }

    .footer-about img {
        max-width: 140px;
        margin: 0 auto 20px;
        display: block;
    }

    .footer-links h3, 
    .footer-contact h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
        color: var(--accent);
        position: relative;
        display: inline-block; /* Needed for the underline to center */
    }

    /* Centered Underline for Headers */
    .footer-links h3::after, 
    .footer-contact h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: var(--accent);
    }

    .footer-links ul {
        padding: 0;
        list-style: none;
    }

    .footer-links ul li {
        margin: 12px 0;
    }

    .footer-contact p {
        display: flex;
        align-items: flex-start; /* Keeps icon at the top of the first line of text */
        justify-content: center; /* Centers the whole block */
        gap: 15px;
        margin-bottom: 15px;
        text-align: center; /* Keeps the address text readable */
        max-width: 300px; /* Limits width so it centers properly as a block */
        margin-left: auto;
        margin-right: auto;
    }

    /* Ensures the address doesn't look weird when centered */
    .footer-contact p i {
        color: var(--accent);
        width: 20px; /* Fixed width for icons makes them align vertically */
        text-align: center;
        margin-top: 5px; /* Aligns icon with the first line of the address */
    }
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .about-section .container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        max-width: 100%;
    }

    .about-image img {
        height: 350px;
    }

    .about-image::after {
        display: none; /* Keep it clean on mobile */
    }
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 40px 20px;
    }
}
/* --- MOBILE VIEW --- */
@media (max-width: 768px) {
    .counter-item h2 {
        font-size: 3rem;
    }
    .counter-flex {
        flex-direction: column;
    }
}
/* --- MOBILE VIEW --- */
@media (max-width: 992px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mv-box {
        padding: 40px 30px;
    }
}
/* --- MOBILE MODAL --- */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
        margin-top: 30%;
    }
    
    #modalTitle {
        font-size: 1.6rem;
    }
}
@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    
    .map-container iframe {
        height: 350px;
    }
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .service-flex, .service-flex.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .spec-list { grid-template-columns: 1fr; text-align: left; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}
/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .job-item {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .apply-box {
        padding: 30px 20px;
    }
}
/* Mobile responsive font sizes */
@media (max-width: 768px) {
    .inner-banner {
        height: 50vh;
    }
    .banner-content{
        padding: 40px 60px;
    }
    .banner-content h1 {
        font-size: 1.5rem;
    }
    .banner-content p {
        font-size: 0.8rem;
    }
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-sidebar, .contact-form-container {
        width: 100%;
    }

    .contact-form-container {
        padding: 30px;
    }
    
    .contact-form-container h2 {
        font-size: 2rem;
    }
}

/* Mobile responsive buttons */
@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        text-align: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* --- MOBILE RESPONSIVE TRUST BAR --- */
@media (max-width: 992px) {
    .trust-content {
        justify-content: center;
        gap: 20px;
    }
    .trust-sep {
        display: none; /* Remove dots on mobile for better stacking */
    }
}

@media (max-width: 768px) {
    .trust-bar {
        padding: 25px 0;
    }
    .trust-item {
        width: 100%; /* Each item gets its own line on small phones */
        justify-content: center;
        text-align: center;
    }
    .trust-item span {
        font-size: 0.85rem;
    }
}
/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .who-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .who-text h2 {
        font-size: 2.2rem;
    }

    .image-frame img {
        height: 350px;
    }
}
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .why-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    .why-icon {
        margin: 0 auto;
    }
}

/* --- MOBILE TIMELINE (Vertical Stack) --- */
@media (max-width: 992px) {
    .timeline-container {
        flex-direction: column;
        gap: 50px;
    }

    .timeline-line {
        width: 4px;
        height: 100%;
        left: 20px;
        top: 0;
        transform: none;
    }

    .timeline-item {
        text-align: left;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 20px;
        top: 20px;
        transform: translateX(-50%);
    }

    .timeline-year {
        margin-bottom: 10px;
    }

    .timeline-card {
        margin-top: 0;
    }
}
/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .models-grid { grid-template-columns: 1fr; }
    .value-wrapper { flex-direction: column; gap: 40px; }
    .value-image { order: -1; } /* Image on top for mobile */
    .service-info h2 {
        font-size: 2rem;
    }
}
/* CLOSE BUTTON STYLING */
.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: var(--accent); /* Using your RKD Orange */
    cursor: pointer;
    transition: 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002; /* Higher than the overlay content */
}

.close-menu:hover {
    transform: rotate(90deg);
    color: #fff;
}
/* Responsive Fix */
@media (max-width: 992px) {
    .founder-wrapper {
        flex-direction: column;
        gap: 60px;
    }
    
    .founder-image {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .founder-content {
        text-align: center;
    }
    
    .quote-box i {
        margin: 0 auto 15px;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .board-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 50px auto 0;
    }
    
    .director-img {
        height: 450px;
    }
}
@media (max-width: 768px) {
    .chart-container {
        padding: 20px;
        height: 350px;
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .presence-map-section {
        padding: 60px 0;
    }

    .map-container-new {
        margin: 30px auto;
    }

    /* Make dots slightly smaller for mobile maps */
    .dot-initial {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    .map-point.hq .dot-initial {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    /* Stack Legend in a single column */
    .map-legend {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-top: 30px;
    }

    .legend-item {
        font-size: 14px;
    }
}
/* Mobile Bio */
@media (max-width: 768px) {
    .bio-layout {
        flex-direction: column;
        text-align: center;
    }
    .bio-img {
        margin: 0 auto;
        width: 180px;
    }
}
@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}