/* 
   Responsive.css for Sahar Ahadi Architecture Website
   Responsive styles for mobile and tablet views
*/

/* Tablet Styles (768px to 1023px) */
@media screen and (max-width: 1023px) {
  /* Global adjustments */
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  /* Header adjustments */
  .logo h1 {
    font-size: 1.5rem;
  }
  
  nav ul li {
    margin-left: 20px;
  }
  
  /* Hero section */
  .slide .content h2 {
    font-size: 2.5rem;
  }
  
  /* Projects grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* About section */
  .about-grid {
    gap: 30px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-info {
    grid-column: span 2;
  }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {
  /* Global adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  /* Header adjustments */
  header {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    z-index: 2;
  }
  
  .logo h1 {
    font-size: 1.3rem;
    margin: 0;
  }
  
  .tagline {
    font-size: 0.8rem;
    margin: 5px 0 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }
  
  nav.show {
    right: 0;
  }
  
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  nav ul li {
    margin: 0;
    text-align: right;
  }
  
  nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
  }
  
  .language-toggle {
    position: absolute;
    bottom: 40px;
    right: 20px;
    display: block;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
  
  /* RTL specific mobile menu adjustments */
  [dir="rtl"] nav {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
  }
  
  [dir="rtl"] nav.show {
    right: auto;
    left: 0;
  }
  
  [dir="rtl"] nav ul li {
    text-align: left;
  }
  
  [dir="rtl"] .language-toggle {
    right: auto;
    left: 20px;
  }
  
  /* Hero section */
  .hero {
    height: 70vh;
    margin-top: 60px;
  }
  
  .slide .content {
    text-align: center;
  }
  
  .slide .content h2 {
    font-size: 2rem;
  }
  
  .slide .content h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .slider-controls {
    bottom: 50px;
    right: 20px;
  }
  
  .slider-controls button {
    width: 40px;
    height: 40px;
  }
  
  /* Projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-content h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .credentials li {
    padding-left: 0;
    text-align: center;
  }
  
  .credentials li:before {
    display: none;
  }
  
  /* Testimonials */
  blockquote {
    font-size: 1rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-info {
    grid-column: span 1;
  }
  
  .social-icons {
    justify-content: center;
    display: flex;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
