/* Google Font */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
    font-family:'Poppins',sans-serif;
}

body{
    background:linear-gradient(135deg,#0f172a,#1e3a8a,#2563eb);
    color:white;
}

/* Navbar */

header{
    position:fixed;
    top:0;
    width:100%;
    background:rgba(15,23,42,.8);
    backdrop-filter:blur(12px);
    z-index:1000;
}

nav{
    width:90%;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo{
    font-size:30px;
    color:#38bdf8;
    cursor:pointer;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:25px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    transition:.3s;
    font-weight:500;
}

nav ul li a:hover{
    color:#38bdf8;
}

#darkBtn{
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#38bdf8;
    color:white;
    font-size:18px;
}

/* Hero */

.hero{
    width:90%;
    margin:auto;
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:50px;
}

.hero-text{
    flex:1;
}

.hero-text h4{
    color:#38bdf8;
    margin-bottom:10px;
}

.hero-text h1{
    font-size:65px;
}

.hero-text span{
    color:#38bdf8;
}

.hero-text h2{
    margin:15px 0;
    color:#facc15;
}

.hero-text p{
    margin:20px 0;
    line-height:1.8;
    color:#dbeafe;
}

.buttons{
    display:flex;
    gap:20px;
}

.btn,
.btn2{
    text-decoration:none;
    padding:14px 35px;
    border-radius:30px;
    transition:.4s;
    font-weight:600;
}

.btn{
    background:#38bdf8;
    color:white;
}

.btn:hover{
    transform:translateY(-5px);
    background:#0284c7;
}

.btn2{
    border:2px solid #38bdf8;
    color:white;
}

.btn2:hover{
    background:#38bdf8;
}

/* Hero Image */

.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    width:420px;
    border-radius:50%;
    border:6px solid #38bdf8;
    box-shadow:0 0 50px rgba(56,189,248,.5);
}

/* Common Section */

section{
    padding:100px 10%;
}

section h2{
    text-align:center;
    margin-bottom:50px;
    font-size:42px;
    color:#38bdf8;
}

/* About */

.about-container{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    padding:40px;
    border-radius:20px;
    line-height:2;
    font-size:18px;
}

/* Education */

.edu-card{
    max-width:500px;
    margin:auto;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    padding:40px;
    border-radius:20px;
    text-align:center;
    transition:.4s;
}

.edu-card:hover{
    transform:translateY(-10px);
}

.edu-card h3{
    color:#38bdf8;
    margin-bottom:15px;
}

/* Skills */

.skills{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.skill{
    background:rgba(255,255,255,.08);
    padding:25px;
    border-radius:20px;
}

.bar{
    width:100%;
    height:12px;
    background:#1e293b;
    border-radius:20px;
    margin-top:10px;
    overflow:hidden;
}

.bar span{
    display:block;
    height:100%;
    background:#38bdf8;
}

.html{
    width:95%;
}

.css{
    width:90%;
}

.js{
    width:75%;
}

.git{
    width:70%;
}

.github{
    width:80%;
}

.mysql{
    width:65%;
}
/* ===========================
   SERVICES
=========================== */

.service-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.service{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    padding:35px;
    border-radius:20px;
    text-align:center;
    transition:.4s;
    border:1px solid rgba(255,255,255,.1);
}

.service:hover{
    transform:translateY(-10px);
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.service i{
    font-size:50px;
    color:#38bdf8;
    margin-bottom:20px;
}

.service h3{
    margin-bottom:15px;
}

/* ===========================
   PROJECTS
=========================== */

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.project{
    background:rgba(255,255,255,.08);
    border-radius:20px;
    overflow:hidden;
    transition:.4s;
    border:1px solid rgba(255,255,255,.1);
}

.project:hover{
    transform:translateY(-10px);
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.project img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project h3{
    margin:20px;
    color:#38bdf8;
}

.project p{
    margin:0 20px 20px;
    color:#dbeafe;
}

/* ===========================
   GOAL
=========================== */

.goal{
    text-align:center;
}

.goal p{
    max-width:800px;
    margin:auto;
    line-height:2;
    font-size:18px;
    background:rgba(255,255,255,.08);
    padding:40px;
    border-radius:20px;
}

/* ===========================
   CONTACT
=========================== */

form{
    max-width:700px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

form input,
form textarea{
    padding:18px;
    border:none;
    border-radius:10px;
    outline:none;
    font-size:16px;
}

form button{
    padding:16px;
    border:none;
    background:#38bdf8;
    color:white;
    font-size:18px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

form button:hover{
    background:#0284c7;
}

/* ===========================
   FOOTER
=========================== */

footer{
    text-align:center;
    padding:50px 20px;
    background:#08111f;
}

footer h2{
    color:#38bdf8;
    margin-bottom:15px;
}

footer p{
    margin:10px 0;
}

.social{
    margin:20px 0;
}

.social i{
    font-size:28px;
    margin:0 10px;
    cursor:pointer;
    transition:.3s;
}

.social i:hover{
    color:#38bdf8;
    transform:scale(1.2);
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:992px){

.hero{
    flex-direction:column-reverse;
    text-align:center;
    padding-top:120px;
}

.hero-image img{
    width:300px;
}

.buttons{
    justify-content:center;
}

nav{
    flex-direction:column;
    gap:20px;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
}

.hero-text h1{
    font-size:45px;
}

}

@media(max-width:768px){

.hero-image img{
    width:240px;
}

.hero-text h1{
    font-size:36px;
}

section h2{
    font-size:32px;
}

.skills,
.service-container,
.project-container{
    grid-template-columns:1fr;
}

}

@media(max-width:480px){

nav ul li{
    margin:10px;
}

.hero-text h1{
    font-size:30px;
}

.hero-text p{
    font-size:15px;
}

.btn,
.btn2{
    padding:12px 20px;
}
/* Dark Mode */

.dark{
    background:#020617;
}

.dark header{
    background:rgba(2,6,23,.95);
}

.dark .about-container,
.dark .edu-card,
.dark .skill,
.dark .service,
.dark .project,
.dark .goal p{
    background:#111827;
}

.dark input,
.dark textarea{
    background:#1e293b;
    color:white;
}

/* Active Navbar */

nav ul li a.active{
    color:#38bdf8;
}

/* Smooth Image Animation */

.hero-image img{
    animation:float 4s ease-in-out infinite;
}

@keyframes float{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-15px);
}

100%{
transform:translateY(0);
}

}
