:root {
  --yellow: #f0c73c;
  --dark: #2d3436;
  --bg-dark: #1a1a1a;
  --bg-light: #f7f9fb;
  --text-light: #fff;
  --text-dark: #2d3436;
  --accent: #00b4d8;
  --transition: 0.4s ease;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Vazirmatn', sans-serif;
  color: var(--text-light);
  background: var(--bg-dark);
  scroll-behavior: smooth;
  transition: all var(--transition);
  line-height: 1.7;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 26, 26, 0.95) 100%);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all var(--transition);
}

header.scrolled {
  height: 64px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  font-size: 1.3rem;
  /* Smaller font for name */
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.5px;
}

nav.menu {
  display: flex;
  gap: 32px;
}

nav.menu a {
  font-weight: 500;
  font-size: 1.05rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.menu a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.actions {
  display: flex;
  gap: 16px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--yellow);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-icon:hover {
  transform: scale(1.1);
  color: var(--accent);
}

.mobile {
  display: none;
  flex-direction: column;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 24px;
  gap: 20px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 2000;
}

.mobile.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile a:hover {
  color: var(--accent);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, rgba(240, 199, 60, 0.08) 0%, transparent 100%);
}

.hero .title {
  font-size: 3rem;
  font-weight: 700;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero .title span {
  display: block;
  font-size: 1.4rem;
  color: #e0e0e0;
  margin-top: 16px;
  font-weight: 400;
}

.cta {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(45deg, var(--yellow), #f0a500);
  color: var(--dark);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--accent);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 180, 216, 0.2);
}

.btn.outline {
  background: none;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 8px 16px rgba(240, 199, 60, 0.2);
}

.avatar-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin-top: 0;
  flex-shrink: 0;
}

.ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--yellow);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: rotate 4s linear infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-dark);
  box-shadow: var(--shadow);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  text-align: center;
  /* Centered for better professionalism */
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--yellow);
}

.section-head p {
  color: #d1d8e0;
  margin-top: 16px;
  font-size: 1.15rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: rgba(26, 26, 26, 0.95);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0;
  font-weight: 600;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
}

.card p {
  color: #d1d8e0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card input,
.card textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--yellow);
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

.card input:focus,
.card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.25);
}

.card textarea {
  height: 120px;
  resize: vertical;
}

.work {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.work a {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  display: block;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.work a:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.work a img {
  transition: all var(--transition);
}

.work a:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.work a .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  color: var(--text-light);
  padding: 24px;
  opacity: 0;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(20px);
}

.work a:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

.socials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  font-size: 1.5rem;
}

.socials a:hover {
  transform: scale(1.15) rotate(5deg);
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 8px 16px rgba(0, 180, 216, 0.2);
}

footer {
  text-align: center;
  padding: 48px 0;
  color: #d1d8e0;
  font-size: 1rem;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Styles */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
  }

  .lottie {
    width: 80px;
    height: 80px;
  }

  .avatar-wrap {
    order: -1;
    /* Photo first on mobile */
    margin: 0 auto 32px;
    width: 220px;
    height: 220px;
  }

  .hero .title {
    font-size: 2.4rem;
  }

  .hero .title span {
    font-size: 1.2rem;
  }

  .cta {
    justify-content: center;
  }

  .nav nav.menu {
    display: none;
  }

  .mobile {
    display: flex;
  }

  .section-head {
    text-align: center;
  }

  .grid,
  .work {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero .title {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .lottie {
    width: 80px;
    height: 80px;
  }

  .socials a {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .section-head h2 {
    font-size: 2.2rem;
  }

  .avatar-wrap {
    width: 180px;
    height: 180px;
  }

  .card {
    padding: 24px;
  }
}

.lottie {
  width: 90px;
  height: 90px;
  margin: 4px auto 5px;
}
