/* ===========================================
   RESPONSIVE ENHANCEMENTS - 2025
   =========================================== */

/* === MOBILE FIRST APPROACH === */

/* Mobile Base Styles (320px+) */
@media (min-width: 320px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .btn-modern {
    width: 100%;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .service-card,
  .stat-card,
  .contact-form-modern {
    padding: var(--space-4);
  }
  
  .navbar-content {
    padding: var(--space-2) var(--space-3);
  }
  
  .navbar-brand-modern {
    font-size: var(--text-sm);
  }
  
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* Small Mobile (375px+) */
@media (min-width: 375px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .service-card,
  .stat-card {
    padding: var(--space-5);
  }
}

/* Large Mobile (425px+) */
@media (min-width: 425px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btn-modern {
    width: auto;
    min-width: 160px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
  
  .service-card,
  .stat-card {
    padding: var(--space-6);
  }
  
  .navbar-menu {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  
  .service-card,
  .stat-card,
  .contact-form-modern {
    padding: var(--space-8);
  }
  
  .navbar-content {
    padding: var(--space-4) var(--space-6);
  }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Extra Large Desktop (1536px+) */
@media (min-width: 1536px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .container {
    max-width: 1400px;
  }
}

/* === NAVIGATION RESPONSIVE === */
@media (max-width: 767px) {
  .navbar-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-all);
    z-index: var(--z-dropdown);
  }
  
  .navbar-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-link {
    padding: var(--space-3) 0;
    border-bottom: var(--border-1) solid var(--color-neutral-200);
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
  }
}

/* === TOUCH INTERACTIONS === */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .stat-card:hover,
  .btn-modern:hover {
    transform: none;
  }
  
  .service-card:active,
  .stat-card:active {
    transform: scale(0.98);
  }
  
  .btn-modern:active {
    transform: scale(0.95);
  }
}

/* === ACCESSIBILITY IMPROVEMENTS === */

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-primary-500: #000000;
    --color-neutral-600: #000000;
    --color-neutral-300: #666666;
    --border-1: 2px;
  }
  
  .btn-modern {
    border-width: var(--border-2);
  }
  
  .service-card,
  .stat-card {
    border-width: var(--border-2);
  }
}

/* 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;
  }
  
  .hero-modern[data-parallax] {
    transform: none !important;
  }
}

/* === PRINT STYLES === */
@media print {
  .navbar-modern,
  .fab,
  .scroll-progress,
  .back-to-top,
  .notification-container {
    display: none !important;
  }
  
  .hero-modern {
    background: none !important;
    color: black !important;
  }
  
  .service-card,
  .stat-card {
    box-shadow: none !important;
    border: var(--border-1) solid black !important;
  }
  
  .btn-modern {
    color: black !important;
    border: var(--border-1) solid black !important;
    background: none !important;
  }
  
  .text-neutral-600,
  .text-neutral-700 {
    color: black !important;
  }
  
  body {
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .stat-card {
    page-break-inside: avoid;
  }
}

/* === LANDSCAPE MOBILE === */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-modern {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .navbar-content {
    padding: var(--space-2) var(--space-4);
  }
}

/* === ULTRA-WIDE SCREENS === */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-title {
    font-size: 5rem;
  }
}

/* === FOCUS IMPROVEMENTS === */
.keyboard-nav button:focus,
.keyboard-nav a:focus,
.keyboard-nav input:focus,
.keyboard-nav textarea:focus,
.keyboard-nav select:focus {
  outline: 3px solid var(--color-primary-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.2);
}

/* === LOADING STATES === */
.skeleton-loading {
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-300) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === INTERACTION IMPROVEMENTS === */
.btn-modern,
.service-card,
.stat-card {
  touch-action: manipulation;
}

