/* Base styles and theme */
:root {
  --dark-bg: #0C1C24;
  --accent: #00D9FF;
  --text-light: #F4F7FF;
  --card-bg: #13242D;
  --card-hover: #1A3240;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Nunito', sans-serif;
}

body {
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  padding-top: 70px; /* Account for fixed header */
}

/* REDUCED HEADER SIZE - Matching homepage proportions */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 5%; /* Reduced padding */
  height: 70px; /* Reduced height */
  background-color: rgba(12, 28, 36, 0.95);
  box-shadow: 0 1px 4px rgba(0, 217, 255, 0.3);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(10px);
}

header .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem; /* Reduced font size */
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
}

header .logo img {
  height: 35px; /* Reduced logo size */
  width: auto;
  margin-right: 8px; /* Reduced margin */
}

/* Navbar - desktop */
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

header .navbar li {
  margin-left: 1.8rem; /* Reduced spacing */
}

header .navbar ul li a {
  font-size: 1.1rem; /* Reduced font size */
  color: #B0B8C1;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: color 0.3s, border-bottom 0.3s;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #00D9FF;
  border-bottom: 0.15rem solid #00D9FF; /* Reduced border size */
  padding: 0.3rem 0; /* Reduced padding */
}

/* Mobile menu toggle */
#menu {
  font-size: 1.8rem; /* Reduced icon size */
  cursor: pointer;
  color: #FFFFFF;
  display: none;
  padding: 5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  header {
    padding: 0.7rem 5%;
    height: 60px; /* Even smaller on mobile */
  }
  
  #menu {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 60px; /* Adjusted for smaller header */
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0C1C24;
    border-left: 1px solid #00D9FF;
    transition: right 0.3s ease;
  }

  header .navbar.nav-toggle {
    right: 0;
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 0.8rem 0; /* Reduced margin */
  }

  header .navbar ul li a {
    display: block;
    padding: 0.8rem; /* Reduced padding */
    text-align: left;
    color: #FFFFFF;
    font-size: 1.1rem; /* Reduced font size */
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 0.8rem; /* Reduced padding */
    color: #00D9FF;
    border-radius: .5rem;
    border-bottom: .3rem solid #00D9FF; /* Reduced border size */
  }
  
  /* Hide desktop nav on mobile */
  header .navbar:not(.nav-toggle) {
    display: none;
  }
}

/* Projects section - adjusted padding for smaller header */
.projects {
  padding: 6rem 9% 5rem; /* Reduced top padding */
}

.heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.heading span {
  color: var(--accent);
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Project card container */
.project-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  background: var(--card-hover);
  transform: translateY(-5px);
}

/* Project image container */
.project-image-container {
  flex: 0 0 45%;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-image-slider {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-image-slider img.active {
  opacity: 1;
}

/* Slider controls */
.slider-controls {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.slider-controls button {
  background: rgba(0, 217, 255, 0.7);
  border: none;
  color: var(--dark-bg);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* Project details */
.project-details {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 15px;
}

.project-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-desc-short {
  font-size: 1rem;
  line-height: 1.6;
  margin: 1.5rem 0 1.5rem;
  color: #d0d6e1;
}

/* Full details hidden initially */
.project-full-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.project-full-details.active {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 1.5rem;
}

.tech-stack,
.key-features {
  margin-bottom: 1.5rem;
}

.project-full-details h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--accent);
}

.project-full-details ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.project-full-details ul li {
  margin-bottom: 6px;
}

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.5rem 0;
}

.tech-badge {
  padding: 6px 12px;
  background: var(--accent);
  color: #0C1C24;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
}

/* Buttons */
.btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}

.code-btn {
  background: var(--accent);
  color: #0C1C24;
}

.code-btn:hover {
  background: #00b9dd;
  transform: translateY(-2px);
}

.view-btn {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.view-btn:hover {
  background: var(--accent);
  color: #0C1C24;
  transform: translateY(-2px);
}

/* View More button styling */
.view-more-btn {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.view-more-btn:hover {
  background: var(--accent);
  color: #0C1C24;
}

/* Mobile responsive for project cards */
@media (max-width: 992px) {
  .project-card {
    flex-direction: column;
  }
  
  .project-image-container {
    flex: none;
    height: auto;
    padding: 15px;
  }
  
  .project-image-slider {
    height: 220px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 5rem 5% 3rem;
  }
  
  .heading {
    font-size: 2rem;
  }
  
  .project-header h3 {
    font-size: 1.5rem;
  }
  
  .project-links {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .project-image-container {
    padding: 12px;
  }
  
  .project-image-slider {
    height: 180px;
  }
  
  .slider-controls button {
    width: 30px;
    height: 30px;
  }
  
  .project-details {
    padding: 1.5rem;
  }
}

/* Project Meta Tags */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}

.meta-tag {
  padding: 5px 10px;
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 217, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-tag i {
  font-size: 0.7rem;
}

/* Specific meta tag categories */
.meta-tag.platform { background: rgba(86, 171, 47, 0.15); color: #56ab2f; border-color: rgba(86, 171, 47, 0.3); }
.meta-tag.status { background: rgba(253, 187, 45, 0.15); color: #fdbb2d; border-color: rgba(253, 187, 45, 0.3); }
.meta-tag.category { background: rgba(131, 58, 180, 0.15); color: #833ab4; border-color: rgba(131, 58, 180, 0.3); }
.meta-tag.deployment { background: rgba(252, 83, 54, 0.15); color: #fc5336; border-color: rgba(252, 83, 54, 0.3); }
.meta-tag.extra { background: rgba(29, 128, 159, 0.15); color: #1d809f; border-color: rgba(29, 128, 159, 0.3); }

/* Meta tags in expanded view */
.project-full-details .project-meta {
  margin: 0 0 1.5rem 0;
}

/* Adjust text content to accommodate meta tags */
.text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-desc-short {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: #d0d6e1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Adjust card height to accommodate meta tags */
.project-card {
  min-height: 340px;
}

.project-details {
  min-height: 340px;
}

/* Mobile adjustments for meta tags */
@media (max-width: 768px) {
  .project-meta {
    gap: 8px;
  }
  
  .meta-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .project-meta {
    gap: 6px;
  }
  
  .meta-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

