/* ===== CSS Variables ===== */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --accent-primary: #9C27B0;
  --accent-secondary: #E91E63;
  --accent-gradient: linear-gradient(135deg, #9C27B0, #E91E63);
  --accent-glow: rgba(156, 39, 176, 0.35);
  --border-color: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.4);
  --focus-ring: rgba(156, 39, 176, 0.55);
  color-scheme: dark;
}

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

body {
  font-family: 'Poppins', 'Outfit', sans-serif;
  background: #050505;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Loading ===== */
.loader {
  width: 50px;
  height: 50px;
  position: relative;
  animation: spin 1.2s cubic-bezier(.4, 0, .2, 1) infinite
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 0;
  border: 3px solid transparent
}

.loader::before {
  border-top-color: var(--accent-primary);
  border-bottom-color: var(--accent-secondary);
  box-shadow: 0 0 15px var(--accent-glow)
}

.loader::after {
  inset: 8px;
  border-left-color: #fff;
  border-right-color: #fff;
  animation: spin .8s cubic-bezier(.4, 0, .2, 1) infinite reverse
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loader-wrapper {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s, visibility .5s
}

.loader-wrapper.loaded {
  opacity: 0;
  visibility: hidden
}

/* ===== Utilities ===== */
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform .2s;
  z-index: 9999
}

.skip-link:focus {
  transform: translateY(0)
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent-gradient);
  box-shadow: 0 0 16px var(--accent-glow);
  z-index: 9998
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 10, 15, .7);
  backdrop-filter: blur(16px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all .2s;
  z-index: 60;
  font-size: 18px
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.back-to-top:hover {
  background: rgba(156, 39, 176, .2);
  border-color: var(--accent-primary)
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

/* ===== Toasts ===== */
.toast-root {
  position: fixed;
  right: 16px;
  top: 16px;
  display: grid;
  gap: 10px;
  z-index: 9999
}

.toast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  min-width: min(420px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 10, 15, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: toastIn 180ms ease-out both
}

.toast-message {
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  line-height: 1.35
}

.toast-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px
}

.toast-close:hover {
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .95)
}

.toast-info {
  border-color: rgba(156, 39, 176, .28)
}

.toast-success {
  border-color: rgba(16, 185, 129, .35)
}

.toast-error {
  border-color: rgba(239, 68, 68, .35)
}

.toast-hide {
  animation: toastOut 180ms ease-in both
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

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

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0)
  }

  to {
    opacity: 0;
    transform: translateY(-6px)
  }
}

/* ===== Navigation ===== */
.nav {
  position: static;
  top: 16px;
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 900px;
  margin: 0 auto;
  border-radius: 100px;
  backdrop-filter: blur(24px) saturate(1.8);
  background: rgba(10, 10, 15, .6);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: all .3s
}

.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 39, 176, .5), rgba(233, 30, 99, .5), transparent);
  opacity: 0;
  transition: opacity .3s
}

.nav:hover::after {
  opacity: 1
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px
}

.brand-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  padding: 0
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center
}

@media(max-width:768px) {
  .hamburger {
    display: block
  }

  .nav-links {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border-color)
  }

  .nav-links.active {
    display: flex
  }

  .nav-links .btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 8px 12px;
    font-size: .85rem
  }

  .nav-inner {
    flex-direction: row;
    flex-wrap: wrap
  }

  .nav {
    width: calc(100% - 16px);
    margin: 8px auto;
    border-radius: 16px
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
  letter-spacing: .3px;
  position: relative;
  z-index: 10;
}

.btn.ghost {
  background: transparent;
  color: rgba(255, 255, 255, .65);
  border-color: transparent
}

.btn.ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06)
}

.btn.primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
  font-weight: 600
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(156, 39, 176, .5)
}

.btn.secondary {
  background: rgba(255, 255, 255, .05);
  color: #fff;
  border: 1px solid var(--border-color)
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(156, 39, 176, .4)
}

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

.btn.small {
  padding: 8px 14px;
  font-size: .85rem;
  border-radius: 10px
}

/* ===== Ambient Orbs ===== */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: -1;
  opacity: .4
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(156, 39, 176, .3), transparent 70%);
  top: -200px;
  left: -200px
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233, 30, 99, .2), transparent 70%);
  bottom: -150px;
  right: -150px
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(156, 39, 176, .15), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%)
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  margin-bottom: 32px
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(156, 39, 176, .12) 0%, rgba(233, 30, 99, .06) 40%, transparent 60%);
  z-index: -1;
  pointer-events: none
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  border: 1px solid rgba(233, 30, 99, .3);
  background: rgba(233, 30, 99, .08);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 20%, #E91E63 50%, #9C27B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8
}

