@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
    overflow-x: hidden;
}

/* Floating animation for badges */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.badge-float {
    animation: float 4s ease-in-out infinite;
}

/* Premium Card & Spotlight Logic */
.premium-card {
    position: relative;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        0 10px 30px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 20px 40px -10px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 217, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.premium-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}
.premium-card:hover::before {
    opacity: 1;
}

.premium-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Animated Conic Border Badge */
.conic-border-badge {
    position: relative;
    border-radius: 9999px;
    padding: 1px;
    background: linear-gradient(90deg, #050507, #050507) padding-box,
                conic-gradient(from var(--angle), #00D9FF, #6C2BFF, #00D9FF) border-box;
    border: 1px solid transparent;
    animation: rotate-border 4s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotate-border {
  to {
    --angle: 360deg;
  }
}

/* Timeline specific styles */
.timeline-laser {
    filter: drop-shadow(0 0 10px rgba(0,217,255,0.5)) drop-shadow(0 0 20px rgba(108,43,255,0.3));
}
.timeline-ring {
    position: relative;
}
.timeline-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Project Cards Hover */
.project-card-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-card-image {
    transform: scale(1.05);
}
.project-card {
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}


/* Project card 3D effect in JS, base CSS here */
.project-card {
    transform-style: preserve-3d;
    will-change: transform;
}


/* --- DRIFT WALL CSS --- */
.drift-wall {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: var(--dw-perspective);
  background-color: transparent;
  /* Mask to fade out the top and bottom edges smoothly */
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.drift-wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: var(--dw-gap);
  transform-style: preserve-3d;
  will-change: transform;
}

.drift-wall__col {
  display: flex;
  flex-direction: column;
  gap: var(--dw-gap);
  transform-style: preserve-3d;
}

.drift-wall__track {
  display: flex;
  flex-direction: column;
  gap: var(--dw-gap);
  transform-style: preserve-3d;
  will-change: transform;
}

.drift-wall__tile {
  position: relative;
  width: var(--dw-tile-w);
  height: var(--dw-tile-h);
  border-radius: var(--dw-radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.drift-wall__tile:hover, .drift-wall__tile.is-active {
  transform: translateZ(var(--dw-lift));
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.5);
  z-index: 10;
}

.drift-wall__inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.drift-wall__inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  filter: grayscale(var(--dw-gray));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.drift-wall__tile:hover .drift-wall__inner img, .drift-wall__tile.is-active .drift-wall__inner img {
  filter: grayscale(0);
  transform: scale(1.1);
}

.drift-wall__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--dw-overlay);
  opacity: var(--dw-dim);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.drift-wall__tile:hover .drift-wall__overlay, .drift-wall__tile.is-active .drift-wall__overlay {
  opacity: 0;
}


/* --- ROTATING TEXT CSS --- */
.text-rotate-container {
  display: inline-flex;
  flex-wrap: wrap;
  white-space: pre-wrap;
  position: relative;
  overflow: hidden;
  padding-bottom: 0.1em; /* Accommodate descenders */
  vertical-align: bottom;
}

.text-rotate-element {
  display: inline-block;
  will-change: transform, opacity;
}


/* Orbit Animations */
@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes orbit-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
.orbit-ring-1 { animation: orbit-spin 25s linear infinite; }
.orbit-node-1 { animation: orbit-spin-reverse 25s linear infinite; }

.orbit-ring-2 { animation: orbit-spin-reverse 35s linear infinite; }
.orbit-node-2 { animation: orbit-spin 35s linear infinite; }

.orbit-ring-3 { animation: orbit-spin 45s linear infinite; }
.orbit-node-3 { animation: orbit-spin-reverse 45s linear infinite; }
