/*=========================================
        GOOGLE FONTS
==========================================*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/*=========================================
        ROOT VARIABLES
==========================================*/

:root{

    --bg:#1A120E;
    --section:#241813;
    --card:#2C1F18;
    --primary:#B8794E;
    --secondary:#D9B79A;
    --text:#F8F1E7;
    --paragraph:#C8B6A6;
    --border:rgba(255,255,255,.08);

}

/*=========================================
        GLOBAL
==========================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);
    color:var(--text);
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;

}

section{

    padding:110px 0;

}

img{

    width:100%;
    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

h1,h2,h3,h4,h5{

    font-family:'Cormorant Garamond',serif;

}

.container{

    max-width:1200px;

}

/*=========================================
        NAVBAR
==========================================*/

.navbar{

    background:rgba(26,18,14,.85);
    backdrop-filter:blur(20px);
    padding:18px 0;
    transition:.4s;

}

.logo{

    color:var(--primary);
    font-size:34px;
    font-weight:bold;
    letter-spacing:2px;

}

.logo:hover{

    color:white;

}

.nav-link{

    color:#ddd;
    margin:0 15px;
    font-size:15px;
    transition:.4s;

}

.nav-link:hover{

    color:var(--primary);

}

.nav-link.active{

    color:var(--primary);

}

.resume-btn{

    background:var(--primary);
    color:white;
    padding:12px 28px;
    border-radius:50px;
    transition:.4s;
    font-size:14px;
    font-weight:500;

}

.resume-btn:hover{

    background:#d09263;
    color:white;
    transform:translateY(-3px);

}

/*=========================================
        HERO
==========================================*/

.hero{

    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;

}

.overlay{

    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(20,14,10,.65),
        rgba(20,14,10,.65)
    );

}

.hero-content{

    position:relative;
    z-index:2;

}

.hello{

    color:var(--secondary);
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:15px;

}

.hero h1{

    font-size:80px;
    font-weight:700;
    margin-bottom:15px;

}

.hero h3{

    color:var(--primary);
    letter-spacing:5px;
    font-size:22px;
    margin-bottom:25px;

}

.line{

    width:80px;
    height:3px;
    background:var(--primary);
    margin-bottom:25px;

}

.hero-text{

    color:var(--paragraph);
    line-height:32px;
    font-size:17px;
    margin-bottom:40px;
    max-width:550px;

}

/*=========================================
        BUTTONS
==========================================*/

.hero-buttons{

    display:flex;
    gap:20px;
    flex-wrap:wrap;

}

.btn-one{

    background:var(--primary);
    color:white;
    padding:15px 35px;
    border-radius:50px;
    transition:.4s;
    display:inline-block;

}

.btn-one:hover{

    transform:translateY(-6px);
    background:#d59b6d;
    color:white;

}

.btn-two{

    border:1px solid var(--primary);
    color:white;
    padding:15px 35px;
    border-radius:50px;
    transition:.4s;
    display:inline-block;

}

.btn-two:hover{

    background:var(--primary);
    color:white;

}

/*=========================================
        SOCIAL ICONS
==========================================*/

.social{

    display:flex;
    align-items:center;
    gap:20px;
    margin-top:45px;

}

.social p{

    color:var(--paragraph);
    margin-bottom:0;

}

.social a{

    width:45px;
    height:45px;
    background:var(--card);
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:white;
    transition:.4s;

}

.social a:hover{

    background:var(--primary);
    transform:translateY(-6px);

}

/*=========================================
        HERO IMAGE
==========================================*/

.hero-image{

    position:relative;
    z-index:2;
    text-align:center;

}

.hero-image img{

    width:100%;
    max-width:520px;
    border-radius:30px;
    box-shadow:0 25px 60px rgba(0,0,0,.45);
    transition:.5s;

}

.hero-image img:hover{

    transform:scale(1.03);

}

/*=========================================
        SECTION TITLE
==========================================*/

.section-title h2{

    font-size:60px;
    color:white;

}

.section-title p{

    color:var(--paragraph);
    margin-top:10px;

}

.title-line{

    width:80px;
    height:3px;
    background:var(--primary);
    margin:20px 0;

}

/*=========================================
        ABOUT
==========================================*/

#about{

    background:var(--section);

}

.about-img{

    border-radius:25px;
    box-shadow:0 20px 50px rgba(0,0,0,.4);

}

.about-content h2{

    font-size:58px;
    margin-bottom:10px;

}

