/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

:root {
  --nav-height: 64px;
}

section {
  scroll-margin-top: var(--nav-height);
}

html,
body {
  margin: 0;
  padding: 0;
}

/* BASE */
body {
  background: #ffffff;
  color: #0b1c2d;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  background: #0b1c2d;
  z-index: 1000;
  height: 64px;
}

.nav-inner {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 20px;
}

.logo a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo a:visited {
  color: inherit;
}

.logo a:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
}

.hamburger {
  display: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}

/* HOME */
.home {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  text-align: center;
}

.home-content {
  max-width: 760px;
  margin: auto;
  /* transform: translateY(-40px); */
}

.home h1 {
  font-size: 42px;
}

.home-subtitle {
  margin-top: 12px;
  font-size: 14px;
  color: #1f4fd8;
  font-weight: 500;
}

.home-description {
  margin: 20px auto 32px;
  color: #444;
}

/* ABOUT */
.about {
  min-height: calc(100vh - 64px);
  background: #f5f7fb;
  display: flex;
  align-items: center;
}

.about-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
}

/* .about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
} */

.about-photo {
  width: 260px;
  height: 340px;
  /* portrait */
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: #333;
}

.about-subtitle {
  margin: 28px 0 12px;
  font-size: 16px;
  color: #1f4fd8;
}

.about-list {
  margin-left: 18px;
  margin-bottom: 12px;
}

.about-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}


/* SERVICES */
.services {
  background: #3f3f49;
  color: #ffffff;
  padding: 100px 0;
}

.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.services-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #ffffff;
}

.services-header p {
  font-size: 15px;
  opacity: 0.85;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #2f2f3a;
  padding: 32px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #4fb3ff;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Desktop hover (subtle) */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  }
}


/* EXPERIENCE */
.experience {
  background: #f5f7fb;
  padding: 100px 0;
}

.experience-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 70px;
}

.experience-header h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.experience-header p {
  font-size: 15px;
  color: #555;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 2px;
  height: 100%;
  background: #dbe3f1;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

/* Marker */
.timeline-marker {
  position: absolute;
  left: -22px;
  top: 4px; /* tweak vertical alignment */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #999; /* default (older) */

  transform: scale(0.6);
  transition: transform 0.4s ease-out;
}

/* Date */
.timeline-date {
  margin-left: 40px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #666; /* default (older) */
}

/* Card */
.timeline-content {
  margin-left: 40px;
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 12px;
  border: 1px solid #e5e8ef;
}

.timeline-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-content span {
  font-size: 13px;
  color: #666;
}

.timeline-content p {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.timeline-item.is-visible .timeline-marker {
  transform: scale(1);
}

/* PRESENT */
.timeline-item.is-current .timeline-marker {
  background: #1f4fd8;
}

.timeline-item.is-current .timeline-date {
  color: #1f4fd8;
}

.timeline-item.is-current h3 {
  background: linear-gradient(90deg, #1f4fd8, #4f8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* RECENT */
.timeline-item.is-recent .timeline-marker {
  background: #4f6fd8;
}

.timeline-item.is-recent .timeline-date {
  color: #4f6fd8;
}

.timeline-item.is-recent h3 {
  color: #2f4fa8;
}

/* OLDER */
.timeline-item.is-mid .timeline-marker {
  background: #777;
}

.timeline-item.is-mid .timeline-date {
  color: #777;
}

.timeline-item.is-mid h3 {
  color: #333;
}

/* OLDEST */
.timeline-item.is-old .timeline-marker {
  background: #aaa;
}

.timeline-item.is-old .timeline-date {
  color: #999;
}

.timeline-item.is-old h3 {
  color: #222;
}

/* SCROLL REVEAL – TIMELINE */
.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: opacity, transform;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: stagger feel without JS */
.timeline-item:nth-child(1) { transition-delay: 0.05s; }
.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.15s; }
.timeline-item:nth-child(4) { transition-delay: 0.2s; }
.timeline-item:nth-child(5) { transition-delay: 0.25s; }
.timeline-item:nth-child(6) { transition-delay: 0.3s; }


/* CONTACT */
.contact {
  background: #0b1c2d;
  color: #ffffff;
  padding: 100px 0;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 16px;
  margin-bottom: 14px;
  color: #dbe3f1;
}

.contact-sub {
  font-size: 14px;
  color: #b9c6e4;
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-actions .btn {
  min-width: 160px;
  text-align: center;
}

.contact-actions .btn,
.contact-btn {
  width: 220px;          /* pick a value you like */
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.contact-footer {
  margin-top: 40px;
  font-size: 13px;
  color: #9fb0d8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-footer .dot {
  opacity: 0.6;
}

.contact-footer .contact-link {
  color: #dbe3f1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.contact-footer .contact-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.6);
}

.contact-btn {
  margin-top: 24px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.contact-btn:hover {
  background: #ffffff;
  color: #0b1c2d;
}



/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  margin: 0 6px;
}

.primary {
  background: #0b1c2d;
  border: 2px solid #0b1c2d;
  color: #fff;
}

.secondary {
  border: 2px solid #0b1c2d;
  color: #0b1c2d;
}

/* MOBILE NAV OVERLAY */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #0b1c2d;
  z-index: 2000;

  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-links a {
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* HAMBURGER ICON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* MOBILE NAV OVERLAY */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #0b1c2d;
  z-index: 2000;

  display: flex;
  justify-content: center;
  align-items: center;

  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.mobile-nav a {
  color: #ffffff;
  font-size: 22px;
  text-decoration: none;
}

/* Section transition base */
.section-animate {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (min-width: 769px) {

  html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
  }

  section {
    scroll-snap-align: start;
  }

  .home {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
  }

  .home-content {
    transform: translateY(-40px);
  }

  .services {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
  }

  .services > .container {
    width: 100%;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
  }

  section {
    scroll-snap-align: start;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  .home {
    min-height: calc(100svh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 0;
  }

  .home-content {
    transform: none;
  }

  .home h1 {
    font-size: 34px;
  }

  .about {
    min-height: auto;
    display: block;
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin: 0 auto 20px;
  }

  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* NO cropping */
    transform: scale(1.2); /* zoom OUT slightly */
  }
  
  .about-text {
    max-width: 100%;
  }

  .about-text h2 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 14px;
    margin-bottom: 14px;
  }

  /* Subtitles */
  .about-subtitle {
    margin: 22px 0 10px;
    font-size: 15px;
  }

  /* Lists */
  .about-list {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
  }

  .about-list li {
    font-size: 13.5px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
    text-align: left;
  }

  .about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1f4fd8;
    font-weight: bold;
  }

  .services {
    padding: 70px 0;
  }

  .services-header h2 {
    font-size: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 26px;
  }

  
  .timeline {
    padding-left: 20px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-marker {
    left: -10px;
    top: 3.5px;
  }

  .timeline-date,
  .timeline-content {
    margin-left: 32px;
  }

  .timeline-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .contact {
    padding: 80px 0;
  }

  .contact h2 {
    font-size: 26px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;   /* center column */
    gap: 14px;
  }

  .contact-actions .btn,
  .contact-btn {
    width: 220px;          /* SAME width as desktop */
    margin: 0;
  }

}


