/* Unicorn Bodrum Website - Responsive Styles */

/* This file contains responsive styles for different screen sizes */

/* ===== MEDIA QUERIES ===== */

/* Large Screens (above 1200px) */
@media (min-width: 1201px) {
  .container {
    max-width: 1140px;
  }
}

/* Desktop (992px - 1200px) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  html {
    font-size: 15px;
  }
  
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  /* Grid Layouts */
  .about-content,
  .solar-content,
  .farming-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-image,
  .solar-image,
  .farming-image {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .farming-image {
    order: 1;
  }
  
  .farming-text {
    order: 2;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .footer-info {
    grid-column: span 2;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  
  .container {
    max-width: 540px;
    padding: 0 var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Navigation */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: var(--light-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) 0;
    margin: 0;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: var(--spacing-sm) 0;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Hero Section */
  .hero {
    height: auto;
    min-height: 500px;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  /* Grid Layouts */
  .services-grid,
  .projects-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features,
  .solar-features {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-info {
    grid-column: span 1;
  }
  
  /* Language Selector */
  .language-selector {
    position: static;
    margin-top: var(--spacing-sm);
  }
  
  .language-dropdown {
    width: 100%;
    left: 0;
    right: auto;
  }
  
  /* Custom Cursor */
  .custom-cursor {
    display: none;
  }
}

/* Small Mobile (below 576px) */
@media (max-width: 575px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Projects Filter */
  .projects-filter {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
    margin-bottom: var(--spacing-xs);
  }
  
  /* Testimonials */
  .testimonial-item {
    padding: var(--spacing-md);
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: var(--spacing-md);
  }
  
  /* Back to Top Button */
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

/* Height-based Media Queries */
@media (max-height: 700px) {
  .hero {
    min-height: 450px;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .custom-cursor,
  .preloader {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  body:not(.light-theme) {
    --primary-color: #2a4d80;
    --secondary-color: #4ca56a;
    --light-color: #121212;
    --light-gray: #1e1e1e;
    --medium-gray: #2d2d2d;
    --dark-gray: #e0e0e0;
    --black: #f5f5f5;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
}

/* High Contrast Mode */
@media (forced-colors: active) {
  .btn,
  .nav-link,
  .footer,
  .service-card,
  .project-card,
  .blog-card,
  .testimonial-item,
  .contact-form {
    border: 1px solid CanvasText;
  }
}

/* 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;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
