:root {
  --primary: #1a3d5f;
  --secondary: #ffa500;
  --accent: #32b7a1;
  --light: #f8f9fa;
  --dark: #212529;
  --transition: all 0.3s ease;
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f08f1117;
  color: #333;
  line-height: 1.6;
  padding-top: 7%;
  overflow-x: hidden;
  width: 100%;
}

#hh {
  padding-top: 10vh;
  text-align: center;
}

/* Header */
header {
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.8rem;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  transition: var(--transition);
  border: 2px solid #05cbe6;
}

.header-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.2rem;
}

.header-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
nav {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-x: hidden;
  box-sizing: border-box;
  gap: 10px;
  justify-content: right;
  position: static;
  background-color: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav.mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  background-color: var(--secondary);
  padding: 40px 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

nav.mobile.active {
  display: flex;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

nav a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: #fff8f8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* Flower Layout */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  position: relative;
  width: 300px;
  height: 300px;
  max-width: 100%;
  padding: 0 10px;
}

.center-image {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid #000;
  z-index: 1;
}

.around-image {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #000;
  z-index: 2;
}

/* Positioning the 4 surrounding images */
.top {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bottom {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.left {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
}

.right {
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
}

/* Project Details Section */
.project-details {
  max-width: 100%;
  margin: 20px auto;
  padding: 20px;
  background-color: linear-gradient(135deg, #94ad97, #f9f9f9);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-details h2,
h3 {
  color: #4b4b4b;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.project-details p {
  margin-bottom: 15px;
  text-align: justify;
}

.project-details img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#caption {
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--light);
  padding: 4rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-description {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.footer-title {
  color: var(--light);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: left;
  padding-bottom: 0.8rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-contact-icon {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.back-to-top i {
  font-size: 25px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 992px) {
  .logo {
    width: 70px;
    height: 70px;
    margin-right: 15px;
  }

  .header-text h1 {
    font-size: 0.9rem;
    margin: 0 13px;
  }

  .header-text p {
    font-size: 0.7rem;
    margin: 0 13px;
  }

  nav a {
    font-size: 0.8rem;
    margin: 5px;
  }
}

@media screen and (max-width: 768px) {
  .main-header {
    padding: 0.8rem 1.1rem;
    margin: 0 0;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  nav {
    display: none;
  }

  nav a:hover {
    color: var(--primary);
  }

  nav.mobile.active {
    display: flex;
    margin-top: 1rem;
  }

  .container {
    width: 250px;
    height: 250px;
  }

  .center-image {
    width: 150px;
    height: 150px;
  }

  .around-image {
    width: 75px;
    height: 75px;
  }

  .footer-container {
    gap: 2rem;
  }
}

@media screen and (max-width: 480px) {
  nav {
    overflow-x: hidden;
  }

  nav a {
    font-size: 0.9em;
  }

  .header-text h1 {
    font-size: 1rem;
    padding-left: 4px;
  }

  .header-text p {
    font-size: 0.6rem;
    padding-left: 4px;
  }

  .logo {
    width: 70px;
    margin: 20px;
  }

  .project-details h2 {
    font-size: 1.2rem;
  }

  .project-details p {
    font-size: 0.8rem;
  }
}