/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Playfair+Display:wght@400;700&family=Lora:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: 'Lora', serif; /* Use Lora for body text */
  background-color: rgb(28, 28, 31);
  text-align: center;
  color: rgb(50, 50, 50);
  background-image: linear-gradient(rgba(28, 28, 31, 0.3), rgba(28, 28, 31, 0.3)), url('img/rappahannock_river.jpeg'); /* Reduce opacity of the overlay */
  background-size: cover; /* Ensure the image covers the entire viewport */
  background-repeat: no-repeat;
  height: 100vh;
  padding-top: 5vh;
}

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

/* Basic card styles */
.card {
  border-radius: 35px; /* Rounded corners */
  text-align: left;
  background: linear-gradient(145deg, #ffffff, rgb(233, 231, 228)); /* Subtle gradient background */
  padding: 5%; /* Increase padding for better spacing */
  display: flex;
  flex-direction: row;
  width: 60vw; /* Card takes up 60% of the screen width */
  margin: 0 auto; /* Center the card horizontally */
  height: auto;
  border: 2px solid rgba(0, 0, 0, 0.1); /* Light border */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1); /* Polished shadow */
}

/* Responsive: expand card to full width on small screens */
@media (max-width: 768px) {
  .card {
    width: 98vw;
    height: auto;
    padding: 4%;
    justify-content: center; /* Center items horizontally */
  }
}

.card h1, h2, h3, p {
  margin: 0;
}

.card h1 {
  font-family: 'Playfair Display', serif; /* Elegant font for h1 */
}

.card h3 {
  font-size: calc(1.5vw + 1.5vh);
}

.card p, .card ul li {
  font-size: calc(1.2vw + 1.2vh); /* Responsive font size */
}

/* Intro card styles */
.card#home .intro-text {
  display: flex; /* Enable flexbox for intro-text */
  flex-direction: column; /* Arrange children vertically */
  flex-basis: 25%; /* Each takes up 25% of the intro-card height */
  flex-grow: 1;
  flex-shrink: 1;
  max-width: 50%;
  max-height: 50%;
}

.card#home img {
  animation: fadeIn 2s ease-out; /* Fade-in animation */
  aspect-ratio: 1; /* Maintain a square aspect ratio */
  margin-right: 5%;
  border-radius: 20px; /* Rounded image */
  object-fit: cover; /* Ensure the image fills the area */
  max-width: 50%; /* Prevent the image from exceeding 50% of the container's width */
  max-height: 100%; /* Ensure it doesn't exceed the container's height */
  border: 3px solid rgba(255, 255, 255, 0.8); /* Light border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
}

img:hover {
  transform: scale(1.03); /* Slightly enlarge the image on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

/* Typography */
.card#home h1 {
  font-size: calc(3.5vw + 3.5vh); /* Responsive font size */
  margin: 0;
  margin-bottom: 0.5em;
  line-height: 1.2; /* Better readability */
  font-weight: bold; /* Bold text */
  text-shadow: none; /* No shadow for simplicity */
  animation: fadeIn 2s ease-out; /* Fade-in animation */
}

.card#home h2 {
  font-size: calc(2vw + 2vh); /* Responsive font size */
  font-weight: normal;
  margin: 0;
  line-height: 1.2; /* Better readability */
  animation: fadeIn 1s ease-out;
  animation-delay: 2s; /* Delayed fade-in after h1 */
  animation-fill-mode: both; /* Keep final state after animation */
}

/* About me styles */
.card#about-me {
  flex-direction: column;
}

.card#about-me h3 {
  margin-bottom: 0.5em; /* Space below h3 */
}

/* Skills styles */
.card#skills {
  flex-direction: column;
}

.card#skills h3 {
  font-size: calc(2vw + 2vh);
  text-align: center;
  margin-bottom: 0.5em;
}

.card#skills ul {
  list-style: none; /* Remove bullet points */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.card#skills ul li {
  width: 15%; /* Set a fixed width for icons */
  height: 15%; /* Set a fixed height for icons */
  margin: 0.5em; /* Space around icons */
}

.card#skills ul li img {
  border-radius: 20px;
}

.card#initiatives, .card#projects {
  flex-direction: column;
}

/* Navbar styles */
nav {
  padding: 0.5em;
  margin-top: 2em; /* Spacing between nav and intro-card */
  margin: 0 auto; /* Center the nav horizontally */
}

nav ul li {
  display: inline; /* Inline list items */
  margin: 0 0.5em;
}

nav ul li a {
  color: rgb(50, 50, 50); /* Text color */
  text-decoration: none; /* Remove underline */
  font-weight: normal; /* Normal font weight */
  font-size: calc(1.8vw + 1.8vh); /* Responsive font size */
  background: linear-gradient(145deg, #ffffff, rgb(233, 231, 228)); /* Subtle gradient */
  padding: 0.1em 0.1em;
  border-radius: 10px; /* Rounded corners */
  border: 2px solid rgba(0, 0, 0, 0.1); /* Light border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: box-shadow 0.3s ease, padding 0.3s ease; /* Smooth hover transition */
}

nav ul li a:hover {
  background: linear-gradient(145deg, #ffffff, rgb(203, 199, 192)); /* Slightly darker gradient */
  color: rgb(13, 13, 13); /* Darker text color */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
  padding: 0.15em 0.15em; /* Slightly increased padding */
}

/* Hidden Class */
.hidden {
  display: none; /* Hide elements with this class */
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center the icons */
}