@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;800&display=swap');

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

html {
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #1a1a2e;
  line-height: 1.8;
  overflow-x: hidden;
}

/* header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

header:hover {
  background: rgba(255, 255, 255, 0.98);
  padding: 18px 45px;
}

header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #2d3561;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #667eea;
  transform: translateY(-2px);
}

/* hero */
.hero {
  text-align: center;
  padding: 140px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h2 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 22px;
  margin-bottom: 35px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button.ad {
  padding: 14px 32px;
  margin: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button.ad:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* sections */
.page-section {
  padding: 80px 20px;
}

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

section > h2, #services > h2, #team > h2, .page-section h2 {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

section > h2::after, #services > h2::after, #team > h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* about */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

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

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin: 15px 0 5px;
  font-size: 22px;
  font-weight: 700;
  color: #2d3561;
}

.card p {
  color: #667eea;
  font-weight: 500;
}

/* contact */
#contact {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-form, .contact-info {
  flex: 1;
  min-width: 280px;
}

input, textarea {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

input:focus, textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 14px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.contact-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  border-radius: 20px;
  color: #fff;
}

.contact-info p {
  margin: 20px 0;
  font-size: 16px;
}

.submit-message {
  color: #28a745;
  font-weight: 600;
  margin-top: 15px;
  text-align: center;
}

/* footer */
footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 30px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px 20px;
  }
  
  header h1 {
    font-size: 24px;
  }
  
  nav a {
    display: inline-block;
    margin: 5px 10px;
    font-size: 14px;
  }
  
  .hero h2 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .hero {
    padding: 80px 20px;
  }
  
  button.ad {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  section > h2, #services > h2, #team > h2 {
    font-size: 32px;
  }
  
  .about-content, .contact-content {
    padding: 20px;
    gap: 25px;
  }
  
  .cards {
    gap: 20px;
  }
  
  .card img {
    height: 160px;
  }
  
  .contact-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 26px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  button.ad {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
  
  .card h3 {
    font-size: 18px;
  }
}