* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: 
    radial-gradient(circle at 60% 40%, #7092d3 20%, #4a4ac3 70%),
    linear-gradient(135deg, #667eea 0%, #030376 100%);
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ========== NAVIGATION ========== */

nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* gradient from main */
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 80px; /* keep main spacing for navbar */
  position: relative;
  overflow: hidden;
  height: 80px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1); /* from your branch */
}

header h1,
header p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-top: 8rem; /* from your branch */
  text-shadow: 0 4px 8px rgba(0,0,0,0.3); /* from your branch */
  background: rgba(63, 81, 181, 0.4);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
.nav-logo {
  font-size: 2.1rem;    /* from main */
  font-weight: 800;     /* from main */
  color: #0d1a4a;       /* keep your dark blue */
}

  text-shadow: 0 2px 4px rgba(0,0,0,0.3);

}

.nav-right {
  display: flex;
  align-items: center;
.navbar {
  gap: 1.5rem;      /* from main */
  margin-left: 4rem; /* from ui-fixes-navbar */
}

.nav-link {
  color: #fff;       /* from main */
  font-size: 1.1rem; /* from main */
  font-weight: 600;  /* from main */
  padding: 0.5rem 0.8rem; /* from main */
}

  border-radius: 25px;
  border:1px solid #000;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;

}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: #222;      /* dark grey/black background */
  color: #fff !important; /* white text */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ========== DROPDOWN ========== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-content {
  display:inline;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, #3f51b5, #5a55ae);
  transform: translateX(-50%) translateY(-10px);
  background: rgb(97, 52, 156);
  backdrop-filter: blur(15px);
  min-width: 220px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1001;
  flex-direction: column;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: none;
  border-right: none;
  backdrop-filter: blur(15px);
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #222; /* Always black text */
  transition: all 0.3s ease;
  border-radius: 10px;
  margin: 0 0.5rem;
  font-size: 0.95rem;
  background: transparent;
}

.dropdown-content a:hover {
  background: #fff;   /* Keep background white on hover */
  color: #222;        /* Keep text black on hover */
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* Only show dropdown when hovering specifically over the dropdown container */

.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}
.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s ease;
  z-index: 9999;
  padding: 2rem;
}
.mobile-submenu {
  display: flex;
  flex-direction: column;
}

.submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.arrow-icon {
  transition: transform 0.3s ease;
  }
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);

}

.submenu-items {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  margin-top: 0.5rem;
}


.mobile-submenu.open .submenu-items {
  display: flex;
}

.mobile-submenu.open .arrow-icon {
  transform: rotate(180deg);
}

.mobile-menu.active {
  left: 0;
}
nav a {
  color: #fff;
nav .dropdown-content a {
  color: #222;              /* from ui-fixes-navbar */
  text-decoration: none;     /* from main */
  margin: 0 1rem;           /* from main */
  font-weight: 600;         /* from main */
  transition: color 0.3s ease; /* from main */
}

}

nav a:hover,
.dropdown-content a:hover {
  color: #222;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  user-select: none;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-link {
  color: #fff;
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 10px;
  transition: background 0.3s ease;
  display: block;
}

.mobile-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* ========== HEADER ========== */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 80px; /* Space for fixed navbar */
  position: relative;
  overflow: hidden;
}*/

header h1,
header p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

header h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

/* ========== MOBILE MENU FIX ========== */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s ease;
  z-index: 9999;
  padding: 2rem;
}

.mobile-menu.active {
  left: 0;
}

/* add project form */
.add-project-section {
  margin: 4rem 0;
}

.add-project-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 2rem;
  border-radius: 25px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.add-project-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="thank-pattern" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="3" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23thank-pattern)"/></svg>');
  opacity: 0.3;
}

.add-project-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.add-project-card p {
  text-align: Justify;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.add-project-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 500px;
  margin: 0 auto;
}

.add-project-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.add-project-form input,
.add-project-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #f5f7fa;
  color: #222;
  resize: none;
  transition: box-shadow 0.2s;
  margin-bottom: 0.2rem;
}

