/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text: #f3f4f6;
  --muted: rgba(243, 244, 246, 0.78);
  --muted-2: rgba(243, 244, 246, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--text);
  line-height: 1.6;

  /* Solid black background */
  background: #000000;
}

h1,
h2,
h3 {
  /* Using Instrument Serif just for titles */
  font-family: 'Instrument Serif', Georgia, serif;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.25s ease;
}

#navbar.scrolled {
  background: var(--glass-bg-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #34da30;
}

.nav-link.slot {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;

  display: inline-block;
  line-height: 1;
  padding: 0.1rem 0.25rem;

  /* underline stays separate */
}

.nav-link.slot .slot-wrap {
  display: inline-block;
  overflow: hidden;
  height: 1.05em;
  /* controls the "window" */
}

.nav-link.slot .slot-char {
  display: inline-block;
  position: relative;
  width: auto;
  height: 1.05em;
  overflow: hidden;
}

.nav-link.slot .slot-char>span {
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* the second copy sits under the first */
.nav-link.slot .slot-char>span span {
  display: block;
  height: 1.05em;
}

/* default: show the first line */
.nav-link.slot .slot-char>span {
  transform: translateY(0);
}

/* hover: slide up to reveal the second line */
.nav-link.slot:hover {
  color: #34da30;
}

.nav-link.slot:hover .slot-char>span {
  transform: translateY(-1.05em);
}

/* staggered delay per character for the slot feel */
.nav-link.slot .slot-char {
  --d: 0ms;
}

.nav-link.slot .slot-char>span {
  transition-delay: var(--d);
}

/* Mobile Menu Toggle */
.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(243, 244, 246, 0.6);
  outline-offset: 2px;
}

.menu-toggle .icon {
  position: absolute;
  width: 26px;
  height: 26px;

  opacity: 0;
  transform: rotate(-90deg) scale(0.9);

  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* default state: hamburger visible */
.menu-toggle .icon-menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* expanded state */
.menu-toggle[aria-expanded="true"] .icon-menu {
  opacity: 0;
  transform: rotate(90deg) scale(0.9);
}

.menu-toggle[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Main Content */
main {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  margin-bottom: 4rem;
  animation: fadeIn 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.company {
  color: #34da30;
  text-decoration: none;
}

.location {
  font-size: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.time-display {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #34da30;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.project-card {
  cursor: pointer;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;

  text-decoration: none;
  color: inherit;
  display: block;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  padding: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.project-card:nth-child(1) {
  animation-delay: 0ms;
}

.project-card:nth-child(2) {
  animation-delay: 100ms;
}

.project-card:nth-child(3) {
  animation-delay: 200ms;
}

.project-card:nth-child(4) {
  animation-delay: 300ms;
}

.project-card:nth-child(5) {
  animation-delay: 400ms;
}

.project-card:nth-child(6) {
  animation-delay: 500ms;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  aspect-ratio: 4/3;
  background-color: rgba(255, 255, 255, 0.06);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.25s ease;
}

.project-card:hover .project-image::after {
  background-color: rgba(0, 0, 0, 0.12);
}

.project-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--muted-2);
}

/* Sandbox Page */
/* Left Column Styles */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

.layout {
  display: grid;
  margin-top: 100px;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.left h1 {
  font-size: 3rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 12px;
}

.left p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.meta {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.meta div {
  display: grid;
  gap: 4px;
}

.meta strong {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.meta span {
  font-size: 14px;
}

.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.track {
  display: flex;
  height: 100%;
  transition: transform 300ms ease;
}

.slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  display: block;
}



.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.dot.active {
  width: 28px;
  background: rgba(255, 255, 255, .95);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .slider {
    height: 260px;
  }
}



/* End of Sandbox Page */
.divider{
  height: 1px;
  background: var(--muted);
  margin: 56px 0;
}


/* Footer */
footer {
  background: var(--glass-bg-strong);
  border-top: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: #5a7a5e;
  border-color: #6d9270;
  transform: translateY(-2px);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: #e8f0ea;
}

.copyright {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;

    background: var(--glass-bg-strong);
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0;

    display: none;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  main {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}