/* RESET */

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

/* GLOBAL STYLES */

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Segoe UI", sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

.hidden{
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show{
    opacity: 1;
    transform: translateY(0);
}

/* NAVBAR */

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:  15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo{
    font-weight: 600;
    font-size: 20px;
    color: #d6a6a6;
}

.nav-links{
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a{
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover{
    color: #d6a6a6;
}

/* SECTION BASE */

.section{
    min-height: auto;
    padding: 90px 80px;
}

.section + .section{
    padding-top: 40px;
}

.section{
    padding: 80px 80px;
}

.content-box{
    max-width: 900px;
    margin: 0 auto; /* centers it */
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* centering section headings */
.section-title{
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center; 
}

.section-title{
    font-size: 32px;
    margin-bottom: 25px; /* reduced from 40px */
    text-align: center;
}

.section-title::after{
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #d6a6a6;
    margin: 10px auto 0;
    border-radius: 5px;
}

/* HERO SECTION */

.hero{
    /*min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;*/
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: linear-gradient(to right, #ffffff, #f9f5f5);
}

.hero-container{
     display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text{
    max-width: 900px;
    flex: 1;
}

.intro{
    font-size: 10px;
    color: #888;
}

.hero h1{
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
}

.hero h2{
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
    /*font-size: 26px;
    color: #d6a6a6;
    margin-bottom: 20px;*/
}

.hero-description{
   /*color: #666;
    margin-bottom: 30px;*/
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
    max-width: 500px;

}

/* buttons */
.btn{
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn.primary{
    background: #d6a6a6;
    color: white;
}

.btn.primary:hover{
    background: #c48f8f;
}

.btn.secondary{
    border: 1px solid #d6a6a6;
    color: #d6a6a6;
}

.btn.secondary:hover{
    background: #d6a6a6;
    color: white;
}

.hero-buttons{
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


/*image*/
.hero-image{
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-circle{
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #d6a6a6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*border: 6px solid #f5f5f5;*/
    box-shadow: 0 10px 30px rgba(214,166,166,0.3);
} 

/*.image-circle{
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f3eaea;
}*/

.image-circle img{
     width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ABOUT */
#about .content-box{
    max-width: 1000px; /* 👈 bigger width */
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    line-height: 1.8;
}

/* BUTTONS */

.hero-buttons{
    display: flex;
    gap: 15px;
}

.btn{
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.primary-btn{
    background: #d6a6a6;
    color: white;
}

.primary-btn:hover{
    background: #c49595;
}

.secondary-btn{
    border: 1px solid #ddd;
    color: #555;
}

.secondary-btn:hover{
    background: #f5f5f5;
}

/* SECTION TITLES */

.section-title{
    font-size: 32px;
    margin-bottom: 40px;
}

/* CONTENT BOX */

.content-box{
    max-width: 750px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* SKILLS */

.skills-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}

.skill-group{
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.skill-group h3{
    margin-bottom: 15px;
}

.tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span{
    background: #f3f3f3;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.skill-bar{
    margin-bottom: 15px;
}

.bar{
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
}

.progress{
    height: 100%;
    background: #d6a6a6;
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

/* PROJECTS */

.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 25px;
}

.project-card{
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.project-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.project-card h3{
    margin-bottom: 10px;
}

.project-card p{
    color: #666;
}

.tech-stack{
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

/* upgrade */
.project-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-content{
    flex-grow: 1;
}

.project-buttons{
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.project-card:hover{
    transform: translateY(-8px) scale(1.01);
}

/* EDUCATION */
.content-box + .content-box{
    margin-top: 20px;
}

/* EXPERIENCE */

.date{
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.timeline{
    position: relative;
    margin-left: 20px;
}

.timeline::before{
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ddd;
}

.timeline-item{
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-dot{
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #d6a6a6;
    border-radius: 50%;
}

.timeline-content{
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* CONTACT */

.contact-container{
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-text{
    margin-bottom: 30px;
    color: #666;
}

.contact-links{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-card{
    padding: 15px 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    transition: 0.3s;
    background: white;
}

.contact-card:hover{
    background: #d6a6a6;
    color: white;
    transform: translateY(-3px);
}

/* FOOTER */

.footer{
    text-align: center;
    padding: 30px;
    background: white;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* BACK TO TOP BUTTON */

#topBtn{
    position: fixed;
    bottom: 30px;
    right: 30px;
    border: none;
    background: #d6a6a6;
    color: white;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

#topBtn:hover{
    background: #c49595;
}

/* RESPONSIVE DESIGN */

@media (max-width: 900px){

    .navbar{
        padding: 15px 30px;
    }

    .section{
        padding: 100px 30px;
    }

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

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

}