/* ==========================================================================
   Norasiah Binti Pakir Mohamad — Portfolio
   ========================================================================== */

:root {
  --navy-950: #0a1626;
  --navy-900: #0f1f33;
  --navy-800: #16304d;
  --navy-700: #1e3f63;
  --steel-100: #f4f6f8;
  --steel-200: #e7ebef;
  --steel-300: #d3dae1;
  --steel-500: #8695a4;
  --steel-700: #4a5b6c;
  --ink: #12202f;
  --safety-orange: #e8621c;
  --safety-orange-dark: #c94f11;
  --white: #ffffff;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow-md: 0 10px 30px -12px rgba(10, 22, 38, 0.25);
  --shadow-lg: 0 25px 60px -20px rgba(10, 22, 38, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--safety-orange), #ffb347);
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 22, 38, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--white);
}
.logo span { color: var(--safety-orange); }

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--steel-200);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav a:not(.nav-download)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--safety-orange);
  transition: width 0.25s ease;
}

.nav a:not(.nav-download):hover { color: var(--white); }
.nav a:not(.nav-download):hover::after { width: 100%; }

.nav-download {
  background: var(--safety-orange);
  color: var(--white) !important;
  font-weight: 600;
  padding: 10px 22px !important;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-download:hover {
  background: var(--safety-orange-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,22,38,0.94) 30%, rgba(10,22,38,0.72) 62%, rgba(10,22,38,0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.eyebrow {
  color: var(--safety-orange);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 16px;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin: 0 0 12px;
}

.hero-text .role {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--steel-300);
  margin: 0 0 20px;
}

.hero-desc {
  color: var(--steel-300);
  max-width: 480px;
  margin: 0 0 32px;
  font-size: 1.02rem;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--safety-orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--safety-orange-dark);
  transform: translateY(-2px);
}

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

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 300px;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -10px;
  left: -10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-width: 170px;
}
.hero-badge strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy-900);
}
.hero-badge span {
  font-size: 0.8rem;
  color: var(--steel-700);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--safety-orange);
  animation: scrollCue 1.6s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}

/* ---------- Sections general ---------- */
.section {
  padding: 110px 0;
}
.section-alt { background: var(--steel-100); }
.section-dark {
  background: var(--navy-950);
  color: var(--steel-200);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--safety-orange);
  margin: 0 0 14px;
}
.section-tag-light { color: #ffb37c; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 20px;
  max-width: 720px;
}
.section-title.light { color: var(--white); }

.section-lede {
  color: var(--steel-700);
  max-width: 620px;
  margin: -8px 0 40px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-copy p { color: var(--steel-700); font-size: 1.05rem; }

.about-info {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}
.info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--steel-200);
}
.info-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-value { color: var(--steel-700); font-size: 0.95rem; }
.info-value a:hover { color: var(--safety-orange); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--navy-900);
  color: var(--white);
  padding: 26px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--safety-orange);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.86rem;
  color: var(--steel-300);
  line-height: 1.4;
}

/* ---------- Achievements ---------- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.achievement-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.achievement-icon {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--steel-300);
  margin-bottom: 12px;
}
.achievement-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--navy-900);
}
.achievement-card p {
  margin: 0;
  color: var(--steel-700);
  font-size: 0.96rem;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(10,22,38,0.85), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover figcaption { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,22,38,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  border: none;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--steel-300);
}
.timeline-item {
  position: relative;
  margin-bottom: 64px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -41px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--safety-orange);
  border: 4px solid var(--steel-100);
  box-shadow: 0 0 0 2px var(--safety-orange);
}
.section:not(.section-alt) .timeline-marker { border-color: var(--white); }

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.timeline-head h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 0;
  color: var(--navy-900);
}
.timeline-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-800);
  padding: 4px 14px;
  border-radius: 999px;
}
.timeline-company {
  font-weight: 600;
  color: var(--safety-orange-dark);
  margin: 0 0 12px;
}
.timeline-desc {
  color: var(--steel-700);
  margin: 0 0 18px;
  max-width: 700px;
}

.sub-heading {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy-900);
  margin: 28px 0 14px;
}

.bullet-list { display: grid; gap: 10px; margin-bottom: 8px; }
.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--steel-700);
  font-size: 0.95rem;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--safety-orange);
  border-radius: 2px;
}

.tag-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.tag-group-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--safety-orange);
}
.tag-group ul { display: grid; gap: 8px; }
.tag-group li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--steel-700);
}
.tag-group li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--safety-orange);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 28px;
}
.scope-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--steel-200);
}
.section:not(.section-alt) .scope-card { background: var(--steel-100); border-color: var(--steel-200); }
.scope-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.scope-card ul { display: grid; gap: 8px; }
.scope-card li {
  font-size: 0.88rem;
  color: var(--steel-700);
  padding-left: 14px;
  position: relative;
}
.scope-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-700);
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.skills-card {
  background: var(--steel-100);
  border-radius: var(--radius);
  padding: 32px;
}
.skills-card h3 {
  font-family: var(--font-head);
  margin: 0 0 24px;
  color: var(--navy-900);
}
.skill-row { margin-bottom: 18px; }
.skill-row span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy-800);
}
.skill-bar {
  height: 8px;
  background: var(--steel-300);
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--safety-orange), #ffb347);
  border-radius: 999px;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--white);
  border: 1px solid var(--steel-300);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- Qualifications ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.edu-card {
  background: var(--white);
  border-left: 4px solid var(--safety-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}
.edu-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--safety-orange-dark);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.edu-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--navy-900);
}
.edu-school { margin: 0 0 4px; font-weight: 600; color: var(--steel-700); }
.edu-detail { margin: 0; font-size: 0.88rem; color: var(--steel-500); }

/* ---------- Hobbies ---------- */
.hobby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hobby-chip {
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  transition: all 0.25s ease;
}
.hobby-chip:hover {
  background: var(--safety-orange);
  color: var(--white);
  border-color: var(--safety-orange);
  transform: translateY(-3px);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.contact-copy p { color: var(--steel-300); max-width: 460px; }
.contact-details {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  color: var(--steel-200);
  transition: color 0.2s ease;
}
.contact-link[href]:hover { color: var(--safety-orange); }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 1.05rem;
}

.references h3 {
  font-family: var(--font-head);
  color: var(--white);
  margin: 0 0 20px;
}
.reference-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.reference-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1rem;
}
.reference-card p {
  margin: 2px 0;
  font-size: 0.88rem;
  color: var(--steel-300);
}
.reference-card a:hover { color: var(--safety-orange); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--steel-500);
}
.back-to-top {
  font-size: 0.85rem;
  color: var(--steel-300);
  font-weight: 600;
}
.back-to-top:hover { color: var(--safety-orange); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { margin-top: 20px; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -20px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .achievements-grid { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--navy-950);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.35s ease;
  }
  .nav.open { right: 0; }
  .nav-toggle { display: flex; }

  .section { padding: 80px 0; }
  .info-item { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.span-2 { grid-column: span 1; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .photo-frame { width: 240px; height: 290px; }
  .hero-badge { min-width: unset; padding: 12px 16px; }
}
