@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  background: #0f0f17;
  color: #fff;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #222;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: #6cf;
}

nav a {
  margin-left: 20px;
  opacity: 0.8;
}

nav a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: radial-gradient(circle at top, #1a1a2e, #0f0f17);
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  opacity: 0.8;
  margin-bottom: 30px;
}

.btn {
  background: linear-gradient(135deg, #6cf, #8f6cff);
  padding: 12px 30px;
  border-radius: 30px;
  color: #000;
  font-weight: 500;
  line-height: normal;
  display: inline-block;
  margin-top: 20px;
}

/* Services */
.services {
  padding: 80px 0;
  text-align: center;
}

.services h3 {
  margin-bottom: 40px;
  font-size: 28px;
}

.service-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #171727;
  padding: 30px;
  border-radius: 16px;
}

.card h4 {
  margin: 15px 0 10px;
}

/* Portfolio */
.portfolio {
  padding: 80px 20px;
  background: #121220;
  text-align: center;
}

.portfolio h3 {
  color: #fff;
  font-size: 28px;
}

.portfolio-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* کارت */
.item {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

/* عکس */
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* لایه گلس */
.glass {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: all 0.4s ease;
}

/* متن */
.glass span {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

/* Hover effects */
.item:hover img {
  transform: scale(1.1);
}

.item:hover .glass {
  opacity: 1;
}

.item:hover .glass span {
  transform: translateY(0);
}


/* Contact */
.contact {
  padding: 80px 0;
  text-align: center;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}