/* ==========================================================================
   GERAL TALU - RESPONSIVE STYLESHEET
   Supports: 320px, 375px, 425px, 768px, 1024px, 1140px, 1280px, 1440px+
   ========================================================================== */

/* --- 1. LARGE DESKTOPS & SCREENS (1280px - 1440px) --- */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
}

/* --- 2. DESKTOPS & SMALL LAPTOPS (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 40px;
  }
  
  .projects-grid,
  .services-grid,
  .testimonials-grid,
  .blog-grid {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 32px;
  }
}

/* --- 2.5 TABLETS & LAPTOPS (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .nav-links,
  .nav-actions .btn-hire {
    display: none !important;
  }

  .mobile-toggle-btn {
    display: flex !important;
  }

  header.navbar, .navbar {
    background: var(--bg-glass-strong) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
  }
}

/* --- 3. TABLETS & SMALL SCREENS (max-width: 1024px) --- */
@media (max-width: 1024px) {

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-greeting {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-role-wrapper {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-container {
    max-width: 360px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge-1 {
    left: -10px;
    bottom: 10px;
  }

  .floating-badge-2 {
    right: -10px;
    top: 20px;
  }
}

/* --- 4. TABLETS PORTRAIT (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  header.navbar, .navbar {
    height: 64px !important;
  }

  header.navbar.scrolled, .navbar.scrolled {
    height: 64px !important;
  }

  header.navbar .navbar-container, .navbar-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .hero-section {
    padding-top: calc(64px + 24px);
    padding-bottom: 50px;
  }

  .projects-grid,
  .services-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .budget-pills {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -28px;
    width: 20px;
    height: 20px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-card {
    padding: 20px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* --- 5. MOBILE DEVICES (max-width: 480px) --- */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  header.navbar, .navbar {
    height: 60px !important;
  }

  header.navbar.scrolled, .navbar.scrolled {
    height: 60px !important;
  }

  header.navbar .navbar-container, .navbar-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .nav-brand {
    font-size: 1.15rem !important;
    gap: 8px !important;
  }

  .brand-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .nav-actions {
    gap: 8px !important;
  }

  .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .mobile-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
  }

  .mobile-toggle-btn span {
    width: 18px !important;
  }

  .mobile-menu-drawer {
    padding-top: 72px;
    width: min(85vw, 320px);
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-role-wrapper {
    font-size: 1.15rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
    min-height: 140px;
  }

  .stat-icon {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }

  .stat-number {
    font-size: 1.75rem;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .hero-card-container {
    max-width: 290px;
  }

  .floating-badge {
    padding: 8px 12px;
    gap: 8px;
  }

  .floating-badge-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .floating-badge-title {
    font-size: 0.825rem;
  }

  .floating-badge-sub {
    font-size: 0.7rem;
  }

  .floating-badge-1 {
    left: -6px;
    bottom: -10px;
  }

  .floating-badge-2 {
    right: -6px;
    top: 10px;
  }

  .projects-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .page-header {
    padding-top: calc(60px + 20px);
    padding-bottom: 28px;
  }

  .toast {
    left: 16px;
    right: 16px;
    width: auto;
    transform: translateY(120%);
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* --- 6. SMALL MOBILES (max-width: 360px) --- */
@media (max-width: 360px) {
  :root {
    --header-height: 56px;
  }

  header.navbar, .navbar {
    height: 56px !important;
  }

  header.navbar.scrolled, .navbar.scrolled {
    height: 56px !important;
  }

  header.navbar .navbar-container, .navbar-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

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

  .nav-brand {
    font-size: 1.05rem !important;
    gap: 6px !important;
  }

  .brand-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
  }

  .nav-actions {
    gap: 6px !important;
  }

  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }

  .mobile-toggle-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .mobile-toggle-btn span {
    width: 16px !important;
  }

  .page-header {
    padding-top: calc(56px + 16px);
    padding-bottom: 22px;
  }

  .hero-section {
    padding-top: calc(56px + 16px);
  }

  .card, .glass-card, .service-card, .project-body {
    padding: 16px;
  }
}