.btn-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* === FORM RESPONSIVENESS === */
@media (max-width: 767px) {
  .contact-form-modern {
    margin: var(--space-4);
    padding: var(--space-6);
  }
  
  .form-input-modern {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* === NOTIFICATION RESPONSIVENESS === */
@media (max-width: 479px) {
  .notification-container {
    left: var(--space-4);
    right: var(--space-4);
    top: var(--space-4);
    max-width: none;
  }
  
  .notification {
    margin-bottom: var(--space-2);
  }
}

/* === SCROLL IMPROVEMENTS === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Sadece reduced motion tercih edenlerde smooth scroll'u kapat */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Touch device'larda scroll optimize et */
@media (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

/* === IMAGE OPTIMIZATIONS === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* === PERFORMANCE OPTIMIZATIONS === */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

.service-card,
.stat-card,
.btn-modern {
  backface-visibility: hidden;
  perspective: 1000px;
}

.logo-text {
  display: inline-block;
  line-height: 1.2;
}

.header-contact-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topper .icon {
  width: 40px;
  height: 40px;
  background: #2d5016;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.topper .text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #2d5016;
  font-weight: 500;
}

.topper .text span:first-child {
  font-size: 13px;
  color: #2d5016;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topper .text span:last-child {
  font-size: 15px;
  color: #2d5016;
  font-weight: 700;
  color: #333;
  font-weight: 600;
}

/* === CONTENT SECTION RESPONSIVE === */
.navbar-nav .nav-link {
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: #d4af37 !important;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
}

/* === SERVICES SECTION RESPONSIVE === */
.services-2 {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.services-2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
  .services-2 {
    margin-bottom: 1rem;
    min-height: auto !important;
  }
}

@media (max-width: 768px) {
  .services-2 {
    padding: 1.2rem;
    text-align: center;
  }
  .services-2 .icon { margin-bottom: 1rem; }
}

/* === COUNTER SECTION RESPONSIVE === */
#section-counter {
  padding: 4rem 0;
}

.counter-wrap .block-18 {
  padding: 2rem 1rem;
}

.counter-wrap .number {
  font-size: 3rem;
  font-weight: 700;
  color: #2d5016;
  display: block;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .counter-wrap {
    margin-bottom: 2rem;
  }
  
  .counter-wrap .number {
    font-size: 2.5rem;
  }
}

/* === PROJECT GALLERY RESPONSIVE === */
.project {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.project .text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.project:hover .text {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .project {
    height: 250px;
    margin-bottom: 1rem;
  }
  
  .project .text {
    transform: translateY(0);
    background: rgba(0,0,0,0.7);
  }
}

/* === FORM RESPONSIVE === */
.appointment-form {
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .appointment-form {
    padding: 1.5rem;
  }
  
  .appointment-form .d-md-flex {
    flex-direction: column !important;
  }
  
  .appointment-form .form-group {
    margin-bottom: 1rem;
  }
}

/* === FOOTER RESPONSIVE === */
.ftco-footer {
  padding: 3rem 0 1rem;
}

@media (max-width: 768px) {
  .ftco-footer .col-md-6,
  .ftco-footer .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .ftco-footer-widget h2 {
    font-size: 1.2rem;
  }
  
  .block-23 ul li {
    margin-bottom: 0.5rem;
  }
}

/* === GENERAL RESPONSIVE UTILITIES === */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .heading-section h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* === MODERN BUTTON STYLES === */
.btn-primary {
  background: linear-gradient(135deg, #2d5016 0%, #3a6b1d 100%);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a6b1d 0%, #2d5016 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.btn-outline-white {
  border: 2px solid white;
  color: white;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: white;
  color: #2d5016;
  transform: translateY(-2px);
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid #2d5016;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000;
  }
  
  .services-2 {
    border: 2px solid #000;
  }
}

/* 5 Years Experience Badge */
.experience-badge {
  background: linear-gradient(135deg, #2d5016 0%, #3a6b1d 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.experience-badge::before {
  content: "🎯 ";
  margin-right: 0.5rem;
}
