/* Base Styles */
@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #ffffff;
  --bg-color: #000000;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--primary-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.font-geist-mono {
  font-family: 'Geist Mono', monospace;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Cursor */
#custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

/* Loader */
#loader {
  background-color: var(--bg-color);
}

.loader-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-blue);
  animation: spin 1.5s linear infinite;
}

.loader-circle:nth-child(2) {
  border-top-color: var(--accent-purple);
  animation-duration: 2s;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
}

.loader-circle:nth-child(3) {
  border-top-color: var(--accent-pink);
  animation-duration: 2.5s;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* IP Card Styles */
.ip-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.ip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(59, 130, 246, 0.2);
}

.ip-card-image {
  position: relative;
  height: 0;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
}

.ip-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ip-card:hover .ip-card-image img {
  transform: scale(1.05);
}

.ip-card-content {
  padding: 1.5rem;
  background-color: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

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

/* Category Styles */
.category-card i {
  transition: transform 0.3s;
}

.category-card:hover i {
  transform: scale(1.2);
}

/* Modal Styles */
#ip-modal {
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

#ip-modal.show {
  opacity: 1;
  pointer-events: auto;
}

#ip-modal .relative {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

#ip-modal.show .relative {
  transform: translateY(0);
  opacity: 1;
}

/* Customization Controls */
[data-color] {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

[data-color]::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

[data-color].active::after {
  border-color: white;
}

[data-color]:hover {
  transform: scale(1.1);
}

/* Range Input Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
