/* ═══════════════════════════════════════════════════════════════
   MOBILE REDESIGN - Clean, Professional Mobile Layout
   Professional mobile design
   Desktop design remains untouched - only affects mobile
   ═══════════════════════════════════════════════════════════════ */

/* ==========================================
   MOBILE ONLY - Hide Desktop Elements
   ========================================== */
@media (max-width: 991px) {
    /* Hide desktop navbar completely on mobile */
    .main-navbar,
    .main-responsive-nav,
    .navbar-area {
        display: none !important;
    }
    
    /* Hide desktop rotating logo on mobile only */
    .rotating-3d-logo {
        display: none !important;
    }
    
    /* Adjust mobile menu toggle in navbar */
    .mobile-top-navbar .mobile-menu-toggle {
        position: relative;
        top: auto;
        left: auto;
        width: 40px;
        height: 40px;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .mobile-top-navbar .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
    }
    
    .mobile-top-navbar .mobile-menu-toggle span:nth-child(1) {
        top: 12px;
    }
    
    .mobile-top-navbar .mobile-menu-toggle span:nth-child(2) {
        top: 19px;
    }
    
    .mobile-top-navbar .mobile-menu-toggle span:nth-child(3) {
        top: 26px;
    }
    
    .mobile-top-navbar .mobile-menu-toggle.active span:nth-child(1) {
        top: 19px;
    }
    
    .mobile-top-navbar .mobile-menu-toggle.active span:nth-child(3) {
        top: 19px;
    }
}

/* 3D rotating logo - let original CSS handle desktop, only hide on mobile */

/* ==========================================
   MOBILE NAVBAR - Clean Top Bar
   ========================================== */
