
/*
Theme Name: Raju Portfolio
Author: Raju Kumar Raja
Version: 1.0
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#020617;
    color:white;
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
}

/* =========================
NAVBAR
========================= */

.navbar{
    width:100%;
    padding:25px 10%;
    position:fixed;
    top:0;
    left:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    z-index:999;
    background:rgba(2,6,23,.7);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,.05);
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#3b82f6;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:40px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-size:16px;
    transition:.3s;
}

.nav-links a:hover{
    color:#3b82f6;
}

/* =========================
HERO SECTION
========================= */

.hero{
    width:100%;
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:140px 10% 80px;
}

.container{
    width:100%;
    max-width:1300px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:80px;
}

.left{
    flex:1;
    animation:fadeUp 1s ease;
}

.tag{
    display:inline-block;
    padding:10px 18px;
    border-radius:50px;
    background:rgba(59,130,246,.1);
    color:#3b82f6;
    font-size:14px;
    margin-bottom:30px;
    border:1px solid rgba(59,130,246,.3);
}

.left h1{
    font-size:78px;
    line-height:1.1;
    font-weight:800;
    margin-bottom:20px;
}

.left h2{
    font-size:42px;
    color:#3b82f6;
    margin-bottom:25px;
}

.left p{
    font-size:20px;
    line-height:1.9;
    color:#cbd5e1;
    max-width:700px;
}

.hero-buttons{
    display:flex;
    align-items:center;
    gap:20px;
    margin-top:40px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:18px 40px;
    background:#3b82f6;
    color:white;
    text-decoration:none;
    border-radius:14px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 40px rgba(59,130,246,.3);
}

.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:18px 40px;
    border:1px solid rgba(255,255,255,.1);
    color:white;
    text-decoration:none;
    border-radius:14px;
    transition:.3s;
}

.btn-outline:hover{
    background:white;
    color:black;
}

.right{
    flex:1;
    display:flex;
    justify-content:center;
    animation:fadeIn 1.5s ease;
}

.image-box{
    width:100%;
    max-width:480px;
    border-radius:35px;
    overflow:hidden;
    position:relative;
    background:linear-gradient(
        135deg,
        rgba(59,130,246,.4),
        rgba(168,85,247,.3)
    );
    padding:8px;
}

.image-box img{
    width:100%;
    display:block;
    border-radius:30px;
    aspect-ratio:1/1;
    object-fit:cover;
}

/* =========================
SECTION TITLE
========================= */

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title span{
    color:#3b82f6;
    font-size:15px;
    letter-spacing:2px;
}

.section-title h2{
    margin-top:15px;
    font-size:50px;
}

/* =========================
SKILLS
========================= */

.skills{
    padding:120px 10%;
}

.skills-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.skill-card{
    padding:35px;
    border-radius:20px;
    background:#0f172a;
    text-align:center;
    font-size:20px;
    font-weight:600;
    border:1px solid rgba(255,255,255,.05);
    transition:.3s;
}

.skill-card:hover{
    transform:translateY(-10px);
    border-color:#3b82f6;
}

/* =========================
PROJECTS
========================= */

.projects{
    padding:120px 10%;
}

.project-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.project-card{
    background:#0f172a;
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.05);
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-10px);
}

.project-image{
    height:250px;
    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
}

.project-content{
    padding:30px;
}

.project-content h3{
    font-size:28px;
    margin-bottom:20px;
}

.project-content p{
    color:#cbd5e1;
    line-height:1.8;
}

/* =========================
CONTACT
========================= */

.contact{
    padding:120px 10%;
}

.contact-box{
    max-width:800px;
    margin:auto;
    text-align:center;
    padding:60px;
    border-radius:30px;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.05);
}

.contact-box p{
    font-size:22px;
    margin-bottom:20px;
    color:#cbd5e1;
}

/* =========================
ANIMATIONS
========================= */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1100px){

    .container{
        flex-direction:column;
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .left h1{
        font-size:60px;
    }

    .skills-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .project-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .navbar{
        padding:20px 6%;
    }

    .nav-links{
        display:none;
    }

    .hero{
        padding:140px 6% 80px;
    }

    .skills{
        padding:100px 6%;
    }

    .projects{
        padding:100px 6%;
    }

    .contact{
        padding:100px 6%;
    }

    .left h1{
        font-size:42px;
    }

    .left h2{
        font-size:28px;
    }

    .left p{
        font-size:17px;
    }

    .section-title h2{
        font-size:36px;
    }

    .skills-grid{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn,
    .btn-outline{
        width:100%;
    }

    .contact-box{
        padding:40px 25px;
    }

}
