@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.home-section {
    position: relative;
    background-image: url("/assets/images/DotGrid.png");
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden; /* prevents gradient from overflowing */
}


a {
    text-decoration: none;
}

.section {
    width: 100%;
}

/* gradient layer */
.home-section::before {
    content: "";
    position: absolute;
    bottom: 0; /* stick at bottom */
    left: 30%;
    transform: translateX(-20%);
    width: 120%;
    height: 400px;
    /* background: radial-gradient(circle at center,
        rgba(236, 248, 110, 0.6) 0%,
        rgba(80, 109, 226, 0.3) 20%,
        rgba(255, 255, 68, 0.5) 70%,
        transparent 60%); */
        background: #f7f6f7;
    filter: blur(200px);
    z-index: -1; /* keeps it behind content */
}



nav {
    /* background: rgba(0, 0, 0, 0.8);  */
    background-color: #000000cc;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 40px;
    margin: 40px auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 50%;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 5px 8px 20px rgba(0,0,0,0.3); 
      position: relative;
  z-index: 10;
}

.nav-links a {
    color: #bfbfbf;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-direction: row;
    width: 70%;
    list-style: none;
    justify-content: space-between;
}

.nav-links a:hover {
    color: #fff;
    transition: 0.3s ease;
} 

.resume-btn {
    background-color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.resume-btn a {
    text-decoration: none;
    font-size: 14px;
    color: #000;
}

.resume-btn img {
    width: 20px;
    height: 20px;

}

.resume-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.logo img {
  width: 120px;
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 20;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: rgba(255,255,255, 0.6);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu (hidden by default) */

.mobile-menu-wrapper {
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu {
  flex-direction: column;
  list-style: none;
  padding: 16px 20px;
  border-radius: 20px;
  background: #1d1c1e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: absolute;
  top: 110px;
  width: 70%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;

}

.mobile-menu li {
  margin: 12px 0;
  width: 100%;
  text-align: center;
  background-color: #ffffff0D;
  padding: 10px;
  border-radius: 14px;
}

.mobile-menu a {
  text-decoration: none;
  color: rgba(255,255,255, 0.6);
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: #fff;
}

/* Active state */
.mobile-menu.active {
  max-height: 500px; /* big enough for your menu */
  opacity: 1;
  transform: translateY(0);
}


.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img img {
    border-radius: 50%;
    object-fit:contain ; 
}

.logo-img {
    background-color: #FFE144;
    width: 7rem;
    height: 7rem;
    border-radius: 100%;

}

.home-head {
    max-width: 800px;
    text-align: center;
    margin: 40px 0;
}

.home-head h1 {
    font-size: 64px;
    font-weight: 400;
    line-height: 110%;
    color: #999999;
}

.home-head h1 span {
    color: #000;
}

.home-head p span {
    
    font-weight: 500;
    color: #111010;
}

.home-head p {
    color: #5E5B5B;
    font-size: 20px;
    line-height: 180%;
    font-weight: thin;
    padding: 30px 1rem;
}

.home-cta {
    width: 100%;
    display: flex;
    justify-content: center;
}


.hover-cards {
    display: flex;
    flex-direction: row;
    width: 1000px;
    align-items: center;
    justify-content: space-between;
    margin-top: 0px;
}

.card {
    cursor: grab;
    text-transform: uppercase;
    position: relative;
    width: 230px;
    height: 200px;
    border-top-right-radius: 20px ;
    border-top-left-radius: 20px ;
    padding: 15px 15px;
    box-shadow: -4px 4px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.card-1:hover {
    transform: rotate(-5deg) translateY(30px);
    transition: 0.4s ease-in-out;
}
.card-2:hover {
    transform: rotate(5deg) translateY(20px);
    transition: 0.4s ease-in-out;
}
.card-3:hover {
    transform: rotate(5deg) translateY(20px);
    transition: 0.4s ease-in-out;
}
.card-4:hover {
    transform: rotate(-5deg) translateY(15px);
    transition: 0.4s ease-in-out;
}

.card p {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.card-1 {
    background-color: rgb(236, 248, 110);
    transform: rotate(-5deg) translateY(80px);
}

.card-2 {
    background-color: #000;
    color: #999999;
    transform: rotate(5deg) translateY(70px);
}

.card-3 {
    background-color: rgb(80, 109, 226);
    transform: translateY(40px);
    color: #fff;
}

.card-4 {
    background-color: rgb(255, 225, 68);
    transform: rotate(-10deg) translateY(70px);
}

/* WORK SECTION */


    .work-section {
    position: relative;
    background-color: #181818;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    padding: 80px 20px; 
}

.work-section h1 {
    color: #fff;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 5rem;
    width: 100%;
    max-width: 1400px;
}

.projects-filter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scrolls {
    display: flex;
    gap: 10px;
}

.project-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* allow JS to scroll */
  overflow-y: hidden;
  padding: 20px 0;
  width: max-content;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  will-change: transform;
}



.project-subhead {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.6;
}

.project-head {
    font-size: 24px;
    color: #fff;
    opacity: 0.8;
    font-weight: 400;
}

.project-cards-wrapper {
    width: 100%;
    overflow: hidden;
}


.project-card {
    position: relative;
    flex: 0 0 300px; /* Fixed width for consistent sizing */
    min-width: 280px; /* ensures visibility on small screens */
    background-image: url();
    background-size: cover;
    background-position: center;
    padding: 20px 30px;
    height: 32em;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .4s;
    scroll-snap-align: start;
    margin-right: 20px;
    background: rgba(217, 217, 217, 0.58);
  box-shadow: 12px 17px 51px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.project-card:hover {
    filter: brightness(0.6);
}

.project-card img:hover{
        scale: 1.25;
        transition: 0.3s ease-in-out;
        transform: rotate(45deg);
    }

.project-redirect-wrapper {
    display: flex;
    flex-direction: row-reverse;
}

.project-redirect {
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: #181818;
    border-radius: 50%;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.project-tag {
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    text-transform: uppercase;
    background-color: #444;
    color: #bfbfbf;
    cursor: pointer;
}
/* .project-tag:hover {
    background-color: #fff;
    transition: .4s ease-in;
} */
.project-tag.active {
    background: #bfbfbf;
    color: #000;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .project-card {
        flex: 0 0 280px; /* Fixed width on tablets */
        min-width: 260px;
    }
}

@media (max-width: 600px) {
    .project-card {
        flex: 0 0 260px; /* Smaller cards on mobile */
        min-width: 240px;
        height: 28em;
    }
}


/* RESOURCES SECTION */

.resources {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f7f6f7;
    align-items: center;
    padding: 100px 0px;

}

.section-head {
    font-size: 20px;
    font-weight: 400;
    border: 1px solid #d9d9d9;
    padding: 5px 15px;
    border-radius: 40px;
}


.downloadable-resources {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    background-color: #181818;
    border-radius: 40px;
    padding: 100px 80px;
    
}


.coming-soon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
    width: 90%;
}



/* Overlay styling */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
    width: 100%;
    height: 100%;
  backdrop-filter: blur(6px);   
  background: rgba(0, 0, 0, 0.4); 
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.overlay span {
  font-size: 2.5rem;
  text-align: center;
  font-weight: 400;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
}


.resource {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #fff;
    align-items: center;
    padding: 0 10px;
}

.resource h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 400;
}

.resource p {
    font-size: 16px;
    color: #999999;
    font-weight: 400;
}

.download-btn {
    display: flex;
    flex-direction: row;
    align-items: center; 
}

.download-btn img {
    width: 25px;
    height: 25px;
    fill: #fff;
    stroke: #fff;
}

.about-section {
    height: fit-content;
    padding: 100px 150px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-body {
    width: 65%;
    font-size: 18px;
    color: #999999;
    text-align: center;
    padding: 30px 0;
    font-weight: 400;
}


.section-body span {
        font-weight: 500;
        color: #f7f6f7;
}

.about {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 100px 0;
    gap: 50px;
    width: 100%;
}

.about p {
    font-size: 20px;
    padding: 1rem;
    font-weight: 400;
    color: #5E5B5B;
    text-align: left;
}

.about p span {
    font-weight: 500;
    color: #000;
}

.about img {
    width: 100%;
    height: 25rem;
    border-radius: 10px;
    object-fit: cover;
    transform: translateY(10px);
}

.testimonials {
display: flex;
flex-direction: row;
gap: 20px;
width: max-content;
align-items: flex-end;
  animation: scroll-left 60s linear infinite;
}



.more-text {
    display: none;
}

.testimonial-header {
    font-size: 42px;
    font-weight: 500;
    padding: 50px 0;
    text-align: center;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Pause on hover */
.testimonials:hover {
  animation-play-state: paused;
}

.testimonials-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.testimonial-card {
    height: fit-content;
    margin-bottom: 20px;
    border-radius: 16px;
    display: flex;
    width: 500px;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
    padding: 40px;
    color: #0000008e;
      animation: scrollCards 10s linear infinite;
}

@keyframes scrollCards {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* adjust depending on total width */
  }
}

.read-more-btn {
    cursor: pointer;
}

.person-profile {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.testimonial-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-card p {
    font-size: 16px;
    font-weight: 500;
}

.testimonial-card h3 {
    font-size: 14px;
    font-weight: 600;
}

.testimonial-card-1 {
    background-color: #ECF86E;

    button, .dots {
        color: #000;
        opacity: 0.9;
    }
}

.testimonial-card-2 {
    background-color: #FFE144;

        button, .dots {
        color: #000;
        opacity: 0.9;
    }
}

.testimonial-card-3 {
    background-color: #000;
    color: #9BA1A6;


        button, .dots {
        color: #fff;
        opacity: 0.9;
    }
}

.testimonial-card-4 {
    background-color: #506DE2;
}

.cssbuttons-io-button {
  background:#444;
  color: white;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 16px;
  font-weight: 500;
  border-radius: 1.5em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em #1c1b1c;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 1.7em;
  box-shadow: 0.1em 0.1em 0.6em 0.2em #1d1c1e;
  right: 0.3em;
  transition: all 0.3s;
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: #444;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.95);
}


    @keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fadeIn {
  animation: fadeIn 0.25s ease-out;
}



    #copyBtn svg {
        width: 20px;
        height: auto;
        background-color: transparent;
    }



    footer {
        
        display: flex;
        flex-direction: column;
        padding: 100px 80px;
        border-radius: 20px;
        margin: 0 10px 10px;
        gap: 80px;
        justify-content: center;
        background-color: rgb(25,25,25);
        transform: translateY(30px);
        /* background-color: #5371f5d9; */
    }

    footer a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.6);
    }

    footer h1 {
        color: #fff;
    }

    footer p {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.6);
    }

    .left-sub-footer {
        display: flex;
        width: 25%;
        flex-direction: column;
        gap: 10px;
    }

    .mid-sub-footer {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .right-sub-footer {
        display: flex;
        justify-content: flex-end;
        flex-direction: row;
        gap: 1rem;
        width: 25%;
        text-align: right;
        font-size: 16px;
        font-weight: 400;
    }

    .right-sub-footer a:hover {
        color: #fff;
        transition: .3s ease-in;
    }

    .page-route {
        display: flex;
        flex-direction: column;
        gap: 30px;

    }

    .footer-social-links {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    
    .footer-main-div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .credits {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 20px;
        border-top: 1px solid #ffffff3b;
    }

    .bottom-tagline {
        position: absolute;
        bottom: -45%; /* push it halfway below the container */
        font-size: 110px;
        color: #fff;
        padding: 10px 20px;
        font-weight: 900;
        width: 100%;
        letter-spacing: -5px;
        text-align: center;
        transition: bottom 0.3s ease;
    }




    @media screen and (max-width: 1279px) {

        .about-section {
            height: fit-content;
            padding: 100px 50px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .about {
            display: flex;
            flex-direction: column-reverse;
            align-items: center;
            gap: 30px;
            justify-content: flex-end;
            padding: 30px 0 50px;            
        }

        .about p {
            text-align: center;
            font-size: 20px;
        }



    
        footer {
            margin: 10px 45px;
            padding: 100px 40px;
        }

        footer h1 {
            font-size: 28px;
        }

        .right-sub-footer {
            font-size: 14px;
        }

        .credits p {
            font-size: 12px;
        }

    }

/* For tablet screens */
@media screen and (max-width: 1023px) {
        
    nav {
        border-radius: 20px;
        padding: 15px 24px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        width: 70%;
        font-size: 12px;
    }

    

    .contact-section {
        padding: 1rem;
    }

    .section-body {
        width: 85%;
    }

.resume-btn {
    border-radius: 8px;
    padding: 6px 14px;
    gap: 10px;
}

.resume-btn a {
    font-size: 12px;
}

    .home-head h1 {
        font-size: 42px;
        padding: 0 150px;

    }

    .home-content {
        height: 100%;
    }

        .about img {
        width: 200px;
        border-radius: 50%;
        height: 200px;
    }

    .home-section {
        height: 100vh;
        gap: 30px;
        justify-content: start;
    }



    .home-cta {
        margin-top: 40px;
    }

    .hover-cards {
    position: relative;
    width: 300px;
    height: 350px;
    bottom: 0;
    margin-top: 0px;
}

.card {
    text-transform: uppercase;
    position: absolute;
    width: 230px;
    height: 100%;
    border-top-right-radius: 20px ;
    border-top-left-radius: 20px ;
    padding: 15px 15px;
    box-shadow: -4px 4px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.card:nth-child(1) { top: 4rem; left: 2rem; z-index: 3; }
.card:nth-child(2) { top: 7rem; left: -7rem; z-index: 2; ;transform: rotate(-10deg);}
.card:nth-child(3) { top: 1rem; left: 50px; }
.card:nth-child(4) { top: 8rem; left: 200px; transform: rotate(15deg);}

.card-1:hover {
    transform: rotate(-5deg) translateY(10px);
    transition: 0.4s ease-in-out;
}
.card-2:hover {
    transform: rotate(-15deg) translateY(-10px);
    transition: 0.4s ease-in-out;
}
.card-3:hover {
    transform: translateY(5px);
    transition: 0.4s ease-in-out;
}
.card-4:hover {
    transform: rotate(10deg) translateY(15px);
    transition: 0.4s ease-in-out;
}

footer {
    margin: 1rem;
}

    }

    /* for mobile screens */

@media screen and (max-width: 500px) {


    navbar {
        height: 40px;        
    }

        .home-head h1 {
        font-size: 24px;
        padding: 0 3rem;
        margin: 0;
    }


    


        .home-head p {
        font-size: 1rem;
        padding: 50px 20px 0;
    }

      .home-cta {
    font-size: 12px;
    margin: 20px 0;
  }

}

@media screen and (max-width: 767px) {


      .nav-links {
    display: none;
  }

  .navbar {
    padding: 20px;
    display: flex;
    height: 40px;
    justify-content: flex-end;
    margin: 30px 0 0;
  }




  .home-head p {
    padding: 2rem 2rem 0;
  }

  .home-head {
    margin: 1rem 0 0;
  }

  .resume-btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .work-section, .resources {
    height: fit-content;
  }

    .hover-cards {
        position: relative;
        width: 200px;
        height: 350px;
        bottom: 0;
        margin-top: 0px;
    }

    .overlay span {
        font-size: 1.4rem;
    }

    .section-body {
        font-size: 16px;
    }

    .about-section {
        padding: 100px 10px;
    }

    .about p {
        font-size: 14px;
    }



    .testimonial-card {
        padding: 2rem 1rem;
        width: 250px;
        
    }


    .card {
        text-transform: uppercase;
        position: absolute;
        width: 150px;
        height: 100%;
        border-top-right-radius: 20px ;
        border-top-left-radius: 20px ;
        padding: 15px 15px;
        box-shadow: -4px 4px 4px 4px rgba(0, 0, 0, 0.25);
        z-index: 0;
    }

    .card p {
        font-size: 10px;
    }

    .card img {
        width: 20px;
        height: inherit;
    }

    .card:nth-child(1) { top: 1rem; left: 1rem; z-index: 3; }
    .card:nth-child(2) { top: 3rem; left: -4rem; transform: rotate(-15deg);}
    .card:nth-child(4) { top: 3rem; left: 7rem; }
    .card:nth-child(3) { top: -1rem; left: 20px; transform: rotate(0deg);}


    footer {
        margin: 10px;;
        align-items: center;
        justify-content: center;
    }

    .footer-main-div {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 50px;
    }

    .left-sub-footer {
        text-align: center;
        align-items: center;
        
    }

    .left-sub-footer h1 {
        font-size: 28px;
    }

    .right-sub-footer {
        justify-content: space-between;
        width: 100%;
    }

    .credits {
        width: 100%;
        align-items: center;
        gap: 1em;
        display: flex;
        flex-direction: column;
    }

    .projects-container {
        padding: 0 1rem;
    }
    
    .project-cards-wrapper {
        width: auto; /* Natural width for mobile experience */
    }
    
    .project-card {
        flex: 0 0 240px; /* Smaller cards on mobile */
        min-width: 220px;
        height: 26em;
    }
    
    /* Additional mobile optimizations */
    .project-cards {
        -webkit-overflow-scrolling: auto; /* Disable momentum scrolling */
        overscroll-behavior: none; /* Prevent overscroll bounce */
    }
    
    .project-cards-wrapper {
        transform: translateZ(0) translateX(0); /* Force hardware acceleration */
    }

}