* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #f5f5f5; /* Clean light grey background */
  --second-bg-color: #e0e0e0; /* Slightly darker light grey */
  --text-color: #333; /* Dark grey text */
  --main-color: #007bff; /* Primary blue accent */
  --accent-hover: #0056b3; /* Darker blue for hover */
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--second-bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 40px rgba(67, 97, 233, 0.1);
}

#menu-icon {
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  display: none;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.05);
}

span {
  color: var(--main-color); /* Solid blue for logo span */
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background-color: var(--main-color); /* Solid blue button */
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: white;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-weight: bold; /* Make the text bold */
}

.gradient-btn:hover {
  transform: translateY(-3px) scale(1.02); /* Slight lift and grow */
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.4); /* Purple glow on hover */
    background: linear-gradient(135deg, #6610f2 0%, #007bff 100%); /* Reverse gradient */
}

/* Home Section */
.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
  padding: 10rem 10%;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed to flex-start for left alignment */
  text-align: left; /* Changed to left alignment */
  max-width: 600px;
}

.home-content h1 {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1.5rem;
  color: var(--text-color);
}

.home-content h3 {
  margin: 1rem 0;
  font-size: 4rem;
  color: var(--main-color); /* Primary blue */
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 2rem; /* Added margin for spacing */
  color: var(--text-color);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  background: transparent;
  padding: 1rem;
  border: 2px solid var(--main-color); /* Blue border */
  border-radius: 50%;
  color: var(--main-color); /* Blue icon */
  transition: 0.3s ease-in-out;
}
.social-icons {
  display: flex;
  gap: 2rem; /* Add space between the icons */
  margin: 2rem 0; /* Maintain existing margin */
}

.social-icons a:hover {
  background: var(--main-color); /* Blue background on hover */
  color: white;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.home-img img {
  width: 32vw;
  min-width: 300px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgb(35, 31, 80);
  transition: transform 0.3s ease;
}

.home-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px var(--main-color);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem; /* Added margin for spacing */
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color); /* Solid blue button */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: white;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02); /* Slight lift and grow */
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.4); /* Purple glow on hover */
    background: linear-gradient(135deg, #6610f2 0%, #007bff 100%); /* Reverse gradient */
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02); /* Slight lift and grow */
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.4); /* Purple glow on hover */
    background: linear-gradient(135deg, #6610f2 0%, #007bff 100%); /* Reverse gradient */
}
/* Specific fix for the secondary 'My Skills' button to keep it outlined */
.btn-group a:nth-of-type(2) {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
}

.btn-group a:nth-of-type(2):hover {
    background: var(--main-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* About Section - Kept as is, but updating colors */
/* About Section */
.about {
  background: var(--second-bg-color);
  padding: 10rem 15%;
}

.section-title {
  font-size: 5rem;
  text-align: left;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-img {
  flex: 1;
  text-align: center;
}

.about-img img {
  width: 32vw;
  min-width: 300px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  box-shadow: 0 0 25px rgb(35, 31, 80);
}

.about-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px var(--main-color);
  border-color: var(--accent-hover); /* Darker blue border on hover */
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--main-color); /* Primary blue */
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
  color: var(--text-color);
}

.skills-list {
  margin: 2rem 0;
  padding-left: 2rem;
  text-align: left;
}

.skills-list li {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  position: relative;
  list-style-type: none;
  color: var(--text-color);
}

.skills-list li::before {
  content: "•";
  color: var(--main-color); /* Blue bullet point */
  position: absolute;
  left: -1.5rem;
  font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
  }

  .about-img,
  .about-text,
  .section-title {
    text-align: center;
    padding-left: 0;
  }

  .skills-list {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .about {
    padding: 8rem 5%;
  }

  .section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
  }
}
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color); /* Blue scrollbar thumb */
}

::-webkit-scrollbar-track {
  background-color: var(--second-bg-color);
}

.heading {
  text-align: center;
  font-size: 5rem;
  margin: 5rem 0;
  color: var(--text-color);
}

.service {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 5rem 10%;
}

.service h2 {
  color: var(--text-color);
  font-size: 5rem;
  text-align: center; 
  justify-content: center;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
  margin-top: 3rem;
}

.service-box {
  background-color: white; /* White service boxes */
  height: 600px;
  border-radius: 3rem;
  cursor: pointer;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease-in-out;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative; /* For positioning the pseudo-element */
  overflow: hidden; /* Clip the overlay within the box */
}

