/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#0f172a;
    color:white;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

/* =========================
   NAVBAR
========================= */

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 8%;

    background:#1e293b;

    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:28px;
    font-weight:bold;
    color:#38bdf8;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:25px;
}

nav ul li a{
    color:white;
    font-size:17px;
    transition:.3s;
}

nav ul li a:hover,
.active{
    color:#38bdf8;
}

/* =========================
   HOME PAGE
========================= */

.hero{
    min-height:90vh;

    display:flex;
    justify-content:space-around;
    align-items:center;

    padding:50px 8%;
}

.hero-text{
    width:50%;
}

.hero-text h3{
    font-size:25px;
}

.hero-text h1{
    font-size:65px;
    color:#38bdf8;
    margin:10px 0;
}

.hero-text h2{
    font-size:32px;
    margin-bottom:20px;
}

.hero-text p{
    line-height:1.8;
    font-size:18px;
}

.buttons{
    margin-top:25px;
}

.btn{
    display:inline-block;

    background:#38bdf8;

    color:white;

    padding:12px 28px;

    border-radius:30px;

    margin-right:10px;

    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
}

.btn-outline{
    background:transparent;
    border:2px solid #38bdf8;
}

.social{
    margin-top:30px;
}

.social a{
    color:white;
    font-size:30px;
    margin-right:15px;
    transition:.3s;
}

.social a:hover{
    color:#38bdf8;
}

/* =========================
   PROFILE IMAGE
========================= */

.hero-image{
    position:relative;

    width:400px;
    height:400px;
}

.hero-image img{
    width:320px;
    height:320px;

    object-fit:cover;

    border-radius:50%;

    position:absolute;

    top:40px;
    left:40px;

    border:5px solid #38bdf8;

    z-index:2;
}

/* Rotating circles */

.circle1{
    position:absolute;

    width:380px;
    height:380px;

    border:4px dashed #38bdf8;

    border-radius:50%;

    animation:rotate 10s linear infinite;
}

.circle2{
    position:absolute;

    width:400px;
    height:400px;

    border:3px solid #8b5cf6;

    border-radius:50%;

    animation:reverseRotate 15s linear infinite;
}

@keyframes rotate{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

@keyframes reverseRotate{
    from{
        transform:rotate(360deg);
    }
    to{
        transform:rotate(0deg);
    }
}

/* =========================
   ABOUT PAGE
========================= */

.about-page{
    display:flex;
    justify-content:space-around;
    align-items:center;

    padding:80px 8%;
}

.about-image img{
    width:320px;
    height:320px;

    border-radius:50%;

    border:5px solid #38bdf8;
}

.about-content{
    width:55%;
}

.about-content h1{
    color:#38bdf8;
    margin-bottom:20px;
}

.about-content p{
    line-height:1.8;
}

.info-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:30px;
}

.card{
    background:#1e293b;
    padding:20px;
    border-radius:10px;
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
    box-shadow:0 0 20px #38bdf8;
}

/* =========================
   SKILLS
========================= */

.skills-section{
    width:80%;
    margin:auto;
    padding:60px 0;
}

.skills-section h2{
    color:#38bdf8;
    margin-bottom:30px;
}

.skill{
    margin-bottom:25px;
}

.skill span{
    display:block;
    margin-bottom:10px;
}

.progress{
    background:#1e293b;
    border-radius:20px;
    overflow:hidden;
}

.progress-bar{
    background:#38bdf8;
    padding:8px;
    text-align:right;
    font-size:14px;
}

/* =========================
   CERTIFICATIONS
========================= */

.certifications{
    width:80%;
    margin:auto;
    padding-bottom:80px;
}

.certifications h2{
    color:#38bdf8;
    margin-bottom:20px;
}

.certificate-container{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.certificate-card{
    background:#1e293b;
    padding:20px;
    border-radius:10px;
    transition:.3s;
}

.certificate-card:hover{
    transform:translateY(-5px);
    box-shadow:0 0 15px #38bdf8;
}

/* =========================
   PROJECTS PAGE
========================= */

.projects-section{
    width:90%;
    margin:auto;
    padding:80px 0;
}

.projects-section h1{
    text-align:center;
    color:#38bdf8;
    margin-bottom:50px;
}

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.project-card{
    background:#1e293b;
    border-radius:15px;
    overflow:hidden;
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 20px #38bdf8;
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h2{
    padding:15px;
    color:#38bdf8;
}

.project-card p{
    padding:0 15px;
    line-height:1.6;
}

.tech{
    padding:15px;
    color:#94a3b8;
}

.project-buttons{
    padding:15px;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-section{
    display:flex;
    justify-content:space-around;
    align-items:flex-start;

    padding:80px 8%;
}

.contact-info{
    width:40%;
}

.contact-info h1{
    color:#38bdf8;
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:15px;
}

.social-links{
    margin-top:20px;
}

.social-links a{
    color:white;
    font-size:28px;
    margin-right:15px;
}

.contact-form{
    width:45%;
}

.contact-form form{
    display:flex;
    flex-direction:column;
}

.contact-form input,
.contact-form textarea{
    padding:15px;
    margin-bottom:15px;

    border:none;
    border-radius:8px;

    background:#1e293b;
    color:white;
}

.contact-form button{
    padding:15px;

    border:none;
    border-radius:8px;

    background:#38bdf8;
    color:white;

    cursor:pointer;
}

footer{
    text-align:center;
    padding:20px;
    background:#1e293b;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .hero,
    .about-page,
    .contact-section{
        flex-direction:column;
        text-align:center;
    }

    .hero-text,
    .about-content,
    .contact-info,
    .contact-form{
        width:100%;
    }

    .hero-image{
        margin-top:40px;
    }

    nav{
        flex-direction:column;
    }

    nav ul{
        margin-top:15px;
    }
}
.project-hero{

    text-align:center;

    padding:60px 10%;

    margin-bottom:30px;
}

.project-hero h1{

    font-size:50px;

    color:#38bdf8;

    margin-bottom:20px;
}

.project-hero p{

    max-width:800px;

    margin:auto;

    font-size:18px;

    line-height:1.8;

    color:#cbd5e1;
}