/*
Theme Name: DigiQLabs
Description: A modern WordPress theme with interactive navigation
Version: 1.0.0
Author: DigiQLabs
*/

/* ====================================
   Base Styles & Reset
   ==================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Layout */
.site-content {
    /* padding-top: 80px; */ /* Account for fixed header - removed */
    min-height: calc(100vh - 80px);
}

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

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Navigation Loading States */
.nav-menu a.loading {
    position: relative;
    color: transparent;
}

.nav-menu a.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #3498db;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus Styles */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.nav-menu a:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3498db;
}

/* Search Form Styles */
.search-form {
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    color: #2c3e50;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Content Styles */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.site-footer a {
    color: #3498db;
}

.site-footer a:hover {
    color: #63b3ed;
}

/* Compact Footer Styles for Single Page Layout */
.site-footer.compact-footer {
  margin-top: 0;
  padding: 0;
  line-height: 1.4;
  position: relative;
  z-index: 10;
  clear: both;
}

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

.footer-boxes {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px 0;
  gap: 30px;
  min-height: 120px;
}

.footer-box {
  flex: 1;
  min-width: 200px;
}

.footer-box h4,
.footer-box h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.3px;
}

.footer-box p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Company Box */
.company-box .footer-logo h4 {
  margin-bottom: 8px;
}

.company-box .footer-logo a {
  text-decoration: none;
}

.company-box .footer-logo img {
  max-height: 40px;
  width: auto;
}

.company-desc {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  opacity: 0.8 !important;
}

/* Links Box */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
  display: block;
  padding: 2px 0;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Contact Box */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.contact-item .icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.contact-item a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-item a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Social Box */
.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.social-icon {
  font-size: 14px;
}

.copyright p {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

/* Ensure footer appears below single-page content */
.single-page-container + .site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 0;
}

/* Error and 404 Pages */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* WordPress Specific Styles */
.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 0.5rem;
}

/* Blog Styles */
.blog-posts {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ====================================
   Hero Section - Adonis.js Inspired
   ==================================== */

.hero-section {
    min-height: 100vh;
    height: auto; /* Added to ensure height expands with content */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5c6bc0 0%, #3f51b5 25%, #673ab7 75%, #9c27b0 100%);
    position: relative;
    overflow: hidden;
    padding: 150px 20px 80px; /* Increased top and bottom padding */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(92, 107, 192, 0.95) 0%, 
        rgba(63, 81, 181, 0.95) 25%,
        rgba(103, 58, 183, 0.95) 75%,
        rgba(156, 39, 176, 0.95) 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    animation: heroFadeIn 1.5s ease-out;
    margin-top: 20px; /* Added top margin for better spacing */
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem); /* Reduced font size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem; /* Reduced margin */
    background: linear-gradient(45deg, #ffffff, #e3f2fd, #fff3e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.4rem); /* Reduced font size */
    margin-bottom: 2.5rem; /* Reduced margin */
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
    max-width: 750px; /* Reduced max width */
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-bottom: 3rem; /* Reduced margin */
}

.hero-btn {
    display: inline-block;
    padding: 14px 32px; /* Slightly smaller padding */
    margin: 0 10px 15px; /* Reduced margins */
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem; /* Slightly smaller font */
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53, #ffa726);
    border-color: transparent;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
}

.hero-btn.primary:hover {
    background: linear-gradient(135deg, #ff5252, #ff7043, #ff9800);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.5);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

/* Enhanced Service Boxes - Compact Size for Same Row */
.service-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: visible;
    justify-content: center;
}

.service-box {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 1rem 0.8rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    opacity: 1;
    transform: translateY(0);
    animation: none;
    min-height: 160px; /* Reduced from 200px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    /* Set maximum width to ensure boxes don't get too wide on large screens */
    max-width: 220px;
    width: 100%;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #c7d1ff;
}

.service-box-responsive {
    flex: 1;
    min-width: 0; /* Allow boxes to shrink below their content size */
}

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    display: inline-block;
}

.service-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #333;
    line-height: 1.2;
}

.service-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
    flex-grow: 1;
}

/* ====================================
   Website Development Services Section
   ==================================== */

.web-services-section {
    padding: 80px 20px;
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
    position: relative;
    z-index: 2;
}

.web-services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.web-services-header {
    text-align: center;
    margin-bottom: 50px;
}

.web-services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.web-services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
}

.web-services-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.web-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.web-service-box {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.web-service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    transition: height 0.3s ease;
}

.web-service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.web-service-box:hover::before {
    height: 100%;
}

.web-service-icon {
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #3498db;
    transition: all 0.3s ease;
}

.web-service-box:hover .web-service-icon {
    background: #3498db;
    color: white;
}

.web-service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.web-service-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.web-service-link {
    display: inline-block;
    color: #3498db;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    padding-right: 22px;
    transition: all 0.3s ease;
}

.web-service-link:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.web-service-link:hover {
    color: #2980b9;
}

.web-service-link:hover:after {
    transform: translate(5px, -50%);
}

