*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: sa;
  background-color: #222222;
}

html{
  scroll-behavior: smooth;
}
/*nav*/
.main-nav{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px;
  top: 0;
  z-index: 1000;
  background-color: #2a2a2a;
  


}



#iconClose:hover{
  color: orange;
  transform: rotate(10deg);
}

#iconOpen:hover{
  transition: all 5s ease-in-out;
}

#iconOpen,
#iconClose,
.iconCart {
    padding: 20px;
}

.hide {
    display: none;
}

@media screen and (min-width: 900px) {

  /* desktop  */
  #iconOpen,
  #iconClose,
  .iconCart {
      display: none;
  }

  /* will show the links on desktop */
  .hide {
      display: block;
  }


}

@media screen and (min-width: 500px){
  #iconOpen,
  #iconClose{
    position: relative;
    font-size: 30px;
  }

  .dropdown{
    display: block;
  }
}

@media screen and (min-width: 700px){
  #iconOpen,
  #iconClose{
    position: relative;
    font-size: 30px;
  }

}

li{
  color: white;
  list-style-type: none;
}

.left-links{
  display: flex;
  align-items: center;
  gap: 10px; /* space between items */
}


.links{
  text-decoration: none;
  color: rgb(255, 250, 250);
  margin: 20px;
  font-size: 20px;
}

.links:last-child{
  margin-right: 0;
}


.links:hover{
  color: rgb(117, 93, 109);
}

/* responsive size */
@media (max-width: 768px) {
  .main-nav{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-links{
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .links{
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
  }

  .portfolio-link{
    font-size: 1.8em;
  }

}

.right-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo img {
  max-height: 60px;
  width: auto;
}



/* about page */


/*Resume*/
.resume-button{
  display: inline-block;
  padding: 12px 24px;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.resume-button:hover{
  background-color: #ddd;
  transform: translateY(-2px);
}

/*Resume*/


@media (min-width: 769px) and (max-width: 1024px){
  .main-nav{
    padding: 20px;
  }

  .links{
    font-size: 1.1em;
    margin-right: 15px;
  }

  .portfolio-link{
    font-size: 1.6em;
  }
}
/*nav*/

/*dropdown*/
.dropdown{
  position: relative;
  display: inline-block;
}

.dropbtn{
  color: white;
  background-color: #2a2a2a;
  padding: 10px 16px;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

.dropdown-content, .sub-dropdown-content{
  display: none;
  position: absolute;
  background-color: white;
  min-height: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  width: 150px;
  z-index: 1;
}

.dropdown-content a,
.sub-dropdown-content a{
  color: black;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover,
.sub-dropdown-content a:hover {
  background-color: #ddd;
}

/*Nesting postion*/
.sub-dropdown{
  position: relative;
}

.sub-dropdown-content{
  position: absolute;
  left: 100%;
  top: 0;
}


.dropdown:hover .dropdown-content{
  display: block;
}

.sub-dropdown:hover .sub-dropdown-content{
  display: block;
}

.dropdown-content,
.sub-dropdown-content {
  z-index: 999;
}
/*dropdown*/




/*second page*/

.container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
  height: 500px;
}

.container2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}


.main-text{
 font-size: 2.5em;
 color: #ffffff; 
 margin-bottom: 15px;


}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-text{
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 20px;
  padding: 20px;
}

.social-icons {
  margin-bottom: 20px;
}

.social-icons a {
  margin: 0 15px;
  color: white;
  font-size: 28px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #3ba38e;
  transform: scale(1.1);
}



.scroll-down{
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 2em;
color: #ffffff;
text-decoration: none;
cursor: pointer;
transition: transform 0.3s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 60%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40%{
    transform: translateY(-25pc) translateY(-50%);
  }
  60%{
    transform: translateY(-12) translateX(-50%);
  }
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

/*third page*/

.fade-section{
  position: relative;
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

#hero{
  z-index: 2;
}
#projects{
  z-index: 1;
}

.fade-out{
  opacity: 0;
  transform: translateY(-50px);
  pointer-events: none;

}

.vector {
  width: 100%;
  height: 100px;
}
.project-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px;
  max-width: 13300px;
  width: 90%;

}

.project-box{
  position: relative;
  height: 400px;
  background-color: #ddd;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0;
}

@keyframes appear{
  from{
    opacity: 0;
    scale: 0.5;
  }to {
    opacity: 1;
    scale: 1;
  }
}

.project-box:hover{
  transform: translateY(-5px);
}

.project-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;

}


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

.project-box:hover .project-overlay{
  opacity: 1;
}

.project-title{
  font-size: 1.5em;
  margin-bottom: 5px;
}

.project-date{
  font-size: 1.2em;
}



@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .container{
    padding-bottom: 80px;
  }
}

.contact-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  font-size: 1em;
}

