/* Fonts & Base */
body {
  font-family: 'Poppins', sans-serif; 
      background: #f9fbff;
      color: #1e293b;
  /* color: #333; */
  
  margin: 0;
  padding: 0;
}
/* Hamburger Icon */

/* Hamburger Icon */
.hamburger {
  display: flex;  /* use flex, not 'always' */
  width: 25px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: fixed;
  top: 30px;
  left: 20px;
  z-index: 1001;
}

.hamburger span {
  display: block;   /* keep only this */
  height: 4px;
  width: 100%;
  background: #0d6efd;
  border-radius: 2px;
  transition: 0.3s;
}

/* Sidebar Toggle */
.sidebar.active {
  transform: translateX(0);
}

/* Sidebar Hidden by Default on Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* hide sidebar by default */
    width: 230px;
    height: 100%;
    transition: 0.3s;
    z-index: 1000;
  }

  .content {
    margin-left: 0;
    transition: margin-left 0.3s;
  }

  .sidebar.active + .content {
    left: 0;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* hide sidebar by default */
  height: 100%;
  max-width: 230px;
  width: 100%;
  transition: left 0.3s ease;
  background: #f8f9fa;
  padding: 20px;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar.active {
  left: 0;   /* show it when active */
}

.sidebar-header {
  text-align: center;
}
.sidebar-header h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 0;
}
.sidebar-header p {
  font-size: 0.9rem;
  color: #666;
}
.nav-link {
  color: #333;
  padding: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

.nav-link:hover {
  color: #007bff;
}

.nav-link.active {
  color: #007bff;
  font-weight: bold;
  border-left: 3px solid #007bff;
  padding-left: 12px;
  background: rgba(0, 123, 255, 0.1);
}



.sidebar-footer {
  text-align: center;
}
.sidebar-footer a {
  color: #333;
  margin: 0 8px;
  font-size: 1.2rem;
  transition: 0.3s;
}
.sidebar-footer a:hover {
  color: #0d6efd;
}

/* Content */
.content {
  
  padding: 40px;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.sidebar.active ~ .content {
  margin-left: 250px; /* shift content when sidebar is open */
}
/* Sections */
.section {
 
  padding: 2rem;
  margin: 1rem 0;
  
}


#twinkle_img{
  max-width: 650px;
  width: 100%;
  height: 650px;
  border-radius: 50%;
  object-fit: cover;
}
.section h2 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 30px;
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #0d6efd;
  margin-top: 10px;
}

/* Hero */
.hero {
  min-height: 100vh;
  text-align: center;
}
.hero h1 span {
  color: #0d6efd;
}
.hero p {
  font-size: 1.2rem;
  color: #666;
}

/* Profile */
@media (max-width: 768px) {
  #twinkle_img {
    height: 300px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .project-card img {
    height: auto;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }
}

.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 5px solid #0d6efd;
}

/* Cards */
.skill-card {
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
}
.skill-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.project-card:hover {
  transform: scale(1.02);
  transition: 0.3s;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  margin-bottom: 15px;
}

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: auto;
}
/* Ensure project images have the same size */
.project-card img {
  height: 220px;           /* fixed height for all images */
  object-fit: cover;       /* crops while keeping aspect ratio */
  width: 100%;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

/* Make all cards the same height */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card .card-body {
  flex-grow: 1;           /* pushes content evenly */
  display: flex;
  flex-direction: column;
}

.project-card .card-text {
  flex-grow: 1;           /* fills remaining space so buttons align */
}
.modal-body {
  font-family: "Poppins", sans-serif;
}

#modalTech li,
#modalFeatures li {
  margin-bottom: 6px;
}
