html {
  font-size: 100%;
}

:root {
  --bg-color: #000000;
  --surface-color: #080808;
  --primary-accent: #7c3aed;
  /* Vibrant Violet */
  --secondary-accent: #06b6d4;
  /* Electric Cyan */
  --text-primary: #ffffff;
  --text-secondary: #71717a;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 24px;

  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* Noise Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 9999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(to right, #fff 20%, var(--primary-accent) 40%, var(--secondary-accent) 60%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.section-padding {
  padding: 8rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.6);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  /* Increased from 800px to fit sound toggle */
  z-index: 1000;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav.scrolled {
  top: 1rem;
  width: 95%;
  background: rgba(5, 5, 5, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  /* Ensure vertical alignment of items */
  gap: 2rem;
  /* Reduced gap slightly to fit more items */
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.sound-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  white-space: nowrap;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.sound-btn.active {
  color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.sound-btn i {
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.15) 0%, rgba(0, 0, 0, 1) 80%);
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  color: var(--secondary-accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.8s forwards;
}

.hero-desc {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) 1.1s forwards;
}

.hero-btn-wrapper {
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image img {
  border-radius: 20px;
  transition: 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.perks-card {
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.perks-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-accent);
}

.perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.perk-item i {
  color: var(--primary-accent);
}

.expertise-lite {
  margin-bottom: 2rem;
}

.expertise-lite h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.mission-callout {
  padding: 2rem;
  background: rgba(124, 58, 237, 0.05);
  border-left: 3px solid var(--primary-accent);
  border-radius: 0 15px 15px 0;
  margin-bottom: 3rem;
}

.mission-callout h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.mission-callout p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: white;
}

.btn-outline:hover {
  background: white;
  color: black;
  border-color: white;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  padding: 4rem 2.5rem;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-accent);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Gallery / Studio Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.showcase-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--surface-color);
  height: 400px;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.showcase-item:nth-child(4) {
  grid-column: span 3;
  height: 500px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.1);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.showcase-item:hover .showcase-overlay {
  transform: translateY(0);
}

.showcase-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}


/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 5rem;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.contact-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.contact-info,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  font-size: 2.2rem;
  /* Reduced from 3rem for a more compact look */
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.contact-info>p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  /* Better for multi-line address */
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: white;
}

.info-item p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.info-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-accent);
}

.contact-form {
  position: relative;
  z-index: 1;
}

.form-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  /* Reduced from 1.5rem to compress height slightly */
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s ease;
}

.form-block:focus-within {
  border-color: var(--primary-accent);
  background: rgba(255, 255, 255, 0.04);
}

.form-block i {
  font-size: 1.25rem;
  color: var(--secondary-accent);
  margin-top: 5px;
}

.input-wrapper {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  color: white;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
}

textarea.form-control {
  resize: none;
  height: 48px;
  /* Slightly shorter to push the button up to the correct alignment */
  line-height: 1.4;
}

.btn-submit-wrapper {
  margin-top: 1rem;
  /* Increased to account for smaller button height and maintain bottom alignment */
  display: flex;
  justify-content: flex-start;
}

.btn-primary.btn-block {
  width: auto;
  min-width: 200px;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-item,
  .showcase-item:nth-child(1),
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3),
  .showcase-item:nth-child(4) {
    grid-column: span 1;
    height: 300px;
  }

  .contact-info h3 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }
}

/* Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease-out;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid var(--secondary-accent);
  border-radius: 50%;
  position: fixed;
  top: -16px;
  left: -16px;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0.5;
}

/* Scroll Animations */
.animate-on-scroll,
.glass-card,
.showcase-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-on-scroll.in-view,
.glass-card.in-view,
.showcase-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hide default cursor on desktop */
@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* Responsive fixes for new designs */
@media (max-width: 768px) {
  nav {
    width: 95%;
    top: 1rem;
    padding: 0.5rem 1.5rem;
  }

  .custom-cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* Map Section */
#map-section {
  padding-bottom: 8rem;
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.map-card {
  height: 300px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  filter: grayscale(100%) invert(92%) contrast(83%);
  opacity: 0.6;
  transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.map-card:hover {
  filter: grayscale(10%) invert(0%) contrast(100%);
  opacity: 1;
  transform: translateY(-5px) scale(1.01);
  border-color: var(--primary-accent);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Parallax Break Alignment */
.parallax-break {
  position: relative;
  overflow: hidden;
  height: 50vh;
  display: flex;
  align-items: center;
  max-width: calc(1200px - 4rem);
  /* Matches .container width (1200px) minus its padding (2rem + 2rem) */
  margin: 4rem auto;
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.parallax-break .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.parallax-break:hover .bg-image {
  transform: scale(1.05);
  opacity: 0.7;
}

@media (max-width: 1200px) {
  .parallax-break {
    width: calc(100% - 4rem);
    margin: 2rem auto;
  }
}

@media (max-width: 768px) {
  .parallax-break {
    height: 40vh;
    border-radius: 20px;
  }

  .parallax-break h2 {
    font-size: 2.5rem !important;
  }
}