/* Define CSS Variables for Easier Maintenance */
:root {
  --primary-color: #8b09ed;
  --primary-hover: #5c02a1; /* Slightly darker shade for hover */
  --secondary-color: #ffa500; /* Bright orange for Swift projects */
  --python-color: #4584b6;
  --web-color: #F06529;
  --cpp-color: #0060a9;
  --background-color: #0a0a0a;
  --text-color: #ececec;
  --subtext-color: #ccc;
  --link-color: #6c02bd;
  --link-hover-color: #58029a;
  --blog-color: #ff4081; 
  --slight-purple: #e8d1f9;

  --star-color: var(--primary-color);
  --star-opacity: 0.8;
  --star-tail-length: 6em;
  --star-tail-height: 3.5px;
  --star-width: calc(var(--star-tail-length) / 4);
  --fall-duration: 9s;
  --fall-delay: 0s;
  --tail-fade-duration: var(--fall-duration);
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  position: relative; /* To contain absolutely positioned stars */
}

a {
  text-decoration: none;
  color: inherit;
}

/* Accent Colors */
.accent {
 /* color: var(--primary-color); /* Updated to #6c02bd */

  background: linear-gradient(to right, #5257E5, #A35CEB);
  color: transparent;
  background-clip: text;
  display: inline-block;
}

.accent-text {
  background: linear-gradient(to right, #A35CEB, #5257E5);
  color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Header / Navigation */
.header {
  position: fixed;
  width: 100%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 0rem;
  width: 30px; /* Adjust the size of the SVG */
  height: 30px;
}

.nav-logo img {
  width: 30px; /* Adjust the size of the SVG */
  height: 30px;
  transition: filter 0.3s ease;
}

.nav-logo img:hover {
  filter: brightness(1.2); /* Slightly brighten on hover */
}

.navbar {
  display: flex;
  align-items: center;
  max-width: 1900px;
  margin: auto;
  padding: 1rem;
  position: relative; /* Added */
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  padding-left: 5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto; /* Push the navigation links to the right */
}

.nav-links a {
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
  color: var(--slight-purple); /* Updated to #6c02bd */
  text-decoration: none; /* Remove default underline */
}

/* Remove default underline on hover */
.nav-links a:hover {
  color: var(--text-color); /* Updated to #6c02bd */
}

/* Active link styles */
.nav-links a.active {
  background: linear-gradient(to right, #A35CEB, #5257E5);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text; /* For Safari */
  display: inline-block;
}

/* Gradient Underline using ::after pseudo-element */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjust as needed for spacing */
  height: 3px; /* Thickness of the underline */
  width: 100%;
  border-radius: 1rem;
  background: linear-gradient(to right, #A35CEB, #5257E5); /* Same gradient as active text */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Show underline on hover */
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Show underline when active */
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Optional: Change text color on hover and active */
.nav-links a:hover {
  color: var(--text-color); /* Ensure this matches your design */
}

/* Navigation Toggle (for mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #ececec;
  transition: all 0.3s ease;
}

/* Responsive Styles (Optional) */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* You can add JavaScript to handle the toggle functionality */
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Remove the old background gradient */
  /* background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%); */
}

.hero-overlay {
  position: absolute;
  width: 200vw;
  height: 200vh;
  background: radial-gradient(closest-side, var(--primary-color), transparent 80%); /* Updated to #6c02bd */
  filter: blur(200px);
  animation: pulse 6s infinite alternate;
  top: -50%;
  left: -50%;
  opacity: 0.6;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 0.4; }
}

.hero-content {
  position: relative;
  max-width: 600px;
  padding: 1rem;
  z-index: 1;
  text-align: left; /* Align text to the left */
  margin-left: 5%; /* Add some left margin for spacing */
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0 1em blue;
}
/* Typing Animation Styles */
.typing-container {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  color: #ffffff; /* Choose a color that stands out */
  height: 1.5rem; /* Adjust based on font-size */
  margin-bottom: 2rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2rem;
  background-color: #A35CEB;
  margin-left: 5px;
  animation: blink 0.7s infinite;
}

/* Blinking Animation */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #bbb;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #888;
  font-size: 0.9rem;
  animation: bounce 2s infinite;

}

.scroll-indicator span {
  margin-bottom: 0.5rem;
}

.scroll-indicator .mouse {
  width: 20px;
  height: 35px;
  border: 2px solid #888;
  border-radius: 10px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: "";
  width: 4px;
  height: 8px;
  background: #888;
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { top: 5px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-5px);}
}

/* Container to align buttons side by side */
.button-container {
  display: flex;
  gap: 40px; /* Space between buttons */
  justify-content: center; /* Center the buttons horizontally */
  margin-top: 40px; /* Adjust as needed */
}

/* Base Styles for Both Buttons */
.hero-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

/* Primary Button: Explore My Work */
.explore-hero-button {
  background: linear-gradient(to right, #A35CEB, #5257E5);
  color: #fff;
  border: none;
}

.explore-hero-button:hover {
  background: linear-gradient(to right, #a764eb, #5a5ee3);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(98, 102, 229, 0.9);
}

/* Secondary Button: More About Me */
.more-about-me-button {
  background: transparent;
  position: relative;
  padding: 12px 24px;
  border: 1px solid;
  border-radius: 50px;
  border-color: #A35CEB ;
  color: #A35CEB; /* Fallback color */
}

.more-about-me-button:hover {
  color: #fff;
  background:#1c1c1c;
  box-shadow: 0 4px 15px #844fba;
}

.more-about-me-button:hover::before {
  opacity: 1;
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: 1px solid transparent;
  font-weight: 600;
  background: var(--primary-color); /* Updated to #6c02bd */
  color: #0a0a0a;
  transition: background 0.3s ease, transform 0.3s ease;
  
}

.btn:hover {
  background: var(--primary-hover); /* Updated to #58029a */
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--primary-color); /* Updated to #6c02bd */
  border: 1px solid var(--primary-color) !important; /* Updated to #6c02bd */
  position: fixed; /* Or use 'absolute' if inside a relative parent */
  bottom: 40px;    /* 20px from the bottom */
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.btn-primary {
  background: var(--primary-color); /* Ensure it matches the primary color */
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--primary-hover); /* Darker shade on hover */
}

/* Sections */
.section {
  padding: 6rem 1rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-header p {
  font-size: 1rem;
  font-weight: 300;
  color: #aaa;
  max-width: 600px;
  margin: 0.5rem auto 2rem auto;
}

/* -----------------------------------
   Enhanced About Section Styles
----------------------------------- */

/* About Section */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding: 0 1rem; /* Optional for better spacing on smaller screens */
}

.team-member {
  /* Inherits styles from project-card */
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 10px; /* Match project-card border-radius */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 400px; /* Adjusted width for better appearance */
  width: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 30px var(--primary-color);
}

/* Label Styling */
.team-member .project-label {
  top: 10px;
  left: 10px;
  /* You can customize the label color if needed */
  /* Example for "About" label */
  background: var(--primary-color);
  color: #0a0a0a;
}

/* Image Styling */
.about-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: #292828; Optional: Background color to match dark theme */
}

.about-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  background: transparent;
}