.hero h2.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 16px
}

.hero h3.subtitle {
  font-size: 1rem;
  opacity: .7;
  max-width: 700px
}

.subtitle strong {
  color: var(--accent-secondary);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(233, 30, 99, .3)
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, #E91E63 50%, #9C27B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.title-particle-container {
  --sp: 0;
  position: relative;
  display: inline-block;
  z-index: 1;
  margin-bottom: 24px;
}

.title-particle-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(calc(var(--x) + (var(--tx) - var(--x)) * var(--sp)),
      calc(var(--y) + (var(--ty) - var(--y)) * var(--sp))) scale(calc(1 - var(--sp) * 0.5));
  opacity: calc(0.8 - var(--sp) * 0.8);
}

.title-particle {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: floatParticle var(--duration) infinite ease-in-out alternate;
}

.title-particle-wrapper:nth-child(even) .title-particle {
  background: var(--accent-secondary);
  width: 4px;
  height: 4px;
}

@keyframes floatParticle {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, calc(-50% - 15px)) scale(1.2);
  }
}

/* ===== Section Headings ===== */
.section-heading {
  text-align: center;
  margin-bottom: 40px
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #E91E63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.section-heading p {
  color: var(--text-secondary)
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 24px 80px
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all .35s;
  position: relative;
  overflow: hidden
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(156, 39, 176, .3), rgba(233, 30, 99, .3), 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;
  pointer-events: none;
  transition: opacity .35s
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(156, 39, 176, .15)
}

.project-card:hover::before {
  opacity: 1
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 16px
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: .95rem
}

.glass-card {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  position: relative;
  overflow: hidden
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  pointer-events: none;
}

.card-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.badge.web {
  background: rgba(56, 189, 248, .12);
  color: #38bdf8
}

.badge.js {
  background: rgba(250, 204, 21, .12);
  color: #b1f70d
}

.badge.cpp {
  background: rgba(59, 130, 246, .12);
  color: #3b82f6
}

.badge.algo {
  background: rgba(156, 39, 176, .12);
  color: #ce93d8
}

/* ===== Sorting Visualizer ===== */
.visualizer-container {
  padding: 32px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.control-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
}

.custom-select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.custom-select:focus {
  border-color: var(--accent-primary);
}

.visualizer-display {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 400px;
  gap: 2px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
  border-radius: 4px 4px 0 0;
  transition: height 0.2s ease, background-color 0.2s ease;
  min-width: 2px;
}

.bar.comparing {
  background: #ffeb3b !important; /* Yellow */
  box-shadow: 0 0 15px #ffeb3b;
  z-index: 2;
}

.bar.swapping {
  background: #f44336 !important; /* Red */
  box-shadow: 0 0 15px #f44336;
  z-index: 2;
}

.bar.sorted {
  background: #4caf50 !important; /* Green */
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.button-group {
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .visualizer-display {
    height: 300px;
    padding: 10px;
  }
  
  .control-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Stats Section ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 24px 60px
}

.stat-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all .3s
}

.stat-card:hover {
  border-color: rgba(156, 39, 176, .3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(156, 39, 176, .1)
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px
}

.stat-label {
  font-size: .85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px
}

@media(max-width:768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }
}

/* ===== Skills Section ===== */
.skills-section {
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: rgba(10, 10, 15, .5);
  border-top: 1px solid rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  margin-bottom: 60px
}

.skills-section::before,
.skills-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none
}

.skills-section::before {
  left: 0;
  background: linear-gradient(to right, #050505, transparent)
}

.skills-section::after {
  right: 0;
  background: linear-gradient(to left, #050505, transparent)
}

.skills-track {
  display: flex;
  animation: scroll 15s linear infinite;
  gap: 24px;
  width: max-content;
  padding: 0 24px
}

.skills-track:hover {
  animation-play-state: paused
}

.skill-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all .3s;
  flex-shrink: 0
}

.skill-tag:hover {
  background: rgba(156, 39, 176, .1);
  transform: translateY(-2px);
  border-color: rgba(156, 39, 176, .3);
  box-shadow: 0 8px 20px rgba(156, 39, 176, .1)
}

@keyframes scroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(calc(-50% - 12px))
  }
}

/* ===== Forms ===== */
.form-section {
  padding: 0 24px 80px;
  max-width: 480px;
  margin: 0 auto
}

.form-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(12px)
}

.form-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px
}

.form-group {
  margin-bottom: 24px
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all .2s
}

.form-group input:focus {
  outline: none;
  border-color: rgba(156, 39, 176, .5);
  box-shadow: 0 0 0 3px rgba(156, 39, 176, .15)
}

