html {
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 25%, #0f1729 50%, #1a1f3a 75%, #0d0f1f 100%);
  background-attachment: fixed;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
/* Disable global accent for pages that need a pure black theme */
.no-accent::before {
  background: none;
}
.font-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
}
.font-serif {
  font-family: "Playfair Display", serif;
}
.font-sans {
  font-family: "Poppins", sans-serif;
}
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1px solid white;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 9999;
}
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(4);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
}
.counter {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  display: inline-block;
}

/* Quick Facts Animations */
@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.quick-fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  animation: zoomIn 0.8s ease-out forwards;
}

.quick-fact-item:nth-child(1) { animation-delay: 0.1s; }
.quick-fact-item:nth-child(2) { animation-delay: 0.3s; }
.quick-fact-item:nth-child(3) { animation-delay: 0.5s; }
.quick-fact-item:nth-child(4) { animation-delay: 0.7s; }

.quick-fact-icon {
  margin-bottom: 1rem;
  position: relative;
}

.quick-fact-item:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

/* Circular Loader */
.circular-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.circular-loader-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-loader-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.circular-loader-fill {
  fill: none;
  stroke: #a855f7;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 2s ease-in-out;
}
.magnetic-text {
  display: inline-block;
  cursor: pointer;
}
.magnetic-text span {
  display: inline-block;
  transition: transform 0.1s linear;
}
#hero-content {
  z-index: 5;
}
#hero-left-panel,
#hero-right-panel {
  z-index: 10;
}
#project-stack-container {
  height: 300vh;
}
.project-card-content {
  background: rgba(255, 255, 255, 0.05); /* Transparent White */
  backdrop-filter: blur(10px); /* Blurry Glass Effect */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Thin Border */
}
#project-stack-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.project-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5vw;
}
.project-card-content {
  width: 100%;
  max-width: 1000px;
  height: 80%;
  max-height: 700px;
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.marquee {
  white-space: nowrap;
  overflow: hidden;
}
.marquee-content {
  display: inline-block;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 180px;
  margin: 0 1rem;
}
.marquee-item img {
  max-height: 80px;
  max-width: 150px;
  object-fit: contain;
}
@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background-color: #111;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 3px;
  background-color: #333;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}
.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-container::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid #1f2937;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-left {
  left: 0;
}
.timeline-right {
  left: 50%;
}
.timeline-right::after {
  left: -10px;
}
.timeline-content {
  padding: 20px 30px;
  background-color: #000;
  border: 1px solid #333;
  position: relative;
  border-radius: 6px;
}
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 15px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
  }
  .timeline-left,
  .timeline-right {
    left: 0%;
  }
  .timeline-left::after,
  .timeline-right::after {
    left: 5px;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Mobile Responsive Grid */
@media (max-width: 768px) {
  .marquee-item {
    width: 140px;
    height: 80px;
  }
  
  .project-card {
    padding: 3vw;
  }
  
  .project-card-content {
    max-width: 100%;
    max-height: 500px;
    padding: 1.5rem 2rem;
  }
}