@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --card: #1a1a2e;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent3: #43e97b;
  --text: #e8e8f0;
  --muted: #8888aa;
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
}
nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 40px;
}
.nav-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* CAROUSEL */
.carousel-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.carousel-bg {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
}
.carousel-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 1s ease;
  transform: scale(1.08);
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}
.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.92) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    rgba(108, 99, 255, 0.15) 100%
  );
  z-index: 1;
}
.slide-content {
  position: absolute;
  bottom: 15%;
  left: 6%;
  z-index: 2;
  max-width: 650px;
}
.slide-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.slide-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.slide-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slide-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}
.slide-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108, 99, 255, 0.5);
}
.slide-btn svg {
  transition: transform 0.3s;
}
.slide-btn:hover svg {
  transform: translateX(4px);
}

/* Carousel Controls */
.carousel-nav {
  position: absolute;
  bottom: 6%;
  left: 6%;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.carousel-dot.active {
  width: 60px;
  background: var(--accent);
}
.carousel-counter {
  position: absolute;
  bottom: 6%;
  right: 6%;
  z-index: 3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -3px;
}

/* Floating particles on carousel */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float linear infinite;
}
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* SECTION COMMON */
section {
  padding: 120px 6%;
}
.section-header {
  text-align: center;
  margin-bottom: 70px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* IMAGE TILES */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.tile:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.tile:nth-child(4) {
  grid-column: span 2;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
  filter: brightness(0.7) saturate(0.9);
}
.tile:hover img {
  transform: scale(1.08);
  filter: brightness(0.9) saturate(1.2);
}
.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 0.85) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.tile:hover .tile-overlay {
  opacity: 1;
}
.tile-cat {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tile-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.4s;
}
.tile:hover .tile-title {
  transform: translateY(0);
}

/* WHAT I DO */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  transform: scaleX(0);
  transition: transform 0.4s;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.15),
    rgba(108, 99, 255, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  transition: transform 0.3s;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}
.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
}

/* EXPERIENCE */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    var(--accent2),
    transparent
  );
  transform: translateX(-50%);
}
.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}
.tl-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}
.tl-item:nth-child(odd) .tl-content {
  margin-left: 0;
  margin-right: 50px;
}
.tl-item:nth-child(even) .tl-content {
  margin-left: 50px;
}
.tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 2;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
  transition: all 0.3s;
}
.tl-item:hover .tl-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.8);
}
.tl-content {
  width: calc(50% - 50px);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s;
}
.tl-item:hover .tl-content {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.tl-year {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(108, 99, 255, 0.15);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.tl-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tl-content h4 {
  color: var(--accent2);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.tl-content p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 6% 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .nav-logo {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}
.footer-links h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-links a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: all 0.3s;
}
.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Glow orbs background */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .tiles-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .tile:nth-child(1) {
    grid-column: span 2;
  }
  .tile:nth-child(4) {
    grid-column: span 2;
  }
  .tile {
    height: 220px;
  }
  .timeline::before {
    left: 20px;
  }
  .tl-item,
  .tl-item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
  }
  .tl-dot {
    left: 20px;
  }
  .tl-content,
  .tl-item:nth-child(odd) .tl-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 600px) {
  .tiles-grid {
    grid-template-columns: 1fr;
  }
  .tile:nth-child(1),
  .tile:nth-child(4) {
    grid-column: span 1;
  }
  .carousel-counter {
    display: none;
  }
  .slide-title {
    font-size: 2rem;
  }
}