/* Info Styling */
.project-info {
  padding: 2rem;
  text-align: center;
  flex-grow: 1;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.project-info p {
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: #ccc;
  padding-bottom: 30px;
}

/* Additional Info */
.team-more-info {
  font-size: 1rem;
  color: #ccc;
}
.team-more-info h3 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;
  color: #ececec;
}

.team-more-info h4 {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;
  color: #ececec;
}

.team-more-info p {
  text-align: left;
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  line-height: 1.4;
}

/* -----------------------------------
   Tech Stack Section Styles
----------------------------------- */

/* Section Subtitle */
.section-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Tech Stack Container */
.tech-stack-container {
  margin-top: 4rem; /* Adjust spacing as needed */
  padding: 2rem 3rem;
  background: rgba(255, 255, 255, 0.02); /* Optional: subtle background */
  border-radius: 15px; /* Optional: rounded corners */
}

/* Tech Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Tech Card */
.tech-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100px; /* Adjust width as needed */
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 30px var(--primary-color);
}

/* Tech Card Image */
.tech-card img {
  width: 50px; /* Adjust size as needed */
  height: 50px;
  margin-bottom: 0.5rem;
}

/* Tech Card Text */
.tech-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .tech-card {
    width: 80px;
    padding: 0.8rem 1rem;
  }

  .tech-card img {
    width: 40px;
    height: 40px;
  }

  .tech-card p {
    font-size: 0.8rem;
  }
}


