@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #0a192f;
    color: #ccd6f6;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #64ffda;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: #ccd6f6;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #64ffda;
    border-bottom: 3px solid #64ffda;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #64ffda;
        border-bottom: 3px solid #64ffda;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #0a192f;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #64ffda;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: #0a192f;
}

/* Start here */
#home {
    position: relative;

    background-color: transparent !important; 
    z-index: 1;
}


.home-content, .home-img {
    position: relative;
    z-index: 2;
}
/* end here */
.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #64ffda;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 1rem;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 1rem;
    box-shadow: 0 0 25px solid #64ffda;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #64ffda;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #64ffda;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #64ffda;
    box-shadow: 0  0 25px #64ffda;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #64ffda;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #64ffda;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #64ffda;
    color: black;
    box-shadow: 0 0 25px #64ffda;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "Software Developer";
    color: #64ffda;
    animation: words 10s infinite;
}

.typing-text span::after{
    content: "";
    background-color: transparent;
    position: absolute;
    width: 3px;
    height: 100%;
    border-left: 3px solid #64ffda;
    right: -10px;
    animation: cursor 1.2s step-end infinite;
}


.cert-list {
    list-style-type: none; 
    margin-top: 1.5rem;
    padding-left: 0;
}

.cert-list li {
    font-size: 1.6rem; 
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}


.cert-list li::before {
    content: "-"; 
    color: #64ffda;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.exp-item {
    display: flex;
    align-items: center; 
    gap: 40px;         
    margin-bottom: 50px;
    padding: 20px;
    max-width: 900px;   
    margin-left: auto;
    margin-right: auto;
}

.exp-img-frame {
    flex: 0 0 250px;     
    height: 150px;      
    display: flex;
    justify-content: center;
    align-items: center;
}

.exp-img-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exp-text {
    flex: 1;             
    font-size: 16;
    line-height: 1.6;
    text-align: left;
}

.exp-text h3 {
    font-size: 1.8rem;     
    color: #64ffda;       
    margin-bottom: 10px;    
    font-weight: 600;
    letter-spacing: 1px;
}


@media (max-width: 768px) {
    .exp-item {
        flex-direction: column;
        text-align: center;
    }
    .exp-text {
        text-align: center;
    }
}

#globe-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.experience-section {
    padding: 100px 10% 60px;
    min-height: auto;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    color: #64ffda;
    text-align: center;
    margin-bottom: 50px;
}

.exp-item {
    display: flex;
    align-items: center; 
    justify-content: center; 
    gap: 60px;               
    margin-bottom: 80px;    
    width: 100%;
}


.exp-img-frame {
    flex: 0 0 350px;        
    height: 200px;           
    display: flex;
    justify-content: center;
    align-items: center;
}

.exp-img-frame img {
    width: 100%;             
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.exp-text p {
    font-size: 1.5rem;       
    color: #ccd6f6;
    max-width: 600px;        
    line-height: 1.5;
}




/* The initial hidden state */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px); 
    transition: all 0.8s ease-out; 
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


@keyframes cursor{
    0%, 100% { border-left-color: #64ffda; }
    50% { border-left-color: transparent; }
}



@keyframes words{
    0%, 20%{
        content: "Software Developer";
    }
    21%, 40%{
        content: "Data Analyst";
    }
    41%, 60%{
        content: "AI Consultant";
    }
    61%, 80%{
        content: "DevOps Engineer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}