/* -------- Global Reset -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

/* -------- Global Variables -------- */
:root {
  --white: #fff;
  --text-color: #000000;
  --primary-color: #000;
  --secondary-color: #272B2F;
  --ui-bg: #fff;
}

/* -------- Page Layout Setup -------- */
html, body {
  height: 100%;
}

body {
  background-color: var(--ui-bg);
  color: var(--text-color);
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* -------- Navigation Bar -------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--primary-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navigation-bar {
  max-width: 1300px;
  height: 100%;
  margin: auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation-bar a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  opacity: 0.75;
}

.navigation-bar a:hover,
.navigation-bar a.active-nav {
  opacity: 1;
}

.title-page-area{
  font-size: 30px;
  font-weight: 600;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  cursor: default;
  user-select: none;
}

.page-logo {
  width: 46x;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}

/* -------- Navigation Bar Links -------- */

.nav-links {
  display: flex;
  flex-wrap: wrap;
  margin-left: 90px;
}

.nav-links li {
  list-style: none;
  margin: 0 8px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-links li:last-child {
  border-right: none;
}

.nav-links-menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
}

#titleLink{
  opacity: 1;
}

/* -------- Appearance Area Style -------- */

.appearance-area{
  display: flex;
  align-items: center;
}

.dark-mode-btn,
.color-theme .color-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 6px;
  font-size: 20px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  margin-left: 10px;
  opacity: 0.8;
}

.color-theme .color-icon {
  width: 70px;
}

.color-theme:hover,
.dark-mode-btn:hover {
  opacity: 1;
}

.color-menu {
  position: absolute;
  bottom: -110px;
  right: 10px;
  background: var(--white);
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.color-theme.open .color-menu {
  opacity: 1;
  pointer-events: auto;
}

.color-theme.open .arrow {
  transform: rotate(-180deg);
}

.color-menu h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: black;
}

.color-switchers {
  display: flex;
  gap: 10px;
}

.color-switchers .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  border-color: var(--primary-color)
}

.color-switchers .btn.black { background: #000; }
.color-switchers .btn.red { background: #800000; }
.color-switchers .btn.blue { background: #003153; }
.color-switchers .btn.green { background: #355E3B; }
.color-switchers .btn.indigo { background: #4B0082; }

.color-switchers .btn.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}


/* -------- Page Content Style -------- */

.content {
  flex: 1;
  padding-top: 50px;
}

/* -------- Page Links Style -------- */

.content a {
  font-size: 20px;
  padding: 12px 20px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  align-items: center;
  gap: 8px;
}

.content a:hover {
  background: var(--secondary-color);
}

.page-content a.explore-link {
  font-weight: 570;
  font-size: 16px;
  width: 260px;
}

.page-content a.icon-link {
  font-size: 16px;
  justify-content: center;
}

.explore-list {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 5px;
  width: 100%;
}

.about-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.about-area-links {
  font-weight: 570;
  font-size: 16px;
  width: 260px;
}

.about-area-links:hover {
  background: var(--secondary-color);
}


/* -------- Main Section Style -------- */
.page-content {
  margin-top: 70px;
  padding: 0 60px;
  background: var(--ui-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  margin-bottom: 40px;
}

.page-content.active-section {
  display: flex;
}

.page-content h3 {
  font-size: 35px;
}

.color-text {
  color: var(--primary-color);
}

.page-content p {
  font-size: 16px;
  max-width: 700px;
  margin: 20px 0 30px;
}

/* -------- Explore Area Style -------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
}


.box {
  background: var(--white);
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  color: var(--text-color);
  justify-content: center;
  text-align: center;
}

.box h4 {
  font-size: 25px;
  margin-bottom: 20px;
  text-align: center;
}

.box ul {
  list-style-type: none;
}

.box ul li {
  margin-bottom: 10px;
}

/* -------- About Area Style -------- */
#about {
  text-align: center;
}

.about-heading {
  margin: 30px 0 30px;
}

/* -------- Footer -------- */
.footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* -------- Dark Mode Theme -------- */

.color-text.darkMode {
  /*-- yellow --*/
  color: #FFD700; 
}

.box.darkMode {
  /*-- soft black --*/
  background: #121415;
}

/* -------- Responsive Media -------- */
@media (max-width: 1100px) {
  .page-content {
    padding: 0 30px;
  }

  .page-content p {
    width: 90%;
  }

  .nav-links {
    margin-left: 0px;
  }

}

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

  .navigation-bar {
    padding : 0 10px;
  }
  
  .nav-links-menu-toggle {
    display: block;
    margin-left: 80px;
  }
  
  .nav-links {
    position: absolute;
    top: calc(70px + 10px); /* navigation-bar height + gap */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 8px;
    display: none; /* hidden by default */
    width: auto;
    text-align: center;
    margin-left: 0px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    border: none;
    margin: 10px 0;
  }

  .appearance-area {
    display: flex; 
    align-items: center;
    gap: 3px;
  }

  .color-theme .color-icon {
    width: 60px;
  }

  .projects-grid{
    grid-template-columns: 1fr; 
    justify-items: center; 
    justify-content: center;
  }
  
   .box {
    width: 90%;
  }
  
}
