:root{
    --bg-dark-start:rgba(15,23,42,0.88);
    --bg-dark-end:rgba(15,23,42,0.88);
    --bg-image:url("j.jpeg");
    --body-bg:linear-gradient(var(--bg-dark-start),var(--bg-dark-end)),var(--bg-image);
    --body-color:white;
    --sidebar-bg:#111827;
    --sidebar-border:#1f2937;
    --contact-bg:#1e293b;
    --contact-border:#374151;
    --nav-color:white;
    --nav-hover:#38bdf8;
    --info-bg:#1e293b;
    --info-hover-bg:#334155;
    --info-h3-color:#38bdf8;
    --info-p-color:#94a3b8;
    --card-bg:#1e293b;
    --card-hover-bg:#334155;
    --card-p-color:#cbd5e1;
    --skills-bg:#1e293b;
    --form-bg:#1e293b;
    --form-color:white;
    --h2-color:#38bdf8;
    --toggle-bg:#1e293b;
    --toggle-color:white;
}

[data-theme="light"]{
    --bg-dark-start:rgba(248,250,252,0.92);
    --bg-dark-end:rgba(248,250,252,0.92);
    --body-color:#1e293b;
    --sidebar-bg:#f1f5f9;
    --sidebar-border:#cbd5e1;
    --contact-bg:#ffffff;
    --contact-border:#cbd5e1;
    --nav-color:#1e293b;
    --nav-hover:#0284c7;
    --info-bg:#ffffff;
    --info-hover-bg:#f1f5f9;
    --info-h3-color:#0284c7;
    --info-p-color:#64748b;
    --card-bg:#ffffff;
    --card-hover-bg:#f1f5f9;
    --card-p-color:#475569;
    --skills-bg:#ffffff;
    --form-bg:#ffffff;
    --form-color:#1e293b;
    --h2-color:#0284c7;
    --toggle-bg:#f1f5f9;
    --toggle-color:#1e293b;
}

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

body{
    background:var(--body-bg);
    background-size:cover;
    color:var(--body-color);
    display:flex;
}

.sidebar{
    position:fixed;
    right:0;
    top:0;
    width:270px;
    height:100vh;
    background:var(--sidebar-bg);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:40px 20px;
    border-left:2px solid var(--sidebar-border);
}

nav{
    display:flex;
    flex-direction:column;
    gap:18px;
}

nav a{
    text-decoration:none;
    color:var(--nav-color);
    font-size:20px;
    transition:.3s;
}

nav a:hover{
    color:var(--nav-hover);
    transform:translateX(-8px);
}

#theme-toggle{
    background:var(--toggle-bg);
    color:var(--toggle-color);
    border:1px solid var(--sidebar-border);
    padding:10px 16px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-family:Poppins,sans-serif;
    transition:.3s;
    margin-top:15px;
}

#theme-toggle:hover{
    opacity:0.8;
    transform:translateX(-4px);
}

.contact-box{
    border:1px solid var(--contact-border);
    padding:20px;
    border-radius:12px;
    background:var(--contact-bg);
}

.contact-box h3{
    margin-bottom:15px;
}

.contact-box p{
    margin:10px 0;
}

.content{
    width:calc(100% - 270px);
    margin-right:270px;
}

section{
    min-height:100vh;
    padding:100px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.hero{
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:60px;
}

.hero-content{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.hero h1{
    font-size:80px;
    text-align:center;
}

.hero p{
    margin:20px 0;
    font-size:28px;
    text-align:center;
}

.hero img{
    width:200px;
    height:200px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--nav-hover);
}

h2{
    margin-bottom:30px;
    color:var(--h2-color);
    font-size:36px;
}

#hobbies{
    min-height:120vh;
}

#about p{
    max-width:700px;
    text-align:center;
    line-height:1.6;
}

#hobbies > p{
    max-width:700px;
    text-align:center;
    line-height:1.6;
    margin-bottom:40px;
}

#skills > p{
    max-width:700px;
    text-align:center;
    line-height:1.6;
    margin-bottom:40px;
}

#about p:nth-child(3){
    margin-bottom:40px;
}

.about-info{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    justify-content:center;
}

.info-item{
    background:var(--info-bg);
    padding:30px 40px;
    border-radius:15px;
    text-align:center;
    min-width:150px;
    transition:.3s;
}

.info-item:hover{
    background:var(--info-hover-bg);
    transform:translateY(-5px);
}

.info-item h3{
    font-size:32px;
    color:var(--info-h3-color);
    margin-bottom:8px;
}

.info-item p{
    font-size:16px;
    color:var(--info-p-color);
}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    max-width:1200px;
    width:100%;
}

.card{
    background:var(--card-bg);
    padding:40px;
    border-radius:15px;
    transition:.3s;
}

.card h3{
    font-size:22px;
    margin-bottom:12px;
}

.card p{
    font-size:17px;
    color:var(--card-p-color);
    line-height:1.5;
}

.card:hover{
    transform:translateY(-10px);
    background:var(--card-hover-bg);
}

.card button{
    background:var(--h2-color);
    color:white;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-family:Poppins,sans-serif;
    margin-top:15px;
}

.skills{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
}

.skills span{
    background:var(--skills-bg);
    padding:16px 28px;
    border-radius:25px;
    font-size:18px;
}

form{
    display:flex;
    flex-direction:column;
    gap:15px;
    width:550px;
}

input,
textarea{
    padding:18px;
    border:none;
    border-radius:8px;
    background:var(--form-bg);
    color:var(--form-color);
    font-size:16px;
}

textarea{
    height:180px;
}

.fb-link{
    color:var(--nav-hover);
    text-decoration:none;
    transition:.3s;
}

.fb-link:hover{
    opacity:0.7;
    text-decoration:underline;
}

.social-links{
    margin-top:25px;
    text-align:center;
}

.social-links p{
    font-size:17px;
}

@media(max-width:900px){

.sidebar{
    width:100%;
    height:auto;
    position:relative;
}

.content{
    width:100%;
    margin-right:0;
}

body{
    flex-direction:column;
}

nav{
    flex-direction:row;
    justify-content:center;
    margin-top:20px;
}

section{
    padding:50px;
}

form{
    width:100%;
}

.hero{
    flex-direction:column;
    gap:30px;
}

.hero h1{
    font-size:48px;
}

.hero p{
    font-size:22px;
}

h2{
    font-size:28px;
}

.cards{
    grid-template-columns:1fr;
}

}