@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  /* Background & Base Colors */
  --primary-bg-color: #000000;    /* All section backgrounds become black */
  --main-text-color: #ffffff;     /* Main text is white */
  --supportive-text-color: #cccccc; /* Subheadings & descriptions get a light gray */
  --gray-text-color: #aaaaaa;

  /* Accent Colors */
  --primary-accent: #ff5252;      /* Use a vibrant accent (e.g., a bright red) for buttons, links, etc. */
  --secondary-accent: #ff1744;    /* A slightly different shade for hover states */

  /* Other Color Variables */
  --white-color: #ffffff;         /* Keep this for contrast */
  --gray-color: #111111;          /* Use very dark gray for subtle backgrounds or boxes */
  --gray-color-2: #222222;
  --gray-color-3: #333333;

  /* Preloader (if used) */
  --color-preloader-bg: #000000;
  --color-dots: #ffffff;
}


/* Common styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: var(--main-text-color);
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.15px;
}

.container {
  padding: 0 32px;
  max-width: 1200px;
  /* max-width: clamp(54.5rem, 38.125rem + 81.88vw, 120rem); */
  margin: 0 auto;
}

.container-lg {
  max-width: 1600px;
}

.title {
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 54px;
}

.btn {
  display: inline-block;
  height: 52px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 52px;
  padding: 0 36px;
  margin: 0 12px 16px 0;
  color: var(--white-color);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  background-color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
  transition: all 0.3s ease-in;
}

.btn:hover,
.btn:focus {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
  color: var(--white-color);
  outline: 0;
}

.btn:active {
  background-color: #8b4a48;
}

.btn-white {
  background: transparent;
  font-weight: 700;
  border: 2px solid #ffffff; /* white border instead */
  color: #ffffff;            /* white text */
  transition: all 0.3s ease-in;
}
.btn-white:hover,
.btn-white:focus {
  background: #ffffff;
  border: 2px solid #ffffff;
  color: var(--primary-accent); /* or keep as white if you prefer */
}


.btn-white:active {
  background-color: #3c4446;
}

.btn-red {
  background: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
  color: var(--white-color);
  transition: all 0.3s ease-in;
}

.btn-red:hover,
.btn-red:focus {
  background: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.btn-red:active {
  background-color: #3c4446;
}

h5 {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 23px;
  font-weight: 600;
  text-transform: uppercase;
}

.white {
  color: var(--white-color);
}

/* Header */
.header {
  z-index: 100;
  background-color: transparent;
  height: 90px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 90px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  /* Change from a white-ish background to dark: */
  background-color: rgba(0, 0, 0, 0.95);
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.3s ease-in-out;
}


.logo {
  position: relative;
  line-height: 1;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.011rem + 0.57vw, 1.375rem);
  color: var(--main-text-color);
}

.nav-list {
  display: flex;
  column-gap: 46px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.15px;
}

.nav-btn {
  display: none;
}

.nav-link {
  color: var(--main-text-color);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--secondary-accent);
  text-decoration-thickness: 1.2px;
  text-underline-offset: 7px;
}

/* Hero section */
.hero {
  position: relative;
  padding-top: 180px;
  background-color: var(--primary-bg-color);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
}

.hero-content {
  text-align: left;
  align-self: center;
  padding: 20px;
  flex-grow: 1;
}

.hero-greeting {
  font-size: clamp(1rem, 0.929rem + 0.36vw, 1.25rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-accent);
}

.hero-heading {
  margin: 5px 0;
  font-weight: 500;
  font-size: clamp(3.25rem, 2.75rem + 2.5vw, 5rem);
  line-height: 1.2;
}

.hero-heading-subtitle {
  font-size: clamp(1.125rem, 1.054rem + 0.36vw, 1.375rem);
  font-weight: 400;
}

.hero-img {
  display: flex;
  flex: 1 1 356px;
  justify-content: flex-end;
  margin-top: auto;
}

.hero-img img {
  display: block;
  position: relative;
}

.about-social-list {
  display: flex;
}

.social-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  margin: 40px 0 40px;
  height: 24px;

  img {
    height: 24px;
    width: 24px;
  }
}

