:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f4f5fb;
  --text: #1d2433;
  --text-muted: #6f7a92;
  --accent: #6c63ff;
  --accent-soft: rgba(108, 99, 255, 0.14);
  --border: #e6e8f1;
  --shadow: 0 18px 50px rgba(43, 54, 86, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafd 0%, #eef1fb 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(144, 163, 203, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-bar a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-bar a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.14), rgba(236, 242, 255, 0.98));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 3vw, 4.8rem);
  margin: 1rem 0 1rem;
  line-height: 0.95;
}

.hero-copy {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: min(320px, 100%);
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.about,
.skills,
.portfolio,
.video-showreel,
.testimonials,
.contact {
  padding: 4rem 0;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2,
.about-card h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.about-card,
.contact-form-card,
.contact-info-card,
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item h3 {
  margin: 0;
  font-size: 2rem;
  color: var(--accent);
}

.stat-item p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.14);
}

.skill-card i {
  font-size: 1.6rem;
  color: var(--accent);
}

.skill-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.skill-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.progress-bar {
  width: 100%;
  height: 0.8rem;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8f85ff);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s ease;
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 39, 0.08), rgba(20, 22, 39, 0.62));
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: #d3d7ff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-overlay h3 {
  margin: 0;
}

.btn-sm {
  width: fit-content;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
}

.video-showreel .video-card {
  display: grid;
  gap: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.testimonial-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card h3 {
  margin: 0;
}

.testimonial-role {
  margin: 0.25rem 0 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.contact-form-card form {
  display: grid;
  gap: 1rem;
}

.contact-form-card label {
  font-weight: 600;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid #d8dce9;
  border-radius: 18px;
  outline: none;
  color: var(--text);
  background: #fcfdff;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

.contact-info-card h3 {
  margin-top: 0;
}

.contact-info-card p {
  color: var(--text-muted);
  line-height: 1.9;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem 0;
  color: var(--text);
}

.contact-item i {
  color: var(--accent);
  width: 1.2rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .skill-grid,
  .portfolio-grid,
  .testimonial-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 1rem 0.5rem;
  }

  .nav-bar {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(144, 163, 203, 0.18);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-bar.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-image {
    justify-content: flex-start;
  }

  .hero-image img {
    width: 280px;
  }

  .about-card,
  .contact-form-card,
  .contact-info-card,
  .video-card,
  .testimonial-card,
  .skill-card,
  .portfolio-card {
    border-radius: 22px;
  }
}

@media (max-width: 540px) {
  .section-head h2,
  .about-card h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    width: 240px;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
