/* Mobile drawer - hidden by default, shown on mobile */
.mobile-drawer {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Mobile Styles Only (768px and below) */

/* Mobile Header */
@media (max-width: 768px) {
  /* Ensure mobile drawer is visible only on mobile */
  .mobile-drawer {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  
  .header {
    height: 60px;
  }
  
  .header .container {
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .logo-icon img {
    width: 35px;
    height: 35px;
  }
  
  .brand-tagline {
    font-size: 16px;
  }
  
  /* Hide desktop navigation on mobile */
  .desktop-nav {
    display: none !important;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 1000000;
    position: relative;
  }
  
  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 0;
  }
  
  /* Mobile menu toggle animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Mobile Navigation Drawer */
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 999999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transform: none;
  }
  
  .mobile-drawer.active {
    right: 0;
    transform: none;
  }
  
  .mobile-drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #333;
  }
  
  .mobile-drawer-close {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-drawer-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
  }
  
  .mobile-drawer-close span:first-child {
    transform: rotate(45deg);
  }
  
  .mobile-drawer-close span:last-child {
    transform: rotate(-45deg);
  }
  
  .mobile-drawer-nav {
    padding: 20px 0;
  }
  
  .mobile-drawer-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .mobile-drawer-links li {
    border-bottom: 1px solid #333;
  }
  
  .mobile-drawer-links li:last-child {
    border-bottom: none;
  }
  
  .mobile-nav-link {
    display: block;
    padding: 20px 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .mobile-nav-link:hover,
  .mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #f39c12;
  }
  
  .mobile-nav-link:hover::after,
  .mobile-nav-link:focus::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #f39c12;
  }
  
  .mobile-cta-item {
    margin-top: 20px;
    padding: 0 30px 30px;
  }
  
  .mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: #f39c12;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .mobile-cta-btn:hover,
  .mobile-cta-btn:focus {
    background: #e67e22;
    transform: translateY(-2px);
  }
  
  /* Prevent body scroll when drawer is open */
  body.drawer-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
  
  /* Ensure mobile drawer works at any scroll position */
  .mobile-drawer,
  .mobile-drawer * {
    box-sizing: border-box !important;
  }
  
  /* Force mobile drawer to stay on top */
  .mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: auto;
    right: -300px;
    width: 300px;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    z-index: 999999;
  }
  
  /* Mobile menu animations */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Mobile hero section adjustments */
  .hero {
    padding: 60px 0 40px 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    margin-bottom: 30px;
  }
  
  .hero-text h2 {
    font-size: 2rem !important;
  }
  
  .hero-text p {
    font-size: 0.9rem !important;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
  }
  
  /* Mobile about section */
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text {
    margin-bottom: 30px;
  }
  
  .about-image img {
    max-width: 100%;
    height: auto;
  }
  
  /* Mobile services grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Mobile gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Mobile footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

/* Desktop Styles (769px and above) */
@media (min-width: 769px) {
  /* Hide mobile menu toggle on desktop */
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Hide mobile drawer completely on desktop */
  .mobile-drawer {
    display: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  
  /* Ensure desktop navigation is visible */
  .desktop-nav {
    display: flex !important;
  }
  
  .nav-links {
    display: flex !important;
  }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  
  .hero-text h2 {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
  .contact {
    padding: 50px 0;
  }
  
  .contact h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    text-align: center;
    align-items: center;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
  }
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
    max-width: 100%;
    padding: 0 20px;
  }
  
  .footer-links, .footer-brand, .footer-contact {
    padding: 0;
  }
  
  .footer-brand {
    order: 1;
  }
  
  .footer-links {
    order: 2;
    text-align: center;
  }
  
  .footer-contact {
    order: 3;
    text-align: center;
  }
  
  .footer-logo .brand-name {
    font-size: 24px;
  }
  
  .footer-logo .brand-tagline {
    font-size: 18px;
  }
  
  .social-links {
    gap: 12px;
    margin-top: 15px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-brand {
    gap: 15px;
  }
  
  .footer-contact .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Mobile Service Navigation */
@media (max-width: 768px) {
  .service-nav {
    top: 60px;
    padding: 10px 0;
  }
  
  .service-nav ul {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px;
  }
  
  .service-nav a {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Mobile Project Gallery */
@media (max-width: 768px) {
  .project-gallery {
    padding: 40px 0;
  }
  
  .project-grid {
    gap: 20px;
    padding: 0 15px;
  }
  
  .project-item {
    flex-direction: column;
  }
  
  .project-image {
    flex: 0 0 250px;
  }
  
  .project-details {
    padding: 20px;
  }
  
  .project-details h3 {
    font-size: 1.3rem;
  }
  
  .project-specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Mobile Service Pages */
@media (max-width: 768px) {
  .service-hero {
    padding: 80px 0;
  }
  
  .service-hero h1 {
    font-size: 2.5rem;
  }
  
  .service-hero p {
    font-size: 1.1rem;
  }
  
  .service-overview {
    padding: 60px 0;
  }
  
  .service-intro h2 {
    font-size: 2rem;
  }
  
  .feature-grid {
    gap: 20px;
  }
  
  .process-steps {
    gap: 20px;
  }
  
  .step {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .service-hero h1 {
    font-size: 2rem;
  }
  
  .service-hero {
    padding: 60px 0;
  }
  
  .service-overview {
    padding: 50px 0;
  }
  
  .feature-item {
    padding: 20px;
  }
  
  .step {
    padding: 15px;
  }
}

/* Mobile WhatsApp Float */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .whatsapp-float i {
    font-size: 24px;
  }
}

/* Mobile Email Float */
@media (max-width: 768px) {
  .email-float {
    bottom: 20px;
    right: 85px;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .email-float i {
    font-size: 24px;
  }
}

/* Mobile Form Adjustments */
@media (max-width: 768px) {
  .form-message {
    margin-top: 15px;
    padding: 12px;
    font-size: 14px;
  }
  
  .contact-form button {
    padding: 15px 20px;
    font-size: 16px;
  }
}

/* Mobile Business Hours */
@media (max-width: 768px) {
  .business-hours {
    margin-top: 20px;
    padding: 20px;
  }
  
  .business-hours h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .hours-grid {
    gap: 15px;
    padding: 15px;
  }
  
  .hours-item {
    padding: 15px;
    gap: 15px;
  }
  
  .hours-item span {
    font-size: 14px;
  }
  
  .hours-item span:first-child {
    font-size: 15px;
  }
}

/* Mobile Lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 80vh;
  }
  
  .close-lightbox {
    top: -30px;
    font-size: 24px;
  }
  
  .lightbox-caption {
    bottom: -30px;
    font-size: 14px;
  }
}

/* Mobile Animation Adjustments */
@media (max-width: 768px) {
  .hero {
    animation: heroFadeIn 1.5s ease-in-out;
  }
  
  .hero-content {
    animation: contentSlideIn 2s ease-out;
  }
  
  @keyframes heroFadeIn {
    0% {
      opacity: 0;
      transform: translateY(15px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes contentSlideIn {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    50% {
      opacity: 0.7;
      transform: translateY(15px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile Container Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  /* Prevent horizontal scrolling on mobile */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
  }
  
  /* Ensure all content fits within mobile viewport */
  * {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* Mobile Button States */
@media (max-width: 768px) {
  button[type="submit"]:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
  }
  
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Mobile Spacing Adjustments */
@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    margin-bottom: 25px;
  }
  
  .card {
    margin-bottom: 20px;
  }
}

/* Mobile Touch Targets */
@media (max-width: 768px) {
  .nav-links a,
  .service-nav a,
  .footer-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn,
  .quote-btn {
    min-height: 44px;
  }
  
  .search-toggle,
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}