:root{
    /* To create a varialble you must start with a --
    And when adding a new word add - (dash), to seperate from the one word from another word
    E.G --first-varible: (content); */
        

    /* Brand Colors */
    --brand-primary:#6366f1;
    --brand-accent:#a855f7;

    /* Backgrounds and text */
    --bg-dark: #0f172a; 
    --bg-card: #1e293b; 
    --text-main: #f8fafc;

    /* Layout */
    --nav-height: 70px;
    --gap-section: 80px;
    --radius-lg: 12px;

    /* Effects */
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* it allows you insert content to add content in webpage through CSS without changing HTML structure. 
Note: '*' means every tag */
*,::before,*::after{
    box-sizing:border-box;


}
body{
    max-width: 100%;
    overflow-x: hidden;
  
    margin:0;
    padding:0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: "Bad Script", cursive;
}
.btn-primary{
    background: linear-gradient(to right , var(--brand-primary) , var(--brand-accent));
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--card-shadow);
    display: inline-block;
    transition: transform  0.2s ease-in-out ;
}
.btn-primary:hover{
    transform: translateY(-2px);
    
}
.btn-secondary{
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    display: inline-block;
    transition: transform  0.2s ease-in ;
    

}
.btn-secondary:hover{
    transform: translateY(-5px);
}

.main-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 5;
    height: 70px;
    background-color: var(--bg-dark);
  
    margin: 0 auto;


    
}
.links{
    display:flex;
    gap: 10px;
    text-align: center;
    flex-wrap: wrap;

}
.links a{
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}


.links a:hover, 
.links a.active{
    color: var(--brand-primary);
}


/* styling hero section */

.hero{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    position: relative;

    margin:0 auto;
}

.hero-glow{
    position: absolute;
    
    top: 50%;
    left: 50%;
    width: 250px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-primary), transparent 70%);
    z-index: -1;
    opacity: 0.3;
    filter: blur(80px);
}

.hero-content{
    z-index: 3;

}
.hero-title {
    font-size: 40px;
    margin-bottom: 10px;
    animation: slide-up 0.7s ease ;

}

.hero-subtext{
    animation: slide-up 0.7s ease ;
}
.hero-title span, .title span{
    background: linear-gradient(to right,var(--brand-primary),var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
}
.hero-links{
    animation: slide-up 0.7s ease ;
}

@keyframes slide-up{
    from{
        transform:translateY(30px);
    }
    to{
        transform: translateY(0);
    }

    
}

.hero-shape-container{
    flex: 1;
    /* To make it grow or shrink to fill all avaiable spaces equaly  */
    display: flex;
    justify-content: center;
    align-items: center;
     padding-top: 20px ;
}

.hero-shape img{
    width: 350px;
    height: 300px;
    border: 2px solid var(--brand-primary);
    background-color: var(--bg-card);
    /* border-radius: top-left-corner  top-right-corner bottom-right-corner bottem-left-corner; */
    border-radius: 30% 70% 70% 30%/25% 80% 20% 75%;
    animation: hero-animate 8s ease-out infinite alternate;
   
}

@keyframes hero-animate{
    from{
       border-radius: 30% 70% 70% 30%/25% 80% 20% 75%; 
    }
    to{
        border-radius: 50% 50% 20% 90%/25% 80% 20% 75%;
    }
}
/* styleing about section */
.header{
    margin-left: 80px;
    margin-top: 15px;
    display: grid;
    grid-template-columns: 130px 1fr;
    margin: 30px auto;
    padding: 0 5%;
    gap: 20px;
}
.profile{
    border-radius: 50px;
    height: 100px;
    width: 140px;
    margin-top: 30px;
}

.imformation{
    margin-left: 80px;
    margin-right:80px;
}
.decription{
    color: var(--brand-primary);
}
.resume, .contact{
    text-decoration: none;
    color: var(--text-main);
    padding: 5px;
    border-radius: var(--radius-lg);
}
.resume{
    background-color: var(--brand-primary);
}
.contact{
    background-color: var(--brand-accent);


}
.highlight{
    color: var(--brand-accent);
}
.heading{
    border-bottom: 2px solid var(--bg-card);
}
.square-1{
    background-color: var(--bg-card);
    padding:8px;
    margin-bottom: 8px;
    border-radius: 15px;
    border-left: 3px solid var(--brand-primary);

}
.interests{
    display: flex;
    flex-wrap: wrap;
}
.interest{
    background-color: var(--brand-accent);
    margin: 10px;
    padding: 5px;
    border-radius: 5px;

}
/* top 3 projects*/

.project-section{
    padding: var(--gap-section) 10%;
}
.top-3 span{
    background: linear-gradient(to right, var(--brand-accent), var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    
}
.project-section-title{
    text-align: center;
    margin-bottom: 50px;
}
.project-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    justify-content: center;

}
.project-card{
    width: 70%;
    height: 400px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto;


}
.gif-placeholder{
    width: 100%;
    height: 100%;
}

.gif-placeholder video, .gif-placeholder img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease-in;
}
.project-card:hover .gif-placeholder{
    transform: scale(1.1);

}
.project-details{
    position: absolute;
    inset:0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.4s ease-in;
    background-color: var(--bg-card);
}
.project-card:hover .project-details{
    transform: translateY(0);
}
/* styling skills */
.skill-section{
    margin-bottom: 100px;
}
.title, .skill-discription{
    margin-left: 20px;
}
.skill-container{
    margin-left: 20px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  
    

}
.skills{
    background-color: var(--brand-primary);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.5s ease-in ;
    

}
.skills:hover{
    transform: translateY(-10px);
}
.skill-details{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    
}
.skill-details p{
    background-color: #282b2f;
    padding: 5px;
    border-radius: 15px;
}

