/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

/* BODY */

body{
background:#0f172a;
color:#9b302d;
line-height:1.6;

background-image: url("image/new.jpg");
background-size:auto;
background-repeat:repeat-y;
animation:bgScroll 60s linear infinite;
}

@keyframes bgScroll{
from{background-position:0 0;}
to{background-position:0 2000px;}
}

/* NAVBAR */

.navbar{
display:flex;
justify-content:center;
align-items:center;
gap:90px;
padding:20px;
background:#896b5f65;

position:fixed;
top:-80px;
width:100%;

z-index:1000;
transition:top 0.8s ease;
}

.navbar a{
text-decoration:none;
color:#9b302d;
font-weight:700;
font-size:16px;
padding:8px 14px;
border-radius:8px;
transition:all 0.3s ease;
font-family:'Libre Baskerville', serif;
letter-spacing:1px;
display:flex;
align-items:center;
gap:8px;
}

.navbar a:hover{
color:white;
transform:scale(1.15);
background:#a7403b;
}

.nav-icon{
width: 24px;
height:24px;
object-fit:contain;
}

/* HERO */

.hero{
display:flex;
flex-direction:row-reverse;
justify-content:center;
gap:140px;
align-items:center;
padding:100px 10%;
min-height:100vh;
}

.hero-image img{
width:420px;
height:420px;
border-radius:50%;
object-fit:cover;

border:6px solid #a7403b;

box-shadow:0 20px 40px rgba(0,0,0,0.5);
}

.hero-text{
text-align:right;
max-width:500px;
}

.hero-text h1{
font-family:'Libre Baskerville', serif;
font-size:60px;
white-space:nowrap;
text-align: left;
}

.hero-text span{
color:#9b302d;
font-family:'Tangerine', cursive;
font-size:100px;
text-align: right;
}

.name{
display:block;
}

.hero-text p{
font-size:20px;
font-family:'Libre Baskerville', serif;
text-align: center;
margin:20px 0;
}

/* SECTION */

.section{
padding:120px 10%;
text-align:center;
}

.section h2{
font-size:40px;
margin-bottom:40px;
color:#9b302d;
font-family:'Tangerine', cursive;
font-size:70px;
font-weight:900;
}

.section p {
font-family:'Libre Baskerville', serif;
}
.section li {
font-family:'Libre Baskerville', serif;
}
.section h3{
font-family:'Libre Baskerville', serif;
}

/* ABOUT */

.about{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
margin-top:30px;
}

.about-box{
border:2px dashed #a7403b;
padding:20px;
border-radius:15px;
text-align:center;
transition:all 0.4s ease;
background:transparent;
}

.about-box p{
font-family:'Libre Baskerville', serif;
}

.about-box:hover{
transform:translateY(-8px);
border-color:#9b302d;
box-shadow:0 8px 20px rgba(167,64,59,0.4);
}

.icon{
font-size:28px;
display:block;
margin-bottom:10px;
}

/* CERTIFICATES */

.certificate-container{
display:flex;
gap:30px;
justify-content:center;
flex-wrap:wrap;
margin-top:40px;
align-items:flex-start;
}

.certificate-card{
width:350px;
min-height:220px;
padding:30px;
border-radius:15px;
text-align:left;
border:2px solid #a7403b;
background:transparent;
transition:all 0.35s ease;
cursor:pointer;
font-size: 16px;
font-weight: 900;
}

.certificate-card:hover{
transform:translateY(-8px);
box-shadow:0 0 15px #a7403b;
}

.certificate-card h3{
font-family:'Libre Baskerville', serif;
}

.certificate-card p{
font-family:'Libre Baskerville', serif;
}

.details-text{

margin-top:10px;

color:#9b302d;

cursor:pointer;

font-weight:600;

}

.details-text:hover{

text-decoration:underline;

}

.certificate-proof{

display:none;

margin-top:15px;

}

.certificate-proof img{

width:100%;

border-radius:10px;

}

/* SKILLS */