.add-project-form input:focus,
.add-project-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #764ba2;
}

.add-project-btn {
  background: #ff4081;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
}

.add-project-btn:hover {
  background: #e73370;
}

/* ========== FOOTER ========== */
footer {
footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* from main */
  color: #fff;
  padding: 3rem 1rem 1rem 1rem; /* from main */
  margin-top: 4rem;             /* keep spacing from ui-fixes-navbar */
  position: relative;           /* from ui-fixes-navbar */
  overflow: hidden;             /* from ui-fixes-navbar */
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08); /* from main */
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); /* from ui-fixes-navbar */
}

}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-section .heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 1px;
}

.footer-section.company-info p {
  margin: 1rem 0;
  font-size: 1rem;
  color: #e0e0e0;
}

.footer-ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-ul li {
  margin-bottom: 0.8rem;
}

.footer-ul li a {
color: #fff;
font-size: 1.05rem;
transition: all 0.3s ease;

  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.3s;
}

.footer-ul li a:hover {
  color: #ff4081;
}

.footer-section.send-message form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section.send-message .form-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-section.send-message input,
.footer-section.send-message textarea {
  flex: 1 1 120px;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #f5f7fa;
  color: #222;
  resize: none;
  transition: box-shadow 0.2s;
}

.footer-section.send-message input:focus,
.footer-section.send-message textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #764ba2;
}

.footer-section.send-message button {
  background: #ff4081;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section.send-message button:hover {
  background: #e73370;
}

.footer-section .social {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

.footer-section .social a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-section .social a:hover {
  color: #ff4081;
  transform: scale(1.15);
}

.copyright {
  text-align: center;
  color: #e0e0e0;
  font-size: 1rem;
  margin-top: 2rem;
  letter-spacing: 0.5px;
}

/* CATEGORY CARDS SECTION */
.category-container {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Make cards equal height */
  gap: 2rem;
  margin: 3rem auto 0 auto;
  max-width: 1100px;
  flex-wrap: wrap;
}

/* Copyright */
.copyright {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.nav-link.active,
.footer-ul li a.active,
.mobile-menu-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #0d1a4a !important;
  font-weight: 800;
}

/* Category cards */
.category-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.13), 0 1.5px 6px rgba(0,0,0,0.07);
  padding: 2.2rem 2rem 1.7rem 2rem;
  min-width: 290px;
  max-width: 340px;
  flex: 1 1 320px; /* All cards grow/shrink equally */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s cubic-bezier(.4,2,.6,1);
  text-align: left;
  margin-bottom: 1.5rem;
}

  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s forwards;
}

.category-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.category-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.category-card p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 0;
  font-weight: 500;
}

.category-card:hover {
  transform: translateY(18px) scale(25);
  box-shadow: 0 18px 32px rgba(99, 124, 232, 0.13), 0 15px 6px rgba(86, 21, 100, 0.07);
  z-index: 2;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive for cards */
@media (max-width: 900px) {
  .category-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .category-card {
    max-width: 95vw;
    min-width: 0;
    width: 100%;
    height: auto;
  }
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
  }
  .footer-section {
    min-width: 0;
  }
}

.add-project-section,
.add-project-card {
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .nav-right {
    display: none;
    /* hide desktop links on small screens */
  }

  .mobile-menu-toggle {
    display: flex;
    /* show hamburger menu */
  }
}

/* Card styling */
.card {
  width: 300px;
  padding: 20px;
  margin: 50px auto;
  background: #f0f0f0;
  border-radius: 10px;
  text-align: center;
}

/* Buttons */
button {
  margin: 5px;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  transition: transform 0.2s, background-color 0.2s
}

.action-btn:hover {
  transform: translateY(-2px)
  background-color: #6366f1;
}

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* Toast message */
.toast {
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  min-width: 200px;
  animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
}

/* Toast types */
.toast.project { background-color: #28a745; }   /* Green */
.toast.comment { background-color: #17a2b8; }  /* Blue */
.toast.favorite { background-color: #e83e8c; } /* Pink */

/* Animations */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}
