/* General */
@import url('https://fonts.googleapis.com/css2?family=Epunda+Slab:ital,wght@0,300..900;1,300..900&display=swap');

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

body {
  font-family: "Epunda Slab", serif;
  min-height: 100vh;
  background-color: #fff;
  background-image: radial-gradient(#f3f3f3 1px, transparent 1px);
  background-size: 20px 20px;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* Transition */
a,
.btn {
  transition: all 300ms ease;
}

/* Desktop Nav */
nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

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

a:hover {
  color: #A63A50;
  text-decoration: underline;
  text-decoration-color: #b1223f;
  font-weight: bold;
}

.logo{
  font-size: 2rem;
  color: #A63A50;
  font-weight: bold;
}

/* Sections */
section {
  padding: 2.5rem 0;
  margin: 0 10rem;
  border-bottom: 2px solid rgba(166, 58, 80, 0.1);
}

.section-container {
  display: flex;
}

/* Profile */
#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  margin: 0;
  padding: 4rem 2rem;
  background-image: url("./assets/light-in-clouds.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-content {
  background: rgba(255, 255, 255, 0.2); /* semi-transparent white */
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-wrap: wrap; 
  gap: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__pic-container img {
  border: 5px solid #A63A50;
  border-radius: 50%;
  object-fit: cover;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #272727;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

#socials-container .icon {
  height: 3rem;
  width: 3rem;
}

/* Icons */
.icon {
  cursor: pointer;
  height: 2rem;
}

/* Buttons */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  min-width: 8rem;
  border-radius: 2rem;
  border: 0.12rem solid #A63A50;
  letter-spacing: 0.5px;
}

.btn-color-1 {
  background: #A63A50;
  color: white;
  box-shadow: 0 4px 10px rgba(166, 58, 80, 0.25);
}

.btn-color-1:hover {
  background: white;
  color: #A63A50;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(166, 58, 80, 0.35);
  cursor: pointer;
}

.btn-color-2 {
  background: white;
  color: #A63A50;
}

.btn-color-2:hover {
  background: #A63A50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(166, 58, 80, 0.35);
  cursor: pointer;
}

/* About */
#about {
  text-align: center;
  background-color: #f7f7f7;
  padding: 4rem 0;
  margin: 0;
}


.about-tabs {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  display: inline-block;
  text-align: left;
  margin: 2rem auto;
  padding: 2rem 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  border-bottom: 2px solid #A63A50;
  color: #A63A50;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.tab-content#bio.active {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.descr-img {
  display: flex;
  height: 300px;
  width: 300px;
  margin: auto 0;
}

.descr-text {
    margin-left: -3.5rem;
    max-width: 700px;
    width: 100%;
}

.descr-text h1 {
  font-size: 2rem;
  color: #A63A50;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: underline;
}

.descr-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
  margin-bottom: 1rem;
  max-width: 700px;
}


/* About (Skills) */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.skills-category {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.skills-category h3 {
  color: #A63A50;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

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

.skills-category li {
  margin: 0.4rem 0;
  color: rgb(85, 85, 85);
  font-size: 0.95rem;
  text-align: center;
  font-weight: bold;
}

/* About (Education) */
.edu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.edu-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: white;
  padding: 0.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.edu-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.edu-item h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #A63A50;
}

.edu-item p {
  margin: 0.2rem 0;
  color: rgb(85, 85, 85);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Experience */
#experience h2 {
  padding-bottom: 2rem;
}

.exp-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
}

.exp-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exp-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: white;
  padding: 0.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.exp-header-text {
  display: flex;
  flex-direction: column;
}

.exp-header-text h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #A63A50;
}

.exp-header-text h4 {
  margin: 0.2rem 0;
  font-size: 1rem;
  font-weight: normal;
  color: rgb(85, 85, 85);
}

.exp-header-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgb(120, 120, 120);
}

.exp-text {
  margin-left: 1.5rem;
}

/* Projects */
#projects {
  background-color: #f7f7f7; /* light grey */
  padding: 4rem 0;
  margin: 0; /* removes side white bars */
  text-align: center;
}
.projects-wrapper {
  display: flex;
  flex-direction: column; /* stack carousel + pagination */
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 0 auto;
}

.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  flex: 1;
}

.carousel-wrapper {
  display: flex;
}

.carousel-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-text {
  padding: 1rem;
  flex-grow: 1;
}

.card-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card-text p {
  font-size: 0.9rem;
  color: #555;
}

.view-more {
  border: none;
  background: #A63A50;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 1rem;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s ease;
}

.view-more:hover {
  background: #872c3d;
}

