@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');


* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", serif;
  background-color: #ebe2df;
}

html {
  scroll-behavior: smooth;
}

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

/* TRANSITION */

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



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: #5a5050;
  text-decoration: none;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration: none;
}

/* Logo Styling */


.logo {
  font-family: 'Playfair Display', serif; /* Elegant font choice */
  font-size: 4rem;
  font-weight: bold;
  color: #a09090; /* Classy dark grey */
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: inline-block;
  animation: fadeIn 1.5s ease-in-out;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Logo Hover Animation */
.logo:hover {
  transform: scale(1.1); /* Slight zoom effect */
  text-shadow: 0 4px 6px rgba(98, 92, 92, 0.2);
}


/* Keyframe for Fade-in Effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a{
  font-family: 'Playfair Display', serif;
  font-size: 2rem;

}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #a09090;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #d2b0a6;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section { 
  height: 100vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

@media (max-width: 768px) {
  #profile {
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Ensures it's vertically centered as well */
    height: 100vh; /* Adjusts the height to ensure proper centering */
  }

  .section__pic-container {
    width: 200px; /* Ensure a smaller size for the image container */
    height: 200px; /* Match the width for a circular shape */
    margin: 0 auto 2rem; /* Center horizontally with margin */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Aligns the image horizontally in the container */
    align-items: center; /* Aligns the image vertically in the container */
  }

  .section__pic-container img {
    width: 250px; /* Adjust image size */
    height: 250px; /* Make sure it's a perfect circle */
    object-fit: cover; /* Ensures the image fits well within the circle */
    border-radius: 50%; /* Make it a circular image */
  }

}

@media (max-width: 1200px) {
  .section__text {
    text-align: center; /* Ensure text is centered */
    margin: 0 auto; /* Center horizontally */
    width: 100%; /* Adjust to fit smaller screens */
  }  
}


#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

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

.section__pic-container img{
  border-radius: 50%;
}

.section__text {
  align-self: center;
  text-align: center;
  text-align: justify;
  width: 600px;
}

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  margin-bottom: 20px;
}

.section__text__p2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-family: 'Playfair Display', serif; /* Elegant font choice */
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
}

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

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

.experience-card, .education-card, .award-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background-color: rgb(255, 253, 253);
  border-radius: 8px;
  width: 100%; /* Or set a fixed width like 300px */
  max-width: 1100px; /* Enforce consistent maximum width */
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card img, .education-card img, .award-card img {
  width: 60px;
  height: 60px;
}

#education, #experience, #publications, #skills, #blog, #certificates, #awards{
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally center */
  justify-content: center; /* Vertically center (if there's a set height) */
  text-align: center; /* Center text alignment */
  gap: 20px; /* Space between items */
  padding: 40px 20px;
}



.education-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px;
  max-width: 800px; /* Optional: Limit width for better readability */
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.experience-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px;
  max-width: 800px; /* Optional: Limit width for better readability */
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.educard-content {
  text-align: left;
}


.experience-card:hover, .education-card:hover, .award-card:hover {
  transform: scale(1.05); /* Slightly enlarge the card */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a deeper shadow */
}

.experience-card:hover .description,
.education-card:hover .description,
.award-card:hover .description {
  color: #333; /* Change description text color on hover */
}

@media screen and (max-width: 1400px) {
  #profile {
    height: 83vh;
    margin-bottom: 6rem;
  }
}

@media screen and (max-width: 1200px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
  }
  #profile,
  .section-container {
    display: block;
  }
  .arrow {
    display: none;
  }
  section,
  .section-container {
    height: fit-content;
  }
  section {
    margin: 0 5%;
  }
  .section__pic-container {
    width: 275px;
    height: 275px;
    margin: 0 auto 2rem;
  }
  .about-containers {
    margin-top: 0;
  }

}

@media screen and (max-width: 768px) {
  #profile {
    height: 83vh;
    margin-bottom: 0;
  }
  .logo{
    font-size: 2rem;
  }
  .about-containers,
  .contact-info-upper-container,
  .btn-container {
    flex-wrap: wrap;
  }
  .contact-info-container {
    margin: 0;
  }
  .contact-info-container p,
  .nav-links li a {
    font-size: 1rem;
  }
  
}

.card-content {
  flex: 1;
}


.card-meta {
  display: flex;
  justify-content: space-between; /* Align items to opposite ends */
  align-items: center;
  /* margin-bottom: 8px; */
 
}


.dates {
  margin: 0;
  text-align: right;
  font-style: italic;
}

#experience h2 {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 30px;
}

#education h2 {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 30px;
}

#skills h2 {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 30px;
}

#awards h2 {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 30px;
}

#certificates h2 {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 30px;
}



/* Container for skill cards */


.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 200px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-front {
  background-color: #f6fff8;
}

.flip-card-back {
  background-color: #f6fff8;
  color: white;
  transform: rotateY(180deg);
  overflow-y: scroll ;
  justify-content: flex-start;
}

.skill-card {
  width: 90%; /* Adjust width to fit nicely inside the card */
  max-height: 150px; /* Limit the height of the scrollable area */
  padding: 10px;
  box-sizing: border-box;
}

