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



body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: #f8f8f8;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ============ DESIGN TOKENS ============ */
:root {
  color-scheme: light dark;
  --bg: oklch(0.13 0.02 280);
  --fg: #f8f8f8;
  --muted: rgba(255, 255, 255, 0.65);
  --muted-light: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 28, 0.5);
  --pink: #ff00d4;
  --purple: #8a0aff;
  --cyan: #00c8ff;
  --grad-brand: linear-gradient(90deg, #7209fc, #ff00ff, #008cff);
  --grad-hot: linear-gradient(90deg, #ff006a, #d400ff, #8a0ae6, #8c00ff);
  --grad-pink: linear-gradient(90deg, #ff006a, #d400ff);
  --grad-purple: linear-gradient(90deg, #8a0aff, #008cff);
  --grad-cyan: linear-gradient(90deg, #00c8ff, #ff00ff);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --radius-full: 9999px;
  --shadow-glow: 0 10px 30px -10px rgba(212, 0, 255, 0.6);
}

/* ============ ANIMATIONS ============ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-slow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.1);
  }
}

@keyframes float-slower {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 40px) scale(1.15);
  }
}

@keyframes flow {

  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }

}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmer-move {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============ UTILITIES ============ */
.gradient-text {
  background: var(--grad-hot);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.gradient-cool {
  background: var(--grad-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.fade-up {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-1 {
  animation-delay: 0.05s;
}

.delay-2 {
  animation-delay: 0.15s;
}

.delay-3 {
  animation-delay: 0.30s;
}

.delay-4 {
  animation-delay: 0.45s;
}

.delay-5 {
  animation-delay: 0.60s;
}

.delay-6 {
  animation-delay: 0.75s;
}

.hero {
  overflow-y: hidden
}

/* ============ GLASS ============ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.6s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  padding: 0.875rem 1.75rem;
  color: white;
  background: var(--grad-hot);
  background-size: 200% 100%;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 20px 50px -10px rgba(212, 0, 255, 0.8);
}

.btn-ghost {
  padding: 0.875rem 1.75rem;
  color: var(--fg);
  background: var(--ghostbg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1.25rem 1.5rem 0;
}

.nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo {
  width: 2rem;
  height: 2rem;
  animation: spin 3s linear infinite;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: white;
}

.brand-accent {
  background: var(--grad-hot);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hamburger);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-link);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;

}

.logo {
  animation: spin 2s linear infinite;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--grad-hot);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.nav-links a:hover {
  color: var(--navhover);
}

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

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Mobile menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

/* Grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-pink {
  width: 520px;
  height: 520px;
  left: -10%;
  top: 10%;
  background: var(--pink);
  animation: float-slow 8s ease-in-out infinite;
}

.orb-cyan {
  width: 600px;
  height: 600px;
  right: -15%;
  top: 5%;
  background: var(--cyan);
  animation: float-slower 10s ease-in-out infinite;
}

.orb-purple {
  width: 400px;
  height: 400px;
  left: 40%;
  bottom: -10%;
  background: var(--purple);
  animation: float-slow 9s ease-in-out infinite;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  text-align: center;
  margin: 0 auto;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pill);
  backdrop-filter: blur(10px);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-hot);
  box-shadow: 0 0 12px #d400ff;
}

.pill.shimmer {
  position: relative;
  isolation: isolate;
}

.pill.shimmer::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 0, 212, 0.6), rgba(0, 200, 255, 0.6), transparent 70%);
  background-size: 200% 100%;
  animation: shimmer-move 4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  color: white;
}

/* Subhead */
.hero-sub {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ec4899;
  opacity: 0.75;
  animation: pulse-ring 1.8s ease-out infinite;
}

.pulse-dot::after {
  content: "";
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ec4899;
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.feature-dot.pink {
  background: var(--grad-pink);
  box-shadow: 0 0 14px var(--grad-pink);
}

.feature-dot.purple {
  background: var(--grad-purple);
  box-shadow: 0 0 14px var(--grad-purple);
}

.feature-dot.cyan {
  background: var(--grad-cyan);
  box-shadow: 0 0 14px var(--grad-cyan);
}

.feature-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-text.pink {
  background-image: var(--grad-pink);
}

.feature-text.purple {
  background-image: var(--grad-purple);
}

.feature-text.cyan {
  background-image: var(--grad-cyan);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 48rem;
  margin: 5rem auto 0;
}

.stat {
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* ============ MARQUEE ============ */
.marquee-section {
  position: relative;
  border-top: 1px solid var(--marqueeborder);
  border-bottom: 1px solid var(--marqueeborder);
  padding: 1.5rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 600;
  color: var(--marqueetxt);
}

.marquee-group .star {
  background: var(--grad-hot);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.menu .btn-primary {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  font-size: 0.8rem;
  border-radius: 2rem;
  padding-right: 1.6rem;
  padding-left: 1.6rem;
}

.nav {
  max-width: 72rem;
  margin: 0 auto;

  display: grid;
  grid-template-columns: auto 1fr auto;

  align-items: center;
  gap: 2rem;

  padding: .9rem 1.5rem;

  border-radius: 999px;

  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-btn {
  justify-self: end;
}

.hamburger {
  display: none;
}

.mobile-menu {
  display: none;
}

@media (max-width:768px) {

  .nav {
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .nav-links,
  .nav-btn {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + .75rem);
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;

    background: var(--glass-bg);
    backdrop-filter: blur(20px);

    border: 1px solid var(--border);
    border-radius: 1.5rem;

    padding: 1rem;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    transition: .3s ease;
  }

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

  .mobile-menu a {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
  }

  .mobile-menu .btn {
    margin-top: 1rem;
    justify-content: center;
  }
}

.card {
  position: relative;

  padding: 2rem;
  padding-top: 3.5rem;

  border-radius: 20px;

  background: rgba(255, 255, 255, .03);

  backdrop-filter: blur(20px);

  border: 1px solid var(--cardborder);

  transition: .35s ease;

  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);

  border-color: var(--cardhoverborder);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, .25);
}

.window-controls {
  position: absolute;

  top: 1rem;
  left: 1rem;

  display: flex;
  gap: .45rem;
}

.control {
  width: 12px;
  height: 12px;

  border-radius: 50%;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #febc2e;
}

.green {
  background: #28c840;
}

.cardwrapper {
  display: flex;
  gap: 4rem;
  margin: 2rem;
}

.card-content h2 {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-content p {
  padding-top: 0.8rem;

}

.service-list li {
  padding-top: 0.6rem;
  margin-top: 0.5rem;
  list-style-type: disc;

}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.2rem;
  background-image: var(--grad-pink);
  padding: 0.8rem;
  padding-right: 1.6rem;
  padding-left: 1.6rem;
  border-radius: 1.8rem;
  text-align: center;
  margin-left: 0;

}

.service-link {
  position: relative;
  overflow: hidden;

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.service-link:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 20px rgba(255, 0, 170, .35),
    0 0 50px rgba(255, 0, 170, .15);
}

.service-link::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  background:
    linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, .3),
      transparent);

  transition: .7s ease;
}

.service-link:hover::before {
  left: 120%;
}

.arrow {
  transition: .35s ease;
}

.service-link:hover .arrow {
  transform:
    translateX(6px) translateY(-2px);
}

.cardwrapper {
  perspective: 1200px;
}

.card {
  transform-style: preserve-3d;

  transition:
    transform .45s cubic-bezier(.2, .8, .2, 1),
    box-shadow .45s ease;
}

.card:hover {
  transform:
    rotateY(12deg) translateY(-8px);

  box-shadow:
    0 25px 50px rgba(0, 0, 0, .35);
}

.section-heading h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 8rem;
}

.h1 {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p {
  text-align: center;
  margin-top: 1rem;
}

.cardwrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 2rem;

  max-width: 1200px;
  margin: 0 auto;
  margin-top: 4rem;
}

@media (max-width:1024px) {

  .cardwrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;

  }

}

@media (max-width:768px) {

  .services {
    padding: 5rem 1.2rem;
  }

  .cardwrapper {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 4rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card h2 {
    font-size: 1.35rem;
  }

  .service-list {
    gap: .6rem;
  }

}

@media (max-width:480px) {

  .section-heading h1 {
    font-size: 2rem;
  }

  .section-heading p {
    font-size: .95rem;
  }

  .browser-topbar {
    flex-wrap: wrap;
    gap: .75rem;
  }

  .browser-tab {
    font-size: .8rem;
  }

  .service-link {
    width: 100%;
    justify-content: center;
  }

  .cardwrapper {
    margin-top: 4rem;
  }
}

.work {
  padding: 8rem 2rem;
}

.work-container {
  max-width: 1300px;

  margin: auto;
  margin-top: 4rem;

  display: grid;
  grid-template-columns: 320px 1fr;

  gap: 2rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  background: rgba(255, 255, 255, .03);

  border: 1px solid rgba(255, 255, 255, .08);

  border-radius: 20px;

  padding: 1.25rem;

  display: flex;
  align-items: center;
  gap: 1rem;

  cursor: pointer;

  transition: .35s ease;
}

.project-item span {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
}

.project-item:hover {
  transform: translateX(10px);
}

.project-item.active {
  border-color: #ff4fd8;
}

.project-index {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: .4;
}

.preview-window {
  overflow: hidden;

  border-radius: 24px;

  background: rgba(255, 255, 255, .03);

  border: 1px solid rgba(255, 255, 255, .08);

  backdrop-filter: blur(20px);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, .3);
}

.project-list h3 {
  color: var(--fg);
  letter-spacing: 2px;
  text-align: center;
}

.project-list p {
  color: var(--fg);
  font-weight: light;
  margin-top: 4px;
  text-align: center;
}

.browser-topbar {
  display: flex;
  align-items: center;

  padding: 1rem 1.5rem;

  border-bottom:
    1px solid rgba(255, 255, 255, .08);
}

.browser-address {
  margin: auto;

  opacity: .65;

  font-size: .9rem;
}

.preview-image-container {
  height: 500px;

  overflow: hidden;
}

.preview-image-container img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .6s ease,
    opacity .3s ease;
}


.preview-content {
  padding: 2rem;
}

.preview-content h2 {
  margin-bottom: 1rem;
}

.preview-content p {
  opacity: .8;
  line-height: 1.8;
}

.preview-footer {
  margin-top: 2rem;

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

.tech-stack {
  display: flex;
  gap: 1rem;
}

.tech-stack img {
  width: 34px;
  height: 34px;

  transition: .3s ease;
}

.tech-stack img:hover {
  transform:
    translateY(-4px) scale(1.1);
}

.live-btn {
  display: inline-flex;
  align-items: center;

  gap: .5rem;

  padding: .9rem 1.5rem;

  border-radius: 999px;

  text-decoration: none;

  background-image: var(--grad-pink);

  transition: .35s ease;
  color: white;
}

.live-btn:hover {
  transform:
    translateY(-3px) scale(1.03);
}

@media(max-width:900px) {

  .work-container {
    grid-template-columns: 1fr;
  }

  .preview-image-container {
    height: 300px;
  }

  .preview-footer {
    flex-direction: column;
    gap: 1.5rem;
  }

}

.preview-image-container {
  padding: 1rem;
}

.preview-image-container img {
  padding: 1.5rem;
  border: none;
  border-radius: 2rem;
}

.card {
  margin-top: 4rem;
}

.contact {
  padding: 8rem 2rem;
}

.contact-container {
  max-width: 900px;
  margin: auto;
}

.contact-card {
  overflow: hidden;

  border-radius: 28px;

  background:
    rgba(255, 255, 255, .03);

  border:
    1px solid rgba(255, 255, 255, .08);

  backdrop-filter: blur(20px);

  box-shadow:
    0 30px 100px rgba(0, 0, 0, .3);
}

.contact-form {
  padding: 2.5rem;

  display: flex;
  flex-direction: column;

  gap: 1.75rem;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {

  width: 100%;

  background:
    rgba(255, 255, 255, .03);

  border:
    1px solid var(--formborder);

  border-radius: 18px;

  padding:
    1.2rem 1rem;

  color: white;

  font: inherit;

  outline: none;

  transition: .3s ease;
}

.input-group label {

  position: absolute;

  left: 1rem;
  top: 1rem;

  pointer-events: none;

  transition: .3s ease;

  opacity: .6;
}

.input-group input:focus,
.input-group textarea:focus {

  border-color: #ff4fd8;

  box-shadow:
    0 0 25px rgba(255, 79, 216, .2);
}

.input-group input:focus+label,
.input-group input:valid+label,
.input-group textarea:focus+label,
.input-group textarea:valid+label {

  top: -12px;

  left: 14px;

  font-size: .8rem;

  padding: 0 .5rem;

  background: #38387505;

  color: #e709b7;
}

.contact-container {
  margin-top: 8rem;
}

.submit {
  position: relative;

  padding: 1em 2em;

  border: none;

  border-radius: 26px;

  background: var(--contactbtnbg);

  color: var(--fg);

  font-weight: 600;

  cursor: pointer;

  overflow: hidden;

  isolation: isolate;

  transition:
    transform .3s ease,
    color .3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit:hover {

  transform:
    translateY(-4px) scale(1.03);

  box-shadow:
    0 0 25px rgba(0, 140, 255, .4),
    0 0 45px rgba(225, 0, 255, .25);
}

.submit:hover::after {
  animation: flow 3s linear infinite;
}

.submit::before {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(135deg,
      #008cff,
      #e100ff);

  z-index: -2;
}

.submit::after {
  content: "";

  position: absolute;

  inset: 2px;

  border-radius: inherit;

  background: (var(--contactbtnbg));

  transition: .4s ease;

  z-index: -1;
}

.submit:active {
  transform:
    translateY(-1px) scale(.98);
}

.submit:hover {

  transform:
    translateY(-4px) scale(1.03);

  box-shadow:
    0 0 30px rgba(0, 140, 255, .35),
    0 0 50px rgba(225, 0, 255, .25);
}

.submit:hover::after {
  inset: 0;

  background:
    linear-gradient(135deg,
      #008cff,
      #e100ff,
      #008cff);

  background-size: 300% 300%;

  animation: flow 3s linear infinite;
}

.work-shell {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 2rem;

  background: rgba(255, 255, 255, .03);

  border: 1px solid rgba(255, 255, 255, .08);

  border-radius: 32px;

  backdrop-filter: blur(20px);

  box-shadow:
    0 20px 80px rgba(0, 0, 0, .25);

  position: relative;
}

.work-container {
  display: grid;

  grid-template-columns:
    320px 1fr;

  gap: 2rem;

  align-items: start;
}

.work-shell::before {
  content: "";

  position: absolute;

  top: 2rem;
  bottom: 2rem;

  left: 370px;

  width: 1px;

  background:
    rgba(255, 255, 255, .08);
}

@media (max-width:1280px) {

  .work-container {

    grid-template-columns: 1fr;

    gap: 1.5rem;
  }

  .work-shell::before {
    display: none;
  }

  .project-list {
    width: 100%;
  }

  .preview-window {
    width: 100%;
  }

}

.footer {

  margin-top: 8rem;

  padding: 2rem;

  position: relative;
}

.footer-line {

  width: 100%;
  height: 1px;

  background:
    linear-gradient(90deg,
      transparent,
      rgba(255, 79, 216, .5),
      rgba(34, 211, 238, .5),
      transparent);

  margin-bottom: 2rem;
}

.footer-content {

  max-width: 1200px;

  margin: auto;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 2rem;
}

.footer-right {

  display: flex;

  align-items: center;

  gap: 1.5rem;
}

.footer p {

  color: var(--fg);

  font-size: .95rem;
}

.footer-credit {

  color: var(--fg);

  text-decoration: none;

  transition: .3s ease;
}

.footer-credit:hover {

  transform: translateY(-2px);

  background:
    linear-gradient(135deg,
      #ff4fd8,
      #8b5cf6,
      #22d3ee);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-mail {

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background:
    var(--footerimg);

  border:
    1px solid rgba(255, 255, 255, .08);

  transition: .3s ease;
  z-index: 10;
  position: relative;
}

.footer-mail img {
  clip-path: circle();
  width: 42px;
}

.footer-mail:hover {

  transform:
    translateY(-3px) scale(1.08);

  box-shadow:
    0 0 25px rgba(255, 79, 216, .25);
}

@media (max-width:768px) {

  .footer-content {

    flex-direction: column;

    text-align: center;
  }

}

.reveal {
  opacity: 0;
  transform: translateY(60px);

  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============ PREMIUM TOAST ============ */
#toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;

  /* Start slightly lower for the slide-up effect */
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;

  /* Glassmorphism using your exact tokens */
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);

  /* Deep shadow to float above the content */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Typography */
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;

  /* Animation states */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s ease;
}

/* The tiny brand-colored dot for a subtle premium touch */
#toast::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-hot);
  box-shadow: 0 0 10px rgba(255, 0, 212, 0.4);
}

/* Triggered by your JavaScript */
#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Adding .reveal.active here makes this rule the absolute winner */
.card.reveal.active:hover,
.card:hover {
  transform: rotateY(12deg) translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .15);
}

.hero {
  height: auto;
  min-height: 100vh;
}

@keyframes flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/*toggle switch theme*/
/*==================================================
                THEME TOGGLE
==================================================*/

.nav-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.theme-toggle {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  z-index: 999;
}

.toggle-track {

  width: 68px;
  height: 36px;

  border-radius: 999px;

  display: flex;
  align-items: center;

  padding: 4px;

  background:
    rgba(255, 255, 255, .08);

  border:
    1px solid rgba(255, 255, 255, .12);

  backdrop-filter: blur(20px);

  transition:
    .45s cubic-bezier(.22, 1, .36, 1);

  position: relative;

  overflow: hidden;
}

.toggle-track::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(135deg,
      rgba(255, 0, 180, .15),
      rgba(0, 140, 255, .15));

  opacity: 0;

  transition: .4s;
}

.toggle-thumb {

  width: 28px;
  height: 28px;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: black;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, .25);

  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    background .4s;

  position: relative;
}

.theme-toggle:hover .toggle-track {

  border-color:
    rgba(255, 255, 255, .3);

  box-shadow:
    0 0 30px rgba(255, 0, 170, .18);
}

.theme-toggle:hover .toggle-track::before {
  opacity: 1;
}

.icon {

  width: 16px;
  height: 16px;

  position: absolute;

  transition:
    opacity .35s,
    transform .45s;

  color: white;
}

.sun {

  opacity: 0;
  transform:
    rotate(-180deg) scale(.4);
}

.moon {

  opacity: 1;
  transform:
    rotate(0) scale(1);
}

/*==========================
        LIGHT MODE
==========================*/

html.light .toggle-thumb {

  transform:
    translateX(32px);

  background:
    linear-gradient(135deg,
      #ffc400,
      #ff7b00);
}

html.light .sun {

  opacity: 1;

  transform:
    rotate(0) scale(1);
}

html.light .moon {

  opacity: 0;

  transform:
    rotate(180deg) scale(.4);
}

html.light .toggle-track {

  background:
    rgba(255, 190, 0, .12);

  border-color:
    rgba(255, 170, 0, .35);
}

/*==========================
      MOBILE TOGGLE
==========================*/

.mobile-toggle {

  position: fixed;

  right: 28px;
  bottom: 28px;

  display: none;

  z-index: 9999;
}

.desktop-toggle {

  display: flex;
}

/*==========================
        RESPONSIVE
==========================*/

@media(max-width:768px) {

  .desktop-toggle {

    display: none;
  }

  .mobile-toggle {

    display: flex;
  }

}

.nav-actions {

  justify-self: end;

  display: flex;

  align-items: center;

  gap: .8rem;
}

/* Desktop */
.desktop-toggle {
  display: flex;
}

/* Mobile */
.mobile-toggle {
  position: fixed;

  right: 24px;
  bottom: 24px;

  width: 58px;
  height: 58px;

  display: none;

  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background: var(--glass-bg);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid var(--border);

  box-shadow: var(--shadow-glow);

  z-index: 99999;

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

.mobile-toggle:hover {
  transform: translateY(-3px) scale(1.05);
}

.mobile-toggle:active {
  transform: scale(.95);
}

@media (max-width:768px) {

  .desktop-toggle {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

}

.mobile-theme-btn {

  position: fixed;

  right: 24px;
  bottom: 24px;

  width: 56px;
  height: 56px;

  display: none;

  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background: var(--glass-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(18px);

  box-shadow: var(--shadow-glow);

  cursor: pointer;

  z-index: 9999;

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

.mobile-theme-btn:hover {

  transform: translateY(-3px);

}

.mobile-theme-btn:active {

  transform: scale(.93);

}

.mobile-theme-btn svg {

  position: absolute;

  width: 22px;
  height: 22px;

  transition:
    opacity .35s,
    transform .35s;

  color: var(--fg);

}

.mobile-sun {

  opacity: 0;

  transform:
    rotate(-180deg) scale(.5);

}

.mobile-moon {

  opacity: 1;

}

html.light .mobile-sun {

  opacity: 1;

  transform:
    rotate(0) scale(1);

}

html.light .mobile-moon {

  opacity: 0;

  transform:
    rotate(180deg) scale(.5);

}

@media (max-width:768px) {

  .mobile-theme-btn {

    display: flex;

  }

}

/* ============ DESIGN TOKENS ============ */
:root {
  color-scheme: light dark;

  --bg: light-dark(oklch(0.975 0.004 270),
      oklch(0.13 0.02 280));

  --fg: light-dark(oklch(0.205 0.018 280),
      #f8f8f8);

  --muted: light-dark(rgba(51, 65, 85, 0.72),
      rgba(255, 255, 255, 0.65));

  --muted-light: light-dark(rgba(71, 85, 105, 0.58),
      rgba(255, 255, 255, 0.55));

  --border: light-dark(rgba(15, 23, 42, 0.08),
      rgba(255, 255, 255, 0.08));

  --glass-bg: light-dark(rgba(255, 255, 255, 0.58),
      rgba(20, 20, 28, 0.5));

  --pink: light-dark(#e6007e,
      #ff00d4);

  --purple: light-dark(#6d28ff,
      #8a0aff);

  --cyan: light-dark(#007ff5,
      #00c8ff);

  --grad-brand: linear-gradient(90deg, #7209fc, #ff00ff, #008cff);

  --grad-hot:
    linear-gradient(90deg, #ff006a, #d400ff, #8a0ae6, #8c00ff);

  --grad-pink: linear-gradient(90deg, #ff006a, #d400ff);
  --grad-purple:
    linear-gradient(90deg, #8a0aff, #008cff);

  --grad-cyan:
    linear-gradient(90deg, #00c8ff, #ff00ff);


  --font-display: "Space Grotesk", system-ui, sans-serif;

  --radius-full: 9999px;

  --shadow-glow:
    0 10px 30px -10px rgba(212, 0, 255, 0.6);
  --nav-link: light-dark(#4a4a4a, rgba(255, 255, 255, 0.7));
  --navhover: light-dark(black, white);
  --hamburger: light-dark(black, white);
  --pill: light-dark(rgb(53, 50, 50), rgba(255, 255, 255, 0.85));
  --ghostbg: light-dark(rgb(230, 211, 211), rgba(255, 255, 255, 0.04));
  --cardborder: light-dark(rgb(0, 0, 0), rgba(255, 255, 255, .08));
  --cardhoverborder: light-dark(black, rgba(255, 255, 255, .15));
  --contactbtnbg: light-dark(white, #161a20);
  --formborder: light-dark(rgb(202, 202, 202), rgba(255, 255, 255, .08));
  --marqueetxt: light-dark(black,rgba(255, 255, 255, 0.3));
  --marqueeborder: light-dark(rgb(218, 204, 204), rgba(255, 255, 255, 0.05));
  --footerimg: light-dark(white, rgba(255, 255, 255, .08));
  
}

body {
  color: var(--fg)
}

.brand-text {
  color: var(--fg)
}

.hero-title {
  color: var(--fg)
}

.nav-links li {
  color: var(--fg)
}

.card:hover {
  border: 1px solid var(--cardhoverborder);
}

.submit {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 1em 2em;

  border: none;
  border-radius: 26px;

  background: transparent;
  color: var(--fg);

  font-weight: 600;
  cursor: pointer;

  overflow: hidden;
  isolation: isolate;

  transition:
    transform .3s ease,
    color .3s ease,
    box-shadow .3s ease;
}

/* Gradient Border */
.submit::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: linear-gradient(135deg,
      #008cff,
      #e100ff);

  z-index: -2;
}

/* Actual Button */
.submit::after {
  content: "";

  position: absolute;
  inset: 2px;

  border-radius: inherit;

  background: var(--contactbtnbg);

  transition:
    inset .35s ease,
    background .35s ease;

  z-index: -1;
}

/* Hover */
.submit:hover {
  transform:
    translateY(-4px) scale(1.03);

  box-shadow:
    0 0 25px rgba(0, 140, 255, .4),
    0 0 45px rgba(225, 0, 255, .25);
  color: white;
}

/* Fill with animated gradient */
.submit:hover::after {
  inset: 0;

  background: linear-gradient(135deg,
      #008cff,
      #e100ff,
      #008cff);

  background-size: 300% 300%;

  animation: flow 3s linear infinite;
  color: white;
}

/* Click */
.submit:active {
  transform:
    translateY(-1px) scale(.98);
}

/* Gradient Animation */
@keyframes flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
