*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body{
   background:linear-gradient(to right, skyblue, black);
   color:#fff;
   line-height: 1.6;
   min-height: 100dvh;
   margin: 0;
   
}
html {
    scroll-behavior: smooth;
}

section{
    padding: 60px 10%;
    
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(250,250,250,0.2); 
    backdrop-filter: blur(10px);
    padding: 10px 0;
    
}


nav a{
    color: white;
    text-decoration: none;
    padding: 15px;
    transition: 0.3s ease;
   
}

nav a:hover{
    color: cyan;

}



.title{
    text-align: center;
    font-size: 35px;
    margin-bottom: 30px;
    color: cyan;
}

/* Hero */
.hero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

.text h1{
    font-size: 50px;
    
}
span{
    font-size: 50px;
}
.text span::after{
    content: "Rogie";
    color: orangered;
    padding-left: 10px;
    animation: text 10s infinite;
}
@keyframes text {
    0%,25%{
     content: "Rogie";
    }
    26%,50%{
        content: " an IT student"
    }
    51%,75%{
        content: " a Front-end Developer"
    }
    76%,100%{
        content: " a Dreamer"
    }
}
.hero-text h2{
    color: cyan;
    margin: 10px 0;
}


.hero-text p{
    width: 400px;
}

.hero-image img{
    width: 280px;
    height: 280px;
    border-radius: 10%;
    border: 5px solid cyan;
    object-fit: cover;
    margin-right: 50px;
}


#about p{
    text-align: center;
    max-width: 700px;
    margin: auto;
}

/* Sports */
.sports-row{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.sports-row img,
.sports-row video{
    width : 300px;
    height: 250px;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid cyan;
    transition: .3s ease;
}

.sports-row img:hover,
.sports-row video:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px cyan;
}


/* Projects */
.projects{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card{
    background: #222;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.project-card img{
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card img:hover{
    background: cyan;
    transform: scale(1.08);
}


/* Contact */
#contact{
    padding: 80px 10%;
}

.contact-info{
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.box{
    width: 217px;
    padding: 20px;
    text-align: center;
    border: 2px solid cyan;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    transition: .3s;
}

.box:hover{
    transform: translateY(-5px);
    box-shadow: 0 0 15px cyan;
}

.box h3{
    color: cyan;
    margin-bottom: 10px;
}

.box p{
    color: #ddd;
}
.contact-form{
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: white;
    background: none;
    border: 2px solid cyan;
    border-radius: 8px;
    outline: none;
    transition: 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
    color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color: cyan;
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

.contact-form textarea{
    resize: none;
    min-height: 100px;
}

.btn{
    width: 180px;
    padding: 14px;
    margin: auto;
    border: none;
    border-radius: 8px;
    background: cyan;
    color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover{
    background: white;
    transform: scale(1.05);
}
@media(max-width:768px){

    .hero{
        flex-direction: column;
        text-align: center;
    }

    .hero-text p{
        width: 100%;
    }

    .hero-image{
        margin-top: 30px;
    }
}