:root {
  --bg-dark: #020204;
  --accent-orange: #ff9800;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
}

.sync {
  font-family: "Syncopate", sans-serif;
  text-transform: uppercase;
}

/* MENU OVERLAY */
#menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 2, 4, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10%;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

#menu-overlay.active {
  transform: translateX(0);
}

@media (min-width: 768px) {
  #menu-overlay {
    width: 50%;
  }
}

.menu-link {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  transition:
    color 0.3s,
    transform 0.3s;
  display: block;
}

.menu-link:hover {
  color: var(--accent-orange);
  transform: translateX(-20px);
}

.grid-coord {
  position: absolute;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  font-family: monospace;
  z-index: 5;
}

/* TEAM CARDS */
.team-card {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ENHANCED PROJECT CARDS (THE SLIDER) */
.project-card {
  min-width: 85vw;
  /* Large like the design image */
  height: 70vh;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 768px) {
  .project-card {
    min-width: 60vw;
    height: 75vh;
  }
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition:
    transform 0.8s,
    opacity 0.5s;
}

.project-card:hover img {
  opacity: 0.9;
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 10;
}

/* CURSOR */
#cursor {
  width: 10px;
  height: 10px;
  background: #ff9800;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: difference;
}

#scroll-progress-container {
  position: fixed;
  right: 0;
  top: 0;
  width: 3px;
  height: 100vh;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.05);
}

#scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: #ff9800;
  transform-origin: top;
  transform: scaleY(0);
}

@keyframes typing {
  0%,
  100% {
    width: 0;
    border-right: 4px solid transparent;
  }

  50% {
    width: 100%;
    border-right: 4px solid #ff9800;
  }

  80% {
    width: 100%;
    border-right: 4px solid transparent;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.sync {
  font-family: "Arial Black", sans-serif;
  overflow: hidden;
  white-space: nowrap;
}

.typing-animation {
  display: inline-block;
  position: relative;
}

.word-create {
  animation: typing 3s steps(6) infinite;
  color: #ff9800;
  display: inline-block;
  overflow: hidden;
}

.word-studio {
  animation: typing 3s steps(6) infinite 1.5s;
  color: white;
  display: inline-block;
  overflow: hidden;
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: #ff9800;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

.word {
  opacity: 0.6;
  transition: all 0.5s ease;
  display: inline-block;
}

.word.highlight {
  opacity: 1;
  transform: translateY(-5px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.552);
}

.line {
  display: block;
  margin-bottom: 10px;
}

/* Update your CSS section with this */
.circle-border-container {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.circle-element {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: black;
  transition: border-color 0.5s ease;
}

.circle-element:hover {
  border-color: #ff9800;
}

@media (min-width: 1024px) {
  .overlap-circle {
    margin-right: -60px;
  }
}

@media (max-width: 1023px) {
  .circle-element {
    width: 300px;
    height: 300px;
    margin-right: 0;
    margin-bottom: -40px;
  }
}

@media (max-width: 568px) {
  @media (min-width: 1024px) {
    .overlap-circle {
      margin-right: -60px;
      /* Stronger overlap on desktop */
    }
  }

  @media (max-width: 568px) {
    .circle-border {
      margin-bottom: -60px;
    }
  }
}

.reveal-text,
.main-card,
.logo-circle {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#progress-circle {
  /* Glowing effect for the orange bar */
  filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.5));
}

#scroll-percentage {
  /* Shadow to ensure readability against dynamic backgrounds */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Optional: Hide on mobile if it covers content */
@media (max-width: 640px) {
  .fixed.bottom-10.right-10 {
    transform: scale(0.8);
    bottom: 5px;
    right: 5px;
  }
}

.skill-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border-radius: 1rem;
  /* rounded-2xl */
  padding: 2rem;
  /* p-8 */

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.4),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);

  cursor: pointer;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: #ff98007d;
  transform: translateY(-6px);
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.5);
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .experience-item {
    grid-template-columns: repeat(3, 1fr);
  }
}

.experience-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.value {
  font-size: 1.125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .value {
    font-size: 1.25rem;
  }
}

.experience-item {
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.outline-text {
  -webkit-text-stroke: 1px #27272a;
  color: transparent;
}

/* Modern masking for the text reveal */
.reveal-container {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
/* Ensure magnetic area is slightly larger than the button for better UX */
.magnetic-wrap {
  display: inline-block;
  padding: 30px;
  margin: -30px;
}

.work-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  cursor: grab;
  touch-action: pan-y; /* Allow vertical scroll on mobile */
}
.work-carousel-wrapper:active {
  cursor: grabbing;
}
#work-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  will-change: transform;
  padding: 0.5rem 0.25rem;
  transition: none;
  pointer-events: none; /* Prevent interfering with scroll */
}
.work-card {
  flex: 0 0 88vw;
  max-width: 88vw;
  margin: 0 auto;
  transition: box-shadow 0.2s;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto; /* Re-enable pointer events on cards */
}
@media (min-width: 768px) {
  .work-card {
    flex: 0 0 70vw;
    max-width: 70vw;
  }
}
@media (min-width: 1024px) {
  .work-card {
    flex: 0 0 60vw;
    max-width: 60vw;
  }
}
.work-card .h-96 {
  height: 18rem;
}
@media (min-width: 640px) {
  .work-card .h-96 {
    height: 24rem;
  }
}
@media (min-width: 1024px) {
  .work-card .h-96 {
    height: 26rem;
  }
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-6xl {
  font-size: 3rem;
}
@media (min-width: 768px) {
  .text-6xl {
    font-size: 4.5rem;
  }
}
@media (min-width: 1024px) {
  .text-6xl {
    font-size: 5.5rem;
  }
}
.work-card .space-y-6 > * + * {
  margin-top: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dots button.active {
  background: #ff9800;
  width: 36px;
  border-radius: 6px;
}
.carousel-dots button:hover {
  background: #ff9800;
  opacity: 0.7;
}

.carousel-scrollbar {
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  margin-top: 1.5rem;
  position: relative;
  cursor: pointer;
}
.carousel-scrollbar-progress {
  height: 100%;
  background: #ff9800;
  border-radius: 2px;
  width: 20%;
  transition: width 0.3s ease;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Next section styling */
#next-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%);
  border-top: 1px solid #1a1a1a;
}

.linkedin-btn {
  transition: box-shadow 0.3s ease;
}

.linkedin-btn:hover {
  box-shadow:
    0 0 0 8px rgba(10, 102, 194, 0.12),
    0 0 35px rgba(10, 102, 194, 0.45);
}

.linkedin-icon {
  transition: transform 0.3s ease;
}

.linkedin-btn:hover .linkedin-icon {
  transform: scale(1.15) rotate(-5deg);
}

.social-float {
  position: fixed;
  isolation: isolate;
  cursor: pointer;
  transform: translateZ(0);
  will-change: transform;
}

.social-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid currentColor;
  opacity: 0;
  pointer-events: none;
}

.social-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  padding: 7px 12px;
  border-radius: 8px;
  background: #18181b;
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.linkedin-btn:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
}

.linkedin-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: rgba(10, 102, 194, 0.15);
  z-index: -1;
  opacity: 0;
}
