/* Base Styles */
:root {
  --background: #0a0a16;
  --foreground: #ffffff;
  --primary: #6366f1;
  --secondary: #a855f7;
  --accent: #3b82f6;
  --card-bg: #111122;
  --card-border: rgba(99, 102, 241, 0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

.min-h-screen {
  min-height: 100vh;
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.text-4xl {
  font-size: 2.25rem;
}

.md-text-5xl {
  font-size: 3rem;
}

.lg-text-6xl {
  font-size: 3.75rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.md-text-4xl {
  font-size: 2.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-sm {
  font-size: 0.875rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-center {
  text-align: center;
}

/* Colors */
.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-indigo-400 {
  color: #818cf8;
}

.text-indigo-300 {
  color: #a5b4fc;
}

.text-white {
  color: #ffffff;
}

.bg-indigo-600 {
  background-color: #4f46e5;
}

.bg-indigo-600-20 {
  background-color: rgba(79, 70, 229, 0.2);
}

.bg-purple-600-10 {
  background-color: rgba(147, 51, 234, 0.1);
}

.bg-indigo-900-50 {
  background-color: rgba(49, 46, 129, 0.5);
}

.bg-dark-transparent {
  background-color: rgba(10, 10, 22, 0.8);
}

.bg-dark-light-50 {
  background-color: rgba(17, 17, 34, 0.5);
}

.bg-dark-code {
  background-color: #111122;
}

.bg-white {
  background-color: #ffffff;
}

.hover-bg-gray-100:hover {
  background-color: #f3f4f6;
}

/* Spacing */
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-1 {
  padding: 0.25rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-8 {
  padding-left: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-20 {
  margin-top: 5rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.md-mb-0 {
  margin-bottom: 0;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Layout */
.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.top-0 {
  top: 0;
}

.top-20 {
  top: 5rem;
}

.top-40 {
  top: 10rem;
}

.right-10 {
  right: 2.5rem;
}

.right-20 {
  right: 5rem;
}

.bottom-20 {
  bottom: 5rem;
}

.left-10 {
  left: 2.5rem;
}

.left-20 {
  left: 5rem;
}

.-left-9px {
  left: -9px;
}

.z-50 {
  z-index: 50;
}

.w-full {
  width: 100%;
}

.w-16 {
  width: 4rem;
}

.w-20 {
  width: 5rem;
}

.w-30 {
  width: 7.5rem;
}

.w-40 {
  width: 10rem;
}

.w-300 {
  width: 300px;
}

.h-16 {
  height: 4rem;
}

.h-20 {
  height: 5rem;
}

.h-30 {
  height: 7.5rem;
}

.h-40 {
  height: 10rem;
}

.h-48 {
  height: 12rem;
}

.h-300 {
  height: 300px;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-full {
  border-radius: 9999px;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.hidden {
  display: none;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Grid */
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

/* Borders */
.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-l-2 {
  border-left-width: 2px;
  border-left-style: solid;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-indigo-900-30 {
  border-color: rgba(49, 46, 129, 0.3);
}

.border-indigo-600 {
  border-color: #4f46e5;
}

.dark-border-indigo-400 {
  border-color: #818cf8;
}

.border-indigo-800 {
  border-color: #3730a3;
}

/* Effects */
.blur-3xl {
  filter: blur(4rem);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.hover-text-white:hover {
  color: #ffffff;
}

.hover-text-indigo-400:hover {
  color: #818cf8;
}

.hover-text-indigo-300:hover {
  color: #a5b4fc;
}

.hover-scale-110:hover {
  transform: scale(1.1);
}

.hover-translate-y-5px:hover {
  transform: translateY(-5px);
}

/* Custom Components */
.glow {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.glow-text {
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.gradient-text {
  background: linear-gradient(to right, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-border {
  position: relative;
  border-radius: 0.75rem;
  background: var(--card-bg);
  z-index: 1;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 0.85rem;
  padding: 1px;
  background: linear-gradient(45deg, #6366f1, #a855f7, #3b82f6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.5;
}

.gradient-border:hover::before {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cosmic-bg {
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15), transparent 50%);
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.pulse {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background-color: #4f46e5;
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #4338ca;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: #818cf8;
  border: 1px solid #4f46e5;
  border-radius: 0.5rem;
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(79, 70, 229, 0.1);
}

.card {
  position: relative;
  border-radius: 0.75rem;
  background: var(--card-bg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 0.85rem;
  padding: 1px;
  background: linear-gradient(45deg, #6366f1, #a855f7, #3b82f6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.5;
}

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

.card:hover::before {
  opacity: 1;
}

.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  border: 1px solid #3730a3;
  display: inline-block;
}

/* Responsive */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:text-6xl {
    font-size: 3.75rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
