/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:white;
    line-height:1.8;
}

/* Navigation */

nav{
    position:fixed;
    top:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    background:rgba(15,23,42,.7);
    backdrop-filter:blur(20px);
    z-index:1000;
}

.logo{
    font-size:24px;
    color:#ff9900;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav a{
    text-decoration:none;
    color:white;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

/* Hero Section */

header{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

header h1{
    font-size:4rem;
    color:#ff9900;
}

header h2{
    color:#38bdf8;
    margin-top:20px;
}

header p{
    margin-top:20px;
    max-width:700px;
}

/* Buttons */

.hero-buttons{
    margin-top:40px;
}

.btn{
    display:inline-block;
    text-decoration:none;
    padding:14px 30px;
    margin:10px;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.2);
    border-radius:15px;
    color:white;
    transition:.4s;
    backdrop-filter:blur(10px);
}

.btn:hover{
    background:#ff9900;
    color:black;
    transform:translateY(-5px);
    box-shadow:0 0 25px #ff9900;
}

/* Sections */

section{
    padding:100px 10%;
}

section h2{
    color:#ff9900;
    margin-bottom:40px;
    text-align:center;
}

/* Cards */

.skill-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card,
.cert-card,
.project-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    padding:30px;
    backdrop-filter:blur(20px);
    transition:.4s;
}

.card:hover,
.cert-card:hover,
.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 25px rgba(255,153,0,.5);
}

/* Lists */

ul{
    margin-left:20px;
}

li{
    margin-top:10px;
}

/* Project Cards */

.project-card{
    cursor:pointer;
    margin-bottom:30px;
}

/* Visitor Counter */

.visitor-counter{
    text-align:center;
    font-size:28px;
    color:#38bdf8;
}

/* Contact */

#contact p{
    text-align:center;
    margin:15px;
}

/* Footer */

footer{
    text-align:center;
    padding:40px;
    background:#020617;
}

/* Modal */

.modal{
    display:none;
    position:fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    top:0;
    left:0;
}

.modal-content{
    width:70%;
    max-width:800px;
    background:#1e293b;
    margin:100px auto;
    padding:40px;
    border-radius:20px;
    position:relative;
}

.close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:40px;
    cursor:pointer;
}

/* Scrollbar */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-thumb{
    background:#ff9900;
    border-radius:10px;
}

/* Responsive */

@media(max-width:768px){

header h1{
    font-size:2.5rem;
}

nav{
    flex-direction:column;
}

nav ul{
    margin-top:20px;
    gap:15px;
}

.modal-content{
    width:90%;
}

}