/* ===============================
   RESPONSIVE STYLES - MOBILE FIRST
   =============================== */

/* Base Mobile Styles (320px+) */
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

/* ===============================
   1. NAVIGATION FIXES
   =============================== */

/* Mobile Navigation */
@media (max-width: 1023px) {
    /* Mobile menu button */
    #mobileMenuBtn {
        display: block !important;
        z-index: 1001;
        position: relative;
    }
    
    /* Hide desktop navigation */
    #navbarNav {
        display: none !important;
    }
    
    /* Mobile menu styling */
    #mobileMenu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(30, 58, 138, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 1000 !important;
        padding-top: 80px !important;
        overflow-y: auto !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease !important;
    }
    
    #mobileMenu.hidden {
        transform: translateX(-100%) !important;
    }
    
    #mobileMenu:not(.hidden) {
        transform: translateX(0) !important;
    }
    
    /* Mobile services dropdown */
    .mobile-services-menu {
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 8px !important;
        margin-top: 0.5rem !important;
        padding: 0.5rem 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-dropdown-arrow {
        transition: transform 0.3s ease !important;
    }
}

/* Desktop Navigation Dropdown Fix */
@media (min-width: 1024px) {
    .services-dropdown:hover .services-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .services-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        min-width: 280px !important;
        z-index: 1000 !important;
    }
    
    .services-dropdown-menu li a {
        padding: 12px 20px !important;
        display: block !important;
        white-space: nowrap !important;
    }
}

/* ===============================
   2. HERO SECTION RESPONSIVE
   =============================== */

