/* ===================================
   RESPONSIVE STYLESHEET
   Mobile-First Approach
   =================================== */

/* ===================================
   LARGE DESKTOP (1025px+)
   Default styles in main.css
   =================================== */

/* ===================================
   DESKTOP (769px - 1024px)
   =================================== */

@media (max-width: 1024px) {
  /* Container */
  .container {
    max-width: 960px;
  }

  /* Typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }

  /* Hero Section */
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-stats {
    gap: var(--space-xl);
  }

  .stat-item {
    min-width: 130px;
  }

  /* Products Grid */
  .products-swiper .swiper-slide {
    width: 320px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }

  /* About Section */
  .about-content {
    gap: var(--space-2xl);
  }

  /* Contact Section */
  .contact-content {
    gap: var(--space-2xl);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
  }
}

/* ===================================
   TABLET (481px - 768px)
   =================================== */

@media (max-width: 768px) {
  /* Container */
  .container {
    max-width: 720px;
    padding: 0 var(--space-lg);
  }

  .products-section .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .products-section .section-header,
  .products-section .products-slider-nav {
    padding-left: 0;
    padding-right: 0;
  }

  /* Typography */
  :root {
    --font-5xl: 2.25rem;
    --font-4xl: 2rem;
    --font-3xl: 1.75rem;
    --font-2xl: 1.5rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }

  /* Section Spacing */
  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-2xl);
    gap: var(--space-md);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--font-md);
    border-radius: var(--radius-md);
    background: var(--background);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--primary-blue);
    color: var(--white);
  }

  .mobile-menu-toggle {
    display: flex;
    justify-content: center;
    align-content: center;
  }

  /* Hero Section */
  .hero-swiper {
    height: calc(100vh - 80px);
    min-height: 550px;
  }

  .hero-content {
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-buttons .btn {
    flex: 1 1 auto;
    min-width: 200px;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-around;
    width: 100%;
    gap: var(--space-md);
  }

  .stat-item {
    min-width: auto;
    flex: 1;
    padding: var(--space-md);
    flex-direction: column;
    text-align: center;
  }

  .stat-item i {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
  }

  .stat-number {
    font-size: var(--font-2xl);
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Hero Navigation */
  .hero-nav {
    width: 40px;
    height: 40px;
  }

  .hero-nav::after {
    font-size: 1rem;
  }

  /* Products Section */
  .products-swiper .swiper-slide {
    width: 280px;
  }

  .product-card {
    margin: 0 auto;
  }

  .products-nav {
    width: 40px;
    height: 40px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
  }

  .service-card {
    padding: var(--space-xl);
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    overflow: hidden;
  }

  .about-image-wrapper {
    order: -1;
    overflow: hidden;
  }

  .about-text .section-tag::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-badge {
    bottom: var(--space-md);
    right: var(--space-md);
    padding: var(--space-md);
  }

  .about-badge i {
    font-size: 2rem;
  }

  .about-badge strong {
    font-size: var(--font-2xl);
  }

  .about-stats {
    justify-content: space-around;
  }

  /* Contact Section */
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  /* Back to Top */
  #back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* ===================================
   MOBILE (320px - 480px)
   =================================== */

@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 var(--space-md);
  }

  /* Typography */
  :root {
    --font-5xl: 1.75rem;
    --font-4xl: 1.5rem;
    --font-3xl: 1.375rem;
    --font-2xl: 1.25rem;
    --font-xl: 1.125rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }

  /* Section Spacing */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-tag {
    font-size: 0.7rem;
  }

  /* Buttons */
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-sm);
    min-height: 44px;
    gap: var(--space-xs);
    white-space: nowrap;
  }

  .btn i {
    font-size: 1em;
  }

  /* Navigation */
  .navbar {
    padding: var(--space-sm) var(--space-md);
    min-height: 70px;
  }

  header .logo {
    width: 120px;
    height: 40px;
  }

  .brand-icon {
    font-size: 1.5rem;
  }

  .brand-name {
    font-size: var(--font-md);
  }

  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
    padding: var(--space-xl) var(--space-md);
  }

  .language-toggle {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.7rem;
    gap: var(--space-xs);
  }

  .lang-flag {
    padding: var(--space-xs);
    font-size: 0.7rem;
  }

  .mobile-menu-toggle {
    padding: var(--space-xs);
  }

  .hamburger {
    width: 22px;
    height: 2px;
  }

  /* Hero Section */
  .hero-section {
    margin-top: 70px;
  }

  .hero-swiper {
    height: auto;
    min-height: calc(100vh - 70px);
  }

  .hero-slide {
    height: auto;
    min-height: calc(100vh - 70px);
  }

  .hero-content {
    padding: var(--space-xl) var(--space-md) var(--space-3xl) var(--space-md);
    justify-content: flex-start;
    min-height: calc(100vh - 70px);
  }

  .hero-text {
    margin-bottom: var(--space-xl);
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
  }

  .hero-buttons {
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
  }

  .hero-buttons .btn {
    padding: 0.625rem var(--space-md);
    font-size: 0.813rem;
    min-height: 42px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
  }

  .stat-item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-md);
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    min-width: 100%;
    background: rgba(255, 255, 255, 0.08);
  }

  .stat-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .stat-number {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .stat-label {
    font-size: 0.688rem;
    margin: 0;
    line-height: 1.3;
  }

  /* Hero Navigation */
  .hero-nav {
    width: 35px;
    height: 35px;
  }

  .swiper-button-prev.hero-nav {
    left: 10px;
  }

  .swiper-button-next.hero-nav {
    right: 10px;
  }

  .swiper-pagination {
    bottom: 30px !important;
    padding: 0 50px;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-pagination-bullet-active {
    width: 20px;
  }

  /* Products Section */
  .products-swiper {
    padding: var(--space-sm) 0 var(--space-xl) 0;
  }

  .products-swiper .swiper-slide {
    width: 100%;
    max-width: 320px;
  }

  .product-image {
    height: 200px;
  }

  .product-badge {
    top: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.65rem;
  }

  .product-content {
    padding: var(--space-md);
  }

  .product-title {
    font-size: var(--font-md);
  }

  .product-description {
    font-size: 0.8rem;
  }

  .product-features {
    gap: var(--space-xs);
  }

  .feature {
    font-size: 0.75rem;
  }

  .products-nav {
    display: none;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card {
    padding: var(--space-lg) var(--space-md);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
  }

  .service-title {
    font-size: var(--font-md);
  }

  .service-description {
    font-size: 0.8rem;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    overflow: hidden;
  }

  .about-image-wrapper {
    overflow: hidden;
  }

  .about-image-decoration {
    top: -10px;
    left: -10px;
    border-width: 3px;
  }

  .about-badge {
    bottom: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .about-badge i {
    font-size: 1.5rem;
  }

  .about-badge strong {
    font-size: var(--font-xl);
  }

  .about-badge span {
    font-size: 0.7rem;
  }

  .about-description {
    font-size: var(--font-sm);
  }

  .about-features {
    gap: var(--space-md);
  }

  .about-feature i {
    font-size: 1.25rem;
  }

  .about-feature h4 {
    font-size: var(--font-base);
  }

  .about-feature p {
    font-size: 0.8rem;
  }

  .about-stats {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
  }

  .about-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--background);
    border-radius: var(--radius-md);
  }

  .about-stat .stat-number {
    font-size: var(--font-2xl);
  }

  .about-stat .stat-label {
    font-size: var(--font-sm);
  }

  /* Contact Section */
  .contact-form {
    gap: var(--space-md);
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: var(--space-sm);
    font-size: var(--font-sm);
  }

  .form-group textarea {
    min-height: 100px;
  }

  .info-item {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .info-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .info-content h4 {
    font-size: var(--font-base);
  }

  .info-content p {
    font-size: 0.8rem;
  }

  .social-links {
    padding: var(--space-md);
  }

  .social-links h4 {
    font-size: var(--font-base);
  }

  .social-icons {
    gap: var(--space-sm);
    flex-wrap: wrap;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: var(--font-base);
  }

  .contact-map {
    margin-top: var(--space-md);
  }

  /* Footer */
  .footer {
    padding-top: var(--space-3xl);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }

  .footer-brand {
    margin-bottom: var(--space-md);
  }

  .footer-description {
    font-size: 0.8rem;
  }

  .footer-social {
    gap: var(--space-sm);
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: var(--font-sm);
  }

  .footer-title {
    font-size: var(--font-base);
    margin-bottom: var(--space-md);
  }

  .footer-links {
    gap: var(--space-xs);
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-contact li {
    gap: var(--space-sm);
    font-size: 0.8rem;
  }

  .footer-bottom {
    padding: var(--space-lg) 0;
  }

  .footer-bottom-content {
    gap: var(--space-sm);
  }

  .copyright {
    font-size: 0.75rem;
  }

  .footer-legal {
    font-size: 0.75rem;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .separator {
    display: none;
  }

  /* Back to Top */
  #back-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: var(--font-base);
  }
}

/* ===================================
   EXTRA SMALL MOBILE (max 360px)
   =================================== */

@media (max-width: 360px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .hero-swiper {
    min-height: calc(100vh - 70px);
  }

  .hero-content {
    padding: var(--space-lg) var(--space-sm) var(--space-2xl) var(--space-sm);
  }

  .hero-title {
    font-size: 1.375rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.813rem;
    line-height: 1.4;
  }

  .hero-buttons .btn {
    font-size: 0.75rem;
    padding: 0.5rem var(--space-sm);
  }

  .stat-item {
    padding: 0.5rem var(--space-sm);
  }

  .stat-item i {
    font-size: 1.25rem;
  }

  .stat-number {
    font-size: 1.125rem;
  }

  .stat-label {
    font-size: 0.625rem;
  }

  .products-swiper .swiper-slide {
    max-width: 280px;
  }

  .service-card {
    padding: var(--space-md);
  }

  .info-item {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   LANDSCAPE ORIENTATION
   =================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero-swiper {
    min-height: 400px;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    width: auto;
    gap: var(--space-sm);
  }

  .stat-item {
    flex-direction: row;
    min-width: 200px;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  #loading-screen,
  #back-to-top,
  #scroll-progress,
  .mobile-menu-toggle,
  .language-toggle,
  .hero-nav,
  .swiper-pagination,
  .products-nav,
  .footer-social,
  .social-icons {
    display: none !important;
  }

  .header {
    position: static;
  }

  .nav-menu {
    position: static;
    transform: none;
    height: auto;
    flex-direction: row;
  }

  .section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0055AA;
    --text-dark: #000000;
    --border-color: #333333;
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion */
@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;
  }

  .wow {
    visibility: visible !important;
    animation: none !important;
  }
}

/* Dark Mode Preference (Optional Enhancement) */
@media (prefers-color-scheme: dark) {
  /* If implementing dark mode, styles would go here */
  /* Currently the design uses dark sections intentionally */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn,
  .nav-link,
  .language-toggle,
  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects that don't work on touch */
  .product-card:hover,
  .service-card:hover,
  .btn:hover {
    transform: none;
  }

  /* Add active states instead */
  .btn:active {
    transform: scale(0.98);
  }

  .product-card:active,
  .service-card:active {
    transform: translateY(-5px);
  }
}