.service-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 123, 255, 0.15)); /* Subtle blue gradient */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.service-box:hover::after {
  opacity: 1;
}

.service-box:hover {
  background-color: var(ma); /* Keep the background white initially */
  color: var(--text-color); /* Keep text color consistent with white background */
  box-shadow: 0 0 35px var(--main-color);
  transform: translateY(-5px);
 
}

.service-box:hover .service-info i {
  color: var(--main-color); /* Keep icon blue with white background and blue gradient */
}

.service-box:hover .service-info h4 {
  color: var(--text-color); /* Keep heading color consistent */
}

.service-box:hover .service-info p {
  color: var(--text-color); /* Keep paragraph color consistent */
}

.service-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem;
}

.service-info i {
  font-size: 8rem;
  margin-bottom: 2rem;
  color: var(--main-color); /* Blue icon */
  transition: color 0.3s ease-in-out; /* Smooth icon color transition */
}

.service-info h4 {
  font-size: 4rem;
  font-weight: 800;
  margin: 2rem 0;
  color: var(--text-color);
  transition: color 0.3s ease-in-out; /* Smooth heading color transition */
}

.service-info p {
  font-size: 1.4rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--text-color);
  transition: color 0.3s ease-in-out; /* Smooth paragraph color transition */
}

.projects {
  
  background-color: var(--second-bg-color);
}

.projects-box {
  
  padding: 2rem 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  place-items: center;
  gap: 3rem;
  row-gap: 5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 3rem;
  padding: 5rem 2rem;
  gap: 2rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease-in-out;
  height: 500px;
  max-width: 350px;
}
.projects h2{

  margin-top: 20p;
  color: var(--text-color);
  font-size: 5rem;
  text-align: center; 
  justify-content: center;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 35px var(--main-color);
  border-color: var(--main-color); /* Blue border on hover */
}

.project-card img {
  max-width: 250px;
  border-radius: 2rem;
  height: 200px;
  object-fit: cover;
  
  box-shadow: 0 0 35px var(--main-color);
}

.project-card h3 {
  font-size: 3rem;
  color: var(--text-color);
}








/* Home Projects Section Styles */
.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  padding: 2rem 8%;
  place-items: center;
}

.home-project-card {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  max-width: 400px;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.home-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
}

.home-project-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.home-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-project-card:hover .home-project-image {
  transform: scale(1.05);
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 2;
}

.category-ai {
  background: #10b981;
  color: white;
}

.category-design {
  background: #f59e0b;
  color: white;
}

.home-project-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.home-project-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
}

