/* ======================================
   ABHYUDAY TECH SOLUTIONS - RESPONSIVE CSS
   Mobile-first responsive design
   ====================================== */

/* ======================================
   TABLET DEVICES (768px - 1024px)
   ====================================== */
@media screen and (max-width: 1024px) {
  /* Container adjustments */
  .container {
    max-width: 90%;
    padding: 0 var(--spacing-sm);
  }
  
  /* Navigation adjustments */
  .nav-list {
    gap: var(--spacing-md);
  }
  
  /* Hero section */
  .hero-content {
    max-width: 90%;
  }
  
  .hero-title-main {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  /* Grid adjustments */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
  }
  
  .industries-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  /* Why choose us section */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* About section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-stats {
    justify-content: center;
  }
  
  /* Contact section */
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
  }
}

/* ======================================
   MOBILE DEVICES (480px - 767px)
   ====================================== */
@media screen and (max-width: 768px) {
  /* Spacing adjustments */
  :root {
    --spacing-xxl: 3rem;
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Navigation mobile menu */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-white);
    transition: var(--transition-medium);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: 0;
  }
  
  .nav-item {
    border-bottom: 1px solid var(--light-grey);
    padding: var(--spacing-md) 0;
  }
  
  .nav-link {
    display: block;
    padding: var(--spacing-sm) 0;
    font-size: 1.1rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Hero section mobile */
  .hero {
    height: 80vh;
  }
  
  .hero-title-main {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .btn {
    min-width: 200px;
  }
  
  /* Services section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
  
  /* Industries section */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .industry-card {
    padding: var(--spacing-md);
  }
  
  .industry-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .industry-title {
    font-size: 1rem;
  }
  
  /* Portfolio section */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Contact section */
  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  /* Floating WhatsApp button */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  /* Back to top button */
  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ======================================
   SMALL MOBILE DEVICES (320px - 479px)
   ====================================== */
@media screen and (max-width: 480px) {
  /* Container adjustments */
  .container {
    max-width: 95%;
    padding: 0 var(--spacing-xs);
  }
  
  /* Typography */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Hero section */
  .hero-title-main {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  /* Button adjustments */
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    min-width: 180px;
  }
  
  /* Language switcher */
  .language-switcher {
    padding: 2px;
  }
  
  .lang-btn {
    padding: var(--spacing-xs);
    font-size: 0.9rem;
  }
  
  /* Services section */
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: var(--spacing-md);
  }
  
  /* Industries section */
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .industry-icon {
    font-size: 1.8rem;
  }
  
  /* Why choose us section */
  .why-us-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .why-us-item {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
  
  /* About section */
  .about-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .stat-item {
    padding: var(--spacing-sm);
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* Contact section */
  .contact-info,
  .contact-form-wrapper {
    padding: var(--spacing-md);
  }
  
  .contact-item {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
  
  .contact-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* Form adjustments */
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .form-control {
    padding: var(--spacing-sm);
    font-size: 0.95rem;
  }
  
  /* Social links */
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ======================================
   LARGE DESKTOP DEVICES (1440px+)
   ====================================== */
@media screen and (min-width: 1440px) {
  /* Container adjustments */
  .container {
    max-width: 1400px;
  }
  
  /* Typography scaling */
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  h3 {
    font-size: 2.25rem;
  }
  
  /* Hero section */
  .hero-content {
    max-width: 900px;
  }
  
  .hero-title-main {
    font-size: 4rem;
  }
  
  .hero-description {
    font-size: 1.5rem;
  }
  
  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
  
  /* Industries grid */
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
  }
  
  /* Portfolio grid */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }
  
  /* Contact form */
  .contact-form-wrapper {
    padding: var(--spacing-xxl);
  }
}

/* ======================================
   LANDSCAPE ORIENTATION FIXES
   ====================================== */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-content {
    padding-top: 100px;
  }
  
  .hero-title-main {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
  }
  
  .scroll-indicator {
    bottom: 15px;
  }
}

/* ======================================
   HIGH DPI / RETINA DISPLAYS
   ====================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img,
  .isometric-img,
  .team-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ======================================
   REDUCED MOTION PREFERENCE
   ====================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ======================================
   PRINT STYLES
   ====================================== */
@media print {
  .header,
  .whatsapp-float,
  .back-to-top,
  .scroll-indicator,
  .hamburger {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .container {
    max-width: 100%;
  }
  
  .btn {
    background: #ccc !important;
    color: black !important;
    border: 1px solid #999 !important;
  }
}