.contact-form button {
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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



/* Mobile-friendly styles */
@media (max-width: 768px) {
  .container {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0 15px;
 
  }

  .project-grid {
    row-gap: 30px; /* vertical gap between cards */
  }

  .contact-form {
    margin-top: 40px;
  }
}

/*AI Page*/

.illustration-section{
  padding: 60px 20px;
  background: #b5bdc8;
  text-align: center;
}

.illustration-section h1{
  font-size: 3rem;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
}

.illustration-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.illustration-card{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transform: scale(1);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.illustration-card:hover{
  transform: scale(1.03s);
}

.illustration-card img{
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
  margin: auto;
}

.illustration-card:hover img{
  filter: brightness(60%);
}

.overlay{
  position: absolute;
  bottom: 0%;
  background: rgba(0,0,0,0.1);
  color: #fff;
  width: 100%;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.illustration-card:hover .overlay{
  transform: translateY(0);
}

.overlay h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
}

.overlay p{
  font-size: 0.95rem;
  margin-top: 10px;
  color: #000000;
}


/*AI Page*/

/* Web Page*/


.video-card{
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  
}

.hover-video{
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
  border-radius: 12px;

}

.hover-second{
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
  border-radius: 12px;
  
}

.clickme{
  display: flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: white;
  align-items: center;
}
.clickme:hover{
  color: #007bff;
}

.Ecom{
  text-align: center;
  color: white;
}

.stop-motion{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

}

.motion{
  text-align: center;
  color: white;
}

.btn-5 {
  font-size: 20px;
  color: white;
  width: 130px;
  height: 40px;
  line-height: 42px;
  padding: 0;
  border: none;
  background: rgb(255,27,0);
  background: linear-gradient(0deg, rgba(255,27,0,1) 0%, rgba(251,75,2,1) 100%);
}
.btn-5:hover {
  color: #f0094a;
  background: transparent;
   box-shadow:none;
}
.btn-5:before,
.btn-5:after{
  content:'';
  position:absolute;
  top:0;
  right:0;
  height:2px;
  width:0;
  background: #f0094a;
  box-shadow:
   -1px -1px 5px 0px #fff,
   7px 7px 20px 0px #0003,
   4px 4px 5px 0px #0002;
  transition:400ms ease all;
}
.btn-5:after{
  right:inherit;
  top:inherit;
  left:0;
  bottom:0;
}
.btn-5:hover:before,
.btn-5:hover:after{
  width:100%;
  transition:800ms ease all;
}

.btn-5 {
  position: relative;
  width: 130px;
  height: 40px;
  line-height: 42px;
  padding: 0;
  border: none;
  background: blue;
  background: linear-gradient(0deg, rgba(255,27,0,1) 0%, rgba(251,75,2,1) 100%);
}

/*CSS ART*/
.project-box{
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0 auto;
  width: 550px;
}

.project img{
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
}

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

}

/* shows overlay on hover */
.project-box:hover .project-overlay{
  opacity: 1;
}

.view-button{
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.view-button:hover {
  background-color: rgba(173, 130, 130, 0.1);
}
/*CSS ART*/

.video-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.video-section{
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.responsive-video{
width: 100%;
height: auto;
max-height: 400px;
}

@media (max-width: 650px) {
  .motion .next{
    font-size: 1.5rem;
  }

  .video-wrapper{
    gap: 20px;
  }
  .responsive-video{
    max-width: 430px;
  }

  .project-box{
    width: 370px;
  }
}

.project-texts{
  font-size: 1.5rem;
  color: white;
  margin: auto;
  max-width: 800px;
  line-height: 1.6;
  text-align: center;
}

hr {
  padding: 15px;
  border: none;
  border-top: 1px solid #fff;
}


#button {
  display: inline-block;
  background-color: #FF9800;
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 25px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color .3s, 
    opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#button::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: #fff;
}
#button:hover {
  cursor: pointer;
  background-color: #333;
}
#button:active {
  background-color: #555;
}
#button.show {
  opacity: 1;
  visibility: visible;
}


/*WEB PAGE*/


/* Photoshop Page*/



.photoshop-section{
  padding: 60px 20px;
  background-color: #f5f7fa;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.photoshop-section h1{
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 40px;
  font-weight: 600;
}

.photoshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.photoshop-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  overflow: hidden;
  transform: 0.3s ease;
}

.photoshop-card:hover {
  transform: translateY(-8px);
}

.photoshop-card img{
  width: 100%;
  display: block;
  height: auto;
}

.photoshop-info{
  padding: 20px;
  text-align: left;
}

.photoshop-info h3{
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 10px;
}

.photoshop-info p{
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.photoshop-info a {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.photoshop-info a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .photoshop-grid{
    grid-template-columns: none;
}
}

/* Photoshop Page*/


/* other projects */


.fun-project img{
  display: block;
  margin: auto;
  width: 75%;
  height: 750px;
  align-items: center;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0;
}

.fun-project h1{
  text-align: center;
  color: white;
}

.vector-project img{
  display: block;
  margin: auto;
  width: 50%;
  height: 750px;
  align-items: center;
  padding: 20px;
}

@media (max-width: 768px){
  .fun-project img{
    height: 300px;

  }
}




/*Footer*/
.footer{
  text-align: center;
  padding: 20px;
  color: white;
  font-size: 1.3em;
  background-color: #3f3e3e;
}


/**/
.illustration-section{
  padding: 60px 20px;
  background: #b5bdc8;
  text-align: center;
}

.illustration-section h1{
  font-size: 3rem;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
}

.illustration-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  font-weight: 600;
}

.illustration-card{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transform: scale(1);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.illustration-card:hover{
  transform: scale(1.03s);
}

.illustration-card img{
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.illustration-card:hover img{
  filter: brightness(60%);
}

.overlay{
  position: absolute;
  bottom: 0%;
  background: rgba(0,0,0,0.1);
  color: #fff;
  width: 100%;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.illustration-card:hover .overlay{
  transform: translateY(0);
}

.overlay h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
}

.overlay p{
  font-size: 0.95rem;
  margin-top: 10px;
  color: #ddd;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #f44336;
}
