@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;700;800&display=swap");
/* Utils */
:root {
  --bg: #080808;
  --surface: #121212;
  --text-main: #e1e1e1;
  --text-muted: #888888;
  --accent: #3b82f6;
  --border: rgba(255, 255, 255, 0.08);
  --font-heading: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --nav-mix-blend: difference;

  --cursor-blend: difference;
  --cursor-bg: #fff;

  --gutter: clamp(24px, 5vw, 80px);
  --section-spacing: clamp(100px, 15vh, 180px);
  --display-huge: clamp(3.5rem, 9vw, 8rem);
}
[data-theme="light"] {
  --bg: #e6e4e0;
  --surface: #dcdad6;
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --accent: #2563eb;
  --border: rgba(0, 0, 0, 0.1);
  --nav-mix-blend: normal;
  --cursor-blend: difference;
  --cursor-bg: #fff;
}

/* Universal CSS */
* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  cursor: none;
  text-decoration: none;
  color: inherit;
}
html {
  scroll-behavior: auto;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
::selection {
  background: var(--accent);
  color: var(--bg) !important;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (hover: none) {
  * {
    cursor: auto !important;
  }
}

.noise-overlay {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background: 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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--cursor-bg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: var(--cursor-blend);
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    width 0.3s ease,
    height 0.3s ease;
}
.cursor.hovered {
  transform: translate(-50%, -50%) scale(3);
}

/* Global Utils */

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-2 {
  display: grid;
  gap: 0.75rem;
}

.btn-link {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 5px;
  transition: all 0.3s ease;
}
.btn-link:hover {
  padding-bottom: 8px;
  color: var(--accent);
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.5s ease,
    color 0.5s ease;
}

/* Nav Section */

nav {
  padding: 2.5rem 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  color: white;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
[data-theme="light"] nav {
  color: var(--text-main);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  z-index: 101;
  position: relative;
}
.nav-actions {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5rem;
  padding: 0.5rem;
  z-index: 101;
  position: relative;
}
.theme-toggle i {
  font-size: 2rem;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;

  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;

  transition:
    transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
    top 0.35s ease;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  top: 6px;
}

.hamburger span:nth-child(2) {
  bottom: 6px;
}

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 4rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-navlinks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 6rem 0rem;
  height: 100%;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-link {
  font-family: var(--font-heading);
  color: var(--text-main);
  opacity: 0;
  font-size: 4rem;
  transform: translateY(20px);
}
.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive CSS */
@media (max-width: 992px) {
  html {
    font-size: 80%;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .theme-toggle {
    margin-left: 0;
  }
  .nav-actions {
    gap: 1.5rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .container {
    width: 90%;
  }
  .work-section,
  .about-section,
  .journal-section,
  .expertise-section {
    padding: 5rem 0;
  }

  .footer {
    padding-top: 5rem;
  }

  .project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .project-item:hover {
    padding: 2rem 1rem;
  }

  .p-cats {
    display: none;
  }
  .about-meta {
    gap: 1rem;
    margin-top: 2rem;
    flex-direction: column;
  }
  .meta-item {
    flex: 1;
    width: 100%;
  }
  .footer-cta {
    margin: 0;
  }
  .footer-content {
    padding-top: 1rem;
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: flex-start;
  }

  .ist-time {
    text-align: left;
  }
  .cursor {
    display: none;
  }
  * {
    cursor: auto;
  }
  .mobile-menu {
    justify-content: flex-start;
    padding-top: 6rem;
  }
}