/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-links .btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .team-member {
    max-width: 90%;
  }
  
  .project-image {
    height: 150px;
  }
  
  .project-image img {
    width: 80px;
    height: 80px;
  }
}

/* Projects Section */
.sub-section {
  margin-top: 2rem;
}

.projects-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.projects-description {
  font-weight: 300;
  color: #aaa;
  margin-bottom: 2rem;
}

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

.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Existing subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1), /* Existing shadow */
    0 0 30px var(--primary-color);  /* Added underglow effect */
}

.project-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100px;
  height: 100px;
}

/* Project Label */
.project-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a0a0a;
}

.swift-label {
  background: var(--secondary-color); /* Bright orange #ffa500 */
  color: #0a0a0a;
}

.python-label {
  background: var(--python-color); /* Updated to #6c02bd */
  color: #0a0a0a;
}

.web-label {
  background: var(--web-color); /* Updated to #6c02bd */
  color: #0a0a0a;
}

.cpp-label {
  background: var(--cpp-color); /* Updated to #6c02bd */
  color: #0a0a0a;
}

.project-info {
  padding: 2rem;
  text-align: left;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-info p {
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: #ccc;
}

.project-info a {
  color: var(--primary-color); /* Updated to #6c02bd */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.project-info a:hover {
  border-bottom: 1px solid var(--primary-color); /* Updated to #6c02bd */
}

/* Placeholder Card */
.placeholder-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* Contact Section */
.contact-content {
  margin-top: 3rem;
}

.contact-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links a {
  color: var(--primary-color); /* Updated to #6c02bd */
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s;
}

.social-links a:hover {
  border-bottom: 1px solid var(--primary-color); /* Updated to #6c02bd */
}

/* Footer */
.footer {
  position: relative; /* Establishes a new positioning context */
  z-index: 1; /* Ensures the footer is above elements with lower z-index */
  padding: 2rem 1rem;
  background: var(--background-color); /* Ensure this is opaque */
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}


/* Responsive Adjustments for Small Screens */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: auto;
    margin-left: auto;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    width: 200px;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #333;
    gap: 1rem;
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateX(0); /* Slide in from the right */
  }

  .nav-toggle {
    display: flex; /* Show toggle in mobile */
    margin-left: auto; 
    cursor: pointer;
  
  }
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 2rem;
  min-width: 300px;
  text-align: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ececec;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #ccc;
}

.contact-details li strong {
  color: #ececec;
}

.contact-details a {
  color: var(--primary-color); /* Updated to #6c02bd */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.contact-details a:hover {
  border-bottom: 1px solid var(--primary-color); /* Updated to #6c02bd */
}


/* -----------------------------------
   Project Detail Page Styles
----------------------------------- */

/* Existing CSS ... */

/* Project Detail Section */
.project-detail .container {
  /* Ensure the container itself isn't styled as a card if individual cards are used */
  background: transparent; /* Remove if previously set as a card */
  padding: 2rem 1rem; /* Adjust padding as needed */
}

.project-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

/* Project Card Styles */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 30px var(--primary-color);
}

.project-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ececec;
}

.project-card p, 
.project-card ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
  text-align: left;
}

.project-card ul {
  list-style: disc inside;
  padding-left: 1.5rem;
}

.project-card a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.project-card a:hover {
  border-bottom: 1px solid var(--primary-color);
}

/* Adjustments for Screenshot Gallery within Project Cards */
.project-card .screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
}

