/* Reset and general layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('images/lord.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Cinzel Decorative', serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Fade-in animation */
.fade-in {
  animation: fadeIn 1.2s ease-in-out;
}

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

/* Container layout */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Header text */
.header {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
}

.header h1 {
  font-size: 3rem;
  color: #cfcec4;
}

.header h2 {
  font-size: 1.5rem;
  color: #cfcec4;
  margin-top: 0rem;
}

/* Main content layout */
.main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1500px;
  margin-top: -2rem;
  gap: 0rem;
  position: relative;
}

/* Left side: Castle + links */
.left-side {
  flex: 1;
  max-width: 40%;
  text-align: center;
  position: relative;
  margin-left: -200px; /* moved much more to the left */
  z-index: 1;
}

.castle-wrapper {
  position: relative;
}

.castle {
  width: 350px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* Links on top of castle */
.castle-links {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translate(-75%, -50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.castle-links a {
  text-decoration: none;
  color: #f4c2c2;
  background-color: rgba(0,0,0,0.6);
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.castle-links a:hover {
  background-color: #f4c2c2; /* baby/light ash pink */
  color: #000;
}

/* Right side: About Me image */
.right-side {
  flex: 1;
  max-width: 75%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
  margin-top: -1rem;
}

.aboutme-bg {
  width: 125%;
  max-width: none;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-left: -160px;
  border: 5px solid black; /* ✨ black border added */
}

/* Responsive for larger laptops / smaller desktops */
@media (max-width: 1600px) {
  .castle {
    width: 300px;
  }

  .aboutme-bg {
    margin-left: -80px;
  }
}

/* Responsive for medium screens */
@media (max-width: 1200px) {
  .castle {
    width: 250px;
  }

  .aboutme-bg {
    margin-left: -50px;
  }
}

/* Responsive for tablets / small screens */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .castle {
    width: 220px;
  }

  .castle-links {
    top: 48%;            /* re-center over smaller castle */
    right: 50%;          /* center horizontally */
    transform: translate(50%, -50%);
    align-items: center;
  }

  .aboutme-bg {
    width: 320px;        /* make it larger on tablets */
    margin-left: 0;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .header h1 {
    font-size: 2rem;
  }

  .header h2 {
    font-size: 1.2rem;
  }

  .castle {
    width: 180px;
  }

  .castle-links {
    top: 50%;            /* perfectly centered for small screens */
    right: 50%;
    transform: translate(50%, -50%);
  }

  .castle-links a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .aboutme-bg {
    width: 260px;        /* bigger About Me on mobile */
    border-width: 4px;   /* slightly thinner border for balance */
  }
}