.social-links-row a {
  filter: invert(35%) sepia(11%) saturate(160%) hue-rotate(145deg)
    brightness(88%) contrast(80%);
  transition: all 0.3s ease-in-out;
}

.social-links-row a:hover {
  filter: invert(0%) sepia(0%) saturate(7500%) hue-rotate(305deg)
    brightness(97%) contrast(103%);
}

/* About section */
.about {
  padding: 7rem 0;             /* Existing spacing */
  background-color: #2c2c2c;     /* Darkish grey background */
  color: #f0f0f0;              /* Off white text color */
}
.about-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  justify-content: center;
  gap: 90px;
  margin-bottom: 80px;
  color: var(--supportive-text-color);
}

.about-descr {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 10px;
}

.skill {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.skill-title,
.skill-percent {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  /* text-transform: uppercase; */
  letter-spacing: 0px;
}

.skill-percent {
  float: right;
}
.skill-bar__progress {
  background-color: var(--gray-color);
  border-radius: 5px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  background-color: var(--secondary-accent);
  height: 4px;
  width: 0; /* Initial width is 0 */
  transition: width 1.5s ease-in-out; /* Smooth transition for the fill */
}

.about-download-btn {
  margin-top: 40px;
}

/* Services Row Container */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 90px; /* Increased gap from 50px to 70px */
  justify-content: center;
  padding: 0 20px;
}


/* Base Service Card Styling */
.service-card {
  max-width: 300px;
  background-color: #2c2c2c; /* Dark grey background */
  color: #f0f0f0; /* Off-white text */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Additional styling for service cards within the About section (if needed) */
.about .service-card {
  /* Inherit the base styles or add extra customizations here */
}

/* Ensure headings and paragraphs inside the service cards inherit the text color */
.service-card h3,
.service-card p {
  color: inherit;
}

/* Service Card Image */
.service-card-img {
  display: block;
  height: 50px;
  margin: 0 auto 20px;
  filter: invert(33%) sepia(7%) saturate(243%) hue-rotate(145deg)
    brightness(94%) contrast(81%);
}

/* Service Card Title */
.service-card-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.089rem + 0.18vw, 1.25rem);
}

/* Service Card Paragraph */
.service-card p {
  font-size: 16px;
  line-height: 1.7;
}

/* Hover Effect */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(158, 158, 158, 0.2);
}

/* Art */
.art {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
}

.art-title {
  text-align: center;
}

.art-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.art-box {
  position: relative;
  overflow: hidden;
  display: block;
  max-width: 510px;
}

.art-box a {
  display: inline-block;
}

.art-box,
.service-card {
  background-color: var(--gray-color); /* This uses #111111 – a very dark gray */
  color: var(--white-color);
  /* If you need a border, you might use a slightly lighter tone: */
  border: 1px solid var(--gray-color-2);
}

.art-box:hover .art-mask {
  opacity: 1;
  visibility: visible;
}

.art-box:hover .art-mask .art-caption {
  bottom: 30px;
  opacity: 1;
}

.art-box:hover .art-img {
  transform: scale(1.1);
  transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
  width: 100%;
}

.art-img {
  transform: scale(1);
  width: 100%;
  transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
}

.art-mask {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7);
  height: 100%;
  position: absolute;
  transition: all 0.5s ease-in-out 0s;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.art-mask p {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-top: 0;
  text-align: left;
}

.art-mask .art-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  padding-left: 30px;
  padding-right: 30px;
  text-align: left;
  transition: all 0.5s ease-in-out 0s;
  opacity: 0;
}

.art-mask p {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 400;
  margin-top: 0;
  text-align: left;
}


/* Footer */
.footer {
  background-color: #000; /* black footer */
  color: #cccccc;         /* light gray text */
}


.footer-row {
  display: flex;
  flex-direction: column;
  column-gap: 20px;
  align-items: center;
  padding: 40px 0;
}

.footer-social {
  margin-top: 0;
}

.footer-social a:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.footer-copyright {
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
}

.response {
  position: fixed;
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  min-width: 280px;
  padding: 20px 40px;
  bottom: -100px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.response.open {
  bottom: 20px;
  opacity: 1;
  visibility: visible;
}

/* "go to top" button */
.goToTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: var(--gray-color);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border-radius: 2px;
  transition: opacity 350ms, visibility 350ms;
}

.goToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: invert(4%) sepia(23%) saturate(2306%) hue-rotate(148deg)
    brightness(91%) contrast(90%);
}

.goToTop img {
  height: 16px;
  width: 16px;
}

.goToTop:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.goToTop.reveal {
  display: block;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
}

/* Preloader with jumping dots */
#preloader {
  position: fixed;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: var(--color-preloader-bg);
  z-index: 3000;
  height: 100vh;
  width: 100vw;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}



.jumping-dots {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  display: inline-block;
}

.jumping-dots > div {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-dots);
  border-radius: 50%;
}

.jumping-dots > div:nth-of-type(1) {
  left: 20px;
}

.jumping-dots > div:nth-of-type(3) {
  left: -20px;
}

.jumping-dots > div {
  animation: jumping-dots 1.2s infinite ease;
  animation-delay: 0.2s;
}

.jumping-dots > div:nth-of-type(1) {
  animation-delay: 0.4s;
}

.jumping-dots > div:nth-of-type(3) {
  animation-delay: 0s;
}

@keyframes jumping-dots {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}


 /* Works Section Styling */
 .works-section {
  background-color: #242424;
  padding: 60px 0;
  text-align: center;
}
    /* Title Styling */
    .works-section h2 {
      font-size: 2.5rem;
      font-weight: bold;
      position: relative;
      display: inline-block;
      margin-bottom: 40px;
    }
    .works-section h2::before {
      content: "";
      position: absolute;
      left: 0;
      bottom: 5px;
      width: 100%;
      height: 15px;
      background-color: #f5d1c2; /* Light peach highlight */
      z-index: -1;
    }


/* Contact */
.contact {
  padding: 3rem 0;
  text-align: center;
  background-color: #2c2c2c;     /* Darkish grey background */
  color: #f0f0f0;
}

.contact-content {
  font-size: clamp(1rem, 0.964rem + 0.18vw, 1.125rem);
  color: var(--supportive-text-color);
  margin: 0 auto 20px;
  margin-top: -20px;
}

.contact form {
  max-width: 1500px;
  margin: 20px auto;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  color: var(--gray-text-color);
  border: 1px solid var(--gray-color-2);
  margin: 7px 0;
}

.contact form .input-box input {
  width: 100%;
}

.contact form textarea {
  resize: none;
}

.contact-button {
  margin-top: 20px;
}

.contact form .input-box input,
.contact form textarea {
  background-color: var(--gray-color-2); /* dark gray background */
  color: var(--white-color);             /* white text */
  border: 1px solid var(--gray-color-3);   /* slightly lighter border for definition */
}






    /* New Two-Column Layout for the Contact Section */
    .contact-container {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      margin-top: 40px;
      justify-content: flex-start; /* Keep everything aligned to the left */
    }
    
    .contact-left {
      flex: 1 1 500px;
      margin-left: -150px; /* Move form further left */
    }
    
    .contact-right {
      flex: 1 1 300px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-left: 0; /* Move platform boxes further right */
      margin-right: -200px;
    }
    
    
/* ===== Platform Box Base Styles ===== */
/* Container for all platform boxes */
.platform-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* Align to the left initially */
  margin-left: 150px; /* Shift boxes to the right */
}


/* ===== Platform Box Base Styles ===== */
.platform-box {
  position: relative;
  background-color: #000; /* Full black background */
  border-radius: 10px;
  padding: 20px 35px;
  overflow: hidden;
  border: 3px solid transparent; /* Placeholder for border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 50px;  /* Increased width */
  min-height: 150px; /* Increased height */
}

/* Animated Gradient Outline (Always On) */
.platform-box::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  z-index: -1;
  border-radius: inherit;
  background-size: 400%;
  /* Default gradient (overridden by platform-specific classes) */
  background-image: linear-gradient(45deg, #fff, #fff, #fff, #fff);
  animation: gradientAnimation 3s linear infinite;
}

/* Flowing Colored Line on Top */
.platform-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #fff, #fff, #fff);
  background-size: 200% auto;
  animation: flowLine 5s linear infinite;
  border-radius: 2px;
}