.skill-card p {
  margin: 5px 0;
  font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #fff;
  border-radius: 5px;
  margin: 5px 0;
}

.progress {
  height: 100%;
  background-color: #6b9080;
  border-radius: 5px;
}


@media (max-width: 480px) {
  #skills h2 {
    font-size: 28px;
  }

  .flip-card-inner {
    width: 100%;
    height: auto;
  }

  .flip-card h3 {
    font-size: 20px;
  }

  .flip-card img {
    width: 40px;
    height: 40px;
  }

  .skill-card p {
    font-size: 12px;
  }
}

#about{
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.about-containers {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 40px;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: #fff;
  border: 1px solid #f6fff8;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.text-container {
  text-align: center;
}


.title {
  color: #5a5050;
  font-size: 42px;
  margin-bottom: 20px;
}

.section__text__p1 {
  font-size: 20px;
  color: #888;
}

.details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.details-container img {
  width: 40px;
  height: 40px;
}

.card-content .description {
  font-size: 14px;
  color: #555;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  #desktop-nav .nav-links {
    display: none;
  }

  #hamburger-nav {
    display: flex;
  }

  #profile {
    flex-direction: column;
    align-items: center;
  }

  .section__pic-container img {
    width: 150px;
    height: 150px;
  }

  .btn-container {
    flex-direction: column;
    align-items: center;
  }


  .experience-card, .education-card, .award-card {
    flex-direction: column;
    align-items: center;
  }

  .card-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section__text {
    max-width: 100%;
  }

  .btn {
    width: 100%;
    margin: 5px 0;
  }
}



/* General Section Styling */
#skills h2 {
  font-size: 2rem; /* Smaller title font size for better responsiveness */
  margin-bottom: 20px;
  color: #333;
}

/* Skill Categories (Column Layout with Center Alignment) */
.skill-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px; /* Optional: Limit width for better readability */
  width: 100%;
  flex: 1;
  margin: 0 10px; /* Space between categories */
}

.skill-category h3 {
  font-size: 1.5rem; /* Adjusted size for smaller screens */
  margin-bottom: 15px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skills Container */
.skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Space between categories */
  padding: 20px 0;
}

/* Skills Grid (Row Layout for Skill Boxes within Each Category) */
.skills-grid {
    display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  gap: 15px; /* Space between skill boxes */
}

/* Skill Box Styling */
.skill-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px 10px;
  width: 150px; /* Fixed width for uniformity */
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Skill Logo Styling */
.skill-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Skill Name Styling */
.skill-name {
  font-size: 1rem;
  color: #333;
  font-weight: bold;
  margin: 0;
}

/* Responsive Design */

/* Medium Screens (Tablets and Smaller Laptops) */
@media (max-width: 768px) {
  .skills-container {
    flex-wrap: wrap; /* Allow wrapping for better layout on smaller screens */
  }

  .skill-category {
    flex: 1 1 calc(50% - 20px); /* Two categories per row */
    margin-bottom: 20px;
  }

  .skill-category h3 {
    font-size: 1.3rem; /* Slightly smaller category titles */
  }

  .skills-grid {
    justify-content: center; /* Center skill boxes within a category */
  }
}



/* Container for certificates */
.certificates-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Individual Certificate Item */
.certificate-item {
  width: 220px;
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Certificate Image Styling */
.certificate-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

/* Hover effect on certificate item */
.certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Hover effect on the image */
.certificate-item a:hover .certificate-image {
  opacity: 0.85; /* Slightly fade the image on hover */
}

/* Certificate Title */
.certificate-item p {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .certificates-container {
    gap: 20px;
  }

  .certificate-item {
    width: 180px;
    padding: 10px;
  }

  #certificates h2 {
    font-size: 20px;
  }
}

.blog-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.blog-preview {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
}

.blog-preview h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.blog-preview p {
  color: #555;
}

.blog-preview a {
  text-decoration: none;
}
/* styles.css */
.blog-preview img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.blog-preview button {
  background-color: #717171;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.blog-preview button:hover {
  background-color: #717171;
}

.subscribe-button {
  background-color: #717171; /* Medium's blue color */
  color: white;
  font-size: 16px;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subscribe-button:hover {
  background-color: #a39f9f; /* Darker blue on hover */
  transform: scale(1.05);
}

.subscribe-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #565353; /* Adding a border outline on focus */
}

/* Optional: Centering the button */
.subscribe-section {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Optional: Adding some spacing around the blog description */
.blog-description {
  text-align: center;
  margin-bottom: 30px;
}


/* Footer Styling */
footer {
  background-color: #e4cec7; /* Dark background */
  color: #fff;            /* White text */
  padding: 20px 0;        /* Vertical padding */
  text-align: center;     /* Center-align the text */
        /* Fix the footer at the bottom */
  left: 0;                /* Align to the left edge */
  bottom: 0;              /* Align to the bottom */
  width: 100%;            /* Full width */
  font-size: 14px;        /* Smaller font size */
}

footer p {
  margin: 0;              /* Remove any margin around the paragraph */
}
