/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* Body styling */
body {
  background-image: url("background.jpeg");
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

/* Header */
header {
  background: black;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

header h1 a {
  color: white;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

header p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Navigation */
nav ul {
  list-style: none;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ff9900;
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: rgb(239, 231, 217);
  font-size: larger;
}

section h1 {
  margin-bottom: 15px;
  font-size: 32px;
}

/* Introduction Section */
#intro {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  margin-top: 15px;
}

/* Gallery Section */
.photo-card:hover {
  transform: scale(1.05);
}

.gallery-section {
  padding: 40px 20px;
  text-align: center;
  max-width: 1900px; /* Added to keep the gallery from getting too wide */
  margin: auto;
  max-height: 1500px; /* Added to prevent the gallery from getting too tall */
}

.gallery-section h2 {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: bolder;
  font-style: normal;
  text-shadow: 18px 18px 24px rgba(0, 0, 0, 0.5);
}

/* The Grid Container - This handles the side-by-side layout */
.gallery-grid {
  display: grid;
  /* This creates as many columns as fit, at least 250px wide each */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.list {
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  list-style: none;
  padding-left: 0;
  margin: 15px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 900px;
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
}

.list h3 {
  margin-top: 0px;
  font-size: 15px;
}

h3{
    text-decoration: underline;
}


.list ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.list ul li {
  margin: 1px 0;
}

.list ul li a {
  color: #fff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.list ul li a:hover {
  color: #d82424;
}

/* Photo cards */
.photo-card {
  background: rgb(63, 41, 41);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease; /* Added ease for smoother movement */
}

.photo-card:hover {
  transform: scale(1.05);
}

.photo-card img {
  width: 100%;
  min-height: 400px; /* Slightly taller for a better look */
  object-fit: cover;
  display: block; /* Removes tiny bottom gap in some browsers */
}

/* Biography Section */
#me {
  background-image: url("profile.jpeg");
  background-size: cover;
  background-position: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

#me p {
  color: rgba(244, 237, 237, 0.975);
  font-weight: bolder;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;

  font-style: normal;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#me h2 {
  color: black;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: bolder;
  font-style: normal;
}

#logo {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* Social Section */
#socials {
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 20px;
  box-sizing: border-box;
  padding: 20px;
}

#socials ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#socials ul li {
  margin: 10px 0;
}

/* Contact section */
.contact-section {
  background: rgba(255, 255, 255, 0.8);
  padding: 40px 20px;
  border-radius: 10px;
  max-width: 1200px;
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group a {
  text-align: center;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Button */
.submit-button {
  background: #111;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-button:hover {
  background: #ff9900;
}

.submit-button:active {
  background: rgb(116, 77, 5);
}

/* Contact links */
section ul {
  margin-top: 10px;
}

section ul li {
  margin: 5px 0;
}

section ul li a {
  color: #111;
  text-decoration: none;
}

section ul li a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer-signature {
  font-style: italic;
  margin-top: 5px;
}