.swiper-button-next,
.swiper-button-prev {
  color: #A63A50;
  background: rgba(255, 255, 255, 0.9);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.swiper-pagination-bullet {
  background: #A63A50;
}

/* Position nav buttons left/right of carousel */
.prev-button,
.next-button {
  position: absolute;
  top: 50%;                 
  transform: translateY(-85%); 
  background: rgba(166, 58, 80, 0.9);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.prev-button { left: -3.5rem; }
.next-button { right: -3.5rem; }

.prev-button:hover,
.next-button:hover {
  background: #A63A50;
}

/* Push pagination lower */
.swiper-pagination.pagination {
  margin-top: 2rem;
  position: relative;
}

/* Make the buttons align with the middle of the carousel container */
.carousel-container {
  position: relative; /* ensure buttons position against this */
}


/* Contact */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

#contact a:hover {
  font-weight: unset;   
}

.contact-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: #A63A50 0.1rem solid;
  background: #f9f9f9;
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container { 
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
  height: 2rem;
}

.email-icon {
  height: 2.5rem;
}

/* Footer */

footer {
    height: 26vh;
    margin: 0 1rem;
    background-color:rgb(224, 216, 216)
}

footer p{
    text-align: center;
}

/* Project Page */
.project-page {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.project-page h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.project-page h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #666;
}

.project-page img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.project-page p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #444;
  text-align: center;
}

.view-more,
.back-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #A63A50; 
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}

.view-more:hover,
.back-button:hover {
  background-color: #872c3d;
}


#projects-page {
  padding: 4rem 2rem;
  background-color: #f7f7f7;
  text-align: center; 
}

.projects-grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
  text-align: center;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
  text-align: center; 
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card .card-text {
  padding: 1rem;
  text-align: center;
}

.project-card h3 {
  margin: 0.5rem 0;
}

.project-card .view-more {
  border: none;
  background: #A63A50;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin: 1rem auto;
  cursor: pointer;
  display: block;
  transition: background 0.2s ease;
  text-align: center;
}

.project-card .view-more:hover {
  background: #872c3d;
}

/* Individual Project Page */
.project-header {
  text-align: center;           /* title centered at top */
  margin-bottom: 1rem;
}

/* Main project container */
.project-overview {
  margin: auto;            
  padding: 2rem;
  max-width: 1200px;            /* narrowed for readability */
  background: #f7f7f7;
  border-radius: 0.75rem;
  border: 2px solid #A63A50;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: #333;
}

/* Headings (header remains centered) */
.project-overview h1 {
  font-size: 2.8rem;
  color: #872c3d;
  margin: 0 0 0.25rem;
  line-height: 1.05;
}

.project-overview h4 {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 0.75rem;
}

/* horizontal rule under header */
.project-overview hr {
  margin: 1.25rem 0;
  border: none;
  border-top: 3px solid #A63A50;
  opacity: 0.9;
}

/* Layout: left text, right images (desktop) */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 360px; /* text (fluid) | images (fixed-ish) */
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

/* Left column text */
.project-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}


.project-description h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #222;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-align: center;
}

/* Lists */
.project-description ul {
  margin: 0 0 1rem 1.15rem;
  padding: 0;
  list-style: disc;
  color: #333;
  font-size: 1rem;
}
.project-description ul .nested {
  list-style-type: circle;
}

.project-description p {
    margin-bottom: 1rem;
}

.short-description {
  margin-top: 1rem;
}
/* Right column images (stacked vertically on desktop) */
.proj-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.proj-images img {
  max-width: 100%;
  max-height: 35vh; /* caps image at 75% of viewport height */
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain; /* preserves full image without cropping */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto; /* optional: centers the image */
}

.long-img {
  max-width: 100%;
  max-height: 1vh; /* smaller cap for long/tall images */
}

/* small caption style (if you add figcaption or .proj-images p) */
.proj-images figcaption,
.proj-images p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.35rem;
  text-align: center;
}

/* Side-by-side row for last two images */
.side-by-side {
  display: flex;
  justify-content: center;
  gap: 1rem; /* space between images */
  width: 100%;
}

.side-by-side img {
  max-width: 48%;  /* keeps both images fitting neatly */
  height: auto;
}


/* Buttons */ .link-buttons-container { display: flex; justify-content: center; margin-top: 1.5rem; gap: 1rem; flex-wrap: wrap; } 
.link-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    padding: 0.6rem 1.2rem; 
    background-color: #A63A50; 
    color: #fff; 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 500; 
    border-radius: 0.5rem; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
} 
.link-btn img { 
    width: 22px; 
    height: 22px; 
    filter: invert(1); 
} 
.link-btn:hover { 
    background-color: #822c3e; 
    color: #fff; 
    text-decoration: none; 
}

/* Project viewer overlay (unchanged, preserved) */
.project-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 4rem 1rem;
  z-index: 999;
}
.project-content {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 1000px;
  width: 100%;
  position: relative;
  animation: fadeIn 0.3s ease;
}
.project-viewer.active { display: flex; }
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: #A63A50;
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  width: 2.3rem;
  height: 2.3rem;
  cursor: pointer;
}
.close-btn:hover { background: #872c3d; }
