:root {
  --bg-main: #000000;
  --card-bg: rgba(255, 255, 255, 0.06);
  --text-main: #ffffff;
  --text-muted: #b8b8b8;
  --purple: #9b5cff;
  --purple-dark: #5b21b6;
  --border-soft: rgba(255, 255, 255, 0.12);
}

/* BASIC RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 60%, rgba(91, 33, 182, 0.16), transparent 35%),
    var(--bg-main);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* PAGE SWITCHING */

.page-section {
  display: none;
}

.page-section.active-section {
  display: block;
}

.hero.active-section {
  display: flex;
}

.contact-section.active-section {
  display: flex;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 24px 55px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}

.nav-links a {
  margin-left: 32px;
  font-size: 15px;
  color: var(--text-muted);
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: var(--purple);
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.45) contrast(1.08) saturate(1.10);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  padding: 120px 60px 80px;
}

.small-heading {
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(155, 92, 255, 0.9);
}

.hero-label {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(91, 33, 182, 0.45);
  border: 1px solid rgba(155, 92, 255, 0.8);
  box-shadow: 0 0 28px rgba(155, 92, 255, 0.35);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 26px;
  max-width: 940px;
  text-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
}

.hero-text {
  max-width: 780px;
  font-size: 21px;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 36px;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.85);
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 40px;
  font-size: 15px;
  transition: 0.3s ease;
}

.primary-btn {
  background: linear-gradient(90deg, #111111, var(--purple-dark));
  border: 1px solid rgba(155, 92, 255, 0.8);
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.35);
}

.secondary-btn {
  border: 1px solid var(--border-soft);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(155, 92, 255, 0.45);
}

/* GENERAL SECTION */

.section {
  padding: 110px 60px;
}

.work-intro {
  padding-top: 140px;
  background:
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.14), transparent 38%),
    #000000;
}

.section-heading-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: end;
}

.section-heading-row h2 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1px;
}

.section-heading-row h2 span {
  color: var(--purple);
}

.section-heading-row p {
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.7;
}

/* MY WORK CARDS */

.services-section {
  padding-top: 20px;
  background:
    linear-gradient(135deg, #000000, #07020d, #000000);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: 0.35s ease;
  animation: cardFadeUp 0.8s ease forwards;
}

.video-card:nth-child(1) {
  animation-delay: 0.1s;
}

.video-card:nth-child(2) {
  animation-delay: 0.25s;
}

.video-card:nth-child(3) {
  animation-delay: 0.4s;
}

.video-card:nth-child(4) {
  animation-delay: 0.55s;
}

.clickable-card {
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(155, 92, 255, 0.75);
  box-shadow: 0 22px 60px rgba(155, 92, 255, 0.22);
}

.video-box {
  position: relative;
  width: 100%;
  background: #050505;
}

.video-box video {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(1.12) contrast(1.08) saturate(1.05);
}

.card-content {
  padding: 28px;
}

.card-number {
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-content h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* DETAIL PAGES */

.detail-page {
  min-height: 100vh;
  padding: 140px 60px 90px;
  background:
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.14), transparent 35%),
    #000000;
}

.detail-page h2 {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 70px;
  max-width: 1200px;
}

.detail-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.detail-video-grid video {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 18px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: brightness(1.12) contrast(1.08) saturate(1.05);
}

/* SOCIAL MEDIA VERTICAL PAGE */

.social-detail-page {
  background:
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.18), transparent 35%),
    #000000;
}

.vertical-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 320px));
  gap: 42px;
  justify-content: center;
  align-items: start;
}

.vertical-video-grid video {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  border-radius: 22px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: brightness(1.12) contrast(1.08) saturate(1.05);
  box-shadow: 0 22px 60px rgba(155, 92, 255, 0.16);
}

.back-btn {
  position: fixed;
  top: 100px;
  right: 60px;
  z-index: 1000;

  padding: 12px 22px;
  border-radius: 40px;
  border: 1px solid rgba(155, 92, 255, 0.8);
  background: linear-gradient(90deg, #111111, #5b21b6);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.35);
  transition: 0.3s ease;
}

.back-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 36px rgba(155, 92, 255, 0.55);
}

/* CONTACT WITH VIDEO BACKGROUND */

.contact-section {
  position: relative;
  min-height: 100vh;
  padding: 150px 60px 100px;

  display: none;
  justify-content: center;
  align-items: center;

  text-align: center;
  overflow: hidden;
  background: #000;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.45) contrast(1.08) saturate(1.12);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55)),
    linear-gradient(to right, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08)),
    radial-gradient(circle at center, rgba(155, 92, 255, 0.14), transparent 45%);
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  padding: 44px;
  border-radius: 28px;

  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.contact-section h2 {
  font-size: 76px;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
}

.contact-subtitle {
  max-width: 760px;
  margin: 0 auto 38px;
  color: #f1f1f1;
  font-size: 20px;
  line-height: 1.7;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.contact-details {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-details a {
  color: #ffffff;
  border: 1px solid rgba(155, 92, 255, 0.85);
  padding: 15px 26px;
  border-radius: 40px;
  transition: 0.3s ease;

  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.25);
}

.contact-details a:hover {
  transform: translateY(-4px);
  color: #ffffff;
  border-color: var(--purple);
  background: linear-gradient(90deg, #111111, var(--purple-dark));
  box-shadow: 0 0 38px rgba(155, 92, 255, 0.45);
}

/* TEXT ANIMATIONS */

.animate-up {
  opacity: 0;
  transform: translateY(35px);
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.35s;
}

.delay-3 {
  animation-delay: 0.55s;
}

.delay-4 {
  animation-delay: 0.75s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET */

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 56px;
  }

  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-box video {
    height: 340px;
  }

  .detail-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vertical-video-grid {
    grid-template-columns: repeat(2, minmax(220px, 320px));
  }

  .detail-page h2 {
    font-size: 52px;
  }

  .detail-video-grid video {
    height: 300px;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .navbar {
    padding: 18px 22px;
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 17px;
  }

  .nav-links {
    display: flex;
    gap: 18px;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 14px;
  }

  .hero-content {
    padding: 130px 24px 70px;
  }

  .hero-content h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section {
    padding: 80px 24px;
  }

  .work-intro {
    padding-top: 130px;
  }

  .section-heading-row h2 {
    font-size: 42px;
  }

  .section-heading-row p {
    font-size: 16px;
  }

  .video-box video {
    height: 260px;
  }

  .card-content {
    padding: 22px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .detail-page {
    padding: 130px 24px 70px;
  }

  .detail-page h2 {
    font-size: 38px;
    margin-bottom: 40px;
  }

  .detail-video-grid {
    grid-template-columns: 1fr;
  }

  .detail-video-grid video {
    height: 260px;
  }

  .vertical-video-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .vertical-video-grid video {
    max-width: 320px;
  }

  .back-btn {
    right: 24px;
    top: 105px;
  }

  .contact-section {
    padding: 120px 24px 80px;
  }

  .contact-content {
    padding: 28px 22px;
  }

  .contact-section h2 {
    font-size: 42px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .contact-details {
    flex-direction: column;
    width: 100%;
  }

  .contact-details a {
    width: 100%;
  }
}

/* SMALL MOBILE */

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .video-box video,
  .detail-video-grid video {
    height: 230px;
  }

  .contact-section h2 {
    font-size: 36px;
  }

  .vertical-video-grid video {
    max-width: 280px;
  }
}