@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f7f4ef;
  color: #1e1e1e;
}

/* =====================
   NAV
===================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #f7f4ef;
  backdrop-filter: blur(6px);

  display: flex;
  justify-content: space-between;
  padding: 20px 6vw;
  font-size: 14px;
}


.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #1e1e1e;
  display: inline-flex;
  align-items: center;
}


/* RESUME BUTTON (matches case study CTA) */
.nav .resume-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background-color: #2b6cb0;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav .resume-btn:hover {
  opacity: 0.9;
}



/* =====================
   HERO
===================== */

.hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  padding: 50px 6vw;
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.45;
}

.hero-text h1 span {
  font-style: italic;
  font-weight: 450;
  font-weight: bold;
  opacity: 0.95;
}

.accent {
  color: #2b6cb0;
}

/* =====================
   WORK
===================== */
/* =====================
   WORK GRID
===================== */

.work {
  padding: 64px 6vw;
}

.work h2 {
  font-size: 24px;
  margin-bottom: 32px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-card {
  background: #fdfbf7;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.work-card img {
  width: 100%;
    height: 260px;          /* tweak 240–280 if needed */
  object-fit: cover; 
  border-radius: 16px;
  margin-bottom: 16px;
}

.card-content {
  flex-grow: 1;
}

.work-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Smooth hover transition */
.work-card {
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Card lift */
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}


/* Button slight emphasis */
.work-card:hover .project-btn {
  opacity: 0.95;
}

.project-tags {
  font-size: 12.5px;
  color: #888;
  margin-bottom: 10px;
}

.project-description {
  font-size: 14.5px;
  color: #444;
  line-height: 1.6;
}

.project-btn {
  margin-top: 16px;
  align-self: flex-start;
  padding: 10px 18px;
  background: #2b6cb0;
  color: white;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

@media screen {
  
}
/* =====================
   ABOUT SECTION
===================== */

.about-tools-combined {
  padding: 80px 0 64px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* tighter, more intentional */
  gap: 250px;
  padding: 0 6vw 140px;
  align-items: flex-start;
}

/* LEFT TITLE */
.about-heading h2 {
  font-size: 26px;
  font-weight: 500;
  position: sticky;
  top: 100px;
}

/* RIGHT TEXT */
.about-content {
  max-width: none;        /* IMPORTANT: remove constraint */
  padding-right: 4vw;
}

/* =====================
   WORD BY WORD ANIMATION (FINAL)
===================== */

.about-text {
  font-size: 22px;
  line-height: 1.7;
  color: #2e2e2e;
}

/* EACH WORD */
.about-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out;
}

/* WORD VISIBLE */
.about-text span.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-text em {
  font-style: italic;
}

/* =====================
   TOOLS SCROLL
===================== */

.tools-section h2 {
  font-size: 24px;
  margin-bottom: 32px;
  padding-left: 6vw;
}

.tools-wrapper {
  overflow: hidden;
}

.tools-track {
  display: flex;
  gap: 32px;
  padding-left: 6vw;
  animation: toolsScroll 26s linear infinite;
}

.tools-wrapper:hover .tools-track {
  animation-play-state: paused;
}

.tool-logo {
  min-width: 160px;
  height: 120px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-logo img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

@keyframes toolsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* =====================
   FOOTER
===================== */

.site-footer {
  padding: 64px 6vw 40px;
  background: #f7f4ef;
  text-align: center;
}

/* Top links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #1e1e1e;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

/* Divider */
.footer-divider {
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  margin: 40px auto;
  max-width: 480px;
}

/* Bottom note */
.footer-note {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.made-with {
  font-size: 16px;
  font-weight: 500;
  color: #2b6cb0; /* matches your accent */
  margin-bottom: 6px;
}

.footer-small {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-links {
    gap: 24px;
  }
  /* =====================
   MOBILE WORK SPACING FIX
===================== */
@media (max-width: 768px) {
  .featured-project {
    padding: 28px;
    gap: 24px;
  }

  .featured-project h3 {
    font-size: 22px;
  }

  .project-description {
    margin-bottom: 16px;
  }

  .project-meta {
    margin-bottom: 18px;
  }

  .project-btn {
    margin-top: 4px;
  }
}
}
/* =====================
   RESPONSIVE
===================== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-heading h2 {
    position: static;
  }

  .about-text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4vw;
  }

  .nav-left {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  .nav-right a {
    margin-left: 0;
    font-size: 13px;
  }

  .resume-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
  }
   .tools-track {
    gap: 20px;                 /* tighter spacing */
    padding-left: 4vw;
    animation-duration: 4s;    /* MUCH faster */
  }

  .tool-logo {
    min-width: 120px;          /* smaller cards */
    height: 90px;
  }

  .tool-logo img {
    max-width: 44px;
    max-height: 44px;
  }
}

@media (max-width: 768px) {
  .featured-project h3 {
    font-size: 22px;
    line-height: 1.32;
  }

  .project-description {
    font-size: 14.5px;
  }

  .project-tags {
    font-size: 12.5px;
  }
}

/* MOBILE: one card + swipe */
@media (max-width: 768px) {

  .work-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .work-card {
    min-width: 85%;
    scroll-snap-align: center;
  }

  /* Hide scrollbar */
  .work-grid::-webkit-scrollbar {
    display: none;
  }
}
