/*Setting some default settings*/
*{
    padding: 0;
    margin: 0;
    font-family: "Quattrocento", serif;
}

html{
    scroll-behavior: smooth;
}

section {
  border-bottom: 15px solid #3a3a3a; 
  padding: 50px 0; 
}

.quattrocento-regular {
  font-family: "Quattrocento", serif;
  font-weight: 400;
  font-style: normal;
}

.quattrocento-bold {
  font-family: "Quattrocento", serif;
  font-weight: 700;
  font-style: normal;
}

.fx-bg {
  position: relative;       
  overflow: hidden;         
}

.fx-bg canvas.fx-canvas {
  position: absolute;
  inset: 0;                 
  width: 100%;
  height: 100%;
  z-index: 0;               
  pointer-events: none;    
}

.fx-bg > * {
  position: relative;
  z-index: 1;               
}





/*Background cover settings*/
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 27, 30, 0.7), rgba(22, 4, 30, 0.7)), url(images/bgimg.jpeg);
    background-position: center;
    background-size: cover;
    position: relative;
}






/*Navigation container settings*/
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}





/*Logo image settings*/
nav img{
    width: 200px;
}






/*Navigation container location*/
.navLinks{
    flex: 1;
    text-align: right;
}





/*Styling the navigation elements*/
.navLinks ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}





/*Styling each elements lettering*/
.navLinks ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 20px
}






/*Hover effects for nav bar*/
.navLinks ul li::after{
    content: '';
    width: 0%;
    height: 5px;
    background: #6d41a1;
    display: block;
    margin: auto;
    transition: 0.5s
}

.navLinks ul li:hover::after{
    width: 100%;
}

.navLinks ul li a:hover{
    color: #6d41a1
    
}







/*Cover header and paragraph settings*/
.textBox{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border: 5px solid transparent; 
    padding: 20px; 
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.textBox h1{
    font-size: 80px;
}

.textBox p{
    font-size: 40px;
    margin: 10px 0 40px;
}

.textBox:hover{
    border-color: #6d41a1;
}







/*About Me Settings*/
.about{
    width: 100%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    background: linear-gradient(to bottom, #1a1a1a, #1e1e1e 50%, #2a2a2a);
    color: #fff;
    padding-bottom: 100px;
}

.about h1{
    font-size: 60px;
    padding-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: #6d41a1;
}

.about p{
    font-size: 20px;
    padding: 10px;
    width: 40%;
    margin: 0 auto;
}

.skills h1{
    font-size: 40px;
    padding-top: 50px;
}








/*Skills Settings*/
.skills {
  margin-top: 50px;
  text-align: center;
}

.skills h1 {
  font-size: 40px;
  margin-bottom: 20px;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: #6d41a1;
}

.skills ul {
  list-style: none;   
  padding: 0;
  margin: 0;
  display: flex;      
  gap: 20px;          
  justify-content: center;  
  flex-wrap: wrap;    
}

.skills li {
  display: flex;
  flex-direction: column;    
  align-items: center;      
  justify-content: center;
  font-size: 18px;
  color: #fff;

  background: #2a2a2a;       
  border: 2px solid #6d41a1;    
  border-radius: 50px;       
  padding: 20px;
  width: 120px;              
  height: 120px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);  
  transition: transform 0.3s ease, background 0.3s ease;
}

.skills li:hover {
  transform: translateY(-5px);  
  background: #383838;          
}

.skills li img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}







/*Projects Settings*/

