:root {
  --bg-color: #050505;
  --text-color: #f0f0f0;
  --accent-color: #888888;
  --primary-red: #ff1a1a;
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  cursor: none;
}

a,
button {
  text-decoration: none;
  color: inherit;
  cursor: none;
  border: none;
  background: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* === PAGE LOADER (New) === */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 99999;
  /* Highest priority */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-loader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.loader-bar-bg {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
}

/* === BACKGROUND BLOBS === */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-color);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
  animation: moveBlob 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
  width: 60vw;
  height: 60vw;
  top: -15%;
  left: -15%;
  background: radial-gradient(circle, #ff1a1a 0%, transparent 60%);
  animation-duration: 30s;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, #cc0000 0%, transparent 60%);
  animation-duration: 35s;
  animation-delay: -5s;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  top: 30%;
  left: 30%;
  background: radial-gradient(circle, #ff4d4d 0%, transparent 60%);
  animation-duration: 28s;
  animation-delay: -10s;
  opacity: 0.3;
}

@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(10%, 15%) scale(1.1);
  }
}

/* === NOISE TEXTURE === */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* === CURSOR & UI === */
.cursor {
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.cursor.active {
  width: 80px;
  height: 80px;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-text {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 700;
  color: #000;
  pointer-events: none;
}

.cursor.active .cursor-text {
  opacity: 1;
}

.scroll-indicator {
  position: fixed;
  bottom: 60px;
  right: 60px;
  width: 100px;
  height: 100px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
  transition: opacity 0.3s;
}

.scroll-text-svg {
  position: absolute;
  width: 120%;
  height: 120%;
  animation: spin 10s linear infinite;
  fill: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

.scroll-arrow {
  width: 20px;
  fill: #fff;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* === LAYOUT === */
.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  mix-blend-mode: difference;
  position: relative;
  z-index: 10;
}

.view-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

#main-view {
  display: block;
}

#project-view {
  display: none;
  opacity: 0;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--accent-color);
  mix-blend-mode: difference;
}

.hero-text {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 160px);
  line-height: 0.85;
  font-weight: 800;
  text-transform: uppercase;
  mix-blend-mode: difference;
}

.hero-line {
  overflow: hidden;
  display: block;
}

.hero-line span {
  display: block;
  transform: translateY(100%);
}

.hero-sub {
  margin-top: 50px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 500px;
  line-height: 1.4;
  color: #ccc;
  mix-blend-mode: difference;
}

/* About */
.about {
  padding: 150px 0;
  position: relative;
  z-index: 2;
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 60px;
}

.about-label {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-red);
  font-weight: 700;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.about-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 800px;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-top: 5px;
}

/* Marquee */
.tech-marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-bottom: 80px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.tech-track {
  display: flex;
  animation: scroll 15s linear infinite;
  white-space: nowrap;
}

.tech-item {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 40px;
  color: var(--accent-color);
}

/* Work */
.work {
  padding: 50px 0 150px;
  position: relative;
  z-index: 2;
}

.section-header {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 60px;
  opacity: 0.6;
  letter-spacing: 1px;
}

.project-list {
  list-style: none;
  position: relative;
  z-index: 2;
}

.project-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

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

.project-item:hover {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.03);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.4s;
  margin-bottom: 10px;
}

.project-desc {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--accent-color);
  max-width: 400px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.project-item:hover .project-title {
  transform: translateX(20px);
  color: #fff;
}

.project-item:hover .project-desc {
  opacity: 1;
  transform: translateY(0) translateX(20px);
}

.project-meta {
  font-family: var(--font-display);
  opacity: 0.5;
  text-align: right;
  white-space: nowrap;
}

.hover-reveal {
  position: fixed;
  width: 350px;
  height: 250px;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  overflow: hidden;
  border-radius: 4px;
}

.hover-reveal__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
  transition: transform 0.3s;
  filter: grayscale(100%) contrast(120%);
}

/* Footer */
.footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #080808;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  z-index: 2;
}

.footer-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 12rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 50px;
  width: 100%;
}

.footer-actions {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cta-button {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* === PROJECT VIEW STYLES === */
.project-view-inner {
  width: 100%;
  overflow: hidden;
}

.back-btn {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: all 0.3s ease;
  cursor: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.back-btn:hover {
  border-color: #fff;
  transform: scale(1.1);
}

.back-btn:hover svg {
  transform: translateX(-3px);
  fill: #fff;
}

.back-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.detail-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 20px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.detail-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: #ccc;
  max-width: 700px;
  border-left: 2px solid var(--primary-red);
  padding-left: 20px;
}

.horizontal-section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.horizontal-track {
  display: flex;
  gap: 50px;
  padding: 0 5vw;
  height: 80vh;
}

.horizontal-item {
  position: relative;
  height: 100%;
  width: 70vw;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.horizontal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.horizontal-item:hover img {
  transform: scale(1.05);
}

.project-details-section {
  padding: 100px 0;
  background: var(--bg-color);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-block {
  margin-bottom: 80px;
}

.detail-block h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: var(--primary-red);
  letter-spacing: 1px;
}

.detail-block p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #bbb;
  max-width: 900px;
}

.detail-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.secondary-btn {
  padding: 15px 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.next-project-footer {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #080808;
  text-align: center;
  cursor: pointer;
  transition: background 0.5s;
}

.next-project-footer:hover {
  background: #0e0e0e;
}

.next-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.6;
  text-transform: uppercase;
}

.next-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.5s;
}

.next-project-footer:hover .next-title {
  transform: scale(1.05);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .hero-text {
    font-size: clamp(3rem, 10vw, 8rem);
  }

  .about-grid {
    gap: 30px;
  }

  .about-content h2 {
    font-size: 2.5rem;
  }

  .project-title {
    font-size: 3rem;
  }

  .footer-text {
    font-size: 10vw;
  }
}

@media (max-width: 768px) {

  body,
  html {
    cursor: auto;
  }

  .cursor,
  .hover-reveal,
  .scroll-indicator {
    display: none !important;
  }

  .blob {
    opacity: 0.4;
  }

  .about-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .container {
    padding: 0 20px;
    width: 100%;
  }

  .hero-text {
    padding: 0;
    font-size: clamp(1.5rem, 9vw, 5rem);
    margin-bottom: 30px;
    word-wrap: break-word;
  }

  .hero-sub {
    font-size: 1rem;
    margin-top: 20px;
  }

  .hero-label {
    margin-bottom: 10px;
  }

  .about {
    padding: 80px 0;
  }

  .project-item {
    flex-direction: column;
    gap: 15px;
    padding: 40px 0;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .project-desc {
    opacity: 1;
    transform: none;
    display: block;
    margin-top: 5px;
    font-size: 1rem;
    max-width: 100%;
  }

  .horizontal-section {
    height: auto;
    padding: 40px 0;
    overflow-x: auto;
    display: block;
  }

  .horizontal-track {
    flex-direction: column;
    height: auto;
    padding: 0 15px;
    gap: 20px;
  }

  .horizontal-item {
    width: 100%;
    height: 50vh;
  }

  .secondary-btn {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 10px;
  }

  .detail-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer {
    padding: 80px 20px;
  }

  .footer-text {
    font-size: 12vw;
    margin-bottom: 40px;
  }

  .cta-button {
    width: 120px;
    height: 120px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {


  .footer-text {
    font-size: 3rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    height: 60px;
    border-radius: 30px;
  }
}