
/*background */


*,
*::before,
*::after {
  box-sizing: border-box;
}



body{
    background: linear-gradient(135deg, #1E1E1E, #2B1E1B, #121212);
    margin: 0;
    scroll-snap-type: none;
    overflow-x: hidden;
}
/* Logo */
.logo{
    
    font-family: "Special Gothic Expanded One", sans-serif;
    color: white; 
    font-size: 2.0rem;
    margin-left: 25px;
    
    
}


/* Navbar */
.menu-toggle {
    display: none;
}
.navbar {
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    position: fixed;
    display: flex;
    padding: 20px;
    align-items: center;
    background-color: #1E1E1E;
    justify-content: space-between; 
    z-index: 9999;
}
.navbar ul{
    list-style: none;
    display: flex;
    margin: 0px;
    padding-right: 35px;
    
}
.navbar li{
    margin-left: 15px
}
.navbar a{
    color: white;
    text-decoration: none;
    padding: 15px;
    display:inline-block;  
    font-family: "Special Gothic Expanded One", sans-serif;  
}
    

.navbar ul a:hover{
    background-color: #FF7F50;
}
.logo :hover{
    color: #FF7F50;
}

#p1{
    color: #FF7F50;
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: 20px;
    padding: 50px;
    text-align: center;
    font-size: 30px;
}
.home{
    display:flex;
    align-items: center;
    padding: 60px 9% 0;
    color: #FF7F50;
    font-family: "Special Gothic Expanded One", sans-serif;
    min-height: 100vh;
    scroll-margin-top: 0;
}
.home-info h1{
    font-size: 60px;
    margin-bottom: 5px;
  
}
.home-info h2{
    font-size: 30px;
    
}
.home-info p{
    font-size: 16px;
    max-width: 1000px;
    line-height: 1.6;
}

/*     **Icons**     */

.fa-github{
    margin-right: 5px;
    color: #FF7F50;
}
.fa-github:hover{
    color: white;
    
}
.fa-linkedin{
    margin-right: 5px;
    color: #FF7F50;
    text-decoration: none;

}
.fa-linkedin:hover{
    color: white;
}
.fa-envelope{
    margin-right: 5px;
    color: #FF7F50;
}
.fa-envelope:hover{
    color: white;
}


/*    **Section divider**    */

.section-divider {
  width: 80%;
  height: 4px;
  background: linear-gradient(to right, transparent, #FF7F50 , transparent);
  margin: 4rem auto;
}

/*     **Porfolio section**     */

.projects{
    scroll-margin-top: 250px;
    height: 500px;
}
.title h2{
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: 50px;
    color: #FF7F50;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 90px;
    
}

.carousel{
    
    width:min(58%, 1100px);
    overflow-x: auto;
    align-content: center;
    margin: 1em auto 2em auto;
    padding: 1em 0;
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    anchor-name: --carousel;
    scroll-snap-type: x mandatory;
    scroll-padding: 1em;
    scroll-marker-group: after;
}
.carousel::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: .5em;
}

.carousel::-webkit-scrollbar{
    display: none;
}
.carousel::scroll-button(right), .carousel::scroll-button(left) {
    content: "→";
    border: none;
    background-color: white;
    color: #FF7F50;
    font-family: "Special Gothic Expanded One", sans-serif;
    font-size: 1.5rem;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    padding-bottom: .2em;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
    
}
.carousel::scroll-button(left) {
    content: "←";
    position-area: left center;
    translate: 50%;
}
.carousel::scroll-button(right):disabled, .carousel::scroll-button(left):disabled {
    opacity: 0.5;
    cursor: auto;
}

.card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 20em;
    aspect-ratio: 5 / 3;
    background-color:#FF7F50;
    font-family: "Special Gothic Expanded One", sans-serif;
    padding: 1em;
    border-radius: .5em;
    text-align: center;
    align-content: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;  
    text-decoration: none;
    color: #FFD2A6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card p{
    color:#FFD2A6;
}
.card h3{
    font-size: 30px;
    color: #FFFFFF;
}
.card::scroll-marker {
    content: " ";
    height: 1em;
    width: 1em;
    background-color: white;
    opacity: 70%;
    border-radius: 50%;
}
.card::scroll-marker:target-current{
    background-color: #FF7F50;
    opacity: 100%;
}


@media(max-width: 500px){
    .card {
        flex: 0 0 100%;
    }
}
.card:hover{
    transform: scale(1.05);          /* subtle zoom in */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25); /* depth effect */
    cursor: pointer;
    background: linear-gradient(135deg, #FF7F50, #FFA270);
}


/* **About section** */

.about{
    font-family: "Special Gothic Expanded One", sans-serif;
    color:#FF7F50;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
    scroll-margin-top: 240px;
    
}
.about h2{
    font-size: 50px;
}
.about p{
    max-width: 700px;
}

/*  **Contact**  */

.contact{
    font-family: "Special Gothic Expanded One", sans-serif;
    color: #FF7F50;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
    scroll-margin-top: 0;
}
.contact h2{
    font-size: 50px;
}
.contact p{
    font-size: 15px;

}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8em;
  border-radius: 5px;
  border: none;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 1rem;
  background-color: #1E1E1E;
  color: #FFD2A6;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #FF7F50;
}

.contact-form button {
  padding: 0.8em;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 1rem;
  color: #1E1E1E;
  background: #FF7F50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #FF7F50, #FFA270);
  color: white;
}

/* **Footer** */



.footerdiv{
 background-color: #1E1E1E;
 display: flex;
 justify-content: space-between;
 font-family: "Special Gothic Expanded One", sans-serif;
 font-size: 15px;
 color: #FF7F50;
}
.footerdiv p{
    margin-left: 35px;
    margin-right: 35px;
}

 
/*TO DO:
-Fix Cards not scrolling one by one
-finish contact section 
-add a portfolio picture
 */


 /* PHONE */


@media (max-width: 768px) {

  /* Navbar mobile layout */
  main {
    padding-top: 120px;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 0;
  }

  .navbar ul {
    display: none; /* hide normal menu */
    flex-direction: column;
    width: 100%;
    background: #1E1E1E;
    padding: 1em 0;
  }

  .navbar ul.active {
    display: flex; /* show when toggled */
  }

  /* Hamburger button */
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
  }


  /* Carousel adjustments */
  .carousel {
    padding: 1em;
    gap: 0.8em;
    width: 80%;
  }

  /* Cards resizing */
  .card {
    flex: 0 0 85%;
    max-width: 85%;
    height: auto;
    padding: 1em;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* Section spacing */
  section {
    padding: 2em 1em;
  }
}
