@import url('https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap');
* { font-family: 'Inter', system-ui, sans-serif; scroll-behavior: smooth; }
.glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); }
.nav-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glow-teal:hover { box-shadow: 0 0 18px #00C2A8; transition: box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 20px 30px -10px rgba(0,194,168,0.2); }
.hover-glow-border:hover { border-color: #00C2A8; box-shadow: inset 0 0 8px #00C2A8; }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }

/* horizontal carousel drag (used in portfolio) */
.draggable { cursor: grab; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #00C2A8 #0A1F44; }
.draggable::-webkit-scrollbar { height: 5px; } .draggable::-webkit-scrollbar-thumb { background: #00C2A8; border-radius: 10px; }
.grid-bg { background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 40px 40px; }
.animated-gradient { background: linear-gradient(45deg, #00C2A8, #00A8FF, #00C2A8); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shift 3s ease infinite; }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
#home h1:hover { text-shadow: 0 0 15px rgba(0, 194, 168, 0.7); transition: text-shadow 0.3s ease; }
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}
.loader {
  width: 100%;
}
.trace-bg {
  stroke: #333;
  stroke-width: 1.8;
  fill: none;
}
.trace-flow {
  stroke-width: 2.2;
  fill: none;
  stroke-dasharray: 30 300;
  stroke-dashoffset: 330;
  filter: drop-shadow(0 0 8px currentColor);
  animation: flow 2.5s cubic-bezier(0.5, 0, 0.9, 1) infinite;
}
.yellow {
  stroke: #ffea00;
  color: #ffea00;
}
.blue {
  stroke: #00ccff;
  color: #00ccff;
}
.green {
  stroke: #00ff15;
  color: #00ff15;
}
.purple {
  stroke: #9900ff;
  color: #9900ff;
}
.red {
  stroke: #ff3300;
  color: #ff3300;
}
@keyframes flow {
  0% {
    stroke-dashoffset: 330;
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
}
.chip-body {
  rx: 20;
  ry: 20;
}
.chip-text {
  font-weight: bold;
  letter-spacing: 1px;
}
.chip-pin {
  stroke: #444;
  stroke-width: 0.5;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* Mobile menu animations */
.mobile-menu-link {
  transition: all 0.3s ease;
}

.mobile-menu-link:hover span {
  color: #00C2A8;
}

.mobile-menu-link:hover span::after {
  width: 100%;
}

.mobile-menu-link span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00C2A8;
  transition: width 0.3s ease;
}

.opacity-100 {
  opacity: 1;
}

.translate-y-0 {
  transform: translateY(0);
}

.marquee-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 2rem;
  width: fit-content;
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-seamless {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--scroll-distance, 50%))); }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Animation pause class for websites portfolio */
.animation-paused {
  animation-play-state: paused !important;
}

/* Blur legal document previews (cards only) */
#legal-documents .legal-doc-card img {
  filter: blur(6px);
  transform: scale(1.04);
}

/* Video cards responsive styling */
.video-card {
  position: relative;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .aspect-video {
  aspect-ratio: 16/9;
}

/* Mobile optimizations for video cards */
@media (max-width: 768px) {
  .video-card .aspect-video {
    aspect-ratio: 16/9;
    min-height: 200px;
  }
  
  .video-card video {
    min-height: 200px;
  }
}

/* Ensure videos don't overflow on small screens */
@media (max-width: 640px) {
  .video-card .aspect-video {
    aspect-ratio: 16/9;
    min-height: 180px;
  }
}
