/* ========================================
   Reza Nourallahi - Barber Website
   Modern Dark Theme with Smooth Animations
   ======================================== */

/* CSS Variables */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --accent: #d4af37;
  --accent-light: #e8c547;
  --accent-dark: #b8962e;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --border: rgba(212, 175, 55, 0.15);
  --border-hover: rgba(212, 175, 55, 0.4);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Preloader ========== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: loading 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: rotate(-8deg) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

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

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

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

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
  top: -10%;
  left: -10%;
  animation: float-shape 12s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  bottom: 10%;
  right: -5%;
  animation: float-shape 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  top: 40%;
  left: 50%;
  animation: float-shape 10s ease-in-out infinite;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Profile Floating Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-float {
  position: relative;
  width: 340px;
  height: 340px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 0 0 12px rgba(212, 175, 55, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 175, 55, 0.15);
  transition: var(--transition);
}

.profile-float:hover .profile-img {
  border-color: var(--accent);
  box-shadow: 
    0 0 0 12px rgba(212, 175, 55, 0.15),
    0 25px 70px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(212, 175, 55, 0.25);
  transform: scale(1.02);
}

.profile-ring {
  position: absolute;
  inset: -20px;
  border: 1.5px dashed rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  animation: spin 25s linear infinite;
}

.profile-ring.ring-2 {
  inset: -40px;
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.1);
  animation-direction: reverse;
  animation-duration: 35s;
}

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

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: float-badge 5s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.badge-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0.5s;
}

.badge-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: 1.2s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.badge-icon {
  font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== Animations ========== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Sections Common ========== */
section {
  padding: 100px 0;
  position: relative;
}

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== Services ========== */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-10px);
  box-shadow: var(--shadow-gold);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--accent);
  transition: var(--transition);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-5deg);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: var(--transition);
}

.service-card:hover .service-title {
  color: var(--accent);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-hover-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover .service-hover-line {
  transform: scaleX(1);
}

/* ========== About ========== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.about-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.04);
}

.about-img-frame {
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
  transition: var(--transition);
}

.about-img-wrapper:hover .about-img-frame {
  inset: 12px;
  border-color: var(--accent);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0a0a;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.35);
  animation: float-badge 6s ease-in-out infinite;
}

.exp-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.about-content {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  color: var(--text-secondary);
  margin: 24px 0 32px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-features {
  margin-bottom: 36px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.about-features li:hover {
  color: var(--text-primary);
  transform: translateX(-6px);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== Contact ========== */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--border-hover);
  transform: translateX(-6px);
  box-shadow: var(--shadow-gold);
}

.info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}

.info-card:hover .info-icon {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(1.1);
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.info-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.phone-link,
.social-link {
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

.phone-link:hover,
.social-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.contact-map {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease 0.15s;
}

.contact-map.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-placeholder {
  height: 100%;
  min-height: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.05), transparent 40%);
}

.map-placeholder:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.map-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px;
}

.map-content svg {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.map-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.map-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ========== E-namad ========== */
.enamad {
  padding: 60px 0;
}

.enamad-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.enamad-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.enamad-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.enamad-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.enamad-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
}

.enamad-logo a {
  display: inline-block;
  transition: var(--transition);
}

.enamad-logo a:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
}

.enamad-logo img {
  max-width: 125px;
  height: auto;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact .phone-link,
.footer-contact .social-link {
  color: var(--accent);
}

.footer-contact .phone-link:hover,
.footer-contact .social-link:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-note {
  color: var(--text-muted) !important;
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-container {
    gap: 40px;
  }
  
  .profile-float {
    width: 280px;
    height: 280px;
  }
  
  .about-container {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
  }
  
  .nav.open {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  
  .nav-link {
    padding: 14px 20px;
    font-size: 1.05rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .profile-float {
    width: 260px;
    height: 260px;
  }
  
  .floating-badge {
    display: none;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-image {
    max-width: 360px;
    margin: 0 auto;
  }
  
  .about-content {
    text-align: center;
  }
  
  .about-features li {
    justify-content: center;
  }
  
  .about-features li:hover {
    transform: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .enamad-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .footer-desc {
    max-width: 100%;
  }
  
  .footer-brand .logo {
    justify-content: center;
  }
  
  .footer-links ul {
    align-items: center;
  }
  
  .footer-links a:hover {
    transform: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .back-to-top {
    left: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
  
  .profile-float {
    width: 220px;
    height: 220px;
  }
  
  section {
    padding: 70px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .experience-badge {
    padding: 14px 20px;
    bottom: -12px;
    left: -12px;
  }
  
  .exp-number {
    font-size: 1.5rem;
  }
}
