﻿/* royan_gostar/css/style.css */
@font-face {
  font-family: "Vazir";
  src:
    url("../fonts/Vazir-Regular.woff2") format("woff2"),
    url("../fonts/Vazir-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Vazir";
  src:
    url("../fonts/Vazir-Bold.woff2") format("woff2"),
    url("../fonts/Vazir-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

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

body {
  font-family: "Vazir", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: #2c3e50;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo-img {
  width: 50px;
  border-radius: 10%;
  object-fit: cover;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #3498db;
}

/* Hero Section */
.hero {
  background: url("../images/hero.jpg") no-repeat center center/cover;
  height: 500px;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 2rem;
}

/* Button */
.btn {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #2980b9;
}

/* Services Section */
.services {
  padding: 4rem 0;
  background: #fff;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* Projects Section */
.recent-projects,
.all-projects {
  padding: 4rem 0;
  background: #f4f4f4;
}

.recent-projects h2,
.all-projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: #666;
  line-height: 1.8;
}

.recent-projects .btn {
  display: block;
  width: fit-content;
  margin: 2rem auto 0;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
}

/* About Section */
.about-content {
  padding: 4rem 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.about-text h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-text p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.values-section {
  margin-top: 4rem;
}

.values-section h3 {
  text-align: center;
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-card h4 {
  color: #3498db;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* Contact Section */
.contact-content {
  padding: 4rem 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item h4 {
  color: #3498db;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: #666;
  line-height: 1.6;
}

/* Contact Form */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Vazir", sans-serif;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #fff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #3498db;
}

.footer-section p {
  line-height: 1.8;
  color: #ecf0f1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    /* flex-direction: column; */
    gap: 1.2rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .projects-grid,
  .service-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth Animations */
* {
  transition: all 0.3s ease;
}

img {
  transition: transform 0.3s ease;
}
