@import url("https://fonts.cdnfonts.com/css/poppins");


:root {
  --light-yellow: #F9F6EE;
  --bg-color: #0d0d0d;
  --nav-scroll: #111111d3;
  --nav-menu-li: #bbbbbbcb;
  --span-highlight: #f40000;
  --nav-menu-active: #000000f0;
  --col-span: #9a9a9a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color:var(--bg-color);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 4rem;
  z-index: 999;
  background: none;
  transition: background-color box-shadow 0.4s ease-in-out;
}

nav.scrolled {
  background-color: #111111d3;
  box-shadow: rgba(56, 56, 57, 0.2) 0px 7px 29px 0px;
  opacity: 2.5;
}

.logo {
  display: flex;
  align-items: center;
  animation: Anim 2s forwards linear;
}

.logo img {
  width: 30%;
  transition: all 0.2s ease-in-out;
}

.logo img:hover {
  transform: scale(1.2);
}

.logo a {
  padding: 0;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.nav-menu li a {
  text-decoration: none;
  list-style: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all ease 0.5s;
}

.nav-menu li a {
  background: none;
  color: var(--light-yellow); /* Default color is white */
  background-size: 200% 100%;
  background-position: -100%;
  display: inline-block;
  padding: 5px 0;
  position: relative;
}

.nav-menu li a:before {
  content: "";
  background: var(--light-yellow);
  display: block;
  position: absolute;
  top: 90%;
  left: 0;
  width: 0;
  height: 1px;
  transition: all 0.3s ease-in-out;
}

.nav-menu li a:hover {
  background-position: 0;
  color: var(--light-yellow);
}

/* Set the non-hovered items to gray */
.nav-menu li a.non-hovered {
  color: #bbbbbbcb;
}

.nav-menu li a:hover::before {
  width: 100%;
}

.nav-link {
  margin-left: 3rem;
}

.nav-logo {
  font-size: 2.1rem;
  font-weight: 500;
  color: #482ff7;
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--light-yellow);
}

.banner {
  background-color: #121212;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  /* border-bottom: 1px solid #3d3d3d; */
}

.container {
  display: flex;
  flex: 1;
  align-items: center;
  position: relative;
  padding: 14rem 4rem 6rem 4rem;
  height: 50vh;
  max-width: none !important;
  z-index: 2;
  overflow: hidden;
}

.col {
  display: grid;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.col span {
  text-align: center;
  color: #f40000;
}

.col h1 {
  margin-bottom: 40px;
  text-align: center;
  font-size: 95px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--light-yellow);
  line-height: 0.9;
  text-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
}


.col p {
    margin-bottom: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.8em;
    color: var(--light-yellow);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
  }



/*Mobile responsive styles*/

/* Tablet Styles */
@media (max-width: 768px) {
  .container {
    padding: 18rem 2rem 8rem 2rem;
    max-width: none;
    height: 30vh;
  }

  .col h1 {
    font-size: 70px;
  }

  .col p {
    font-size: 16px;
  }

  nav {
    padding: 3rem 1rem;
  }

  .nav-menu li a {
    font-size: 38px;
    font-weight: 600;
  }

  .nav-logo {
    font-size: 1.8rem;
  }

  .logo img {
    width: 30%;
  }

  .banner {
    background-position: 40% center;
    height: 100%;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 5;
    right: 35px;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: -100%;
    flex-direction: column;
    background-color: #000000f0;
    height: 100vh;
    width: 100%;
    text-align: center;
    overflow: hidden;
    display: block;
    align-content: center;
    transition: top 0.6s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }

  li a {
    color: #bfbfbf;
    font-size: 16px;
  }

  .nav-menu.active {
    left: 0;
    top: 0;
    padding: 4rem 0;
  }

  .nav-link {
    margin: 1.2rem 0;
  }

  li {
    margin: 2.6rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 5;
    right: 35px;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 18rem 3rem 8rem 3rem !important;
    max-width: none;
    height: 30vh;
  }

  .banner {
    background-position: 35% center;
    height: 100%;
  }

  .col h1 {
    font-size: 60px;
  }

  .col p {
    font-size: 14px;
    font-weight: 500;
  }

  .nav-menu li a {
    font-size: 38px;
    font-weight: 600;
  }

  .nav-logo {
    font-size: 1.6rem;
  }

  .logo img {
    width: 30%;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: -100%;
    flex-direction: column;
    background-color: #000000f0;
    height: 100vh;
    width: 100%;
    text-align: center;
    display: block;
    align-content: center;
    transition: top 0.6s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }

  li {
    margin: 2.6rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 5;
    right: 35px;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}


/*Project styling starts*/
.projects {
  width: 100%;
  padding: 8rem 4rem 4rem 4rem;
  display: flex;
  justify-content: center;
}

.projects h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  line-height: 1.5em;
  margin-bottom: 60px;
  color: var(--light-yellow);
}


