/* 
   Styles.css for Sahar Ahadi Architecture Website
   Main stylesheet for desktop and tablet views
*/

/* ===== GLOBAL STYLES ===== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #c0392b;
  --accent-color: #e67e22;
  --background-color: #ffffff;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Raleway', sans-serif;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --heading-font: 'Arial', sans-serif;
  --body-font: 'Arial', sans-serif;
  --primary-rgb: 44, 62, 80;
  --secondary-rgb: 192, 57, 43;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.page-header h1{
  text-align: center;
  color: var(--white);
  font-size:3.5rem;
}

.about-hero h1{
  text-align: center;
  color: var(--white);
  font-size:3.5rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 100px 0;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 5px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Desktop Navigation */
nav {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

.language-toggle {
    margin-left: 20px;
    margin-top: 10px;
}

.language-toggle a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.language-toggle a:hover,
.language-toggle a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    margin-left: 20px;
}

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

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

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

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

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        padding: 80px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    nav.active {
        display: block;
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
    }

    nav ul li {
        width: auto;
        text-align: center;
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem;
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
        white-space: nowrap;
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: var(--secondary-color);
    }

    .language-toggle {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .language-toggle a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        display: inline-block;
        padding: 10px 20px;
        font-size: 1.1rem;
    }

    .language-toggle a:hover,
    .language-toggle a.active {
        color: var(--secondary-color);
    }

    /* RTL Support for Mobile Menu */
    [dir="rtl"] nav {
        right: auto;
        left: -100%;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    [dir="rtl"] nav.active {
        right: auto;
        left: 0;
    }

    [dir="rtl"] nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    [dir="rtl"] nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    [dir="rtl"] nav ul li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        direction: rtl;
        text-align: center;
    }

    [dir="rtl"] .language-toggle {
        text-align: center;
        margin-top: 30px;
    }

    /* Overlay for mobile menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Header adjustments for mobile */
    header {
        padding: 10px 0;
    }

    header .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 50px;
    }
    
    .tagline {
        display: none;
    }

    /* Adjust header layout */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 1;
    }

    .mobile-menu-toggle {
        margin-left: 20px;
    }

    [dir="rtl"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: 20px;
    }

    /* RTL specific adjustments */
    [dir="rtl"] .mobile-menu-toggle span {
        transform-origin: right;
    }

    [dir="rtl"] .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(-45deg);
    }

    [dir="rtl"] .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(45deg);
    }
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.current {
  opacity: 1;
}

.slide:nth-child(1) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-1.jpg');
}

.slide:nth-child(2) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-2.jpg');
}

.slide:nth-child(3) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-3.jpg');
}

.slide .content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.slide .content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white);
}

.slide .content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--white);
}

.slider-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.slider-controls button {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls button:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* ===== INTRODUCTION SECTION ===== */
.introduction {
  background-color: var(--light-gray);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ===== FEATURED PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.project {
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 300px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
  background-color: white;
}

.project-info h3 {
  margin-bottom: 5px;
}

.project-info p {
  color: var(--dark-gray);
  margin-bottom: 0;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover .project-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  text-align: center;
  padding: 20px;
  background-color: #bcbbb5;
}

.overlay-content p {
  margin-bottom: 20px;
}

/* ===== SERVICES OVERVIEW ===== */
.services-overview {
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service {
  background-color: white;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.services-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===== ABOUT PREVIEW ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.credentials {
  list-style: none;
  margin-bottom: 30px;
}

.credentials li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.credentials li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: var(--secondary-color);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--light-gray);
  text-align: center;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 200px;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial.current {
  opacity: 1;
}

blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

cite {
  font-style: normal;
  color: var(--dark-gray);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-controls button {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-controls button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    margin-left: 20px;
    margin-right: 20px;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-details i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact-map {
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RTL Support for Contact Page */
[dir="rtl"] .contact-details li {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-details i {
    margin-right: 0;
    margin-left: 15px;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .contact {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px;
    }

    .contact-map {
        height: 300px;
    }
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contact h4,
.footer-social h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Print Styles */
@media print {
  header, 
  .hero,
  .slider-controls,
  .btn,
  .social-icons,
  .footer-bottom {
    display: none;
  }

  body {
    color: #000;
  }

  .container {
    max-width: 100%;
  }
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.page-header{
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/services-header.jpg);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}
.about-hero{
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/services-header.jpg);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.header-logo {
    display: flex;
    align-items: center;
    margin: 0 2rem;
}

.header-logo img {
    height: 60px;
    width: auto;
}

@media (max-width: 991px) {
    .header-logo {
        margin: 0 1rem;
    }

    .header-logo img {
        height: 50px;
    }
}

@media (max-width: 767px) {
    .header-logo img {
        height: 40px;
    }
}