.skills-container{
max-width:1000px;
margin:auto;
display:flex;
flex-direction:column;
gap:20px;
}

.skill-card{
background:transparent;
border:2px solid #a7403b;
border-radius:12px;
overflow:hidden;
cursor:pointer;
transition:transform 0.25s ease;
}

.skill-card:hover{
transform:scale(1.03);
}

.skill-header{
display:flex;
align-items:center;
gap:12px;
padding:30px;
font-size:18px;
}

.skill-header span{
font-size:24px;
}

.skill-header h3{
font-family:'Libre Baskerville', serif;
}

.skill-content{
max-height:0;
opacity:0;
overflow:hidden;
padding:0 30px;
transform:translateY(-10px);
transition:all 0.35s ease;
}

.skill-card.active .skill-content{
max-height:200px;
opacity:1;
transform:translateY(0);
padding:0 30px 20px;
}

.skill-content ul{
padding-left:60px;
text-align:left;
}

.skill-content li{
margin-bottom:8px;
list-style-type:disc;
font-family:'Libre Baskerville', serif;
}

/* PROJECTS */

.projects-container{
max-width:1000px;
margin:auto;
display:flex;
flex-direction:column;
gap:40px;
}

.project-card{
background:transparent;
padding:40px;
border-radius:18px;
cursor:pointer;
transition:0.6s;
text-align:center;
border:2px solid #a7403b;
}

.project-title{
font-size:26px;
font-weight:600;
transition:0.6s;
font-family:'Libre Baskerville', serif;
}

.project-title span{
font-size:16px;
color:#9b302d;
font-family:'Libre Baskerville', serif;
}

.project-content{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:40px;
margin-top:30px;

max-height:0;
overflow:hidden;
transition:0.6s ease-out;
}

.project-info{
text-align:left;
flex:1;
}

.project-info ul{
padding-left:20px;
line-height:1.6;
font-family:'Libre Baskerville', serif;
}

.project-image{
width:300px;
}

.project-image img{
width:100%;
border-radius:12px;
}

.project-card.active{
text-align:left;
}

.project-card.active .project-title{
font-size:20px;
margin-bottom:10px;
}

.project-card.active .project-content{
max-height:500px;
}

.project-link{
display:inline-block;
margin-top:15px;
font-weight:600;
text-decoration:none;
color:#a7403b;
transition:0.3s;
}

.project-link:hover{
color:#7a1f1f;
transform:translateX(4px);
}

/* EXPERIENCE */

.experience{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px;
margin-top:40px;
}

.experience-box{
border:2px dashed #a7403b;
padding:25px;
border-radius:15px;
text-align:left;
background:transparent;
transition:all 0.35s ease;
}

.experience-box:hover{
transform:scale(1.05);
border-color:#9b302d;
box-shadow:0 10px 25px rgba(167,64,59,0.4);
}

.exp-title{
font-family:'Libre Baskerville', serif;
font-size:24px;
font-weight:700;
color:#9b302d;
line-height:1.4;
}


/* CONTACT */

.contact-icons{
display:flex;
justify-content:center;
gap:80px;
flex-wrap:wrap;
margin-top:40px;
}

.contact-item{
display:flex;
flex-direction:column;
align-items:center;
text-decoration:none;
color:#9b302d;
transition:0.3s;
}

.contact-item i{
font-size:40px;
margin-bottom:10px;
}

.contact-item p{
font-size:14px;
}

.contact-item:hover{
transform:scale(1.2);
color:#a7403b;
}

/* FOOTER */

footer{
text-align:center;
padding:40px;
background:#020617;
color:#9b302d;
}

/* RESPONSIVE */

@media(max-width:900px){

.hero{
flex-direction:column;
text-align:center;
}

.hero-image{
margin-top:40px;
}

.hero-text h1{
font-size:40px;
}

}

/* REVEAL ANIMATION */

.reveal{
opacity:0;
transform:translateY(80px);
transition:all 1.2s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}