/* Gaming Studio Website - Responsive Styles */

/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Hero Section */
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 16px !important;
    text-align: center;
  }
  
  /* Cards and Components */
  .feature-card,
  .service-card,
  .team-card,
  .price-card,
  .review-card,
  .case-card,
  .info-card,
  .material-card,
  .process-card,
  .cert-card,
  .goal-card {
    margin-bottom: 1.5rem;
  }
  
  .process-step {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  /* Team cards */
  .team-card img {
    width: 100px;
    height: 100px;
  }
  
  /* Timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1rem;
    text-align: left;
  }
  
  .timeline-content::before {
    left: -15px;
    border-right-color: white;
    border-left: none;
  }
  
  /* Impact numbers */
  .impact-number {
    font-size: 2rem;
  }
  
  /* Future tech years */
  .tech-year {
    font-size: 1.5rem;
  }
  
  /* Contact form */
  .contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery .col-6 {
    margin-bottom: 0.5rem;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Sections */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Price display */
  .price-card .price {
    font-size: 1.5rem;
  }
  
  .service-card .price {
    font-size: 1.125rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section h2 {
    font-size: 1.25rem;
  }
  
  .process-step {
    padding: 1.25rem;
  }
  
  .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.375rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    padding-left: 1.75rem;
  }
  
  .impact-number {
    font-size: 2.5rem;
  }
  
  .tech-year {
    font-size: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 110px 0 70px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section h2 {
    font-size: 1.375rem;
  }
  
  /* Timeline adjustments for tablet */
  .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 52%;
    padding-right: 1.75rem;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    padding-left: 1.75rem;
  }
  
  /* Cards in 2 columns */
  .feature-card,
  .service-card,
  .team-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .process-step {
    padding: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    padding: 120px 0 80px;
  }
  
  .hero-section h1 {
    font-size: 2.75rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0 6px;
    padding: 8px 14px !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* ===== UTILITY RESPONSIVE CLASSES ===== */

/* Hide elements on mobile */
@media (max-width: 767.98px) {
  .d-none-mobile {
    display: none !important;
  }
}

/* Hide elements on desktop */
@media (min-width: 768px) {
  .d-none-desktop {
    display: none !important;
  }
}

/* Text alignment responsive */
@media (max-width: 767.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .text-left-mobile {
    text-align: left !important;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn {
    min-height: 44px;
    padding: 12px 24px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .social-link {
    width: 44px;
    height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .feature-card:hover,
  .team-card:hover,
  .info-card:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  /* Better touch feedback */
  .btn:active,
  .card:active {
    transform: scale(0.98);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .breadcrumb,
  footer,
  .btn,
  .social-link {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
    padding: 2rem 0 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* ===== 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;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000 !important;
  }
  
  .btn-primary {
    background: #000 !important;
    border: 2px solid #000 !important;
    color: #fff !important;
  }
  
  .navbar {
    border-bottom: 2px solid #000 !important;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f3f4f6;
    --text-light: #d1d5db;
    --border-color: #374151;
    --light-color: #1f2937;
  }
  
  body {
    background-color: #111827;
    color: var(--text-dark);
  }
  
  .card,
  .feature-card,
  .team-card,
  .info-card,
  .contact-info {
    background-color: #1f2937;
    border-color: var(--border-color);
    color: var(--text-dark);
  }
  
  .navbar {
    background-color: rgba(31, 41, 55, 0.95) !important;
  }
  
  .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: var(--text-dark);
  }
  
  .form-control:focus {
    background-color: #374151;
  }
  
  .bg-light {
    background-color: #1f2937 !important;
  }
}

/* ===== ORIENTATION CHANGES ===== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ===== RETINA/HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-size: cover;
    background-position: center;
  }
  
  .card-img-top,
  .gallery img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== CONTAINER QUERIES (Future-proofing) ===== */
@container (max-width: 400px) {
  .card-body {
    padding: 1rem;
  }
  
  .feature-card,
  .info-card {
    padding: 1.5rem;
  }
}

/* ===== FLEXIBLE GRID ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* ===== FORM RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn[type="submit"] {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ===== NAVIGATION RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
}