.skill-details p:hover{
    background: linear-gradient(to right, var(--brand-accent), var(--brand-primary));
}
/* styling contact */
.intro{
    text-align: center;
}
.gradient{
    background: linear-gradient(to right, var(--brand-accent), var(--brand-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-section{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    margin: 40px auto ;
    padding: 0 5%;
    max-width: 1000px;
    
}

    

form{
    background-color:#06112a;
    filter: drop-shadow(0 0 10px black);
    border-radius: 10px;
    padding: 30px;
    flex: 1;


    
}
label{
    display: block;
}
input{
    width: 100%;
    padding: 8px;
    background-color: rgb(32, 32, 32);
    outline: rgb(32, 32, 32);
}

.send{
    background:linear-gradient(to right, var(--brand-primary),var(--brand-accent));
    text-decoration: none;
    color: var(--text-main);
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 5px;
    margin: 10px;
    border-radius: 8px;
}

.info{
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.info-card{
    filter: drop-shadow(0 0 10px black);
    border-radius: 10px;
    border-left: 3px solid var(--brand-primary); 
    background-color: #06112a;   
    padding: 15px;
}
.Connect{
    width: fit-content;
    background-color: var(--bg-card);
    padding: 5px;

}
.connect-sec{
    display: flex;
    border-radius: 5px;
    
    gap: 5px;
}
/* styling footer */
footer{
        background-color:var(--bg-dark);
        border-top: 1px solid grey;
        padding: 10px;
        text-align: center;
}

    /* mobile phone view */
    @media (max-width:900px) {

       
        .main-nav{
            flex-direction: column;
            height: auto;
            padding: 12px 10px;
            gap:20px;
        
        }
        .links{
            width: 100%;
            justify-content: center;
            gap:20px
        }
    
        .hero{
            flex-direction: column-reverse;
            justify-content: center;
            text-align: center;
            padding: 30px 5%;
            gap:25px
        }
        .hero-shape img{
                width: 250px;
                height: 250px;
        }
        .hero-links{
            justify-content: center;

        }
   
        /* videos use the full width of the phone, in their own 16:9 shape */
        .project-section{
            padding: 40px 16px;
        }
        .project-section-title{
            margin-bottom: 25px;
        }
        .project-card{
            border-radius: 10px;
        }
        .project-grid{
            gap: 30px;
        }
        .project-card{
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
        }
        /* styling about */
        .imformation{
            margin-left: 20px;
            margin-right: 20px;
        }
        .interests{
            flex-direction: column;
        }
        .interest{
            margin: 6px 0;
        }
        /* styling skils */
        .skill-container{
            grid-template-columns: 1fr ;
            margin: 0 20px;
        }
        .skills{
            padding: 20px;
        }
        /* styling contact */
        .form-section{
            display: block;
        }


   

    
}
