/* =========================
   Root Variables
========================= */

:root{
  --bg-color: #f6e6f7;
  --primary-color: #70406f;
  --text-color: #2c3e50;
  --border-color: #3d1c3c;
  --navbar-bg: #ffffff;
}

/* =========================
   Global Styles
========================= */

*{
background-color: var(--bg-color);
}

html {
  scroll-behavior: smooth;
}


/* =========================
   Navigation Bar
========================= */

/*managing the navigation part*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: center;
  padding: 0;
  margin: 0;
  height:30px;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

/*change the color when the link selected*/
.navbar a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/*change the color when the mouse hover over the link*/
.navbar a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}


/* =========================
   Layout
========================= */

section{
  padding: 15px 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

body {
  margin-top: 60px;
}


/* =========================
   Header
========================= */

header {
  display:flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: -40px;
}

.info{
  display: block;
  text-align: center;
}

header>img{
  width: auto;
  height: 120px;
  display: block;
}

.tagline {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 20px;
  font-size: 18px;
}


/* =========================
   Projects
========================= */

#project img {
  width: 300px;
  height: auto;
  margin: 10px;
  border-radius: 10px;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* project details */
.horseManagement,
.folderManagement {
  display: none;
}

h4 {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.arrow {
  font-size: 14px;
  transition: transform 0.03s ease;
}


/* =========================
   Contact Section
========================= */

#contact h2 {
  text-align: center;
}

.contact-container {
  display: flex;
  gap: 40px;
  justify-content: center;
}

form {
  display: flex;
  flex-direction: column;
  width: 300px;
  padding:5px;
  border: 2px solid white;
  border-radius: 8px;
}


input, textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border-radius: 8px;
}
.hidden{
    display: none;
    background-color: #e6f9ec;
    color: #1a7f37;
    border: 1px solid #1a7f37;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
 #confirmationMessage{
     display: none;
     color: green;
     text-align: center;
     margin-top: 15px;
     font-weight: 600;
 }


/* =========================
   Dark Mode Override
========================= */

body.dark-mode,
body.dark-mode * {
  background-color: #3e2b40 !important;
  color: #f5e9f7 !important;
}

body.dark-mode .navbar {
  background-color: #2a1a2c !important;
}

body.dark-mode .navbar a {
  color: #f5e9f7 !important;
}

body.dark-mode .navbar a.active,
body.dark-mode .navbar a:hover {
  color: #7c5880 !important;
  border-bottom-color: #7c5880 !important;
}

body.dark-mode section {
  border-bottom: 1px solid #7c5880 !important;
}

body.dark-mode form {
  border: 2px solid #7c5880 !important;
}

body.dark-mode input,
body.dark-mode textarea {
  border: 1px solid #555 !important;
  background-color: #2a1a2c !important;
  color: #fff !important;
}

body.dark-mode button {
  background-color: #f6e6f7 !important;
  color: #7c5880 !important;
}


/* =========================
   Theme Toggle Button
========================= */

#theme-toggle {
  position: fixed;
  top: 50px;
  right: 20px;
  z-index: 2000;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

body.dark-mode #theme-toggle {
  background-color: #f6e6f7;
  color: #f5d7f7;
}


/* =========================
   Responsive Adjustments
   (Non-destructive)
========================= */

/* Tablet */
@media (max-width: 992px) {

  #project img {
    width: 250px;
  }

  header img {
    height: 100px;
  }

}

/* Mobile */
@media (max-width: 768px) {

  body {
    margin-top: 60px;
  }

  .navbar ul {
    gap: 15px;
  }

  #project img {
    width: 100%;
    max-width: 300px;
  }

  form {
    width: 100%;
    max-width: 300px;
  }

}

/* Small Mobile */
@media (max-width: 480px) {

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .tagline {
    font-size: 14px;
  }


}