/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #0f172a; /* dark theme like landing page */
  color: #e2e8f0; /* light text */
  line-height: 1.6;
}

/* ===============================
   NAVBAR (Desktop + Mobile Fixed)
   =============================== */

nav {
    background: #0f1218;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 12px rgba(86, 116, 221, 0.7);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= DESKTOP MENU ================= */

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #D7D9DC;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.nav-links li a:hover {
    color: #F79E1B;
}

/* ================= HAMBURGER BUTTON ================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    height: 3px;
    width: 100%;
    background: #89A9FF;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ================= MOBILE MENU ================= */

@media (max-width: 768px) {

    .nav-container {
        padding: 1rem;
    }

    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Hide menu by default */
    .nav-links {
        position: absolute;
        top: 65px;
        right: 0;
        width: 220px;
        background: #0f1218;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 1rem;

        display: none;  /* 🔥 important */
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

    /* Show when active */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        width: 100%;
        display: block;
        font-size: 1rem;
    }
}
/* Projects Section */
.projects-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.projects-section h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #38bdf8;
}

.projects-section p {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 50px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: #1e293b;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  background-color: #334155;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #38bdf8;
}

.project-info p {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.project-links a {
  display: inline-block;
  margin-right: 15px;
  text-decoration: none;
  color: #38bdf8;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
}

.project-links a:hover {
  color: #7dd3fc;
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
  border-top: 1px solid #334155;
}
/* ===============================
   Projects Page - Mobile / Small Screens
   =============================== */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }
    header .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .projects-section {
        padding: 20px;
        margin: 30px auto;
    }
    .projects-section h1 {
        font-size: 2rem;
    }
    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card img {
        height: 200px;
    }
    .project-info h3 {
        font-size: 1.2rem;
    }
    .project-info p {
        font-size: 0.9rem;
    }
    .project-links a {
        margin-bottom: 10px;
        display: inline-block;
    }
    .see-more-btn a {
        font-size: 0.95rem;
    }
}
