@import "tailwindcss";

/* =========================================
   DARK THEME VARIABLES — DARK MODE ONLY
========================================= */

:root {
  color-scheme: dark;

  --background: #070817;
  --foreground: #f4f4ff;
  --muted: #a5a8c8;
  --purple: #9b87ff;
  --blue: #60a5fa;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.1);

  --surface: #111126;
  --surface-hover: #191933;

  --button-secondary-bg: rgba(255, 255, 255, 0.035);
  --button-secondary-text: #f4f4ff;

  --divider: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.25);
}

/* =========================================
   GLOBAL STYLES
========================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-poppins), sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  letter-spacing: -0.035em;
  font-weight: 700;
}
s input,
textarea,
select,
button {
  font: inherit;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(155, 135, 255, 0.45);
  color: #ffffff;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

/* =========================================
   BACKGROUND EFFECTS
========================================= */

.site-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;

  background: radial-gradient(ellipse at 12% 15%, rgba(91, 33, 182, 0.22), transparent 36%), radial-gradient(ellipse at 88% 22%, rgba(37, 99, 235, 0.16), transparent 32%), radial-gradient(ellipse at 50% 95%, rgba(109, 40, 217, 0.12), transparent 40%), var(--background);
}

.bubble {
  position: absolute;
  border: 1px solid rgba(190, 170, 255, 0.15);
  border-radius: 50%;

  background: linear-gradient(135deg, rgba(139, 92, 246, 0.13), rgba(59, 130, 246, 0.035));

  box-shadow:
    inset 0 0 30px rgba(139, 92, 246, 0.07),
    0 0 50px rgba(99, 102, 241, 0.04);

  animation: float 12s ease-in-out infinite;
}

.bubble-one {
  width: 220px;
  height: 220px;
  top: 14%;
  left: -100px;
}

.bubble-two {
  width: 140px;
  height: 140px;
  top: 52%;
  right: -55px;
  animation-delay: -4s;
}

.bubble-three {
  width: 85px;
  height: 85px;
  top: 75%;
  left: 22%;
  animation-delay: -7s;
}

.bubble-four {
  width: 48px;
  height: 48px;
  top: 26%;
  right: 17%;
  animation-delay: -2s;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -30px, 0);
  }
}

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

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.13);
  }

  50% {
    box-shadow: 0 0 34px rgba(96, 165, 250, 0.24);
  }
}

.animate-fade-up {
  animation: fade-up 0.8s ease both;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* =========================================
   GLASS CARDS
========================================= */

.glass-card {
  color: var(--foreground);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;

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

  box-shadow: 0 8px 30px var(--shadow);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(167, 139, 250, 0.35);
}

@media (hover: hover) {
  .glass-card:hover {
    transform: translateY(-5px);
  }
}

/* =========================================
   GRADIENT TEXT
========================================= */

.gradient-text {
  color: transparent;

  background: linear-gradient(110deg, #c4b5fd 5%, #a78bfa 40%, #60a5fa 90%);

  background-clip: text;
  -webkit-background-clip: text;
}

/* =========================================
   BUTTONS
========================================= */

.gradient-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 22px;

  border: 1px solid rgba(196, 181, 253, 0.25);
  border-radius: 14px;

  color: #ffffff;

  background: linear-gradient(110deg, #7c3aed, #4f46e5, #2563eb);

  background-size: 160% 100%;

  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.2);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-position 0.3s ease;
}

.gradient-button:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 22px;

  border: 1px solid var(--glass-border);
  border-radius: 14px;

  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.outline-button:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.1);
}

/* =========================================
   COMMON COMPONENTS
========================================= */

.section-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section-padding {
  padding-block: 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 8px 13px;

  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 999px;

  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.08);

  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #34d399;

  box-shadow: 0 0 12px rgba(52, 211, 153, 0.65);
}

/* =========================================
   FORM ELEMENTS — DARK MODE
========================================= */

input,
textarea,
select {
  color-scheme: dark;
  color: var(--foreground);
  background-color: var(--surface);
  border-color: var(--glass-border);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(167, 139, 250, 0.65);
  outline-offset: 2px;
}

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

@media (max-width: 640px) {
  .section-container {
    width: min(calc(100% - 28px), 1120px);
  }

  .section-padding {
    padding-block: 68px;
  }

  .glass-card {
    border-radius: 20px;
  }

  .bubble-one {
    width: 150px;
    height: 150px;
  }

  .bubble-two {
    width: 100px;
    height: 100px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

a:focus-visible,
button:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 4px;
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   HOME PAGE - ANIMATED BACKGROUND
========================================================= */

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 15% 20%, rgba(124, 58, 237, 0.09), transparent 38%), radial-gradient(ellipse at 85% 35%, rgba(6, 182, 212, 0.07), transparent 35%);
}

.site-background::before,
.site-background::after {
  position: absolute;
  content: "";
  width: 65vw;
  height: 65vw;
  max-width: 700px;
  max-height: 700px;
  border: 1px solid rgba(167, 139, 250, 0.06);
  border-radius: 50%;
  animation: background-orbit 35s linear infinite;
}

.site-background::before {
  top: -35%;
  left: -25%;
}

.site-background::after {
  right: -30%;
  bottom: -40%;
  animation-direction: reverse;
  animation-duration: 45s;
}

