

/* variables */
:root {
  --blue:        #1d4ed8;
  --blue-dark:   #1e3a8a;
  --blue-deep:   #0b1f55;
  --blue-bright: #60a5fa;
  --blue-tint:   #eef3fd;

  --black: #0a0a0a;
  --white: #ffffff;

  /* text & borders */
  --muted:       rgba(10, 10, 10, 0.62);
  --muted-light: rgba(255, 255, 255, 0.72);
  --line:        rgba(10, 10, 10, 0.12);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);

  --radius-sm: 6px;
  --radius-md: 10px;

  --transition: all 0.2s ease;

  --font: 'Work Sans', 'Segoe UI', system-ui, sans-serif;
}


/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: var(--font);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

section {
  padding: 5rem 2rem;
}

h1,h2,h3,h4 {
  letter-spacing: -0.01em;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}


/* nav. BAR */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 64px;
  padding: 0 2rem;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

/* LOGO name & subtitle*/
.nav-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--black);
}

.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-role {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* hamburger button (only visible on small screens) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--black);
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background-color: var(--blue-tint);
}


/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(29, 78, 216, 0.55), transparent 55%),
    linear-gradient(135deg, var(--black), var(--blue-deep));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--blue-bright);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-light);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-light);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--blue-bright));
}


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--blue-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-blue-outline {
  background-color: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  font-size: 0.76rem;
  padding: 0.45rem 1rem;
}

.btn-blue-outline:hover {
  background-color: var(--blue);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.76rem;
}


/* ---------- SECTION HEADERS ---------- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: left;
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.section-title-light {
  color: var(--white);
}

.divider {
  width: 50px;
  height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
}

.section-header .divider {
  margin: 1.25rem 0 0;
}

/* lighter blue on dark sections */
.about-section .section-eyebrow,
.ach-section .section-eyebrow {
  color: var(--blue-bright);
}

.about-section .divider,
.ach-section .divider {
  background-color: var(--blue-bright);
}


/* ---------- ABOUT ---------- */
.about-section {
  background-color: var(--black);
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(96, 165, 250, 0.35);
  background-color: var(--white);
}

.about-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
}

.about-badge-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.about-badge-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.about-text .divider {
  margin: 1.25rem 0;
}

.about-text .see-more {
  margin: 1.25rem 0 1.5rem;
}

.about-text p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}


/* ---------- FIELD OF EXPERTISE ---------- */
.why-section {
  background-color: var(--blue-tint);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 60px;
  height: 60px;
  background-color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
  color: var(--white);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ---------- TECH STACK ---------- */
.brands-section {
  background-color: var(--white);
}

.stack-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.stack-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--blue);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.brand-card {
  background-color: var(--blue-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.brand-card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: var(--blue-bright);
}

.brand-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
}

.brand-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}


/* ---------- PROJECTS ---------- */
.projects-section {
  background-color: var(--blue-tint);
}

.projects-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: var(--black);
}

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

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

.project-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background-color: var(--black);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}

.project-body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.project-concept {
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.project-concept strong {
  font-weight: 600;
  color: var(--blue-dark);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background-color: var(--blue-tint);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: var(--blue-dark);
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}


/* ---------- ACHIEVEMENTS & CERTIFICATES ---------- */
.ach-section {
  background-color: var(--blue-deep);
}

.ach-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ach-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--blue);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-md);
}

.ach-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.ach-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--black);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ach-kind {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.ach-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
}

.ach-items li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: var(--black);
}

.ach-items li > i {
  flex-shrink: 0;
}

.ach-items i {
  color: var(--blue);
  font-size: 1.1rem;
  line-height: 1.5;
}

.ach-item {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.ach-item:hover,
.ach-item:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.achievement-modal {
  width: min(900px, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--black);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.achievement-modal::backdrop {
  background: rgba(4, 12, 35, 0.72);
  backdrop-filter: blur(3px);
}

.achievement-modal-content {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.achievement-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.achievement-modal-close:hover {
  background: var(--blue);
  color: var(--white);
}

.achievement-modal-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 1.8rem;
}

.achievement-modal-image {
  display: block;
  width: 100%;
  max-height: 60vh;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.achievement-modal-image[hidden] {
  display: none;
}

/* ---------- SEE MORE / SEE LESS ---------- */
.see-more {
  margin-top: 1.25rem;
}

.see-more i {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

/* arrow flips when the section is expanded */
.see-more[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* hidden until the section is expanded */
.collapsed .extra {
  display: none;
}


/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--black);
  padding: 4rem 2rem 2rem;
  color: var(--white);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer .logo-role {
  color: var(--muted-light);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
  color: var(--muted-light);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted-light);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--blue-bright);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-light);
}


/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background-color 0.2s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background-color: var(--blue-dark);
}


/* ---------- SCROLL ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* mobile menu */
@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

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

  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom-color: var(--line);
    background-color: var(--blue-tint);
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .ach-list {
    grid-template-columns: 1fr;
  }
}