* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Light Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #222222;
    --nav-color: transparent;
    --border-color: #D1D5DB;
    --card-color: #ffffff;
}

/* Dark Mode */
.dark-mode {
    --bg-color: #111827;
    --text-color: #ffffff;
    --nav-color: transparent;
    --border-color: #38BDF8;
    --card-color: #1F2937;

}

/* Use the variables */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: 0.3s;
}

h1, h2, h3, p, a {
    color: var(--text-color);
}

html{
    scroll-behavior: smooth;
}

/* Hamburger */

.menu-toggle{
    display:none;
    font-size:32px;
    cursor:pointer;
    color:var(--text-color);
}

/* Navigation Bar */
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--nav-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: .3s;
    z-index: 100;
}

/* Profile */
.logo{
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none; /* Removes underline */
    color: var(--text-color);
}

.logo:hover{
    color: #38BDF8;
}

.logo img{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 20px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
}

.nav-links a:hover {
    color: #00bfff;
}


/* Sections */
section {
    min-height: 100vh;
    padding: 140px 40px 40px;
    
}

/* Home */
#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    padding: 0 10%;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-image img {
    width: 350px;
    max-width: 100%;
    height: auto;

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 70%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 70%,
        transparent 100%
    );
}

.home-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.home-content h1{
    font-size: 51px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.home-content h3{
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0 30px 0;
}

.home-content p{
    line-height: 1.8;
    font-size: 18px;
    margin: 20px 0 40px;
}

/* Skill Section */
.section-title{
    text-align: center;
    margin-top: 40px;
}

.skills-container{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap; /* Keeps them in one row */
    margin-top: 80px;
}

.skill{
    width: 300px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.skill h2{
    margin-bottom: 15px;
}

.skill p{
    line-height: 1.7;
    font-size: 15px;
    margin-top: 10px;
}

/* Projects */
#projects{
    padding:100px 10%;
}

.projects-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top: 80px;
}

.project-card{
    width:320px;
    padding:30px;
    border-radius:15px;
    text-align:center;
}

.project-card h2{
    margin-bottom:15px;
}

.project-card p{
    line-height:1.7;
    margin-bottom:25px;
}

.project-btn{
    display:inline-block;
    padding:10px 22px;
    background:#38BDF8;
    color:#111827;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
}

.project-btn:hover{
    background:white;
    transform:scale(1.05);
}

/* Contact Section */
#contact{
    padding:100px 10%
}

.contact-container{
    display:flex;
    justify-content:center;
    margin-top: 80px;
}

.contact-card{
    width:700px;
    padding:40px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.contact-item{
    display:flex;
    align-items:center;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
}

.icons{
    padding: 10px;
    border: 1px solid #38BDF8;
    border-radius: 30px;
    background-color: #38BDF8;
}

.contact-item span{
    font-size:32px;
}

.contact-item h3{
    margin-bottom:5px;
    color:#38BDF8;
}

.social-links{
    margin-top:35px;
    display:flex;
    justify-content:center;
    gap:20px;
}

.social-links a{
    text-decoration:none;
    color:#0F172A;
    font-weight:600;
}

.social-links a:hover{
    color:#fff;
}

/* combined for simple css */
.skill,
.project-card,
.contact-card{
    border:2px solid var(--border-color);
}

.skill:hover,
.project-card:hover,
.contact-card:hover{
    transform: translateY(-10px);
    border-color:#38BDF8;
    box-shadow:0 15px 35px rgba(56,189,248,.2);
}

.logo,
.nav-links a,
.project-btn,
.social-links a,
.skill,
.project-card,
.contact-card{
    transition:.3s;
}

.skill,
.project-card,
.contact-card{
    background: var(--card-color);
}

/* Footer Section */
.footer-bottom{
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #94A3B8;
    font-size: 14px;
}

@media (max-width:768px){

    nav{
        padding:20px 6%;
    }

    .menu-toggle{
        display:block;
        font-size:30px;
        cursor:pointer;
        z-index:1001;
    }

    .nav-links{
        position:fixed;
        top:80px;
        left:-100%;

        width:100%;

        display:flex;
        flex-direction:column;
        align-items:center;

        transition:.4s ease;

        padding:25px 0;
    }

    .nav-links.active{
        left:0;
    }

    .nav-links li{
        margin:15px 0;
    }

    .nav-links a{
        margin:0;
        font-size:18px;
    }

}