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

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

body {
    font-family: 'Poppins', sans-serif;
    background: #050816;
    color: #ffffff;
    overflow-x: hidden;
}


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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 20px;
}

body::before {
    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    background: #7c3aed;

    top: -150px;
    left: -150px;

    filter: blur(180px);

    opacity: .18;

    z-index: -1;
}

body::after {
    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    background: #2563eb;

    bottom: -150px;
    right: -150px;

    filter: blur(180px);

    opacity: .18;

    z-index: -1;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    backdrop-filter: blur(18px);

    background: rgba(5, 8, 22, .55);

    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.navbar {
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 20px;
}

.logo {
    text-decoration: none;

    font-size: 1.3rem;
    font-weight: 700;

    color: white;
}

.nav-links {
    display: flex;
    gap: 28px;

    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;

    transition: .3s;
}

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

.menu-btn {
    display: none;
    font-size: 1.7rem;
    cursor: pointer;
}

.hero {
    min-height: 100vh;

    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 50px;

    padding: 120px 20px 60px;
}

.hero-tag {

    display: inline-block;

    padding: 10px 18px;

    border-radius: 50px;

    background: rgba(139, 92, 246, .12);

    border: 1px solid rgba(139, 92, 246, .4);

    color: #b794f4;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;

    margin-bottom: 15px;
}

.hero h1 span {
    background: linear-gradient(90deg,
            #8b5cf6,
            #3b82f6);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    color: #60a5fa;
    margin-bottom: 20px;
    min-height: 35px;
}

.hero p {
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 18px;

    margin-top: 35px;

    flex-wrap: wrap;
}

.resume-btn{
    text-decoration:none;
    padding:14px 28px;
    border-radius:50px;
    font-weight:600;
    transition:.35s;

    background:rgba(139,92,246,.15);
    border:1px solid #8b5cf6;
    color:#ffffff;
}

.resume-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(124,58,237,.35);
    background:#8b5cf6;
}

.primary-btn,
.secondary-btn {

    text-decoration: none;

    padding: 14px 28px;

    border-radius: 50px;

    font-weight: 600;

    transition: .35s;
}

.primary-btn {

    background: linear-gradient(90deg,
            #8b5cf6,
            #3b82f6);

    color: white;
}

.primary-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(124, 58, 237, .45);
}

.secondary-btn {

    border: 1px solid rgba(255, 255, 255, .15);

    color: white;
}

.secondary-btn:hover {

    background: rgba(255, 255, 255, .05);

    transform: translateY(-4px);
}

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

.image-frame {

    width: 380px;
    height: 380px;

    border-radius: 50%;

    padding: 8px;

    background: linear-gradient(135deg,
            #8b5cf6,
            #3b82f6);

    animation: float 4s ease-in-out infinite;
}

.image-frame img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid #050816;
}

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.section {
    max-width: 1200px;
    margin: auto;

    padding: 100px 20px;
}

.section-title {

    text-align: center;

    font-size: 2.5rem;
    margin-bottom: 60px;

    position: relative;
}

.section-title::after {

    content: "";

    width: 90px;
    height: 4px;

    background: linear-gradient(90deg,
            #8b5cf6,
            #3b82f6);

    position: absolute;

    bottom: -15px;
    left: 50%;

    transform: translateX(-50%);
}

.glass-card {

    background: rgba(255, 255, 255, .04);

    border: 1px solid rgba(255, 255, 255, .08);

    backdrop-filter: blur(12px);

    border-radius: 20px;

    padding: 35px;
}

.glass-card p {
    color: #cbd5e1;
    line-height: 1.9;
}


.card-grid,
.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;
}

.skill-card,
.project-card {

    background: rgba(255, 255, 255, .04);

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 20px;

    padding: 28px;

    transition: .35s;
}

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

    transform: translateY(-10px);

    border-color: #8b5cf6;

    box-shadow:
        0 12px 30px rgba(124, 58, 237, .25);
}

.skill-card h3,
.project-card h3 {
    margin-bottom: 15px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    margin-bottom: 10px;
    color: #cbd5e1;
}

.skill-card p,
.project-card p {
    color: #cbd5e1;
}

.project-buttons {

    display: flex;

    gap: 12px;

    margin-top: 25px;

    flex-wrap: wrap;
}

.timeline {

    display: flex;
    flex-direction: column;

    gap: 25px;
}

.timeline-item {

    background: rgba(255, 255, 255, .04);

    border-left: 4px solid #8b5cf6;

    padding: 25px;

    border-radius: 12px;
}

.timeline-item p {
    color: #cbd5e1;
    margin-top: 6px;
}

.contact-card {

    text-align: center;
}

.contact-card p {

    margin-bottom: 15px;
}

.contact-card a{
    color:#cbd5e1;
    text-decoration:none;
    transition:.3s;
    font-weight:500;
}

.contact-card a:hover{
    color:#8b5cf6;
}

footer {

    text-align: center;

    padding: 30px;

    border-top:
        1px solid rgba(255, 255, 255, .08);

    color: #94a3b8;
}

.hidden {

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.show {

    opacity: 1;

    transform: translateY(0);
}

@media(max-width:900px) {

    .hero {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .image-frame {

        width: 280px;
        height: 280px;
    }
}

@media(max-width:768px) {

    .menu-btn {
        display: block;
    }

    .nav-links {

        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        background: #0b1120;

        flex-direction: column;

        text-align: center;

        padding: 20px;

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .image-frame {
        width: 240px;
        height: 240px;
    }
}

.active-link {
    color: #8b5cf6 !important;
}

.typing-text::after {
    content: "|";
    animation: blink .7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

