
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #4A4A4A;
  background: #F8F4F1;
  line-height: 1.6;
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

header {
  background: rgba(176, 169, 159, 0.5); /* Muted Taupe with transparency */
  color: #9b9267;
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: bold;
}

header p {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

header nav a {
  color: #bd9782;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
}

header nav a:hover {
  color: #b25828;
}

/* Section Styles */
.section {
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  background: rgba(176, 169, 159, 0.1); /* Muted Taupe with transparency */
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 90%;
  backdrop-filter: blur(10px); /* Glassmorphism effect */
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #a09652;
}

/* Flashcard Styles */
.flashcards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
}

.flashcard {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  padding: 2rem;
  width: 300px;
  height: 200px;
  perspective: 1000px;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flashcard:hover .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
}

.flashcard-front {
  background: #B0A99F; /* Muted Taupe for front */
  color: #fff;
}

.flashcard-back {
  background: #E3B7A0; /* Dusty Rose for back */
  color: #fff;
  transform: rotateY(180deg);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  background: rgba(255, 255, 255, 0.2); /* Transparent card */
  border: none;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.portfolio-item h3 {
  margin: 0 0 0.5rem;
  color: #E0C3FC;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
  color: #7f55a6;
}

.portfolio-item p {
  color: #3a3530;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #B0A99F; /* Muted Taupe button */
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #8A7F7D; 
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

form label {
  margin: 0.5rem 0 0.2rem;
}

form input, form textarea {
  background: #F8F4F1; /* Light Cream background for form fields */
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
}

form button {
  align-self: flex-end;
}
.mono-text {
  font-family: 'Courier New', Courier, monospace;
}
.email-link {
  color: #5A3D31; /* Dark Brown */
  text-decoration: none;
  font-weight: bold;
}

.email-link:hover {
  color: #D4A373; /* Muted Gold */
  text-decoration: underline;
}