.about-content p{

    color:var(--paragraph);
    line-height:32px;
    margin-bottom:35px;

}

.info-box{

    background:var(--card);
    padding:25px;
    border-radius:20px;
    margin-bottom:20px;
    transition:.4s;
    border:1px solid var(--border);

}

.info-box:hover{

    transform:translateY(-8px);

}

.info-box .icon{

    width:60px;
    height:60px;
    background:rgba(184,121,78,.15);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:15px;

}

.info-box i{

    color:var(--primary);
    font-size:24px;

}

.info-box h5{

    color:white;
    margin-bottom:10px;

}

.info-box p{

    color:var(--paragraph);
    margin:0;

}

/*=========================================
            SKILLS SECTION
==========================================*/

#skills{
    background:var(--bg);
}

.skill-card{

    background:var(--card);
    padding:35px 25px;
    border-radius:20px;
    text-align:center;
    border:1px solid var(--border);
    transition:.4s;
    height:100%;
    overflow:hidden;
    position:relative;

}

.skill-card:hover{

    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.35);

}

.skill-card::before{

    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:4px;
    background:var(--primary);
    transition:.5s;

}

.skill-card:hover::before{

    left:0;

}

.skill-card i{

    font-size:55px;
    color:var(--primary);
    margin-bottom:20px;

}

.skill-card h4{

    color:white;
    font-size:28px;
    margin-bottom:25px;

}

.progress{

    height:12px;
    border-radius:50px;
    background:#3a2b24;
    overflow:hidden;

}

.progress-bar{

    background:linear-gradient(
        90deg,
        var(--primary),
        #d79f71
    );
    font-size:12px;
    font-weight:600;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding-right:10px;
    color:white;
    transition:1s;

}

/*=========================================
            PROJECTS
==========================================*/

#projects{

    background:var(--section);

}

.project-card{

    background:var(--card);
    border-radius:25px;
    overflow:hidden;
    transition:.4s;
    border:1px solid var(--border);
    height:100%;

}

.project-card:hover{

    transform:translateY(-10px);
    box-shadow:0 25px 60px rgba(0,0,0,.4);

}

.project-card img{

    height:260px;
    object-fit:cover;
    transition:.6s;

}

.project-card:hover img{

    transform:scale(1.08);

}

.project-content{

    padding:30px;

}

.project-content h4{

    font-size:32px;
    color:white;
    margin-bottom:15px;

}

.project-content p{

    color:var(--paragraph);
    line-height:30px;
    margin-bottom:30px;

}

.project-buttons{

    display:flex;
    gap:15px;
    flex-wrap:wrap;

}

.project-buttons .btn-one{

    padding:12px 24px;
    font-size:14px;

}

.project-buttons .btn-two{

    padding:12px 24px;
    font-size:14px;

}

/*=========================================
        PROJECT IMAGE OVERLAY
==========================================*/

.project-card{

    position:relative;

}

.project-card::after{

    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:260px;
    background:linear-gradient(
        transparent,
        rgba(0,0,0,.15)
    );
    pointer-events:none;

}

/*=========================================
            HOVER GLOW
==========================================*/

.skill-card:hover,
.project-card:hover{

    border-color:rgba(184,121,78,.45);

}

/*=========================================
        CARD ANIMATION
==========================================*/

.skill-card,
.project-card{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(40px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/*=========================================
        SECTION SPACING
==========================================*/

.skills-section{

    padding-top:120px;
    padding-bottom:120px;

}

.projects-section{

    padding-top:120px;
    padding-bottom:120px;

}

/*=========================================
        GLASS EFFECT
==========================================*/

.skill-card,
.project-card{

    backdrop-filter:blur(15px);

}

/*=========================================
        IMAGE RADIUS
==========================================*/

.project-card img{

    border-bottom:1px solid var(--border);

}

/*=========================================
        ICON EFFECT
==========================================*/

.skill-card i{

    transition:.4s;

}

.skill-card:hover i{

    transform:rotate(10deg) scale(1.1);

}

/*=========================================
        BUTTON EFFECT
==========================================*/

.project-buttons a{

    transition:.35s;

}

.project-buttons a:hover{

    letter-spacing:.5px;

}

/*=========================================
        EXPERIENCE SECTION
==========================================*/

#experience{
    background:var(--bg);
}

.timeline{
    position:relative;
    max-width:900px;
    margin:60px auto;
}

.timeline::before{
    content:'';
    position:absolute;
    left:50%;
    top:0;
    transform:translateX(-50%);
    width:3px;
    height:100%;
    background:var(--primary);
}

.timeline-item{
    width:45%;
    background:var(--card);
    padding:30px;
    border-radius:20px;
    border:1px solid var(--border);
    margin-bottom:40px;
    position:relative;
    transition:.4s;
}

.timeline-item:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.35);
}