.gallery {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.content {
  max-width: 1200px;
  width: 100%;
}

.project-title {
  font-size: 16px;
  font-weight: 400;
  color: white;
  margin-top: 8px;
  text-align: left;
  width: 100%;
  padding-left: 4px;
}


.filter-item li a {
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}


.project-list.hide {
  display: none !important;
}


.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.7);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}


/* View Button */
.view-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 100%;
  padding: 30px 24px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-button:hover {
  background-color: #0056b3;
}

/* Show overlay + button on hover */
.project-list:hover .project-overlay {
  opacity: 1;
}

.project-list:hover .view-button {
  opacity: 1;
  transform: translateY(0);
}



/*  Filter Wrapper & Toggle Starts */
.filter-wrapper {
  position: relative;
  display: flex;
  justify-content: right;
  align-items: center;
  text-align: right;
  margin-bottom: 24px;
  overflow: hidden;
}

.filter-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 24px;
  transition: color 0.3s ease;
  display: none; /* Hidden by default */
}

.filter-toggle .icon {
  display: inline-block;
  transition: color 0.5s ease;
}
/*  Filter Wrapper & Toggle Ends */


/*  Filter Menu Starts */
 .filter-menu { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 14px 30px; 
  padding: 0; 
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out; 
  opacity: 1; 
  visibility: visible; 
  position: static; 
  white-space: nowrap; 
}

/* Show when active */
.filter-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}


.filter-menu li {
  cursor: pointer;
  color: white;
}

.filter-menu li:hover,
.filter-menu li.current {
  color: #f40000;
}

/* States */
.filter-menu.fade-out {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
}


.filter-menu:not(.active) {
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease, visibility 0s 0.5s;
}
/*  Filter Menu Ends */


/*  Filter Items Starts  */
.filter-item {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  justify-content: flex-start;
  width: 100%;
}

.filter-item li {
  width: 100%;
  max-width: 380px; /* Adjust as needed */
  aspect-ratio: 5 / 7; /* Maintains consistent shape */
  overflow: hidden;
  padding: 30px 20px;
  background-color: #333;
  margin: 1rem 0;
  box-sizing: border-box;
  border-radius: 2px;
  flex: 1 1 calc(33.33% - 30px); /* 3 items per row with spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease; 
  flex-direction: column;
  align-items: flex-start; /* Align content to the left */
  position: relative;
}

.filter-item li img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover; /* Ensures images fill the space without distortion */
  object-position: top;
  display: block;
}

.filter-item li.active {
  width: 50%;
  opacity: 1;
  transform: translate3d(0px, 0px, 0px);
  transition: all 0.4s ease-in-out;
}

.filter-item li.hide {
  display: none !important;
  opacity: 0;
  transform: translate3d(0px, 50px, 0px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
/*  Filter Items Ends  */



/* Theme Image Hover Starts */
.image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}


.base-image,
.hover-image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.hover-image {
  position: absolute;
  top: 0;
  left: 100%;
}

.slide-hover:hover .hover-image {
  transform: translateX(-100%);
}

.slide-hover:hover .base-image {
  transform: translateX(-100%);
}
/* Theme Image Hover ends */



/*  Pagination Starts */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 16px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.2s;
}

.pagination button:hover:not(.active):not(.disabled) {
  background-color: #555;
  transform: translateY(-2px);
}

.pagination button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 4px;
  background-color: #444;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.page-btn:hover {
  background-color: #666;
}

