*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0f;
  --bg-alt: #121218;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --accent: #6c63ff;
  --accent-hover: #5850e0;
  --border: #2a2a35;
  --radius: 14px;
  --container: 1100px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn-nav {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  padding: 9rem 0 5.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.3rem;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.25);
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

/* Profile */
.hero-image { justify-self: end; }

.profile-wrapper {
  width: 300px;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.profile-wrapper:hover .profile-img {
  transform: scale(1.05);
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 3rem; }

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 500px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-details ul {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}

.about-details li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-details li:last-child { border-bottom: none; }
.about-details strong { color: var(--text); min-width: 110px; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon { font-size: 1.9rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }

.service-card ul li {
  color: var(--text-muted);
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.3rem;
}

.service-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.work-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: all 0.3s ease;
  display: block;
  height: 100%;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.work-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.work-card p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1rem; }
.link-arrow { color: var(--accent); font-weight: 500; }

/* Recommendations */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.recommendation-card {
  background: #1a1a22;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.recommendation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.3);
}

.recommendation-card img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
}

/* CV */
.cv-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: border-color 0.3s ease;
}

.cv-box:hover { border-color: var(--accent); }

.cv-info h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.cv-info p { color: var(--text-muted); }

.cv-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.contact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 500;
  word-break: break-word;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    justify-self: center;
    order: -1;
  }

  .profile-wrapper {
    width: 260px;
    height: 310px;
  }

  .services-grid,
  .work-grid,
  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-card { min-height: auto; }
  .recommendation-card img { max-height: 520px; }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .hero { padding: 7.5rem 0 4rem; }
  .section { padding: 4rem 0; }

  .profile-wrapper {
    width: 220px;
    height: 270px;
  }

  .cv-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-actions { width: 100%; }
  .cv-actions .btn { flex: 1; text-align: center; }

  .recommendation-card img { max-height: 420px; }
}