.hero-section {
    min-height: 100vh !important;
    background-attachment: scroll !important; /* Fix mobile background */
    background-size: cover !important;
    background-position: center !important;
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px 0 !important;
        background-attachment: scroll !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .hero-buttons a {
        justify-content: center !important;
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }
    
    /* Hide floating elements on mobile */
    .floating-elements {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
}

/* ===============================
   3. ABOUT US SECTION RESPONSIVE
   =============================== */

.about-section {
    padding: 60px 0 !important;
}

@media (max-width: 1024px) {
    .about-section .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-image-container {
        order: 1 !important;
    }
    
    .about-content {
        order: 2 !important;
    }
    
    /* Fix decorative elements overlap */
    .excellence-badge {
        position: relative !important;
        margin: 1rem 0 !important;
        transform: none !important;
        display: inline-block !important;
    }
    
    .main-image-wrapper {
        margin: 2rem 0 !important;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 40px 0 !important;
    }
    
    .who-heading {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .about-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* About Us Section Mobile Fixes */
    .company-overview {
        margin-top: 2rem !important;
    }
    
    .about-content .flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .about-content .flex a {
        justify-content: flex-start !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .about-content .flex a i {
        margin-right: 0.5rem !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .about-content .flex a span {
        order: 2 !important;
    }
    
    /* Hide decorative floating elements */
    .about-image-container .absolute {
        display: none !important;
    }
}

/* Ensure proper button layout on very small mobile screens */
@media (max-width: 480px) {
    .about-content .flex a {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .about-content .flex a i {
        font-size: 0.8rem !important;
    }
}

/* ===============================
   4. SERVICES SECTION RESPONSIVE  
   =============================== */

@media (max-width: 768px) {
    /* Services Section Mobile Fixes */
    .services-section .w-screen {
        width: 100% !important;
        margin-inline: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .services-section .inline-block {
        display: block !important;
        width: 100% !important;
        margin-inline: auto !important;
    }
    
    .service-landscape-card {
        margin-bottom: 2rem !important;
    }
}

/* ===============================
   5. CORE VALUES RESPONSIVE
   =============================== */

.values-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .value-item {
        text-align: center !important;
    }
    
    /* Core Values Icons Center Alignment */
    .value-icon-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 1rem auto !important;
    }
    
    .value-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    
    .value-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
    }
    
    .value-icon-wrapper {
        margin-bottom: 1rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .value-text h3 {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .value-text p {
        text-align: center !important;
    }
}

/* ===============================
   5. WHY CHOOSE US RESPONSIVE
   =============================== */

.why-choose-section {
    padding: 60px 0 !important;
}

@media (max-width: 1024px) {
    .why-choose-section .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .advantages-content {
        order: 2 !important;
    }
    
    .advantages-visual {
        order: 1 !important;
    }
    
    /* Fix image height issue */
    .advantages-visual .bg-gradient-to-br {
        padding: 2rem 1.5rem !important;
    }
    
    .advantages-visual img {
        height: 200px !important;
        object-fit: cover !important;
    }
    
    /* Fix decorative elements visibility */
    .floating-icon {
        background: #1e3a8a !important; /* Ensure visibility */
        opacity: 0.8 !important;
    }
    
    /* Hide absolute positioned decorative elements */
    .why-choose-section .absolute {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .why-choose-section {
        padding: 40px 0 !important;
    }
    
    .advantage-item {
        margin-bottom: 2rem !important;
    }
    
    .advantage-item .flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .advantage-icon {
        margin-bottom: 1rem !important;
        align-self: center !important;
    }
    
    .advantage-text h3 {
        font-size: 1.5rem !important;
        text-align: center !important;
    }
    
    .advantage-text p {
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/* ===============================
   6. EXECUTIVE TEAM RESPONSIVE
   =============================== */

.executive-team-section {
    padding: 60px 0 !important;
}

@media (max-width: 1024px) {
    .executive-team-section .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .ceo-image-wrapper {
        order: 1 !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .ceo-bio-content {
        order: 2 !important;
    }
    
    /* Fix profile avatar container */
    .profile-image-container .w-80 {
        width: 250px !important;
        height: 250px !important;
        margin: 0 auto !important;
    }
    
    /* Hide achievement badges on mobile */
    .achievement-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .executive-team-section {
        padding: 40px 0 !important;
        position: relative !important;
    }
    
    /* Fix decorative elements z-index */
    .executive-team-section .absolute {
        z-index: 0 !important;
    }
    
    .executive-team-section h2,
    .executive-team-section .gradient-text {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* CEO Profile Container Mobile Fix */
    .ceo-profile-container .flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .ceo-header {
        text-align: center !important;
        order: 2 !important;
    }
    
    .ceo-image-wrapper {
        order: 1 !important;
    }
    
    .profile-image-container .w-80 {
        width: 200px !important;
        height: 200px !important;
    }
    
    .ceo-header h3 {
        font-size: 2rem !important;
    }
    
    .bio-highlight {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
    }
    
    /* CEO Bio Content Gap Fix */
    .ceo-bio-content {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
    
    .career-journey {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .leadership-philosophy {
        margin-top: 2rem !important;
        margin-bottom: 3rem !important;
    }
}

/* ===============================
   7. CONTACT US RESPONSIVE
   =============================== */

.contact-section {
    padding: 60px 0 !important;
}

@media (max-width: 1024px) {
    .contact-section .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-info-wrapper {
        order: 2 !important;
    }
    
    .contact-form-container {
        order: 1 !important;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0 !important;
    }
    
    /* Fix office card alignment */
    .office-card {
        text-align: center !important;
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .office-card h4 {
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .office-card p {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .general-contact {
        text-align: center !important;
        padding: 1.5rem !important;
    }
    
    /* Contact form responsive */
    .contact-form-container {
        padding: 1rem !important;
    }
    
    .contact-form-container .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Map responsive */
    .map-wrapper {
        height: 300px !important;
        margin: 1rem 0 !important;
    }
    
    .location-info-cards .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* ===============================
   8. SECTION SPACING MOBILE
   =============================== */

@media (max-width: 768px) {
    /* Reduce section spacing on mobile */
    section {
        margin-top: 20px !important;
    }
    
    .mt-40 {
        margin-top: 20px !important;
    }
    
    .py-20 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .py-16 {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
    
    /* Text sizing mobile */
    .text-4xl, .text-5xl, .text-6xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    .text-lg {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-12 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ===============================
   9. FOOTER RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0 !important;
    }
    
    .footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .footer-bottom-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .social-icon {
        margin: 0 0.5rem !important;
    }
}

/* ===============================
   10. GENERAL RESPONSIVE UTILITIES
   =============================== */

/* Hide elements on mobile */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    /* Show only on mobile */
    .mobile-only {
        display: block !important;
    }
}

/* Hide elements on desktop */
@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
    
    .mobile-only {
        display: none !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth !important;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Performance optimization */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

/* Touch targets */
@media (max-width: 768px) {
    button, a, .clickable {
        min-height: 44px !important;
        min-width: 44px !important;
    }
}