.project-card .screenshot {
  background: rgba(10, 10, 10, 0.7);
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-card .screenshot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.project-card .screenshot p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.project-card .screenshot:hover {
  transform: translateY(-5px);
  box-shadow: 0 0px 30px var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .project-detail h1 {
    font-size: 2rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-card h2 {
    font-size: 1.6rem;
  }

  .project-card .screenshot-gallery {
    flex-direction: column;
    align-items: center;
  }

  .project-card .screenshot {
    max-width: 90%;
  }
}


/* Screenshot Gallery */
.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.screenshot {
  background: rgba(10, 10, 10, 0.7); /* Dark semi-transparent background */
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.screenshot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: transparent; /* Ensure no background is applied to images */
  
}

.screenshot p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--primary-color); /* Updated to #6c02bd */
}

.screenshot:hover {
  transform: translateY(-5px);
  box-shadow: 0 0px 30px var(--primary-color); /* Updated to match #6c02bd */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .screenshot-gallery {
    flex-direction: column;
    align-items: center;
  }
  
  .screenshot {
    max-width: 90%;
  }
}

/* Back to Projects Button */
.project-detail .btn-primary {
  margin-top: 2rem;
  background: var(--primary-color); /* Ensure it matches the primary color */
  color: #0a0a0a;
}

.project-detail .btn-primary:hover {
  background: var(--primary-hover); /* Darker shade on hover */
}

/* Additional Enhancements */

/* Ensure images maintain aspect ratio and fit within their containers */
.screenshot img {
  object-fit: contain;
}

/* Responsive Font Sizes (Optional) */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .projects-subtitle {
    font-size: 1.6rem;
  }

  .project-detail h1 {
    font-size: 2rem;
  }

  .project-detail h2 {
    font-size: 1.5rem;
  }
}

/* Stats Container */
/* Stats Container */
.stats-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center the stats horizontally */
  gap: 2rem; /* Space between statistic cards */
  width: 100%;
  max-width: 1200px;
  padding: 2rem; /* Optional: Add padding for better spacing */
}

/* Statistic Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 150px; /* Flex-grow, flex-shrink, flex-basis */
  min-width: 180px;
  padding: 2rem;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 30px var(--primary-color);
}

.stat-info {
  text-align: center;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #ccc;
  margin-top: 0.5rem;
}


/* For Tablets and Larger Phones (600px to 768px) */
/* Responsive Styles */

/* For Tablets and Larger Phones (600px to 768px) */
@media (max-width: 768px) {
  .stats-container {
    gap: 1.5rem; /* Reduce gap between cards */
    padding: 1.5rem; /* Adjust padding */
  }

  .stat-card {
    flex: 1 1 calc(50% - 1.5rem); /* Two cards per row */
    min-width: unset; /* Remove minimum width constraint */
    padding: 1.5rem; /* Reduce padding inside cards */
  }

  .stat-number {
    font-size: 2.2rem; /* Slightly decrease font size */
  }

  .stat-label {
    font-size: 0.95rem; /* Slightly decrease label font size */
  }
}



/* Stars Container */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  transform: rotate(-45deg);
  overflow: hidden;
  pointer-events: none; /* Allow interactions through stars */
  z-index: -1; /* Behind all content */
}

/* Star Elements */
.star {
  position: absolute;
  top: var(--top-offset);
  left: 0;
  width: var(--star-tail-length);
  height: var(--star-tail-height);
  background: linear-gradient(45deg, var(--star-color), transparent);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px var(--star-color));
  transform: translate3d(104em, 0, 0);
  animation: fall var(--fall-duration) var(--fall-delay) linear infinite, tail-fade var(--tail-fade-duration) var(--fall-delay) ease-out infinite;
}

@media screen and (max-width: 750px) {
  .star {
    /* Remove tail-fade animation on mobile for performance */
    animation: fall var(--fall-duration) var(--fall-delay) linear infinite;
  }
}

/* Tail Pseudo-Elements */
.star::before,
.star::after {
  position: absolute;
  content: '';
  top: 0;
  left: calc(var(--star-width) / -2);
  width: var(--star-width);
  height: 100%;
  background: linear-gradient(45deg, transparent, var(--star-color), transparent);
  border-radius: inherit;
  animation: blink 2s linear infinite;
}

