/* Body */
body {
  margin: 0;
  padding: 0;
  font-family: "Comfortaa", sans-serif;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #406d43;
  flex-direction: row-reverse;
}


/* Menu */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: underline;
  font-size: 1.1rem;
}

nav ul li a:hover {
  background-color: #1b3d29;
}

/* Logo */
.avatar1 {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.avatar1 img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  padding: 10px;
}

h1{
  font-size: x-large;
  display: flex;
  justify-content: center;
 font-family: "Comfortaa", sans-serif;
 font-weight: 800;
}

p{
  font-size: large;
  display: flex;
  justify-content: center;
  font-family: "Comfortaa", sans-serif;
 font-weight: 500;
 margin-right: 30px;
}

.photograph-section {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
}

.section-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 10px;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 10px;
  
}

.text5{
  line-height: 1.6;
  margin-bottom: 10px;
  margin-left: -15px;
}

.text6 {
  line-height: 1.6;
  margin-bottom: 10px;
  margin-left: 65px;
}


.animate-box {
  width: 100%;
  max-width: 300px;     /* same width as other section images */
  height: 200px;        /* adjust to match visual balance */
  border: 2px solid black;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-right: 20px;   /* optional spacing from text */
}

.animate-box .box1,
.animate-box .box2 {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 0;
  left: 0;
}

.animate-box .box1 {
  background-color: rgb(86, 187, 49);
}

.animate-box .box2 {
  background-color: rgb(187, 49, 58);
}

/* Hover-triggered animations */
.animate-box:hover .box1 {
  animation: movebox 4s linear 1;
}

.animate-box:hover .box2 {
  animation: movebox2 4s linear 1;
}

/* Keyframes */
@keyframes movebox {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); }
  25%  { transform: translateX(200px) translateY(0) rotate(90deg); }
  50%  { transform: translateX(200px) translateY(200px) rotate(180deg); }
  75%  { transform: translateX(0) translateY(200px) rotate(270deg); }
  100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

@keyframes movebox2 {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); }
  25%  { transform: translateX(0) translateY(200px) rotate(90deg); }
  50%  { transform: translateX(200px) translateY(200px) rotate(180deg); }
  75%  { transform: translateX(200px) translateY(0) rotate(270deg); }
  100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

/* Make Romeo image shorter in Section 6 */
.section-image.romeo-img {
  height: 350px;       /* desired shorter height */
  width: auto;         /* maintain aspect ratio */
  object-fit: cover;
  border-radius: 20px;
  display: flex;
  margin-left: 45px;
}


/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #406d43;
  padding: 8px 12px;
  color: white;
  font-size: 1.2rem;
  text-align: center;
}

/* ===== RESPONSIVE / MOBILE ===== */
@media (max-width: 768px) {
  /* Body */
  body {
    font-size: 14px;
  }

  /* Navigation */
  nav {
    padding: 5px 10px;
  }

  nav ul li a {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .avatar1 img {
    width: 70px;
    height: 70px;
  }

  /* Headings */
  h1 {
    font-size: 1.5rem;
    margin: 10px auto;
    text-align: center;
  }

  /* Paragraphs */
  p,
  .about-text,
  .text5,
  .text6 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 10px auto;  /* center with auto margins */
    text-align: center; /* center text */
  }

  /* Photograph section */
  .photograph-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px auto;
    padding: 10px;
  }

  .section-image,
  .animate-box {
    max-width: 90%;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Animate boxes */
  .animate-box .box1,
  .animate-box .box2 {
    width: 70px;
    height: 70px;
  }

  /* Romeo image */
  .section-image.romeo-img {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Footer */
  footer {
    font-size: 1rem;
    padding: 6px 8px;
  }
}