.home-project-description {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.home-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.home-project-tag {
  padding: 0.5rem 1.2rem;
  background: var(--main-color);
  color: white;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.home-project-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.home-project-actions .btn {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  text-align: center;
}

.view-all-projects {
  text-align: center;
  margin-top: 4rem;
  padding: 0 8%;
}

.view-all-projects .btn {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Empty state styling */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.empty-state i {
  font-size: 6rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.8rem;
}









/* Blog Preview Section (Main Page) */
.blog-preview {
  background-color: var(--bg-color);
  padding: 8rem 10% 5rem;
}

.blog-preview .heading {
  margin-bottom: 3rem;
}

.view-all-blogs {
  text-align: center;
  margin-bottom: 5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.blog-card {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
}

.blog-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  padding: 3rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  color: var(--main-color);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  font-size: 2.4rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-excerpt {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.tag {
  background: linear-gradient(135deg, var(--second-bg-color), #d0d0d0);
  padding: 0.7rem 1.8rem;
  border-radius: 2.5rem;
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s ease;
}

.tag:hover {
  background: var(--main-color);
  color: white;
  transform: translateY(-2px);
}

/* Full Blog Page */
.blog-page {
  min-height: 100vh;
  padding-top: 12rem;
}

.blog-admin-controls {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-password {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-password input {
  padding: 1rem 2rem;
  border: 2px solid var(--second-bg-color);
  border-radius: 2rem;
  font-size: 1.5rem;
  min-width: 200px;
}

.admin-password input:focus {
  outline: none;
  border-color: var(--main-color);
}

.admin-controls {
  display: none;
}

.admin-controls.active {
  display: block;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 3rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 800px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: var(--main-color);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--second-bg-color);
  border-radius: 1rem;
  font-size: 1.5rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main-color);
}

.blog-full-content {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-color);
  white-space: pre-wrap;
}

.blog-full-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: #666;
  grid-column: 1/-1;
}

.empty-state i {
  font-size: 8rem;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.empty-state p {
  font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .heading {
    font-size: 3.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  section, .blog-preview {
    padding: 6rem 5% 3rem;
  }
  
  .blog-image {
    height: 220px;
  }
  
  .blog-content {
    padding: 2rem;
  }
  
  .blog-title {
    font-size: 2rem;
  }
  
  .blog-excerpt {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .blog-card {
    border-radius: 1.5rem;
  }
  
  .blog-image {
    height: 200px;
  }
  
  .blog-title {
    font-size: 1.8rem;
  }
  
  .blog-excerpt {
    font-size: 1.4rem;
  }
  
  .tag {
    font-size: 1.1rem;
    padding: 0.5rem 1.3rem;
  }
}




/* --- Contact Section (Updated - Text Above Image) --- */

.contact {
  padding: 80px 20px;
  background: #f0f4f8;
  display: flex;
  justify-content: center; /* Center the container horizontally */
align-items: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Space out image/text and form */
  align-items: flex-start; /* Align items to the start vertically */
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column; /* Stack heading and image vertically */
  align-items: flex-start; /* Align heading and image to the left */
}

.heading {

  color: #222;
  text-align: left; /* Align text to the left */
  margin-bottom: 20px; /* Adjust space between heading and image */
  margin-top: 0;
  margin-left: 40px;
  display:flex; /* Remove default top margin */
}

.heading span {

  color: #007bff;
}

.contact-image {
  border-radius: 0; /* Remove the border radius */
  box-shadow: none; /* Remove the box shadow */
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-top: 30px;
  margin-right: 60px;

}

.contact-image img {
  width: 100%;
  height: auto;
  display: block;
  animation: moveUpDown 3s infinite alternate ease-in-out;
}

.contact-form {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  width: 100%;
  max-width: 600px;
  color: #000;
}

.contact-form .input-group,
.contact-form .input-group-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .input-box {
  flex: 1 1 45%;
}

.contact-form .input-box input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  background: rgba(201, 201, 201, 0.3);
  color: #000;
  font-size: 16px;
  outline: none;
  transition: background 0.3s ease;
}

.contact-form textarea {
  resize: none;
  height: 150px;
}

.contact-form .btn {
  background-color: #007bff;
  color: #fff;
  padding: 14px 0;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background-color: #0056b3;
}

.contact-form ::placeholder {
  color: #333;
}

.contact form .input-group-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@keyframes moveUpDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px); /* Adjust the up/down distance as needed */
  }
}

/* Media query for smaller screens to adjust layout */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column; /* Stack image/text and form */
    align-items: center;
  }

  .contact-info {
    align-items: center; /* Center heading and image */
    margin-bottom: 30px; /* Add space between image/text and form */
  }

  .contact-image {
    max-width: 80%;
  }

  .heading {
    font-size: 30px;
  }
}
.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
  display: flex; /* Enable Flexbox */
  flex-direction: column; /* Stack the social icons and the list vertically */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center the content within each item */
}

.footer .social-icons {
  margin-bottom: 2rem; /* Add some space between the icons and the list */

  display: flex; /* Enable Flexbox for the icons */
  justify-content: center; /* Center the icons horizontally */
  gap: 2rem; /* Add space between the icons */
}

.footer ul {
  font-size: 1.8rem;
  padding: 0;
  margin-bottom: 2rem; /* Add some space between the list and the copyright */
}

.footer ul li {
  display: inline-block;
  margin: 0 1rem;
}

.footer ul li a {
  color: var(--text-color); /* Dark grey text */
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
  text-decoration: none;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
  font-size: 1.6rem;
  margin-top: 2rem;
}

@media (max-width: 1285px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%; /* Initially positioned below the viewport */
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: rgba(222, 227, 241, 0.8);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none; /* Initially hidden */
    transform: translateY(-100%); /* Move it up by its full height */
    transition: transform 0.3s ease-in-out; /* Add a smooth transition */
    z-index: 1000; /* Ensure it's above other content */
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }

  .navbar.active {
    display: block; /* Make it visible */
    transform: translateY(0%); /* Slide it down to its original position */
  }

  .gradient-btn {
    display: none;
  }

  .home {
    flex-direction: column-reverse;
    margin: 5rem 0;
    gap: 5rem;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-img img {
    width: 56vw;
    display: flex;
    justify-content: center;
  }

  .about {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about h2 {
    text-align: center;
    margin: 2rem 0;
  }

  .about img {
    width: 52vw;
  }
}