
/* =========================
   1. COLOURS & GLOBAL STYLES
========================= */

:root {
  --cream: #F7F2EA;
  --burgundy: #793E4B;
  --dark: #35272A;
  --muted: #655B57;
  --card: #E8DED3;
  --border: #D9C9C2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

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

/* =========================
   2. HEADER & NAVIGATION
========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--burgundy);
}

nav {
  display: flex;
  gap: 30px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

nav a:hover,
.contact-links a:hover {
  color: var(--burgundy);
}

/* =========================
   3. HERO SECTION
========================= */

.hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: center;
  gap: 65px;

  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 5% 85px;
}

.profile-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--burgundy);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: 100%;
  max-width: 1050px;
  min-width: 0;
}

.eyebrow {
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.25;
  max-width: 950px;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.primary-link {
  background-color: var(--burgundy);
  color: white;
}

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

.secondary-link {
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
}

.secondary-link:hover {
  background-color: var(--burgundy);
  color: white;
}

/* =========================
   4. SHARED SECTION STYLES
========================= */

.section {
  width: 100%;
  padding: 90px 8%;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 15px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

/* =========================
   5. ABOUT SECTION
========================= */

.about {
  background-color: #F0E9DF;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 55px;
  max-width: 1250px;
  margin: 0 auto;
}

.about-text {
  min-width: 0;
}

.about-text .section-heading {
  margin-bottom: 25px;
}

.about-text .section-heading h2 {
  max-width: 600px;
}

.about-content p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 20px;
  min-height: 175px;
  transition: transform 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card-number {
  display: block;
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: normal;
  margin-bottom: 8px;
}

.about-card p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* =========================
   6. PROJECT CARDS
========================= */

.projects { background-color: #F0E9DF; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background-color: var(--card);
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-number {
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 15px;
}

.project-card > p:not(.project-number) {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.project-card a {
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
}

.project-card a:hover {
  text-decoration: underline;
}


/* =========================
   7. SKILLS & TOOLS
========================= */
.skills {
  background-color: var(--cream);
  padding-top: 60px;
  padding-bottom: 60px;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.skills-column h3 {
  font-size: 1.35rem;
  font-weight: normal;
  margin-bottom: 22px;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.93rem;
}

.skills-note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  margin-top: 25px;
  max-width: 650px;
}

/* Responsive skills layout */

@media (max-width: 700px) {
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}


/* =========================
   EDUCATION & CERTIFICATIONS
========================= */

.education {
  background-color: var(--cream);
  padding-top: 60px;
  padding-bottom: 60px;
}

.education-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.education-column h3 {
  font-size: 1.35rem;
  font-weight: normal;
  margin-bottom: 22px;
}

.education-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.education-item h4 {
  font-size: 1.05rem;
  font-weight: normal;
  margin-bottom: 4px;
}

.education-item h4 a {
  color: var(--dark);
  transition: color 0.2s ease;
}

.education-item h4 a:hover {
  color: var(--burgundy);
}

.education-program {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.education-item span {
  display: block;
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  margin-top: 7px;
}

.education-item > p:last-child:not(.education-program) {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  margin-top: 5px;
}

@media (max-width: 700px) {
  .education-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* =========================
   8. CONTACT SECTION
========================= */

.contact {
  background-color: #F0E9DF;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: normal;
  margin-bottom: 15px;
}

.contact > p:last-of-type {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.contact-links {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  color: var(--burgundy);
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* =========================
   8. FOOTER
========================= */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 8%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
}

/* =========================
   9. MOBILE RESPONSIVENESS
========================= */

@media (max-width: 850px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 20px 6%;
  }

  nav {
    gap: 14px;
    font-size: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 7% 70px;
  }

  .profile-photo {
    width: 170px;
    height: 170px;
  }

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

  .section {
    padding: 70px 7%;
  }

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

  .about-card {
    padding: 18px 15px;
  }

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

  .project-card {
    padding: 27px;
  }

  footer {
    flex-direction: column;
    padding: 25px 7%;
  }
}

@media (max-width: 420px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}
