:root {
  /* Shadcn Zinc Dark Theme Variables - Matched to irl.syncbr.com */
  --background: #09090b;
  --foreground: #fafafa;

  --card: #09090b;
  --card-foreground: #fafafa;

  --popover: #09090b;
  --popover-foreground: #fafafa;

  --primary: #fafafa;
  --primary-foreground: #18181b;

  --secondary: #27272a;
  --secondary-foreground: #fafafa;

  --muted: #27272a;
  --muted-foreground: #a1a1aa;

  --accent: #27272a;
  --accent-foreground: #fafafa;

  --destructive: #a14000;
  --destructive-foreground: #fafafa;

  --border: #27272a;
  --input: #27272a;
  --ring: #d4d4d8;

  --radius: 0.5rem;

  --main-color: #fb6500;
}

@media (max-width: 768px) {
  .desktop-br {
    display: none;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Typography map */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--foreground);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--muted-foreground);
}

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

a:hover {
  color: var(--foreground);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

header .container.mobile {
  display: none;
}

header .container.mobile i {
  font-size: 1.5rem;
  cursor: pointer;
}

section.header {
  height: 4rem;
}

.container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  /* Consistent padding */
}

/* Header Specific Container Logic */
header .container {
  padding: 0;
  /* Header tag has padding */
  width: 100%;
}

header img.logo {
  width: auto;
  height: 32px;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header .container>a {
  display: flex;
  align-items: center;
}

header nav a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

header nav a:hover {
  color: var(--foreground);
}

/* Mobile Menu */
@media (max-width: 768px) {
  header .container.desktop {
    display: none;
  }

  header .container.mobile {
    display: flex;
  }
}

/* Premium Mobile Menu */
div.container.mobile nav {
  position: fixed;
  top: 4rem;
  left: 0;
  background: rgba(9, 9, 11, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  width: 100%;
  z-index: 49;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

div.container.mobile nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

div.container.mobile ul {
  width: 100%;
  flex-direction: column;
  padding: 0;
  gap: 0.5rem;
  align-items: stretch;
}

div.container.mobile ul li a {
  width: 100%;
  color: var(--muted-foreground);
  text-align: left;
  /* Aligned left for list style */
  padding: 0.5rem;
  display: flex;
  justify-content: flex-start;
  /* Align start */
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

div.container.mobile ul li a i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

div.container.mobile ul li a:hover,
div.container.mobile ul li a:active {
  background-color: var(--secondary);
  color: var(--foreground);
  border-color: rgba(255, 255, 255, 0.05);
}

div.container.mobile ul li a:hover i {
  color: var(--foreground);
}

/* Buttons in Nav (Desktop) */
.container.desktop nav ul.btn {
  margin-left: 1rem;
  gap: 0.75rem;
}

/* Buttons */
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

/* Header Specific Button Overrides */
header a.btn,
header button.btn {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  gap: 0.5rem;
}

header a.btn:hover,
header button.btn:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--border);
  box-shadow: none;
}

header a.btn-primary,
header button.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
  border: 1px solid var(--foreground);
}

header a.btn-primary:hover,
header button.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--background);
  border-color: var(--foreground);
}

.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
  border: 1px solid var(--foreground);
  box-shadow: none;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--background);
  transform: none;
  filter: none;
  box-shadow: none;
}

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

.btn-outline:hover {
  background-color: var(--secondary);
  border-color: var(--foreground);
  color: var(--foreground);
}

.btn-shimmer {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-shimmer:hover {
  background: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 0;
}

.footer-content {
  /* Reduced top/bottom padding to match IRL feel or normal spacing */
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
  /* Ensure it behaves as a container */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Hero Section (SyncBR Specific) */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--background);
  padding-top: 4rem;
  /* Compensate fixed header */
}

/* Restore Video Background Logic */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
  filter: blur(5px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 101, 0, 0.05) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 0%, var(--background) 95%);
}

.hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
  background-image: url('../img/noise.webp');
  background-repeat: repeat;
}

/* .hero-content needs flex column behavior because .container is flex justify-between by default now?
   Wait, .container is flex justify-between align-center.
   This breaks hero content which wants flex-column center.
   I need to override .container just for hero-content if it uses both classes.
   HTML: <div class="container hero-content ...">
*/
.hero-content {
  /* Override container flex behavior */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  /* Wider for big text */
  margin: 0 auto;
  text-align: center;
  z-index: 10;
  gap: 2.5rem;
  height: auto;
  padding-bottom: 4rem;
  /* Space for scroll indicator */
}

.hero-content h1 {
  font-size: 4rem;
  /* Reduced from 5rem */
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-gradient {
  background: linear-gradient(to right, #ffffff 20%, #fb6500 50%, #ffffff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 4.5rem;
  /* Reduced from 5.5rem */
  animation: gradient-flow 5s linear infinite;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

.teaser-title {
  font-size: 3.5rem;
  /* Reduced from 4.5rem */
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  color: #e4e4e7;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Sections */
.cases-section {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}

.cases-section .container,
.services-section .container,
.about-section .container,
.sync-irl-teaser .container,
.footer-content {
  display: block;
}

.services-section {
  background-color: var(--background);
  padding: 6rem 2rem;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}

.about-section {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Sync IRL Teaser */
.sync-irl-teaser {
  padding: 10rem 2rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 250, 250, 0.05), transparent 70%),
    linear-gradient(to bottom, var(--background), #000);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  display: flex;
  justify-content: center;
}

.teaser-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fb6500;
  background: rgba(251, 101, 0, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(251, 101, 0, 0.2);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(251, 101, 0, 0.1);
}

.teaser-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 5rem 3rem;
  border-radius: 32px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.teaser-title {
  font-size: 3.5rem;
  /* Reduced size */
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.teaser-description {
  font-size: 1.25rem;
  color: #e4e4e7;
  margin-bottom: 1rem;
  max-width: 700px;
  line-height: 1.4;
  font-weight: 500;
}



.teaser-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 99px;
  transition: all 0.3s ease;
}

.teaser-btn:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tech Tags - Glowing Chip Style */
.tech-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(251, 101, 0, 0.1);
  border: 1px solid rgba(251, 101, 0, 0.3);
  border-radius: 99px;
  font-size: 1rem;
  /* 0.9 -> 1rem */
  font-weight: 700;
  color: #fb6500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(251, 101, 0, 0.1);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(251, 101, 0, 0.2);
  box-shadow: 0 0 15px rgba(251, 101, 0, 0.3);
  border-color: #fb6500;
}

/* About Card */
.about-card {
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent);
}

.about-card h2 {
  margin-bottom: 1.5rem;
}

.about-card p {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}

.about-icon {
  height: 60px;
  opacity: 0.8;
}

/* Grids */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  aspect-ratio: 16/9;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.thumbnail-container {
  width: 100%;
  height: 100%;
  position: relative;
}

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

.play-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.play-icon {
  color: #fff;
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.project-card:hover .thumbnail-img {
  transform: scale(1.05);
}

.project-card:hover .play-icon-overlay {
  background-color: rgba(0, 0, 0, 0.1);
}

.project-card:hover .play-icon {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-out;
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-overlay h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.project-overlay p {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

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

.service-card {
  padding: 2rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
  display: block;
  /* Ensure block layout */
}

.service-card:hover {
  border-color: var(--foreground);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.service-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-list li i {
  font-size: 0.8em;
  opacity: 0.9;
}

/* Sync IRL Tech Tags */
.tech-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: 0.05em;
}

.teaser-sub {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 0;
  width: 100%;
}

.footer-top {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: table;
  /* Fix for margins collapsing if needed, or flex column */
}

.footer-separator {
  height: 1px;
  background: var(--border);
  width: 100%;
  position: relative;
}

/* Add a glowing orange line in the center of the separator */
.footer-separator::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--main-color), transparent);
  box-shadow: 0 0 15px var(--main-color);
}

.footer-bottom {
  padding-top: 4rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  text-align: left;
}

.footer-brand p {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: 0 0 15px rgba(247, 99, 0, 0.2);
  transform: translateY(-2px);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--foreground);
  font-weight: 600;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.footer-copyright {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

/* Orange Polish */
.text-orange {
  color: var(--main-color);
}

.btn-brand {
  background: linear-gradient(135deg, #fb6500, #a14000);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(251, 101, 0, 0.3);
  margin-top: 2rem;
}

.btn-brand:hover {
  background: linear-gradient(135deg, #ff7b1a, #b34700);
  box-shadow: 0 6px 20px rgba(251, 101, 0, 0.4);
  transform: translateY(-2px);
}



/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Hero Animations (Semantic) */
.hero-content h1 {

  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content p {

  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.hero-actions {
  /* Existing styles... */
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  /* Start invisible for slideUp */
  z-index: 10;
  /* Combine entrance and pulse animations */
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s, fadePulse 3s infinite;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  z-index: 10;
  animation: fadePulse 3s infinite;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 20px;
  }
}

@keyframes fadePulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {

  /* Global Container & Typography */
  .container {
    padding: 0 1rem;
    /* Reduced horizontal padding */
  }

  /* Header */
  header {
    padding: 0 1rem;
    /* Tighter header padding */
  }

  header .container.mobile {
    padding: 0;
    /* Let flex handle it */
  }

  /* Hero Section */
  .hero-section {
    padding-top: 5rem;
    /* Space for header */
    align-items: center;
    /* Center vertically */
  }

  .hero-content {
    padding-bottom: 6rem;
    /* Space for scroll indicator */
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    /* Smaller for mobile */
    line-height: 1.1;
  }

  .text-gradient {
    font-size: 3rem;
    line-height: 1.1;
    background-size: 300% auto;
    /* Smoother gradient on small width */
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Sections General */
  .cases-section,
  .services-section,
  .about-section,
  .sync-irl-teaser {
    padding: 4rem 1.5rem;
    /* Reduced section padding */
  }

  .section-title {
    font-size: 2rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  /* Sync IRL Teaser */
  .teaser-content {
    padding: 3rem 1.5rem;
  }

  .teaser-title {
    font-size: 2.5rem;
  }

  .teaser-description {
    font-size: 1rem;
  }

  .tech-list {
    gap: 0.5rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* About Section */
  .about-card {
    padding: 2.5rem 1.5rem;
  }

  .about-card h2 {
    font-size: 1.75rem;
  }

  .about-card p {
    font-size: 1rem;
  }

  /* Footer */
  .footer-top {
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .footer-bottom {
    display: block;
    text-align: center;
    padding: 2rem 0;
  }

  .footer-subtitle {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Add subtle borders between sections on mobile */
  .footer-links,
  .footer-contact {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 80%;
    /* Don't span full width */
    margin: 0 auto;
  }

  .footer-brand p {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    opacity: 0.7;
  }

  .footer-social {
    justify-content: center;
    gap: 1.5rem;
    /* More breathing room for icons */
  }

  .footer-links h4,
  .footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    /* Slightly larger headers */
    letter-spacing: 0.05em;
  }

  .footer-links ul {
    align-items: center;
    gap: 1rem;
  }

  .footer-links a {
    font-size: 1rem;
    opacity: 0.8;
    padding: 0.5rem;
    /* Larger touch target */
  }

  .footer-contact p {
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.8;
  }

  .footer-separator::after {
    width: 60%;
    /* subtler separator */
    opacity: 0.7;
  }

  /* Modal */
  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-close {
    top: -35px;
    right: 0px;
  }

  .hero-bg-video {
    height: 100vh;
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .text-gradient {
    font-size: 2.25rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}