.star::before {
  transform: rotate(45deg);
}

.star::after {
  transform: rotate(-45deg);
}

/* Keyframes */
@keyframes fall {
  to {
    transform: translate3d(-30em, 0, 0);
  }
}

@keyframes tail-fade {
  0%, 50% {
    width: var(--star-tail-length);
    opacity: 1;
  }

  70%, 80% {
    width: 0;
    opacity: 0.4;
  }

  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.6;
  }
}
/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #0a0a0a;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  /* Ensure we can animate expanding height and revealing content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
  z-index: 1001;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top .icon {
  z-index: 2;
}

/* Initially hide the label */
.back-to-top .label {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  /* Optional: add some spacing above the text */
  margin-top: 0;
}

/* On hover: 
   - Increase button height to make room for text.
   - Reveal the label by increasing max-height and making it opaque.
   - Change background to hover color.
*/
.back-to-top:hover {
  background-color: var(--primary-hover);
  height: 100px;
  border-radius: 60px;
}

.back-to-top:hover .label {
  opacity: 1;
  max-height: 30px; /* Enough to display the text fully */
  margin-top: 0.5rem; /* Some spacing from the arrow */
}


/* Blog Label Styling */
.blog-label {
  background: var(--blog-color);
  color: #0a0a0a;
}

/* Ensure the blog images fit well */
.project-card .project-image img {
  width: 100px;
  height: 100px;
  object-fit: cover; /* Ensures the image covers the container without distortion */
  border-radius: 10px; /* Optional: Rounded corners for better aesthetics */
}

/* Optional: Adjust the projects-grid if needed */
.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive Adjustments for Blog Cards */
@media (max-width: 768px) {
  .project-info {
    padding: 1.5rem;
  }
  
  .project-info h3 {
    font-size: 1.4rem;
  }
  
  .project-info p {
    font-size: 0.95rem;
  }
}

/* "See All Blogs" Button Container */
.see-all-blogs-container {
  margin-top: 2rem;
  text-align: center;
}

/* "See All Blogs" Button Styling */
.see-all-blogs-btn {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  background: var(--primary-color); /* Ensure it matches your primary color */
  color: #0a0a0a;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.see-all-blogs-btn:hover {
  background: var(--primary-hover); /* Darker shade on hover */
  transform: translateY(-2px);
}

/* Contact Form Card Specific Styles */
.contact-form-card form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-form-card form label {
  font-weight: 500;
  color: #ccc; /* or var(--text-color) */
  margin-bottom: 0.5rem;
}

.contact-form-card form label span {
  color: var(--primary-color);
}

.contact-form-card form input[type="text"],
.contact-form-card form input[type="email"],
.contact-form-card form textarea {
  background-color: #0a0a0a; /* Matches your overall dark theme */
  color: #ececec;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card form input[type="text"]:focus,
.contact-form-card form input[type="email"]:focus,
.contact-form-card form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

.contact-form-card .btn.btn-primary {
  align-self: flex-start; 
  border-radius: 30px; 
  padding: 0.65rem 1.5rem;
}

/* Privacy Terms Checkbox + Tooltip */
.privacy-terms {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0.5rem; /* Space between checkbox & label */
}

/* Style the tooltip trigger (“?”) */
.privacy-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 0.3rem;
  font-weight: 700;
}

/* Tooltip content hidden by default */
.tooltip-content {
  visibility: hidden;
  opacity: 0;
  background-color: #333; 
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 1rem;
  position: absolute;
  z-index: 1;
  bottom: 130%; /* Show above the “?” icon */
  left: 50%;
  transform: translateX(-50%);
  width: 240px; /* Adjust as needed */
  transition: opacity 0.2s ease-in-out;
  pointer-events: none; /* So it won't interfere with mouse events */
}

/* Tooltip arrow */
.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%; /* Arrow pointing downward */
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.privacy-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
  color: var(--text-color);
}
