/* ========================================
   SONU AHMAD SHAIK - Portfolio Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #050b18;
  --bg-secondary: #0a1628;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  --accent-1: #6c63ff;
  /* violet */
  --accent-2: #00d4ff;
  /* cyan   */
  --accent-3: #ff6584;
  /* pink   */
  --accent-4: #43e97b;
  /* green  */

  --grad-main: linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --grad-warm: linear-gradient(135deg, #ff6584 0%, #6c63ff 100%);
  --grad-green: linear-gradient(135deg, #43e97b 0%, #00d4ff 100%);

  --text-primary: #f0f4ff;
  --text-secondary: #8a9bc5;
  --text-muted: #4a5a7a;

  --border: rgba(108, 99, 255, 0.2);
  --border-hover: rgba(0, 212, 255, 0.4);

  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-intense: 0 20px 60px rgba(108, 99, 255, 0.25);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- Custom Cursor ---- */
#cursor {
  width: 12px;
  height: 12px;
  background: var(--accent-1);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

#cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s;
  opacity: 0.6;
}

body.hovering #cursor {
  width: 22px;
  height: 22px;
  background: var(--accent-2);
}

body.hovering #cursor-follower {
  width: 54px;
  height: 54px;
  opacity: 0.3;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 99px;
}

/* ---- Particles Canvas ---- */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---- Noise Overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section-sm {
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

/* ---- Typography ---- */
.display-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section Header ---- */
.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '//';
  opacity: 0.5;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-intense);
  transform: translateY(-4px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* ---- Tags / Badges ---- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.tag-violet {
  background: rgba(108, 99, 255, 0.15);
  color: #a89ef5;
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.tag-cyan {
  background: rgba(0, 212, 255, 0.1);
  color: #7ee8fd;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.tag-pink {
  background: rgba(255, 101, 132, 0.1);
  color: #ffb3c6;
  border: 1px solid rgba(255, 101, 132, 0.25);
}

.tag-green {
  background: rgba(67, 233, 123, 0.1);
  color: #9dffc4;
  border: 1px solid rgba(67, 233, 123, 0.25);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-left.visible,
.reveal-right.visible {
  transform: translateX(0);
  opacity: 1;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ---- Glow Orbs (decorative) ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-violet {
  background: rgba(108, 99, 255, 0.25);
}

.orb-cyan {
  background: rgba(0, 212, 255, 0.15);
}

.orb-pink {
  background: rgba(255, 101, 132, 0.15);
}

/* ---- Grid Utilities ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---- Flex Utilities ---- */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  transition: var(--transition);
  outline: none;
}

select.form-input,
.form-select {
  /* Native select is visually replaced by .custom-select */
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  transition: var(--transition);
  outline: none;
  cursor: pointer;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: rgba(108, 99, 255, 0.4);
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
  background: rgba(108, 99, 255, 0.06);
}

.custom-select-trigger .custom-select-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger .custom-select-label.is-placeholder {
  color: var(--text-muted);
}

.custom-select-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(225deg) translateY(-2px);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #0f1a2e;
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #f0f4ff;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option:focus {
  background: rgba(108, 99, 255, 0.28);
  color: #ffffff;
  outline: none;
}

.custom-select-option.selected {
  background: rgba(108, 99, 255, 0.4);
  color: #ffffff;
  font-weight: 600;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
  background: rgba(108, 99, 255, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .display-xl {
    font-size: 2.5rem;
  }

  .display-lg {
    font-size: 2rem;
  }

  .display-md {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .wm-letter {
    font-size: clamp(3rem, 12vw, 13rem);
  }

  body {
    cursor: auto;
  }

  #cursor,
  #cursor-follower {
    display: none;
  }
}

/* ======================================================
   GLOBAL WATERMARK — APP DEVELOPER
   Fixed center background, all pages
   ====================================================== */
.wm-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: visible;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  animation: wmReveal 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.wm-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
}

.wm-letter {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: transparent;
  -webkit-text-stroke: 1px rgba(108, 99, 255, 0.13);
  display: inline-block;
  animation: wmFloat 5s ease-in-out infinite;
  position: relative;
}

/* Shimmer overlay — scans the entire watermark */
.wm-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent 20%,
      rgba(108, 99, 255, 0.45) 42%,
      rgba(0, 212, 255, 0.55) 50%,
      rgba(67, 233, 123, 0.30) 58%,
      transparent 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  white-space: nowrap;
  animation: wmShimmer 4s linear infinite;
  pointer-events: none;
}

/* Staggered float per letter (up to 12 letters) */
.wm-letter:nth-child(1) {
  animation-delay: 0.00s;
}

.wm-letter:nth-child(2) {
  animation-delay: 0.10s;
}

.wm-letter:nth-child(3) {
  animation-delay: 0.20s;
}

.wm-letter:nth-child(4) {
  animation-delay: 0.30s;
}

.wm-letter:nth-child(5) {
  animation-delay: 0.40s;
}

.wm-letter:nth-child(6) {
  animation-delay: 0.50s;
}

.wm-letter:nth-child(7) {
  animation-delay: 0.60s;
}

.wm-letter:nth-child(8) {
  animation-delay: 0.70s;
}

.wm-letter:nth-child(9) {
  animation-delay: 0.80s;
}

@keyframes wmReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92) blur(16px);
    filter: blur(16px);
  }

  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes wmFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(-0.4deg);
  }

  75% {
    transform: translateY(5px) rotate(0.25deg);
  }
}

@keyframes wmShimmer {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -100% center;
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}