.page-btn.active {
  background-color: #f40000;
  color: #fff;
  font-weight: bold;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/*  Pagination Ends*/



/* Responsive Styling */
/* Desktop only */
@media (min-width: 769px) {
  .filter-toggle {
    display: block;
  }

  .filter-menu {
    position: absolute;
    top: 0;
    right: 50px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    flex-direction: row;
    border-radius: 5px;
    padding: 5px;
    background: transparent;
  }

  .filter-menu.active {
    transform: translateX(-5%);
    opacity: 1;
    visibility: visible;
  }
}

/* Tablet */
@media screen and (max-width: 768px) {
  .filter-item li {
    aspect-ratio: 0;
  }

.filter-item{
  display: flex;
  justify-content: center;
}

.filter-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
    transform: none;
  }

  .filter-toggle {
    display: none !important;
  }


  .filter-wrapper {
    justify-content: center;
  }


  .filter-menu li {
    margin: 5px 0;
  }

  .filter-item li {
    flex: 1 1 calc(50% - 16px);
    margin: 1.2rem 0;
    padding: 0;
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .filter-item li {
    flex: 1 1 calc(100% - 16px);
    aspect-ratio: 0;
  }
}


/* More Projects Section Starts */
.more-projects {
  padding: 6rem 20px;
  color: #fff;
}

.more-projects .content {
  max-width: 1000px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
}

.more-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.more-project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #313131;
  border-radius: 12px;
  padding: 20px 30px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.more-project-item:hover {
  transform: translateY(-4px);
  border-color: #383838;
  background: #383838; 
}

.more-project-info {
  max-width: 70%;
}

.project-name {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 6px;
  color:var(--light-yellow) ;
}

.tech-stack {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.tech-stack i {
  color: #e6e6e6;
  margin-right: 4px;
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid --light-yellow;
  padding: 8px 14px;
  border-radius: 50px;
  color: var(--light-yellow);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-action:hover {
  background: #007bff;
  color: #fff;
  transform: translateX(4px);
}

.project-action i {
  transition: transform 0.3s ease;
}

.project-action:hover i {
  transform: translateX(4px);
}

/* Responsive layout */
@media (max-width: 640px) {
  .more-project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .project-action {
    align-self: flex-end;
  }

  .more-project-info {
    max-width: 100%;
  }
}

@media (max-width: 769px) {
  .more-project-item{
    margin: 0.95rem 0;
  }
}
/* More Projects Section Ends */



/* Styling for footer*/

.footer {
  color: #fff;
  padding: 6rem 4rem 2.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  background-color:var(--bg-color);
}

.content {
  max-width: 1200px;
  width: 100%;
}

.top-row {
  margin-bottom: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.text {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.text img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--light-yellow);
}

.top-row h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 600;
  color: var(--light-yellow);
}

.rotating-text-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.rotating-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rotating-text img {
  min-width: 120%;
  height: auto;
  object-fit: contain;
  animation: rotateImage 20s linear infinite;
}

@keyframes rotateImage {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating-arrow {
  position: absolute;
  font-size: 4rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.rotating-arrow:hover {
  transform: rotate(360deg);
}

/* Bottom row */
.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid #444;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-info, .get-in-touch {
  flex: 1 1 300px;
}

.footer-info {
  text-align: left;
}

.get-in-touch {
  text-align: right;
}

.get-in-touch h4 {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 24px;
  color: var(--light-yellow);
}

.footer-info p {
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 300;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #f9f6ee; 
  font-size: 1.2rem; 
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%; 
  background-color: rgba(255, 255, 255, 0.1); 
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: var(--light-yellow);
  color: #121212; 
  transform: scale(1.1); 
}

.get-in-touch a, .contact-button {
  position: relative;
  display: inline-block;
  color: #fff;
  background-color: transparent;
  border: 1px solid var(--light-yellow);
  font-size: 0.85rem;
  padding: 16px 24px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.get-in-touch a::before, .contact-button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--light-yellow);
  transition: height 0.3s ease;
  z-index: -1;
}

.get-in-touch a:hover, .contact-button:hover {
  color: #383838;
}

.get-in-touch a:hover::before, .contact-button:hover::before {
  height: 100%;
}


.details {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 1220px) {
  .text {
    justify-content: center;
  }
}

@media (max-width: 928px) {
  .top-row {
    justify-content: center;
  }
}



@media (max-width: 768px) {
  .footer {
    padding: 4rem 3rem 2rem 3rem;
  }

  .bottom-row {
    flex-direction: column-reverse;
    align-items: center;
  }
  
  .footer-info, .get-in-touch {
    text-align: center;
    flex: 1 1 0px ;
    margin-top: 24px;
  }

  .social-icons {
    justify-content: center;
  }

  .details {
    justify-content: center;
  }

  .rotating-text-container {
    width: 150px;
    height: 150px;
  }

  .rotating-text {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 3rem 2rem 1.5rem 2rem;
  }

  .top-row {
    gap: 20px;
  }

  .text img {
    width: 60px;
    height: 60px;
  }

  .rotating-text-container {
    width: 120px;
    height: 120px;
  }

  .rotating-arrow{
    font-size: 2.5rem;
  }

  .details {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

@media (max-width: 320px) {
  .footer {
    padding: 2rem 0.5rem 1rem;
  }

  .rotating-text-container {
    width: 100px;
    height: 100px;
  }

  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }
}