.projects{
    width: 100%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    background: linear-gradient(to bottom, #1a1a1a, #1e1e1e 50%, #2a2a2a);
    color: #fff;
    padding-bottom: 100px;
}

.projects h1{
    font-size: 60px;
    padding-bottom: 20px;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: #6d41a1;
}

.projects p{
    font-size: 20px;
    padding: 10px;
    width: 40%;
    margin: 0 auto;
}

/* Project Carousel */

.project-carousel {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-track {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.project-card {
  display: none;
  background: #2a2a2a;
  border: 2px solid #6d41a1;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  text-align: left;
}

.project-card.active {
  display: block;
}

.project-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.project-tech {
  font-size: 16px;
  color: #b38df5;
  margin-bottom: 15px;
}

.project-card p {
  width: 100%;
  font-size: 18px;
  line-height: 1.6;
}

/* Carousel buttons */

.carousel-btn {
  background: #2a2a2a;
  border: 2px solid #6d41a1;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  background: #3a3a3a;
  transform: scale(1.1);
}

.carousel-btn.left {
  margin-right: 15px;
}

.carousel-btn.right {
  margin-left: 15px;
}







/*Contact Me Settings*/

.contact{
    width: 100%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
    background: linear-gradient(to bottom, #1a1a1a, #1e1e1e 50%, #2a2a2a);
    color: #fff;
    padding-bottom: 100px;
}

.contact h1{
    font-size: 60px;
    padding-bottom: 100px;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: #6d41a1;
}

.contact{
    box-sizing: border-box;
}

.contactCont{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.contactLeft{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.contactLeftTitle h2{
    margin-bottom: 5px;
    font-size: 40px;
}

.contactLeftTitle hr{
    border: none;
    width: 120px;
    height: 5px;
    background-color: #6d41a1;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contactInput{
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    color: #666;
    border-radius: 50px;
}

.contactLeft textarea{
    height: 140px;
    padding-top: 20px;
    border-radius: 20px;
}

.contactInput:focus{
    border: 5px solid #6d41a1;
}

.contactInput:hover{
    border: 5px solid #6d41a1;
}

.contactLeft button{
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(270deg, #666, #6d41a1);
    cursor: pointer;
    color: #fff;
}

.contactLeft button img{
    height: 10px;
}

.contactLeft button:hover{
    border: 5px solid #6d41a1;
}






/*Link Settings*/

.links{
    padding-top: 100px;
}

.links ul {
  list-style: none;
  display: flex;
  justify-content: center; 
  gap: 20px; 
  padding: 0;
}

.links li {
  background: #2a2a2a;       
  padding: 15px 25px;        
  border-radius: 10px;       
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
  transition: transform 0.2s ease, background 0.3s ease;
}

.links li:hover {
  transform: scale(1.05);
  background: #3a3a3a; 
}

.links a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.links img {
  width: 24px;  
  height: 24px;
}

.endbutton{
    margin-top: 40px;
}

.endbutton button{
    background: #2a2a2a;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); 
    transition: transform 0.2s ease, background 0.3s ease;
}

.endbutton i{
    font-size: 20px;
}

.endbutton button:hover{
    transform: translateY(-5px); 
    background: #3a3a3a; 
}


.menuToggle { display: none; }




/*Mobile Implementation*/
@media (max-width: 768px) {

    .header {
        min-height: 100vh;
    }

    nav {
        padding: 14px 16px;
        position: relative;
    }

    nav img { 
        width: 140px; 
    }

    .menuToggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 2px solid #6d41a1;
        border-radius: 10px;
        background: #2a2a2a;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }

    .navLinks {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        background: #1f1f1f;
        border: 0;                
        border-radius: 16px;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, border 0s 0.3s, box-shadow 0s 0.3s;
        z-index: 1000;
    }

    .navLinks.open {
        max-height: 300px;
        border: 2px solid #6d41a1;
        box-shadow: 0 10px 24px rgba(0,0,0,0.35);
        transition: max-height 0.3s ease;
    }

    .navLinks ul { 
        padding: 8px; 
    }

    .navLinks ul li { 
        display: block; padding: 8px 6px; 
    }

    .navLinks ul li a {
        display: block;
        padding: 12px 10px;
        font-size: 18px;
    }


    .textBox {
        width: 92%;
        padding: 16px;
    }

    .textBox h1 {
        font-size: 36px;
        line-height: 1.15;
    }

    .textBox p {
        font-size: 18px;
        margin: 12px 0 24px;
    }


    section { 
        padding: 36px 0; 
    }

    .about p,
    .projects p {
        width: 90%;
        max-width: 680px;
        font-size: 18px;
    }

 
    .skills ul { 
        gap: 14px; 
    }
    
    .skills li {
        width: 130px;
        height: 130px;
        font-size: 16px;
        border-radius: 20px;
        padding: 16px;
    }


    .contact h1 {
        padding-bottom: 36px;
        font-size: 36px;
    }

    .contactCont {
        flex-direction: column;
        gap: 18px;
        padding: 0 16px;
        align-items: stretch;
    }

    .contactLeft { 
        align-items: stretch; 
    }

    .contactInput {
        width: 100%;
        height: 40px;        
        border-radius: 12px;
        padding-left: 12px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .contactLeft textarea {
        height: 120px;     
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .contactLeft button { 
        align-self: center; 
    }

    
    .links { 
        padding-top: 48px; 
    }

    .links ul {
        gap: 12px;
        flex-wrap: wrap;
    }

    
    .endbutton { 
        margin-top: 28px; 
    }
}