/* Hover Effect: Slight Scale Up and Enhanced Shadow */
.platform-box:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Keyframes for the Animated Gradient Outline */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Keyframes for the Flowing Top Line */
@keyframes flowLine {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* Layout: Icon on Left, Text on Right with Left-Aligned Text */
.platform-box a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #fff; /* White text */
}

.box-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.icon-container {
  flex-shrink: 0;
  margin-right: 20px;
}

.icon-container svg {
  width: 60px;
  height: 60px;
  fill: currentColor;
}

.text-container {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.text-container .app-name {
  font-size: 1.8rem;  /* Slightly smaller */
  font-weight: bold;
  margin-bottom: 5px;
}

.text-container .app-tagline {
  font-size: 1rem;  /* Reduced font size */
  opacity: 0.8;
}

/* ===== Platform-Specific Gradient Colors ===== */

/* LinkedIn: Blue Gradient */
.linkedin-box::before {
  background-image: linear-gradient(45deg, #0077B5, #00A0DC, #0077B5, #00A0DC);
}
.linkedin-box::after {
  background: linear-gradient(90deg, #0077B5, #00A0DC, #0077B5);
}

/* Spotify: Green Gradient */
.spotify-box::before {
  background-image: linear-gradient(45deg, #1DB954, #1ed760, #1DB954, #1ed760);
}
.spotify-box::after {
  background: linear-gradient(90deg, #1DB954, #1ed760, #1DB954);
}

/* GitHub: Grayscale Gradient */
.github-box::before {
  background-image: linear-gradient(45deg, #333333, #777777, #333333, #777777);
}
.github-box::after {
  background: linear-gradient(90deg, #333333, #777777, #333333);
}

/* Blogs: Blue Gradient (Different Tone) */
.blogs-box::before {
  background-image: linear-gradient(45deg, #007acc, #66afe9, #007acc, #66afe9);
}
.blogs-box::after {
  background: linear-gradient(90deg, #007acc, #66afe9, #007acc);
}

/* Responsive Styles for Contact Section */
@media (max-width: 1200px) {
  .contact-container {
    gap: 20px; /* Reduce spacing */
  }

  .contact-left {
    flex: 1 1 100%;
    margin-left: 0; /* Reset left shift */
  }

  .contact-right {
    flex: 1 1 100%;
    align-items: center; /* Center platform boxes */
    margin-right: 0; /* Reset right shift */
  }

  .platform-boxes {
    justify-content: center; /* Center boxes */
    margin-left: 0;
  }
}

@media (max-width: 992px) {
  .contact {
    padding: 2rem 0;
  }

  .contact form {
    width: 90%;
  }

  .contact-left,
  .contact-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .platform-boxes {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-left,
  .contact-right {
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .contact form .input-box {
    flex-direction: column;
  }

  .contact form .input-box input {
    width: 100%;
  }

  .platform-boxes {
    flex-direction: column;
    align-items: center;
  }

  .platform-box {
    width: 100%;
    max-width: 300px; /* Limit max width */
  }
}

@media (max-width: 480px) {
  .contact form {
    width: 95%;
  }

  .contact form .input-box input,
  .contact form textarea {
    padding: 12px;
    font-size: 14px;
  }

  .platform-box {
    padding: 15px;
  }

  .text-container .app-name {
    font-size: 1.5rem;
  }

  .text-container .app-tagline {
    font-size: 0.9rem;
  }
}





    /* --- Project Grid --- */
 /* Projects Grid Container (Responsive) */
/* Projects Grid Container (Responsive) */


    /* ============================================
       Projects Section
    ============================================ */


    .projects, .projects * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    .projects {
      font-family: Arial, sans-serif;
      background-color: #0a0a0a;
      color: #fff;
      line-height: 1.5;
    }
    .projects .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
    }
    .projects {
      padding: 7rem 0;
      background-color: #1d1c1c;
      text-align: center;
    }
    .projects-title {
      margin-bottom: 2rem;
    }
    .projects-title .title {
      font-size: 2.5rem;
      font-weight: bold;
    }
    .projects-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 30px;
      justify-items: center;
    }

    /* ============================================
       Project Card
    ============================================ */
    .project-box {
      background-color: #1a1a1a;
      border: 2px solid #333;
      border-radius: 12px;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
      width: 100%;
      max-width: 510px;
    }
    .project-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
    }
    .project-img {
      display: block;
      width: 100%;
      height: auto;
      transition: transform 0.3s ease;
    }
    .project-box:hover .project-img {
      transform: scale(1.05);
    }
    .project-details-box {
      background-color: #111;
      padding: 20px;
      border-top: 1px solid #333;
      text-align: left;
    }
    .project-tagline {
      font-size: 0.75rem;
      color: #aaa;
      margin-bottom: 5px;
      text-transform: uppercase;
    }
    .project-name {
      font-size: 1.5rem;
      margin-bottom: 8px;
      color: #fff;
    }
    .project-description {
      font-size: 0.9rem;
      color: #ccc;
      margin-bottom: 15px;
      line-height: 1.3;
      max-height: 2.6em; /* roughly 2 lines */
      overflow: hidden;
    }
    .project-buttons {
      display: flex;
      gap: 15px;
    }
    .project-btn {
      display: inline-flex;
      align-items: center;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.85rem;
      text-decoration: none;
      transition: background 0.3s ease, transform 0.3s ease;
      border: 1px solid transparent;
    }
    .project-btn .btn-icon {
      display: inline-block;
      width: 16px;
      height: 16px;
      margin-right: 6px;
      vertical-align: middle;
    }
    .github-btn {
      background: #24292e;
      color: #fff;
    }
    .github-btn:hover {
      background: #3a3f47;
      transform: scale(1.05);
    }
    .learn-more-btn {
      background: #e63946;
      color: #fff;
    }
    .learn-more-btn:hover {
      background: #d62828;
      transform: scale(1.05);
    }

    /* ============================================
       Responsive Adjustments for Projects Section
    ============================================ */
    @media (max-width: 600px) {
      .projects {
        padding: 4rem 0;
      }
      .projects-title .title {
        font-size: 2rem;
      }
      .project-details-box {
        padding: 15px;
      }
      .project-name {
        font-size: 1.3rem;
      }
      .project-description {
        font-size: 0.8rem;
      }
      .project-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
      }
    }

    /* ============================================
       Modal Styles
    ============================================ */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s ease, visibility 0.4s ease;
      z-index: 1000;
      padding: 20px; /* so modal doesn't stick to screen edges */
    }
    .modal.active {
      opacity: 1;
      visibility: visible;
    }
    .modal-content {
      background: #1a1a1a;
      border-radius: 10px;
      overflow: hidden;
      width: 90%;
      max-width: 800px;
      height: 80vh; /* Fixed overall modal height */
      position: relative;
      animation: modalIn 0.5s ease-out;
      display: flex;
      flex-direction: column;
    }
    @keyframes modalIn {
      from {
        transform: scale(0.8);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }
    /* Close Button in a Box */
    .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #e63946;
      color: #fff;
      border: none;
      font-size: 1.5rem;
      padding: 5px 10px;
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }
    .modal-banner {
      width: 100%;
      overflow: hidden;
    }
    .modal-banner img {
      width: 100%;
      display: block;
      /* Removed max-height so the banner retains its natural size */
    }
    .modal-body {
      padding: 20px;
      color: #fff;
      font-size: 1.1rem;
      flex: 1; /* take up remaining space */
      overflow-y: auto; /* scroll if content overflows */
    }
    .modal-body h2 {
      font-size: 2.2rem;
      margin-bottom: 10px;
    }
    .modal-hashtags {
      margin-bottom: 10px;
    }
    .modal-hashtags .hashtag {
      display: inline-block;
      background: #333;
      color: #fff;
      padding: 3px 8px;
      border-radius: 5px;
      margin-right: 5px;
      font-size: 0.9rem;
    }
    .modal-description {
      font-size: 1.1rem;
      margin-bottom: 10px;
      line-height: 1.5;
    }
    .modal-additional-info {
      font-size: 1.1rem;
      margin-bottom: 10px;
      font-style: italic;
      color: #ccc;
    }
    .modal-overview {
      font-size: 1.1rem;
      margin-bottom: 10px;
    }
    .modal-detail {
      font-size: 1.1rem;
      margin-bottom: 20px;
      line-height: 1.5;
    }
    .modal-buttons {
      text-align: center;
      margin-bottom: 10px;
    }