/* Responsive styles for web services section */
@media (max-width: 1200px) {
    .web-services-grid {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .web-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .web-services-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .web-services-section {
        padding: 60px 15px;
    }
    
    .web-services-header {
        margin-bottom: 30px;
    }
    
    .web-services-title {
        font-size: 2rem;
    }
    
    .web-services-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .web-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .web-services-title {
        font-size: 1.8rem;
    }
    
    .web-services-subtitle {
        font-size: 1rem;
    }
    
    .web-service-box {
        padding: 25px;
    }
}

/* Responsive Design for Enhanced Hero */
@media (max-width: 1024px) {
    .hero-section {
        padding: 160px 20px 80px;
        height: auto;
        min-height: 100vh;
    }
    
    .service-boxes {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        max-width: 700px;
    }
    
    .service-box {
        padding: 1.2rem 0.8rem;
        max-width: 180px;
        min-height: 190px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 200px 15px 80px; /* Increased from 180px */
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        margin-top: 60px; /* Increased from 40px to 60px */
    }
    
    .hero-title {
        margin-bottom: 1rem;
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .hero-cta {
        margin-bottom: 2.5rem;
    }
    
    .hero-btn {
        display: block;
        margin: 0 auto 1rem;
        max-width: 260px;
        padding: 14px 28px;
    }
    
    .service-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .service-box {
        padding: 1.25rem 0.75rem;
        min-height: 180px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 250px 10px 80px; /* Increased from 220px */
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 80px; /* Increased from 60px to 80px */
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .service-boxes {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin-top: 1rem;
    }
    
    .service-box {
        padding: 1rem;
        min-height: 160px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .service-title {
        font-size: 0.95rem;
    }
    
    .service-description {
        font-size: 0.75rem;
    }
}

/* Even more specific targeting for exact iPhone 12 Pro dimensions */
@media (max-width: 390px) and (min-height: 844px) {
    .hero-section {
        padding: 120px 15px 80px !important; /* Reduced from 300px to 120px */
        height: auto !important;
    }
    
    .hero-content {
        margin-top: 20px !important; /* Reduced from 80px to 20px */
        position: relative;
        top: 0 !important; /* Removed positioning offset completely */
    }

    body.mobile-menu-active .hero-section {
        padding-top: 180px !important; /* Reduced from 350px to 180px */
    }

    body.mobile-menu-active .hero-content {
        margin-top: 30px !important; /* Reduced from 100px to 30px */
        top: 0 !important; /* Removed positioning offset completely */
    }
}

/* Responsive for compact footer */
@media (max-width: 1024px) {
  .footer-boxes {
    gap: 25px;
  }
  
  .footer-box {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .footer-boxes {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    min-height: auto;
  }
  
  .footer-box {
    flex: 1 1 calc(50% - 10px);
    min-width: 160px;
  }
  
  .footer-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .footer-boxes {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-box {
    flex: 1;
    min-width: auto;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .contact-info {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Additional mobile fix for any other content sections */
@media (max-width: 768px) {
    .site-content {
        padding-top: 0; /* Removed 120px padding as requested */
    }

    body.mobile-menu-active .site-content {
        padding-top: 150px !important; /* Further increase padding when mobile menu is active */
    }
}

@media (max-width: 480px) {
    .site-content {
        padding-top: 0; /* Removed padding for mobile view */
    }

    body.mobile-menu-active .site-content {
        padding-top: 180px !important; /* Further increase padding when mobile menu is active */
    }
}

/* Specific fix for iPhone-sized screens */
@media (max-width: 450px) and (min-height: 800px) {
    .site-content {
        /* padding-top: 160px; */ /* Extra padding for tall mobile screens */
    }

    body.mobile-menu-active .site-content {
        padding-top: 200px !important; /* Further increase padding for tall screens when mobile menu is active */
    }
}

/* Specific Device Resolution Support 
   For Laptop with HiDpi Screen : 900x1440
   Laptop with touch: 950x1280
   Asus Zenbook Fold: 853x1280 */
@media screen and (width: 900px) and (height: 1440px),
       screen and (width: 950px) and (height: 1280px),
       screen and (width: 853px) and (height: 1280px) {
    
    /* Fix for top padding and content spacing */
    body {
        overflow-x: hidden;
    }
    
    .site-content {
        padding-top: 70px !important; /* Consistent with hamburger menu header height */
    }
    
    /* Proper handling for menu-open state */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Specific padding adjustments for hero section */
    .hero-section {
        padding-top: 100px !important;
    }
}

/* HiDPI screen (900x1440) specific styles */
@media screen and (width: 900px) and (height: 1440px) {
    /* Content spacing for high resolution */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .service-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop with touch (950x1280) specific styles */
@media screen and (width: 950px) and (height: 1280px) {
    /* Better touch targets */
    .btn, .hero-btn {
        padding: 16px 32px;
    }
    
    /* Improve spacing on touch device */
    .service-box {
        padding: 1.75rem 1.25rem;
    }
}

/* Asus Zenbook Fold (853x1280) specific styles */
@media screen and (width: 853px) and (height: 1280px) {
    /* Fold-specific optimizations */
    .service-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Ensure proper menu behavior for fold device */
    body.menu-open .site-content {
        filter: blur(3px);
        transition: filter 0.3s ease;
    }
}