/* =========================================
   COLOR PALETTE
========================================= */
:root {
  --blue: #22759B;           
  --soft-blue: #5E8C9F;      
  --powder-blue: #B7C9D3;    
  --soft-hover: #8295a1;     
  --light-lilac: #D5C8E2;    
  --sage-green: #A3B18A;     
  --light-sand: #A8D6EC;     
  --pale-rose: #D9B3AA;      
  --soft-purple: #C8A2C8;    
  --cream: #F9F6F2;          
  --dark-grey: #595959;      
  --medium-grey: #999;       
  --light-grey: #dddd;       
  --white: #fff;             
  --light-bg: #f8f8f8;       
  --link-hover: #c7d2fe;     
  --soft-slate: #9BAEBF;     
  --classic-white: #F8F8F8;  
  --dusky-pink: #D7B2B5;     
  --tab_2-color: #D9CBB6;    
  --tab_4-color: #C7D6C3;    
  --text-dark: #333;         /* Default text */
  --text-light: #f2f2f2;     /* Light text */
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

.container {
  max-width: 960px;
  margin: auto;
}

.container_home {
  max-width: 960px;
  margin: auto;
  padding: 1rem;
}
/* =========================================
   HEADER & NAVBAR
========================================= */
header {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: var(--white);
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: var(--soft-hover);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--soft-blue);
    margin-top: 1rem;
  }

  .nav-links li {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--soft-hover);
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* =========================================
   MAIN CONTENT
========================================= */
.tagline {
  font-size: 1.2rem;
  font-weight: 300;
}

main h2 {
  margin-top: 2rem;
  font-size: 2rem;
  color: var(--blue);
}

/* =========================================
   PROFILE SECTION
========================================= */
.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.profile-image {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-text {
  flex: 1;
  min-width: 250px;
}

/* =========================================
   CV SECTION
========================================= */
.cv-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* =========================================
   ACCORDION
========================================= */
.accordion {
  max-width: 600px;
  margin: auto;
}

details {
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: none;
}

summary {
  cursor: pointer;
  font-weight: bold;
  padding: 1rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.tab_1 summary { background-color: var(--powder-blue); }
.tab_2 summary { background-color: var(--tab_2-color); }
.tab_3 summary { background-color: var(--dusky-pink); }
.tab_4 summary { background-color: var(--tab_4-color); }
.tab_5 summary { background-color: var(--light-lilac); }

details[open] summary {
  border-bottom: 1px solid var(--soft-slate);
}

.content {
  background: var(--white);
  padding: 1rem;
  line-height: 1.5;
}

/* =========================================
   SKILLS LIST
========================================= */
.skills {
  list-style-type: circle;
  padding-left: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.skills li {
  background: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  display: list-item;
}

.skills li.wedgewood-blue { background: var(--powder-blue); }
.skills li.warm-sand     { background: var(--light-sand); }
.skills li.muted-sage    { background: var(--sage-green); }
.skills li.light-lilac   { background: var(--soft-purple); }
.skills li.pale-rose     { background: var(--pale-rose); }

/* =========================================
   PORTFOLIO GRID
========================================= */
/* Portfolio grid for accordion sections */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Project card styling */
.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Make thumbnails uniform in height */
.project-card img {

  height: 100%;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

/* Titles and text */
.project-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  color: #5E8C9F;
}

.project-card p {
  margin: 0 1rem 1rem;
  line-height: 1.4;
  color: #444;
}

/* Keep responsive behaviour */
@media screen and (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .project-card img {
    height: 180px; /* slightly smaller on mobile */
  }
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card h3 {
  margin: 1rem;
  font-size: 1.25rem;
  color: var(--soft-blue);
}

.project-card p {
  margin: 0 1rem 1rem;
}

.project-card ul {
  margin: 0 0 1em 3.5em;
  padding: 0;
  list-style-type: disc;
  color: var(--text-dark);
  line-height: 1.2;
  font-size: 1rem;
}

.project-card ul li {
  margin-bottom: 0.5em;
}

.project-card ul li::marker {
  color: var(--soft-blue);
  font-size: 1.1em;
}

/* =========================================
   TAGS
========================================= */
.tag {
  background: var(--link-hover);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 6px;
  display: inline-block;
}

.tag:hover {
  background: var(--soft-hover);
}

figcaption {
  font-size: 0.9rem;
  color: var(--white);
  background: var(--dark-grey);
  font-style: italic;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--medium-grey);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

/* =========================================
   TOP NAV
========================================= */
.topnav {
  background-color: var(--dusky-pink);
  overflow: hidden;
}

.topnav a {
  float: left;
  color: var(--text-light);
  text-align: center;
  padding: 5px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: var(--light-grey);
  color: var(--text-dark);
}

.topnav a.active {
  background-color: var(--blue);
  color: var(--white);
}

.topnav .icon {
  display: none;
}

/* Responsive Top Nav */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) { display: none; }
  .topnav a.icon { float: right; display: block; }

  .topnav.responsive { position: relative; }
  .topnav.responsive a.icon { position: absolute; right: 0; top: 0; }
  .topnav.responsive a { float: none; display: block; text-align: left; }
}


/* ===========================
   PROFESSIONAL EXPERIENCE TABLE
=========================== */
table.experience-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.95rem;
}

/* Header row */
table.experience-table thead th {
/*  background-color: #4e7b8a; muted teal blue */
  background-color: #22759B; /* blue */          

  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
}

/* Table body */
table.experience-table tbody td {
  border: 1px solid #ccc;
  padding: 14px 16px;
  vertical-align: top;
}

/* Alternating row colours */
table.experience-table tbody tr:nth-child(even) {
  background-color: #c7d6db; /* pale blue-grey */
}

table.experience-table tbody tr:nth-child(odd) {
  background-color: #ffffff; /* white rows */
}

/* Column width adjustments */
table.experience-table td:first-child {
  width: 15%;
  font-weight: 500;
  white-space: nowrap;
}

table.experience-table td:nth-child(2) {
  width: 30%;
  font-weight: 600;
}

table.experience-table td:nth-child(3) {
  width: 55%;
}

/* Responsive behaviour */
@media screen and (max-width: 768px) {
  table.experience-table,
  table.experience-table thead,
  table.experience-table tbody,
  table.experience-table th,
  table.experience-table td,
  table.experience-table tr {
    display: block;
    width: 100%;
  }

  table.experience-table thead {
    display: none; /* hide header on small screens */
  }

  table.experience-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
  }

  table.experience-table td {
    padding: 10px 12px;
    text-align: left;
  }

  table.experience-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #333;
  }
}

/* ============= INTERESTS SECTION ============= */
.interests-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.interests-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

/* Grid layout */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Individual cards */
.interest-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden; /* ensures image corners match card */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.interest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Thumbnails - now full width of tile */
.interest-card img {
  width: 100%;
  height: 180px; /* consistent height for all thumbnails */
  object-fit: cover; /* maintains aspect ratio, crops nicely */
  display: block;
}

/* Text below images */
.interest-card p {
  font-size: 1rem;
  color: #333;
  margin: 12px;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media screen and (max-width: 900px) {
  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-card img {
    height: 160px;
  }

  .interest-card p {
    font-size: 0.9rem;
  }
}


/* === LOGO STUFF === */

.logo-carousel {
  overflow: hidden;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

.logo-track {
  display: flex;
  gap: 50px;
  animation: scroll 20s linear infinite;
}

.logo-track a img {
  height: 50px; /* all logos same height */
  width: auto;
  display: block;
}

/* Scroll animation: move logos from right to left */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicate logos for continuous scrolling effect */
.logo-track a {
  flex-shrink: 0;
}
