/* Theme variables */
:root{
    --background:#0b0f19;
    --surface:#141b2d;
    --surface-light:#1c263b;

    --text:#f1f5f9;
    --muted:#94a3b8;

    --primary: #10a37f;
    --border:#263247;
    --shadow:0 10px 30px rgba(0,0,0.2);
}

.light-theme{
    --background:#f8fafc;
    --surface:#ffffff;
    --surface-light:#f1f5f9;

    --text:#172033;
    --muted:#64748b;

    --primary:#078765;
    --border:#e2e8f0;
    --shadow:0 10px 30px rgba(0,0,0.06);
}

/* GLobal styling */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-padding: 90px;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

a{
    color: inherit;
    text-decoration: none;
}

button{
    font: inherit;
    cursor: pointer;
}

.container{
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section{
    padding: 90px 0;
}

.section-title{
    font-size: 2rem;
    margin-bottom: 12px;
}
.section-description{
    color: var(--muted);
    margin-bottom: 35px;
}

/* Header and Navigation */
header{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}
.navbar{
    min-height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
}
.nav-links{
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a{
    color: var(--muted);
    transition: color 0.3s;
}

.nav-links a:hover{
    color: var(--primary);
}

.nav-actions{
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle,.menu-toggle{
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 12px;
}

.menu-toggle{
    display: none;
    font-size: 1.2rem;
}

/* Hero section */
.hero{
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-content{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-label{
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
}
.hero h1{
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 span{
    color: var(--primary);
}
.hero-description{
    color: var(--muted);
    max-width: 550px;
    margin-bottom: 30px;
}

.primary-button{
    display: inline-block;
    background: var(--primary);
    color: white;

    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.3s;
}
.primary-button:hover{
    opacity: 0.85;
}

.profile{
    position: relative;
    width: 260px;
    height: 260px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 3px solid var(--primary);
    border-radius: 50%;
    overflow: hidden;
}

.profile img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder{
    position: absolute;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    pointer-events: none;
}

.profile img:no([src=""]){
    position: relative;
    z-index: 1;
}

/* About section */
.about-content{
    max-width: 750px;
}
.about-content p{
    color: var(--muted);
    margin-bottom: 18px;
}

/* Skills Section */
.skills-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.skill-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover{
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-card h3{
    font-size: 1.1rem;
}
.skill-card p{
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Projects section */
.projects-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}
.project-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}
.project-card h3{
    margin-bottom: 12px;
}

.project-card p{
    color: var(--muted);
    margin-bottom: 20px;
}

.project-tag{
    display: inline;
    background: var(--surface-light);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact section */
.contact-content{
    max-width: 650px;
}

.contact-content p{
    color: var(--muted);
    margin-bottom: 25px;
}

.contact-links{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-links a{
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 8px;
    transition: border-color 0.3s;
}
.contact-links a:hover{
    border-color: var(--primary);
}

/* Footer Section */
footer{
    padding: 25px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width:768px) {
    .menu-toggle{
        display: block;
    }
    .nav-links{
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active{
        display: flex;
    }
    .hero{
        min-height: auto;
        padding: 80ox 0;
    }
    .hero-content{
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description{
        margin-left: auto;
        margin-right: auto;
    }
    .profile{
        width: 210px;
        height: 210px;
    }

    .skills-grid{
        grid-template-columns: repeat(2,1fr);
    }
    .projects-grid{
        grid-template-columns: 1fr;
    }
}