/* ===== RESPONSIVE STYLES ===== */

/* Mobile First Approach */

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: var(--font-size-4xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 2.88rem;
  }
  
  .section-title {
    font-size: 2.32rem;
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) var(--spacing-lg) !important;
  }
  
  .service-card img {
    height: 220px;
  }
  
  .feature-card {
    margin-bottom: var(--spacing-lg);
  }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3.31rem;
  }
  
  .section-title {
    font-size: 2.58rem;
  }
  
  .navbar {
    padding: var(--spacing-lg) 0;
  }
  
  .service-card img {
    height: 240px;
  }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3.60rem;
  }
  
  .section-title {
    font-size: 2.90rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* ===== MOBILE SPECIFIC STYLES (767px and down) ===== */
@media (max-width: 767px) {
  /* Typography */
  .hero-section h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  /* Header */
  .navbar-brand {
    font-size: var(--font-size-lg) !important;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1.19rem;
  }
  
  .navbar-collapse {
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
    padding-top: var(--spacing-md);
  }
  
  .navbar-nav .nav-link {
    padding: var(--spacing-sm) 0 !important;
    text-align: center;
  }
  
  /* Hero Section */
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 90vh;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-section .lead {
    font-size: var(--font-size-lg);
  }
  
  /* Sections */
  section {
    padding: 2rem 0;
  }
  
  /* Cards */
  .feature-card, .service-card, .automation-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .service-card img {
    height: 180px;
  }
  
  /* Forms */
  .form-control {
    padding: 0.75rem;
    font-size: var(--font-size-base);
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    width: 100%;
  }
  
  /* Contact Info */
  .contact-info-item {
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  /* Footer */
  footer .col-lg-4 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  /* Integration Items */
  .integration-item {
    margin-bottom: var(--spacing-md);
  }
  
  .integration-item img {
    max-height: 40px;
  }
  
  /* Breadcrumbs */
  .breadcrumb-item img {
    width: 16px;
    height: 16px;
  }
  
  /* Timeline */
  .timeline {
    padding-left: 2rem;
  }
  
  .timeline::before {
    left: 0.5rem;
  }
  
  .timeline-marker {
    left: -0.125rem;
    width: 0.75rem;
    height: 0.75rem;
  }
  
  .timeline-content {
    padding-left: 0.5rem;
  }
  
  /* Space adjustments */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
}

/* ===== TABLET SPECIFIC STYLES (768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section h1 {
    font-size: 2.60rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .feature-card {
    margin-bottom: var(--spacing-md);
  }
  
  .automation-card {
    margin-bottom: var(--spacing-md);
  }
  
  .integration-item {
    margin-bottom: var(--spacing-sm);
  }
}

/* ===== LANDSCAPE MOBILE STYLES ===== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    min-height: 80vh;
  }
  
  .hero-section h1 {
    font-size: var(--font-size-2xl);
  }
  
  section {
    padding: 1.5rem 0;
  }
}

/* ===== ULTRA WIDE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-lg);
  }
  
  .form-control {
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0 !important;
  }
  
  /* Remove hover effects on touch devices */
  .feature-card:hover,
  .service-card:hover,
  .automation-card:hover,
  .integration-item:hover {
    transform: none;
    box-shadow: inherit;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg-overlay {
    background-image: url('../GOK_images/hero-bg@2x.webp');
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  /* Note: Dark mode is not implemented as per requirements */
  /* This is here for future reference */
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .feature-card,
  .service-card,
  .automation-card,
  .integration-item,
  .btn {
    transition: none;
  }
  
  .fade-in-up {
    animation: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .breadcrumb,
  footer,
  .btn {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px !important;
}

.hero-section {
    background: none !important;
    color: var(--black) !important;
  }
  
  .hero-section h1,
  .hero-section .lead,
  .hero-section p {
    color: var(--black) !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .feature-card {
    box-shadow: none;
    border: 1px solid var(--gray);
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-contrast: high) {
  .btn-primary {
    background: var(--primary-dark);
    border: 2px solid var(--white);
  }
  
  .feature-card,
  .service-card {
    border: 2px solid var(--gray);
  }
  
  .form-control {
    border: 2px solid var(--dark-gray);
  }
}

/* ===== FOCUS STYLES FOR KEYBOARD NAVIGATION ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
  .navbar-nav {
    margin-left: 0;
    margin-right: auto;
  }
  
  .service-card ul li::before {
    margin-left: var(--spacing-sm);
    margin-right: 0;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    float: right;
  }
} 