/* General */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0f172a; /* dark navy */
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
header h1 {
  color: #60a5fa;
  font-weight: 600;
}
nav a {
  color: #e2e8f0;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s;
}
nav a:hover {
  color: #60a5fa;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9); /* Dark transparent background */
  backdrop-filter: blur(10px);
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-left .logo {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform:uppercase;
  font-family: 'Orbitron','Source Sans Pro','Segoe UI','Roboto',sans-serif;
  color: #c2c4c6;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-right a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: #6366f1;
}

/* Add top padding so content doesn’t hide behind navbar */
body {
  padding-top: 70px;
}

/* Hero Section */

#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #19173f, #0f172a);
  padding: 2rem;
  overflow: hidden;
}

#hero .intro {
  font-size: 1.8rem;
  font-weight: 500;
  color: #e2e8f0;
  max-width: 800px;
  margin-bottom: 1rem;
}

#hero h1 {
   font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  color: #e2e8f0;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards;
}
#hero p {
   font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 700px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}

#hero .subtext {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.6;
}
/* Fade-Up Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 



/* Responsive Text */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 1rem;
  }
}
/* Optional: Make it scale well on smaller screens */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 1.6rem;
  }
  #hero p {
    font-size: 1rem;
  }
}

#skills {
  background-color: #0f172a;
  padding: 4rem 2rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill {
  background: #1e293b;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


/* Sections */
section {
  padding: 5rem 1rem;
}
section h3 {
  text-align: center;
  color: #f1f5f9;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.skill {
  background: #1e293b;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  color: #cbd5e1;
  transition: transform 0.3s;
}
.skill:hover {
  transform: translateY(-4px);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  overflow: visible; /* allow dropdowns to expand outside grid cells */
  z-index: 0; /* ensures grid doesn't cover dropdowns */
}
.project {
  position: relative;
  background: #1e293b;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 0;
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.project img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project h4 {
  color: #f8fafc;
  margin: 1rem;
}
.project p {
  color: #cbd5e1;
  margin: 0 1rem 1rem;
}
.project a {
  color: #60a5fa;
  text-decoration: none;
  display: inline-block;
  margin: 0 1rem 1.2rem;
}
.project a:hover {
  text-decoration: underline;
}
.project {
  background-color: #1e1b4b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  text-align: center;
  color: #e2e8f0;
}

.project a {
  display: inline-block;
  margin-top: 1rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.project a:hover {
  color: #93c5fd;
}

.project-details {
  display: inline-block; /* hidden by default */
  margin-top: 1.5rem;
}

.project {
  background-color: #1e1b4b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  text-align: center;
  color: #e2e8f0;
}

.project h4 {
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
}

.project p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* Style the summary (View Project button) */
.project-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  list-style: none;
  margin-top: 1rem;
}

.project-details summary:hover {
  color: #93c5fd;
}

/* Optional: Remove the default arrow icon */
.project-details summary::-webkit-details-marker {
  display: inline-block;
}

.project {
  background-color: #1e1b4b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  text-align: center;
  color: #e2e8f0;
}

.project h4 {
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
}

.project p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* Style the summary (View Project button) */
.project-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  list-style: none;
  margin-top: 1rem;
}

.project-details summary:hover {
  color: #93c5fd;
}

/* Optional: Remove the default arrow icon */
.project-details summary::-webkit-details-marker {
  display: inline-block;
}

/* SQL Gallery styling */
.sql-gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.sql-gallery img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.sql-gallery img:hover {
  transform: scale(1.05);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  padding: 2rem 0;
}

.gallery img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}



/* Contact */
#contact p, #contact a {
  text-align: center;
  color: #cbd5e1;
}
#contact a {
  color: #60a5fa;
  text-decoration: none;
}
#contact a:hover {
  text-decoration: underline;
}

#contact {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(to top, #0d0d0d, #1a1a1a);
  color: #f1f1f1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

#contact p {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  color: #f1f1f1;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
  color: #66c0f4;
  transform: translateY(-2px);
}

.contact-link svg {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}



/* Responsive fix for project buttons */
.actions.special {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  margin-top: 1rem;
}

.actions.special a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  background-color: #1f2937; /* dark gray-blue background */
  color: #f1f1f1;
  transition: background 0.3s ease, transform 0.3s ease;
  min-width: 180px;
  text-align: center;
}

.actions.special a:hover {
  background-color: #66c0f4;
  transform: translateY(-2px);
  color: #000;
}

/* Mobile view tweaks */
@media (max-width: 600px) {
  .actions.special {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #0f172a;
  color: #64748b;
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Dropdown container */
.dropdown {
  position: relative;
  z-index: 50;
}

/* Dropdown trigger button */
.dropdown .btn {
  display: inline-block;
  background: #1f2937;
  color: #f1f1f1;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dropdown .btn:hover {
  background: #66c0f4;
  color: #000;
  transform: translateY(-2px);
}

/* Dropdown menu content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1a1a1a;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: visible;
  z-index: 0;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  overflow: visible;
}

/* Dropdown links */
.dropdown-content a {
  color: #f1f1f1;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #333;
  color: #66c0f4;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* --- Responsive Fix --- */
@media (max-width: 700px) {
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .dropdown .btn {
    width: 80%;
  }

  .dropdown-content {
    position: static; /* removes absolute positioning */
    transform: none;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .dropdown-content a {
    background: #1f2937;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    width: 80%;
    text-align: center;
  }
}

.btn {
  background: #0f172a;  /* ← this is the background color */
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #1d4ed8;  /* ← hover color */
}