/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9a8478;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* color pallet Section */

  .palette { display:flex; align-items:center; gap:.75rem; font:14px/1.2 system-ui, sans-serif; }
  .swatch {
    width:48px; height:48px; border-radius:50%;
    background:var(--c); border:2px solid #0001; box-shadow:0 2px 8px #0002;
    cursor:pointer; transition:transform .12s ease, box-shadow .12s ease;
  }
  .swatch:focus-visible { outline:2px solid #0006; outline-offset:3px; }
  .swatch:hover { transform:translateY(-1px); box-shadow:0 4px 14px #0003; }
  .picked { color:#444; white-space:nowrap; }
  .toast {
    position:relative; top:0; opacity:0; transform:translateY(-6px);
    background:#111; color:#fff; padding:.25rem .5rem; border-radius:.5rem;
    transition:opacity .18s ease, transform .18s ease;
  }
  .toast.show { opacity:1; transform:translateY(0); }

/* Place words side by side */

   .materials-title {
    font-weight: bold;
    margin-bottom: .25rem;
  }

  .dot-list {
    list-style: none;         /* remove default bullets */
    padding: 0;
    margin: 0;
    display: flex;            /* put items in a row */
    flex-wrap: wrap;          /* wrap to next line if needed */
    gap: .5rem;               /* space between items */
  }

  .dot-list li {
    position: relative;
  }

  /* Add dot separator after each item except the last */
  .dot-list li:not(:last-child)::after {
    content: "•";
    margin-left: .5rem;
    color: black; /* dot color */
  }

/* Hero Section */
.hero-section {
    background-color: #aec97f;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    margin-bottom: 20px;
    color: #333;
}

.hero-section p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Table of Contents Section */
.toc-section {
    background-color: #fff;
    padding: 60px 0;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.toc-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.toc-list li:hover {
    transform: translateX(10px);
}

/* Project Sections */
.project-section {
    padding: 100px 0;
}

.project-section:nth-child(odd) {
    background-color: #fff;
}

.project-section:nth-child(even) {
    background-color: #f5f5f5;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.project-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.project-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-images img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-description ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Updated CV Section */
.cv-section {
    background-color: #fff;
    padding: 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.cv-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.cv-photo {
    background-color: #000;
    color: #fff;
    padding: 0;
}

.cv-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.cv-bio {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cv-details {
    padding: 30px;
}

.cv-details h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.cv-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.cv-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.cv-skills-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cv-skills-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-skills-column li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cv-contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    position: relative;
}

.cv-contact-left, .cv-contact-right {
    font-size: 0.85rem;
    line-height: 1.5;
}

.cv-social-icons {
    position: absolute;
    right: 0;
    bottom: -50px;
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* Responsive adjustments for CV section */
@media (max-width: 992px) {
    .cv-content {
        grid-template-columns: 1fr;
    }
    
    .cv-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cv-skills-grid,
    .cv-contact-info {
        grid-template-columns: 1fr;
    }
}

/* Conclusion Section */
.conclusion-section {
    background-color: #fff;
    padding: 100px 0;
    text-align: center;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 50px;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 10px;
    text-align: left;
}

.contact-info h3 {
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .project-content,
    .cv-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-images {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .project-images img {
        height: 250px;
    }
}

/* Project Images /
.project-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.project-images img {
  width: 250px; 
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-images img:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  animation: fadeIn 0.4s ease-in-out;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}*/

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8);}
  to { opacity: 1; transform: scale(1);}
}



/* Make project images clickable */
.project-images img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-images img:hover {
    opacity: 0.8;
}