.background-orbit {
  position: absolute;
  top: 8%;
  right: -12%;
  width: min(58vw, 600px);
  color: rgba(167, 139, 250, 0.13);
  animation: background-orbit 65s linear infinite;
}

.bubble {
  position: absolute;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.035));
  box-shadow:
    inset 0 0 25px rgba(139, 92, 246, 0.05),
    0 0 35px rgba(139, 92, 246, 0.045);
  animation: bubble-float 12s ease-in-out infinite;
  will-change: transform;
}

.bubble-one {
  top: 14%;
  left: 7%;
  width: 76px;
  height: 76px;
}

.bubble-two {
  top: 33%;
  right: 8%;
  width: 118px;
  height: 118px;
  animation-delay: -4s;
  animation-duration: 16s;
}

.bubble-three {
  top: 62%;
  left: 13%;
  width: 46px;
  height: 46px;
  animation-delay: -7s;
  animation-duration: 14s;
}

.bubble-four {
  right: 18%;
  bottom: 12%;
  width: 66px;
  height: 66px;
  animation-delay: -3s;
  animation-duration: 18s;
}

.bubble-five {
  top: 75%;
  left: 49%;
  width: 24px;
  height: 24px;
  animation-delay: -8s;
  animation-duration: 11s;
}

.home-page {
  isolation: isolate;
}

.home-page > section {
  position: relative;
  z-index: 1;
}

/* =========================================================
   PROFILE CARD ANIMATIONS
========================================================= */

.profile-glow {
  background: conic-gradient(from 0deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.12), rgba(217, 70, 239, 0.28), rgba(139, 92, 246, 0.3));
  animation: glow-breathe 7s ease-in-out infinite;
}

.profile-card {
  transform: translateZ(0);
  transition:
    border-color 350ms ease,
    box-shadow 350ms ease,
    transform 350ms ease;
}

.profile-card:hover {
  border-color: rgba(167, 139, 250, 0.22);
  box-shadow: 0 25px 90px rgba(76, 29, 149, 0.13);
  transform: translateY(-4px);
}

.profile-orbit {
  opacity: 0.6;
  animation: orbit-pulse 7s ease-in-out infinite;
}

.profile-orbit-two {
  animation-delay: -3.5s;
  animation-duration: 9s;
}

.profile-image-glow {
  background: conic-gradient(from 0deg, #8b5cf6, #22d3ee, #d946ef, #8b5cf6);
  animation: background-orbit 9s linear infinite;
}

.animate-soft-spin {
  animation: soft-spin 12s linear infinite;
}

.floating-dot {
  animation: dot-float 4s ease-in-out infinite;
}

.floating-dot-delay {
  animation-delay: -2s;
}

.floating-label {
  animation: label-float 6s ease-in-out infinite;
}

.floating-label-second {
  animation-delay: -3s;
}

.profile-detail-box {
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    transform 250ms ease;
}

.profile-detail-box:hover {
  border-color: rgba(167, 139, 250, 0.25);
  background-color: rgba(139, 92, 246, 0.07);
  transform: translateY(-3px);
}

/* =========================================================
   HIGHLIGHTS AND LINK CARDS
========================================================= */

.highlight-card {
  animation: fade-up 700ms both;
  transition:
    border-color 250ms ease,
    transform 250ms ease,
    background-color 250ms ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.2);
  background-color: rgba(255, 255, 255, 0.045);
}

.quick-link-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.quick-link-card::before {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(167, 139, 250, 0.06), transparent);
  transition: left 650ms ease;
}

.quick-link-card:hover::before {
  left: 150%;
}

.quick-link-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.24);
  box-shadow: 0 18px 50px rgba(76, 29, 149, 0.1);
}

.contact-card {
  transition: border-color 300ms ease;
}

.contact-card:hover {
  border-color: rgba(167, 139, 250, 0.22);
}

/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes bubble-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(18px, -24px, 0) rotate(8deg);
  }

  50% {
    transform: translate3d(-8px, -42px, 0) rotate(-5deg);
  }

  75% {
    transform: translate3d(-20px, -14px, 0) rotate(5deg);
  }
}

@keyframes background-orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    transform: scale(0.99);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.025);
    opacity: 0.8;
  }
}

@keyframes soft-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes dot-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes label-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

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

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

/* =========================================================
   ACCESSIBILITY AND MOBILE OPTIMIZATION
========================================================= */

@media (max-width: 640px) {
  .bubble-two {
    right: -30px;
    width: 85px;
    height: 85px;
  }

  .bubble-one {
    left: -20px;
    width: 60px;
    height: 60px;
  }

  .background-orbit {
    top: 15%;
    right: -35%;
    width: 95vw;
  }

  .profile-orbit {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-background *,
  .site-background::before,
  .site-background::after,
  .profile-glow,
  .profile-orbit,
  .profile-image-glow,
  .animate-soft-spin,
  .floating-dot,
  .floating-label,
  .highlight-card {
    animation: none !important;
  }

  .profile-card,
  .quick-link-card,
  .profile-detail-box {
    transition: none !important;
  }

  .profile-card:hover,
  .quick-link-card:hover,
  .profile-detail-box:hover {
    transform: none;
  }
}