.timeline-item:nth-child(odd){
    margin-right:auto;
}

.timeline-item:nth-child(even){
    margin-left:auto;
}

.timeline-item::before{
    content:'';
    position:absolute;
    top:35px;
    width:18px;
    height:18px;
    background:var(--primary);
    border-radius:50%;
}

.timeline-item:nth-child(odd)::before{
    right:-48px;
}

.timeline-item:nth-child(even)::before{
    left:-48px;
}

.timeline-item h4{
    color:white;
    font-size:30px;
    margin-bottom:8px;
}

.timeline-item span{
    color:var(--primary);
    font-weight:600;
    display:block;
    margin-bottom:15px;
}

.timeline-item p{
    color:var(--paragraph);
    line-height:30px;
}

/*=========================================
        CONTACT
==========================================*/

#contact{
    background:var(--section);
}

.contact-section form{
    background:var(--card);
    padding:40px;
    border-radius:25px;
    border:1px solid var(--border);
}

.contact-section .form-control{
    background:#3a2a22;
    border:none;
    color:white;
    padding:16px;
    border-radius:12px;
    margin-bottom:20px;
}

.contact-section .form-control:focus{
    background:#433028;
    color:white;
    box-shadow:none;
    border:1px solid var(--primary);
}

.contact-section .form-control::placeholder{
    color:#c5b7aa;
}

.contact-info{
    padding:20px 40px;
}

.contact-info h3{
    font-size:45px;
    color:white;
    margin-bottom:20px;
}

.contact-info p{
    color:var(--paragraph);
    line-height:30px;
    margin-bottom:20px;
}

.contact-info i{
    color:var(--primary);
    margin-right:10px;
    font-size:20px;
}

/*=========================================
        FOOTER
==========================================*/

footer{
    background:#120d0a;
    padding:70px 0 35px;
    text-align:center;
}

footer h3{
    font-size:45px;
    color:white;
}

footer p{
    color:var(--paragraph);
}

.footer-social{
    margin:30px 0;
}

.footer-social a{
    width:50px;
    height:50px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--card);
    border-radius:50%;
    color:white;
    margin:0 10px;
    transition:.4s;
}

.footer-social a:hover{
    background:var(--primary);
    transform:translateY(-6px);
}

footer hr{
    border-color:rgba(255,255,255,.08);
    margin:40px 0 20px;
}

/*=========================================
        SCROLLBAR
==========================================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#1a120e;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

/*=========================================
        SELECTION
==========================================*/

::selection{
    background:var(--primary);
    color:white;
}

/*=========================================
        RESPONSIVE
==========================================*/

@media(max-width:991px){

.hero{
    text-align:center;
    padding-top:120px;
}

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

.hero-image{
    margin-top:60px;
}

.timeline::before{
    left:20px;
}

.timeline-item{
    width:100%;
    margin-left:40px !important;
}

.timeline-item::before{
    left:-31px !important;
}

.about-img{
    margin-bottom:40px;
}

.contact-info{
    margin-top:40px;
    padding:0;
}

}

@media(max-width:768px){

section{
    padding:80px 0;
}

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

.hero h3{
    font-size:18px;
}

.section-title h2{
    font-size:42px;
}

.about-content h2{
    font-size:42px;
}

.contact-info h3{
    font-size:35px;
}

.project-buttons{
    flex-direction:column;
}

.hero-buttons{
    flex-direction:column;
}

.resume-btn{
    display:none;
}

}

@media(max-width:576px){

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

.hero-text{
    font-size:15px;
    line-height:28px;
}

.social{
    justify-content:center;
    flex-wrap:wrap;
}
.project-card
{
    padding:25px;
    margin-top: 200px;
    margin-bottom: 200px;
    row-gap: 20px;
}

hr{
    border: none;
    height: 2px;
    background: #B8794E;
    width: 100px;
    margin: 20px auto;
}

.skill-card,
.timeline-item{
    padding:25px;
}

.contact-section form{
    padding:25px;
}

}

/*=========================================
        SMOOTH ANIMATIONS
==========================================*/

*{
    transition:background .3s,color .3s,border .3s;
}