/* ========================
   ROOT VARIABLES
======================== */
:root {
  --primary: #50a0df;
  --accent: #bcdbf3;
  --highlight: #0d1d3f;
  --background: #f7fafc;
  --text: #1f4593;
  --shadow: rgba(0, 0, 0, 0.1);

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --font-size-base: 16px;
  --spacing: 1rem;
}

/* ========================
   GLOBAL STYLES
======================== */
body {
  margin: 0;
  padding: 0 var(--spacing);
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

/* ========================
   CONTAINER
======================== */
.container {
  width: 100%;
  max-width: min(1000px, 90vw);
  margin: 0 auto;
  padding: 0 var(--spacing);
  box-sizing: border-box;
  background: var(--background);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* ========================
   HEADER
======================== */
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  background: linear-gradient(to right, var(--primary), var(--highlight));
  color: white;
  padding: 2rem var(--spacing);
}

.header-logo img {
  max-height: 80px;
  width: auto;
}

/* ========================
   HEADER + FOOTER
======================== */
header,
footer {
  background: linear-gradient(to right, var(--primary), var(--highlight));
  color: white;
  text-align: left;
  padding: 2rem var(--spacing);
}

/* ========================
   NAVIGATION
======================== */
nav {
  background-color: var(--accent);
  box-shadow: 0 2px 5px var(--shadow);
  top: 0;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  justify-content: space-around;
  padding: var(--spacing);
  list-style: none;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  position: relative;
  padding: 8px;
  transition: color 0.3s ease;
}

/* Nav bar highlight animation */
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary);
}

/* mobile NAV */
/* Hide toggle on desktop */
.nav-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: var(--accent);
    box-shadow: 0 4px 8px var(--shadow);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    z-index: 1100;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .nav-toggle:focus {
    outline: none;
  }

  nav.show {
    display: block;
  }
}

/* ========================
   SOCIAL ICONS
======================== */
.social-icons a:hover {
  filter: drop-shadow(0 4px 8px var(--primary));
}

.fa {
  /* font-size: 30px; */
  padding: 20px;
  /* width: 25px; */
  /* text-align: center; */
  text-decoration: none;
}

.social-icons {
  /* display: flex; */
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}

.social-icons a {
  font-size: 1.5rem;
}

.social-icons a:hover {
  color: #0077cc;
}

@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* ========================
   COLUMNS & ICONS
======================== */
.columns {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.column {
  flex: 1 1 300px;
  background: white;
  padding: var(--spacing);
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
}

.icon-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.icon-box {
  text-align: center;
  padding: var(--spacing);
  border-radius: 12px;
  background: linear-gradient(to top, var(--background), var(--accent));
  box-shadow: 0 6px 16px var(--shadow);
}

/* ========================
   GALLERY
======================== */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px var(--shadow);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px var(--shadow);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* ========================
   CONTACT FORM
======================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--shadow);
}

.contact-form label {
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 2px 4px var(--shadow);
}

.contact-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--highlight);
}

/* LOGOT PAGE */
.logout-container {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
  padding: 2rem;
  background-color: var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow);
  font-family: "Inter", sans-serif;
}

.logout-container h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.logout-container .btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-container .btn:hover {
  background-color: #0077cc;
}

.cancel-link {
  display: block;
  margin-top: 1rem;
  color: var(--text);
  text-decoration: underline;
  font-size: 0.9rem;
}
.logout-container {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
  padding: 2rem;
  background-color: var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow);
  font-family: "Inter", sans-serif;
}

.logout-container h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.logout-container .btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-container .btn:hover {
  background-color: #0077cc;
}

.cancel-link {
  display: block;
  margin-top: 1rem;
  color: var(--text);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* ========================
   MEDIA QUERIES
======================== */
@media (max-width: 768px) {
  .header-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-logo img {
    width: 70%;
    max-width: 200px;
    margin: 1rem auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .column {
    text-align: center;
  }

  .gallery-grid {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .image-card img {
    width: 100%;
    height: auto;
  }

  footer {
    text-align: center;
    padding: 1rem;
  }

  .social-icons {
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}
