h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
}

body {
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

p {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
  padding-bottom: 1.5rem;
}

/* Darkmode */

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .hero {
  background-color: #1e1e1e;
}

body.dark-mode .portfolio-card {
  background: #2a2a2a;
}

body.dark-mode .modal-content {
  background-color: #2b2b2b;
  color: #e0e0e0;
}

body.dark-mode .footer {
  background-color: #1a1a1a;
}

/* Navigation Bar */

.navbar {
  background-color: #5d04d9;
  color: white;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 10;
}

.nav-left img {
  height: 40px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #5d04d9;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  animation: slideDown 300ms ease-out forwards;
}

.nav-dropdown.show {
  display: flex;
}


.nav-dropdown a,
.nav-dropdown button {
  color: white;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.navbar a:last-child {
  margin-right: 0;
}

.navbar a:hover {
  color: #0077cc;
}

nav ul {
  list-style: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode for Navbar */
body.dark-mode .navbar {
  background-color: #1e1e1e;
}

body.dark-mode .navbar a {
  color: #e0e0e0;
}

body.dark-mode .navbar a:hover {
  color: #90caf9;
}

/* Hero Section */
.hero {
  background-color: #8341e5;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
}

/* About Section */
.about {
  flex-direction: column;
  margin: 4rem auto;
  padding: 0 1rem;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio {
  background: white;
  padding: 4rem 1rem;
}

.portfolio h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.02);
}

.portfolio-card img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
}

.modal-buttons {
  margin-top: 1.5rem;
}

.modal-buttons .button {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #5d04d9;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-buttons .button:hover {
  background-color: #003a8c;
}

/* Footer */
.footer {
  align-items: center;
  justify-content: space-between;
  background-color: #5d04d9;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.footer a {
  color: #eee;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.social-links i {
  padding-bottom: 3rem;
}

/* Media queries */

@media screen and (min-width: 786px) {
  .menu-toggle {
    display: none;
  }

  .nav-dropdown {
    all: unset;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .nav-dropdown a,
  .nav-dropdown button {
    width: auto;
    text-align: left;
    padding: 0;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer .container .contact,
  .footer .container .social-links {
    width: auto;
    text-align: left;
  }

  .footer .container .social-links {
    gap: 1rem;
  }
}
