:root {
  /* --main-color: #00ffee;
  --bg-color: #171d22;
  --card-bg: #262e36;
  --text-color: #ffffff; */
  --text-color: black;
  --main-color: rgb(253, 46, 46);
  --bg-color: #f3f2f2;
  --second-bg-color: #ebebeb;
}

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

body {
  background: var(--second-bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  /* background: rgba(38, 46, 54, 0.8); */
  background: rgba(231, 232, 233, 0.329);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 1000;
}

/* Basic navbar */
.navbar2 {
  display: flex;          
  gap: 20px;
}

/* Hamburger icon */
#menu-icon {
  display: none;          
  font-size: 28px;
  cursor: pointer;
}


.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}
.logo span {
  color: var(--main-color);
}

.logo:hover {
  transform: scale(1.1);
}
.logo span {
  text-shadow: 0 0 15px var(--main-color);
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover,
nav a.active {
  color: var(--main-color);
}

.hero {
  text-align: center;
  padding: 80px 10%;
  /* background: linear-gradient(135deg, #1e252c, #262e36); */
  background: var(--bg-color);
}

.hero span {
    color: var(--main-color);
    font-size: 2.7rem;
}
.hero-content h2 {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 1rem;
  /* color: #cfd6db; */
  color: var(--text-color);
  max-width: 700px;
  margin: auto;
  text-align: left;
}

.hero-content p {
  opacity: 0;                  
  transform: translateY(40px); 
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.hero-content p.show {
  opacity: 1;                 
  transform: translateY(0);    
}

.all {
    position: relative;
    background: var(--second-bg-color);
}

.project-details {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  flex-direction: row;
  gap: 35px;
  padding: 60px 10%;
}
.detail-card {
  width: 280px;
  background: var(--bg-color);
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.detail-card:hover {
  transform: translateY(-6px);
  /* box-shadow: 0 6px 15px rgba(0, 255, 238, 0.2); */
  box-shadow:0 6px 15px rgb(253, 46, 46);
}
.detail-card h3 {
  color: var(--text-color);
  margin-bottom: 10px;
}

.detail-card ul {
  margin: 15px;
}

.gallery {
  padding: 60px 10%;
  text-align: center;
  overflow: hidden;
}
.gallery h3 {
  color: var(--text-color);
  margin-bottom: 20px;
}
.gallery-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.gallery-grid img {
  width: 300px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  /* box-shadow: 0 0 15px rgb(253, 46, 46); */
  box-shadow: 0 0 15px black;
}

.git{
    position: relative;
    justify-content: center;
    text-align: center;
}

.git a {
  padding: 0.6rem 2rem;
  background: var(--text-color);
  box-shadow: 0 0 10px var(--text-color);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--bg-color);
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.git a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--text-color);
}


footer {
  display: grid;
  justify-content: center;      
  align-items: center;          
  gap: 30px;                   
  padding: 20px;
  font-size: 0.9rem;
  color: #ccc;
  border-top: 1px solid #c7d7e8;
  margin-top: 40px;
  background: var(--second-bg-color);
  /* background: linear-gradient(135deg, #ebebeb, #262e36);  */
  flex-wrap: wrap;             
}

.socials {
  text-align: center;
  padding-bottom: 25px;
  color: var(--text-color);
}

.socials a {
  font-size: 25px;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}

.socials a:hover {
  transform: scale(1.2) translateY(-10px);
  background-color: var(--bg-color);
  color: black;
  box-shadow: 0 0 25px var(--text-color);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 20px;                   
}

.footer-item {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;                    
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-item i {
  font-size: 20px;
  color: var(--text-color);
}

.footer-item:hover {
  color: var(--main-color);
  transform: scale(1.05);
}

html {
  scroll-behavior: smooth;
}


/* RESPONSIVE */ 

/* Mobile */
@media screen and (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar2 {
    display: none;              
    flex-direction: column;
    gap: 15px;
    position: absolute;         
    right: 20px;
    background: #171d22;        
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 1000;           
  }

  .navbar2.active {
    display: flex;             
  }

  .navbar2 a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
  }

  /* Header adjustments */
  header {
    padding: 15px 5%;
  }

  /* Hero section */
  .hero {
    padding: 60px 5%;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.95rem;
    max-width: 100%;
    text-align: left;
  }

  /* Project Details */
  .project-details {
    flex-direction: column;
    padding: 40px 5%;
    gap: 25px;
    align-items: center;
  }
  .detail-card {
    width: 100%;
    max-width: 350px;
  }

  /* Gallery */
  .gallery {
    padding: 40px 5%;
  }
  .gallery-grid {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .gallery-grid img {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 15px;
    padding: 20px 5%;
    text-align: center;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }

  /* Navbar links larger on mobile for easier tap */
  .navbar2 a {
    font-size: 18px;
    padding: 8px 0;
  }
}





