/* ===========================
   CSS Reset & Variables
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #dddddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --min-touch-target: 44px;

    /* Background colors for light mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-dark: #2c3e50;
    --card-bg: #ffffff;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-dark: #0a0a0a;
    --card-bg: #1e1e1e;
    --text-color: #e8e8e8;
    --text-light: #a0a0a0;
    --border-color: #333333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.7);
    --white-color: #e8e8e8;
    --light-color: #1a1a1a;
    --secondary-color: #5a7ba0;
    --primary-color: #ff7851;
    --dark-color: #0a0a0a;
}

/* Dark Mode Component Overrides */
[data-theme="dark"] .navbar {
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

[data-theme="dark"] .navbar.scrolled {
    background-color: #0a0a0a;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .nav-link {
    color: #e8e8e8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #ff7851;
}

[data-theme="dark"] .service-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 120, 81, 0.3);
    border-color: #ff7851;
}

[data-theme="dark"] .service-card h3 {
    color: #ff7851;
}

[data-theme="dark"] .service-card p {
    color: #b0b0b0;
}

[data-theme="dark"] .about {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

[data-theme="dark"] .feature {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #2a2a2a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding: 2rem 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature:hover {
    border-color: #ff7851;
    box-shadow: 0 8px 30px rgba(255, 120, 81, 0.2);
}

[data-theme="dark"] .feature-number {
    color: #ff7851;
    text-shadow: 0 0 20px rgba(255, 120, 81, 0.3);
}

[data-theme="dark"] .feature-label {
    color: #a0a0a0;
}

[data-theme="dark"] .gallery-item {
    border: 1px solid #2a2a2a;
}

[data-theme="dark"] .gallery-overlay {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.3) 100%);
}

[data-theme="dark"] .contact-item {
    background: linear-gradient(135deg, #ff7851 0%, #ff9568 100%);
    box-shadow: 0 10px 30px rgba(255, 120, 81, 0.4);
}

[data-theme="dark"] .contact-item:hover {
    box-shadow: 0 15px 40px rgba(255, 120, 81, 0.5);
}

[data-theme="dark"] .contact-cta {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #2a2a2a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .contact-cta::before {
    background: radial-gradient(circle, rgba(255, 120, 81, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 100%);
    border-top: 1px solid #1a1a1a;
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: #ff7851;
}

[data-theme="dark"] .footer-section a:hover {
    color: #ff7851;
}

[data-theme="dark"] .btn-primary {
    background-color: #ff7851;
    box-shadow: 0 4px 15px rgba(255, 120, 81, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #ff8c5a;
    box-shadow: 0 6px 20px rgba(255, 120, 81, 0.6);
}

[data-theme="dark"] .btn-whatsapp {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

[data-theme="dark"] .section-header h2 {
    color: #e8e8e8;
}

[data-theme="dark"] .section-header p {
    color: #a0a0a0;
}

[data-theme="dark"] .scroll-to-top {
    background-color: #ff7851;
    box-shadow: 0 4px 15px rgba(255, 120, 81, 0.4);
}

[data-theme="dark"] .scroll-to-top:hover {
    background-color: #ff8c5a;
    box-shadow: 0 6px 20px rgba(255, 120, 81, 0.6);
}

[data-theme="dark"] .dark-mode-toggle {
    border-color: #333333;
    background-color: #1e1e1e;
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background-color: #252525;
    border-color: #ff7851;
}

[data-theme="dark"] .mobile-menu-toggle span {
    background-color: #e8e8e8;
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(255, 120, 81, 0.7) 0%, rgba(26, 26, 26, 0.85) 100%);
}

[data-theme="dark"] .hero-title {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .hero-subtitle {
    color: #e8e8e8;
}

[data-theme="dark"] .service-icon img {
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .service-card:hover .service-icon img {
    filter: brightness(1) contrast(1.2);
}

[data-theme="dark"] .gallery-item img {
    filter: brightness(0.85);
}

[data-theme="dark"] .gallery-item:hover img {
    filter: brightness(1);
}

[data-theme="dark"] .about-image img {
    filter: brightness(0.9);
}

[data-theme="dark"] .services {
    background-color: #0a0a0a;
}

[data-theme="dark"] .gallery {
    background-color: #0f0f0f;
}

[data-theme="dark"] .contact {
    background-color: #0a0a0a;
}

[data-theme="dark"] .nav-menu {
    background-color: #0a0a0a;
}

[data-theme="dark"] .nav-menu li {
    border-bottom-color: #1a1a1a;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    content-visibility: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    /* Ensure minimum touch target size */
    min-height: var(--min-touch-target);
    display: inline-flex;
    align-items: center;
}

ul {
    list-style: none;
}

/* Improve text rendering */
body, input, textarea, button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/heavy-machinery-used-construction-industry-engineering.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(44, 62, 80, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* Minimum touch target */
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch responsiveness */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    position: relative;
    z-index: 1;
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ===========================
   Services Section
   =========================== */
.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   Gallery Section
   =========================== */
.gallery {
    background-color: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: var(--white-color);
    font-size: 1.2rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c5a 100%);
    padding: 2rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    color: var(--white-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
}

.contact-item a {
    color: var(--white-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.contact-item a:hover {
    transform: scale(1.05);
}

.contact-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2530 100%);
    padding: 3rem;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10%, -10%) scale(1.1);
    }
}

.contact-cta h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    position: relative;
    z-index: 1;
}

.contact-cta ul {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-cta ul li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.contact-cta ul li:hover {
    transform: translateX(5px);
}

.contact-cta ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer-section p {
    color: #aaaaaa;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaaaaa;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    color: #aaaaaa;
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top.visible {
    display: flex;
}

/* ===========================
   Dark Mode Toggle
   =========================== */
.dark-mode-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

.dark-mode-toggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    shape-rendering: geometricPrecision;
}

.dark-mode-toggle .icon-sun {
    display: none;
}

.dark-mode-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .icon-moon {
    display: none;
}

/* ===========================
   Responsive Design
   =========================== */
/* Tablet and Mobile Optimization */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        min-width: 44px; /* Touch target */
        min-height: 44px;
        padding: 10px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease, background-color 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1.2rem 0; /* Larger touch target */
        width: 100%;
        font-size: 1.1rem; /* Larger font for mobile */
    }

    .dark-mode-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 0.75rem 1rem;
    }

    .hero {
        min-height: 100vh;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        flex-direction: row; /* Keep horizontal on tablet */
        gap: 1.5rem;
        justify-content: space-around;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        padding: 1.5rem 2rem;
    }

    .contact-item h3 {
        font-size: 1rem;
    }

    .contact-item a {
        font-size: 1.3rem;
        min-height: 44px; /* Touch target */
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 0.95rem;
        width: 100%; /* Full width on mobile for easier tapping */
        max-width: 300px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        font-size: 15px; /* Slightly smaller base for small phones */
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 35px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    section {
        padding: 2.5rem 0;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .about-features {
        flex-direction: column; /* Stack vertically on small phones */
        gap: 1rem;
    }

    .feature-number {
        font-size: 2rem;
    }

    .contact-item {
        padding: 1.5rem 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-item a {
        font-size: 1.2rem;
    }

    .contact-cta {
        padding: 2rem 1.5rem;
    }

    .contact-cta h3 {
        font-size: 1.6rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
        min-height: 48px;
    }

    .btn-whatsapp {
        gap: 0.4rem;
    }

    .btn-whatsapp svg {
        width: 18px;
        height: 18px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (e.g., iPhone SE) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.85rem 1.25rem;
    }
}
