/* =====================================================
   Mytho Website Styles
   ===================================================== */

/* CSS Variables */
:root {
  --bg-primary: #0e0b1e;
  --bg-card: rgba(10, 10, 12, 0.5);
  --bg-section: linear-gradient(180deg, #1b2340 0%, #2a3251 100%);
  --bg-back-to-top: linear-gradient(180deg, #1b2340 0%, #2a3251 100%);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --gradient-primary: linear-gradient(90deg, #8258ef 0%, #4fa8d0 100%);
  --gradient-role: linear-gradient(90deg, #8b62f5 0%, #16bffd 100%);
  --gradient-hover-card: linear-gradient(
    90deg,
    #247bdf 0%,
    #3441cc 50%,
    #e63976 100%
  );
  --stroke-light: rgba(255, 255, 255, 0.1);
  --font-family: "Unbounded", sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Overscroll color - this is what shows during iOS Safari rubber-banding */
  background-color: var(--bg-primary);
  /* Ensure html fills the full area */
  min-height: 100%;
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    url("../images/Shapes.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* For overscroll at top - JavaScript adds this class */
html.at-top {
  background-color: var(--bg-primary) !important;
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    url("../images/Shapes.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* For overscroll at bottom - JavaScript adds this class */
html.at-bottom {
  /* background-color: #1b203a !important; */
  background-image:
    linear-gradient(90deg, rgba(27, 32, 58, 0.95), rgba(20, 21, 43, 0.95)),
    url("../images/footer_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

body {
  font-family: var(--font-family);
  /* Remove solid background-color so html shows through during overscroll */
  background-color: transparent;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  /* background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    url("../images/Shapes.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; */
}

/* Overscroll protection for iOS Safari */
.overscroll-top,
.overscroll-bottom {
  position: fixed;
  left: 0;
  right: 0;
  height: 200vh;
  pointer-events: none;
  z-index: -9999;
  will-change: transform;
}

.overscroll-top {
  top: 0;
  transform: translateY(-100%);
  background-color: var(--bg-primary);
}

.overscroll-bottom {
  bottom: 0;
  transform: translateY(100%);
  background-color: #1b203a;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility - Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
}

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

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(14, 11, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.logo img {
  max-width: 140px;
  height: auto;
  transition:
    transform 0.2s ease-in-out,
    filter 0.2s ease-in-out;
}

.logo:hover img {
  filter: drop-shadow(rgba(139, 98, 245, 0.5) 0px 0px 10px);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-link {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.3);
}

@media (hover: hover) {
  .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(130, 88, 239, 0.5);
    transform: translateY(-2px);
  }
}

.btn-outline {
  position: relative;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@media (hover: hover) {
  .btn-outline:hover {
    background-image: var(--gradient-primary), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4);
  }
}

/* Touch devices - use class-based active state */
.touch-device .btn-outline:hover {
  background-image:
    linear-gradient(var(--bg-primary), var(--bg-primary)),
    var(--gradient-primary) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: none !important;
}

.touch-device .btn-outline.touch-active {
  background-image: var(--gradient-primary), var(--gradient-primary) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4) !important;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn-submit {
  width: auto;
  min-width: 180px;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(37, 183, 170, 0.1);
  color: #22bca8;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 183, 170, 0.1);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-illustration {
  position: relative;
}

.hero-illustration img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 550px;
  height: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.hero-illustration img.comet-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Floating comet particles */
.comet-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.comet {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #34e7d7;
  border-radius: 50%;
  box-shadow:
    0 0 6px 2px rgba(52, 231, 215, 0.8),
    0 0 12px 4px rgba(52, 231, 215, 0.5),
    0 0 20px 6px rgba(52, 231, 215, 0.3);
  opacity: 0;
}

/* Comet tail effect */
.comet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(52, 231, 215, 0.8) 0%,
    rgba(52, 231, 215, 0) 100%
  );
  border-radius: 2px;
}

.comet-1 {
  top: -15%;
  right: -25%;
  animation: cometShoot1 1.5s linear forwards;
  animation-delay: 0s;
}

.comet-2 {
  top: -5%;
  right: -30%;
  width: 5px;
  height: 5px;
  animation: cometShoot2 1.5s linear forwards;
  animation-delay: 0.2s;
}

.comet-2::before {
  width: 60px;
}

.comet-3 {
  top: 10%;
  right: -35%;
  width: 4px;
  height: 4px;
  animation: cometShoot3 1.5s linear forwards;
  animation-delay: 0.4s;
}

.comet-3::before {
  width: 50px;
}

.comet-4 {
  top: -10%;
  right: -20%;
  width: 5px;
  height: 5px;
  animation: cometShoot4 1.5s linear forwards;
  animation-delay: 0.6s;
}

.comet-4::before {
  width: 70px;
}

.comet-5 {
  top: 5%;
  right: -40%;
  width: 4px;
  height: 4px;
  animation: cometShoot5 1.5s linear forwards;
  animation-delay: 0.8s;
}

.comet-5::before {
  width: 55px;
}

/* Individual comet animations - full cycle then stop at different positions */
@keyframes cometShoot1 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    transform: translate(-550px, 380px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShoot2 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    transform: translate(-480px, 330px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShoot3 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    transform: translate(-520px, 360px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShoot4 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    transform: translate(-420px, 220px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShoot5 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    transform: translate(-300px, 100px) rotate(-35deg);
    opacity: 1;
  }
}

/* Mobile comet animations - shooting from top-right to bottom-left */
/* Mobile comet animations - shooting from top-right to bottom-left */
/* Rotation set to 120deg for all keyframes */

@keyframes cometShootMobile1 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: translate(-170px, 20px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShootMobile2 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: translate(-200px, 30px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShootMobile3 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: translate(-280px, 80px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShootMobile4 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: translate(-320px, 180px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometShootMobile5 {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  100% {
    transform: translate(-340px, 220px) rotate(-35deg);
    opacity: 1;
  }
}

@keyframes cometFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

@keyframes cometGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(130, 88, 239, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(130, 88, 239, 0.5))
      drop-shadow(0 0 50px rgba(79, 168, 208, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(240, 55, 100, 0.4));
  }
}

a.view-projects-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* =====================================================
   Fade In Animation for Sections
   ===================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

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

/* =====================================================
   Projects Section
   ===================================================== */
.projects {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--stroke-light);
  border-radius: 16px;
  padding: 12px 24px 40px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

/* AfterSync Active Card - Always has gradient border and background */
/* .project-card-active {
  position: relative;
  border: 0px solid transparent;
  background-image: url("../images/after_sync_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
} */

/* .project-card-active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    150deg,
    rgba(36, 123, 223, 1) 0%,
    rgba(52, 65, 204, 1) 60%,
    rgba(230, 57, 118, 1) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
} */

/* Coming Soon Card Hover Effect */
.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: transparent;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  background: var(--gradient-hover-card);
  opacity: 1;
}

/* Disable hover for coming soon card */
.project-card.coming-soon-card::before,
.project-card.coming-soon-card:hover::before {
  display: none;
  opacity: 0;
}

.project-card.coming-soon-card:hover {
  border-color: var(--stroke-light);
  background-image: none;
  cursor: default;
}

.project-card:hover {
  border-color: transparent;
  position: relative;
  background-image: url("../images/after_sync_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
}

/* .project-icon {
  margin-bottom: 20px;
} */

.project-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.project-icon.coming-soon img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.project-description {
  font-size: 0.8125rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.project-card.project-card-active a.visit-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
  font-size: 1rem;
  padding: 16px 32px;
  background-color: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  border-radius: 100px;
  z-index: 99;
  transition: all 0.3s ease;
}

.project-card.project-card-active a.visit-app-btn:hover {
  /* background: var(--gradient-primary);
  color: var(--text-primary);
  border: 1px solid var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4); */

  border-color: transparent;
  background-image: var(--gradient-primary), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4);
}

/* =====================================================
   Back to Top Button
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-back-to-top);
  color: var(--text-primary);
  border: 2px solid var(--stroke-light);
  border-radius: 50%;
  font-family: var(--font-family);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-to-top-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4);
}

.back-to-top.hidden-footer {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

/* =====================================================
   Team Section
   ===================================================== */
.team {
  padding: 80px 0;
  text-align: center;
  background-color: var(--bg-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.team-card {
  position: relative;
  background: var(--bg-section);
  border: 2px solid var(--stroke-light);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 99;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: transparent;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover::before {
  background: var(--gradient-hover-card);
  opacity: 1;
}

.team-card:hover {
  border-color: transparent;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 4px;
  z-index: 99;
}

.team-role {
  display: inline-block;
  font-size: 0.8125rem;
  background: var(--gradient-role);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 500;
  z-index: 99;
}

.daniel-team-role {
  background: linear-gradient(90deg, #e06437 0%, #dc338f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sarah-team-role {
  background: linear-gradient(90deg, #22c1c3 0%, #fdbb2d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-bio {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 99;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(14, 11, 30, 0.5);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all 0.3s ease;
  z-index: 99;
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.team .section-subtitle {
  max-width: 800px;
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.contact-wrapper {
  background: var(--bg-section);
  border: 2px solid var(--stroke-light);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin: 0 auto;
}

.email-contact {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.email-display {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--text-primary);
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  max-width: 600px;
  width: 100%;
  justify-content: space-between;
}

.email-text {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

@media (hover: hover) {
  .copy-btn:hover {
    box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4);
  }
}

/* Touch devices - reset hover state */
.touch-device .copy-btn:hover {
  box-shadow: none !important;
}

.touch-device .copy-btn.touch-active {
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4) !important;
}

.copy-btn svg {
  width: 18px;
  height: 18px;
}

/* Copy button icon states */
.copy-btn .copy-icon {
  display: block;
}

.copy-btn .check-icon {
  display: none;
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .check-icon {
  display: block;
}

.copied-message {
  color: #8258ef;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.copied-message.visible {
  opacity: 1;
  visibility: visible;
}

.contact .section-subtitle {
  max-width: 800px;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  padding: 48px;
  text-align: center;
  /* Combine gradient and image in one property for blend-mode to work */
  background-image:
    linear-gradient(90deg, rgba(27, 32, 58, 0.95), rgba(20, 21, 43, 0.95)),
    url("../images/footer_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer .logo img {
  max-width: 120px;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 11, 30, 0.8);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--stroke-light);
  transition: all 0.3s ease;
}

.instagram-btn:hover {
  /* background: var(--gradient-primary);
  border: 1px solid var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4); */

  background-image: var(--gradient-primary), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 15px rgba(130, 88, 239, 0.4);
}

.instagram-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  /* No background-clip or color:transparent needed here anymore! */
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.copyright strong {
  color: var(--text-primary);
}

/* =====================================================
   Responsive Design
   ===================================================== */

/* Tablet */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Landscape & Tablet Portrait */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header {
    padding: 15px 0;
  }

  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1b2340 0%, #0e0b1e 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 30px 40px;
    gap: 0;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--stroke-light);
  }

  .nav-links li:last-child {
    border-bottom: none;
    margin-top: 20px;
  }

  .nav-link {
    display: block;
    padding: 20px 0;
    font-size: 1rem;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero */
  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-illustration {
    order: -1;
  }

  .hero-illustration img {
    max-width: 350px;
    margin: 0 auto;
  }

  /* Mobile Comet adjustments */
  .comet-particles {
    overflow: visible;
  }

  .comet {
    width: 4px;
    height: 4px;
  }

  .comet::before {
    width: 30px;
    height: 1.5px;
  }

  .comet-1 {
    top: -10%;
    right: -15%;
    left: auto;
    animation: cometShootMobile1 1.2s linear forwards;
    animation-delay: 0s;
  }

  .comet-2 {
    top: 0%;
    right: -20%;
    left: auto;
    width: 3px;
    height: 3px;
    animation: cometShootMobile2 1.2s linear forwards;
    animation-delay: 0.15s;
  }

  .comet-2::before {
    width: 25px;
  }

  .comet-3 {
    top: 10%;
    right: -25%;
    left: auto;
    width: 3px;
    height: 3px;
    animation: cometShootMobile3 1.2s linear forwards;
    animation-delay: 0.3s;
  }

  .comet-3::before {
    width: 25px;
  }

  .comet-4 {
    top: -5%;
    right: -10%;
    left: auto;
    width: 3px;
    height: 3px;
    animation: cometShootMobile4 1.2s linear forwards;
    animation-delay: 0.45s;
  }

  .comet-4::before {
    width: 25px;
  }

  .comet-5 {
    top: 5%;
    right: -30%;
    left: auto;
    width: 3px;
    height: 3px;
    animation: cometShootMobile5 1.2s linear forwards;
    animation-delay: 0.6s;
  }

  .comet-5::before {
    width: 20px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .project-card {
    padding: 30px 20px;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact */
  .email-display {
    /* flex-direction: column; */
    gap: 10px;
  }

  .contact-wrapper {
    padding: 40px 20px;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
  }

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

  .hero-illustration img {
    max-width: 280px;
  }

  .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8125rem;
  }

  .btn-sm {
    padding: 8px 16px;
    font-size: 0.6875rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .projects {
    padding: 40px 0;
  }

  .team {
    padding: 40px 0;
  }

  .contact {
    padding: 40px 0;
  }

  .contact-wrapper {
    padding: 30px 16px;
    border-radius: 16px;
  }

  .footer {
    padding: 40px 0;
  }

  .logo img {
    max-width: 120px;
  }

  .project-title {
    font-size: 1.3rem;
  }

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

/* Small Mobile */
@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-illustration img {
    max-width: 240px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 16px;
  }
  .email-display {
    padding-left: 10px;
  }
  .email-text {
    font-size: 0.9rem;
  }
}