.form-group input::placeholder {
  color: var(--muted)
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center
}

.icon-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  transition: all .2s
}

.icon-btn:hover {
  background: rgba(156, 39, 176, .15);
  border-color: rgba(156, 39, 176, .3);
  transform: translateY(-1px)
}

.meter {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden
}

.meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(239, 68, 68, .9), rgba(245, 158, 11, .9), rgba(34, 197, 94, .9));
  transition: width .25s
}

.hint {
  margin-top: 10px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.4
}

.form-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: .95rem
}

.form-footer a {
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 500
}

.form-footer a:hover {
  text-decoration: underline
}

/* ===== Contact Page ===== */
main {
  padding: 60px 0 80px
}

.contact-hero {
  padding-top: 55px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  animation: fadeUp .5s cubic-bezier(.4, 0, .2, 1) both
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  border: 1px solid rgba(233, 30, 99, .3);
  background: rgba(233, 30, 99, .08);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px
}

.contact-hero .h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, #E91E63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.contact-hero .p {
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  animation: fadeUp .5s .1s cubic-bezier(.4, 0, .2, 1) both
}

.field {
  margin-bottom: 4px
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: 16px 0 7px
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .92);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color 150ms, box-shadow 150ms
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, .2)
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(156, 39, 176, .5);
  box-shadow: 0 0 0 3px rgba(156, 39, 176, .12);
  background: rgba(255, 255, 255, .05)
}

.field textarea {
  min-height: 120px
}

.btn-send {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  box-shadow: 0 4px 24px rgba(156, 39, 176, .3);
  transition: transform 100ms, box-shadow 120ms
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(156, 39, 176, .45)
}

.btn-send:active {
  transform: translateY(0)
}

.btn-send:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none
}

#formMsg {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px
}

.side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.side-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  padding: 24px;
  transition: all .2s
}

.side-card:hover {
  border-color: rgba(156, 39, 176, .2);
  transform: translateY(-2px)
}

.side-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .85)
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 120ms
}

.social-link:hover {
  background: rgba(156, 39, 176, .08);
  border-color: rgba(156, 39, 176, .2);
  color: #fff
}

.social-link .sicon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0
}

.social-link .slabel {
  flex: 1
}

.social-link .sarrow {
  font-size: 12px;
  color: rgba(255, 255, 255, .3)
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(34, 197, 94, .85);
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 4px
}

.response-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .85);
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid rgba(255, 255, 255, .04);
  background: radial-gradient(900px 260px at 50% -40px, rgba(156, 39, 176, .12), transparent 60%), rgba(5, 5, 5, .9);
  margin-top: 70px;
  text-align: left
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  align-items: start
}

.footer-branding {
  display: flex;
  gap: 12px;
  align-items: center
}

.footer-brand {
  height: 36px;
  width: 36px;
  opacity: .95
}

.footer-title {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1
}

.footer-tagline {
  margin-top: 4px;
  color: rgba(255, 255, 255, .5);
  font-size: .9rem;
  line-height: 1.35
}

.footer-col h4 {
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px
}

.footer-links {
  display: grid;
  gap: 8px
}

.footer-links a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all .2s;
  width: fit-content;
  font-size: .9rem
}

.footer-links a:hover {
  background: rgba(156, 39, 176, .08);
  border-color: rgba(156, 39, 176, .15);
  color: #fff
}

.footer-legal {
  color: rgba(255, 255, 255, .4);
  font-size: .85rem;
  font-weight: 500
}

.footer-legal a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-weight: 700
}

.footer-legal a:hover {
  text-decoration: underline
}

.footer-subtext {
  font-size: .8rem;
  color: rgba(255, 255, 255, .25)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .04);
  padding: 14px 24px 22px
}

.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between
}

@media(max-width:900px) {
  .footer-content {
    grid-template-columns: 1fr;
    padding: 28px 24px 14px
  }
}

/* ===== Reveal Animation ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1)
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0)
}

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

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

.features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  text-align: left;
  background: rgba(0, 0, 0, .2);
  padding: 16px;
  border-radius: 12px
}

.features-list span {
  font-size: .9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center
}

/* ===== Responsive ===== */
@media(max-width:768px) {
  h1 {
    font-size: 2rem
  }

  .hero {
    padding: 40px 16px 40px;
    margin-bottom: 20px
  }

  .hero h1 {
    font-size: 2.2rem
  }

  .subtitle {
    font-size: 1rem
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px 40px;
    gap: 16px
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .brand-logo {
    height: 24px
  }
}

@media(prefers-reduced-motion:reduce) {
  html:focus-within {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important
  }

  .ambient-orb,
  .cursor-dot,
  .cursor-outline {
    display: none !important
  }
}