@media (max-width: 991px) {
    /* Mobile Navbar Container */
    .mobile-top-navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(16, 53, 136, 0.98);
        backdrop-filter: blur(10px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-top-navbar .mobile-logo {
        max-height: 40px;
        width: auto;
    }
    
    .mobile-top-navbar .mobile-theme-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================
   MOBILE HERO SECTION - Clean Layout
   ========================================== */
@media (max-width: 991px) {
    .vanta-hero-section {
        min-height: 100vh;
        padding-top: 70px; /* Space for mobile navbar */
        padding-bottom: 40px;
    }
    
    /* Hero Heading - Centered and Clean */
    .hero-centered-heading {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: center;
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .hero-main-title {
        font-size: 32px !important;
        line-height: 1.3;
        margin-bottom: 15px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .hero-main-caption {
        font-size: 18px !important;
        margin-bottom: 15px;
    }
    
    .hero-anniversary-headline {
        font-size: 14px !important;
        margin-top: 10px;
    }
    
    /* Hero Images - Stack Vertically */
    .vanta-center-image,
    .vanta-right-image {
        position: relative !important;
        margin: 20px auto;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .vanta-center-image img,
    .vanta-right-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
        border-radius: 8px;
    }
    
    /* Remove animations on mobile for performance */
    .vanta-center-image,
    .vanta-right-image {
        animation: none !important;
    }
    
    /* Hero Buttons - Stacked */
    .hero-cta-button,
    .hero-magazine-button-wrapper {
        position: relative !important;
        margin: 20px auto;
        text-align: center;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-cta-button .default-btn,
    .hero-magazine-btn {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        display: block;
    }
    
    /* Contact Info - Centered */
    .hero-contact-info {
        position: relative !important;
        margin: 20px auto;
        text-align: center;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
    }
    
    .contact-line {
        align-items: center;
        text-align: center;
    }
}

/* ==========================================
   MOBILE SECTIONS - Clean Spacing
   ========================================== */
@media (max-width: 767px) {
    /* Section Padding */
    .ptb-100 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .pt-100 {
        padding-top: 40px !important;
    }
    
    .pb-70 {
        padding-bottom: 30px !important;
    }
    
    /* Section Titles */
    .section-title {
        margin-bottom: 30px;
        text-align: center;
        padding: 0 15px;
    }
    
    .section-title .sub-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .section-title h2 {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .section-title p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==========================================
   MOBILE CAPABILITIES SECTION
   ========================================== */
@media (max-width: 767px) {
    .services-area .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .services-area [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .single-services-box {
        padding: 25px 20px;
        margin-bottom: 20px;
        text-align: center;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .single-services-box .icon {
        font-size: 45px;
        margin-bottom: 15px;
        display: block;
    }
    
    .single-services-box h3 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .single-services-box p {
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }
}

/* ==========================================
   MOBILE CASE STUDIES SECTION
   ========================================== */
@media (max-width: 767px) {
    .case-studies-area .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .case-studies-area [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 25px;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .single-case-study {
        margin-bottom: 25px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .case-study-image {
        height: 200px !important;
    }
    
    .case-study-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .case-study-content {
        padding: 20px !important;
    }
    
    .case-study-content h3 {
        font-size: 20px !important;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .case-study-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .case-study-content .default-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   MOBILE PARTNERS SECTION
   ========================================== */
@media (max-width: 767px) {
    .partner-area {
        padding: 40px 0;
    }
    
    .partner-slides {
        padding: 0;
    }
    
    .partner-item {
        padding: 15px;
        text-align: center;
    }
    
    .partner-item img {
        max-width: 150px !important;
        height: auto;
        margin: 0 auto;
    }
    
    .partner-name {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* ==========================================
   MOBILE PROJECT GALLERY
   ========================================== */
@media (max-width: 767px) {
    .project-gallery-section {
        padding: 40px 0;
    }
    
    .magazine-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .magazine-container {
        max-width: 95vw !important;
        height: auto !important;
        min-height: 350px;
    }
}

/* ==========================================
   MOBILE CONTACT SECTION
   ========================================== */
@media (max-width: 767px) {
    .contact-area {
        padding: 40px 0;
    }
    
    .contact-area .row {
        margin: 0;
    }
    
    .contact-area [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .contact-info {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .contact-info ul {
        list-style: none;
        padding: 0;
    }
    
    .contact-info ul li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .contact-info ul li:last-child {
        border-bottom: none;
    }
    
    .contact-info ul li .icon {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .contact-info ul li h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .contact-info ul li p,
    .contact-info ul li a {
        font-size: 14px;
    }
    
    /* Contact Form */
    .contact-form {
        margin-top: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control {
        font-size: 16px !important;
        padding: 12px 15px;
        border-radius: 6px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .default-btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 16px;
    }
}

/* ==========================================
   MOBILE FOOTER
   ========================================== */
@media (max-width: 767px) {
    .footer-area {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .single-footer-widget {
        margin-bottom: 30px;
    }
    
    .single-footer-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .single-footer-widget ul {
        list-style: none;
        padding: 0;
    }
    
    .single-footer-widget ul li {
        margin-bottom: 10px;
    }
    
    .single-footer-widget ul li a {
        font-size: 14px;
    }
    
    .copyright-area {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .copyright-area p {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* ==========================================
   MOBILE TYPOGRAPHY
   ========================================== */
@media (max-width: 767px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    h1 { font-size: 28px !important; line-height: 1.3; }
    h2 { font-size: 24px !important; line-height: 1.3; }
    h3 { font-size: 20px !important; line-height: 1.3; }
    h4 { font-size: 18px !important; line-height: 1.3; }
    h5 { font-size: 16px !important; line-height: 1.4; }
    h6 { font-size: 14px !important; line-height: 1.4; }
    
    p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}

/* ==========================================
   MOBILE BUTTONS
   ========================================== */
@media (max-width: 767px) {
    .default-btn {
        padding: 12px 25px !important;
        font-size: 15px !important;
        min-height: 44px;
        border-radius: 6px;
        display: inline-block;
        width: auto;
        max-width: 100%;
    }
    
    .btn-box {
        text-align: center;
        margin-top: 20px;
    }
}

/* ==========================================
   MOBILE IMAGES
   ========================================== */
@media (max-width: 767px) {
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    .about-image img,
    .banner-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

/* ==========================================
   MOBILE WHATSAPP BUTTON
   ========================================== */
@media (max-width: 767px) {
    .whatsapp-float,
    .hero-whatsapp-icon {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 9999;
    }
}

/* ==========================================
   MOBILE NAVIGATION DRAWER IMPROVEMENTS
   ========================================== */
@media (max-width: 991px) {
    .mobile-nav-drawer {
        width: 90%;
        max-width: 300px;
        padding-top: 60px; /* Space for mobile navbar */
    }
    
    .mobile-nav-menu a {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .mobile-nav-menu a i {
        font-size: 20px;
        width: 24px;
    }
}

/* ==========================================
   MOBILE SPACING FIXES
   ========================================== */
@media (max-width: 767px) {
    /* Remove excessive margins */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Better card spacing */
    .single-services-box,
    .single-case-study,
    .single-certification-box {
        margin-bottom: 20px;
    }
    
    /* Section spacing */
    section {
        margin-bottom: 0;
    }
}

/* ==========================================
   MOBILE PERFORMANCE
   ========================================== */
@media (max-width: 767px) {
    /* Disable heavy animations */
    .vanta-hero-section #vanta-bg {
        display: none;
    }
    
    .vanta-hero-section {
        background: linear-gradient(135deg, #000000 0%, #1a3a5c 50%, #3a7bd5 100%) !important;
    }
    
    /* Reduce animation complexity */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* ==========================================
   MOBILE UTILITIES
   ========================================== */
@media (max-width: 767px) {
    /* Center align text */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Full width on mobile */
    .full-width-mobile {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }
}

