html {

    scroll-behavior: smooth;
}

::selection {

    background: #3b82f6;

    color: #ffffff;
}

/* Scrollbar */

::-webkit-scrollbar {

    width: 10px;
}

::-webkit-scrollbar-track {

    background: #0f172a;
}

::-webkit-scrollbar-thumb {

    background: #3b82f6;

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {

    background: #60a5fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: 'Inter', sans-serif;

    background:
        #0f172a;

    color:
        #f8fafc;
}

/* ================= NAVBAR ================= */

.navbar {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding:
        22px 8%;

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(15, 23, 42, 0.9);

    backdrop-filter: blur(10px);
}

.logo {

    font-size: 28px;

    font-weight: 700;

    color:
        #3b82f6;
}

.nav-links {

    display: flex;

    list-style: none;

    gap: 35px;
}

.nav-links a {

    text-decoration: none;

    color:
        #f8fafc;

    font-weight: 500;

    transition: 0.3s ease;
}

.nav-links a:hover {

    color:
        #60a5fa;
}

/* ================= BUTTONS ================= */

.btn {

    display: inline-block;

    padding:
        14px 28px;

    background:
        #3b82f6;

    color:
        white;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s ease;
}

.btn:hover {

    transform: translateY(-4px);

    background:
        #60a5fa;
}

.secondary-btn {

    background:
        transparent;

    border:
        2px solid #3b82f6;
}

/* ================= HERO ================= */

.hero {

    min-height: 90vh;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 80px;

    padding: 80px 8%;

    flex-wrap: wrap;
}

.hero-text {

    flex: 1;

    min-width: 320px;
}

.hero-text h1 {

    font-size: 58px;

    line-height: 1.2;

    margin-bottom: 15px;

    color: #f8fafc;
}

.hero-text h3 {

    font-size: 28px;

    font-weight: 500;

    color: #3b82f6;

    margin-bottom: 20px;
}

.hero-text p {

    max-width: 600px;

    line-height: 1.8;

    color: #cbd5e1;

    margin-bottom: 35px;
}

.hero-buttons {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;
}

/* ================= HERO STATS ================= */

.hero-stats {

    display: flex;

    gap: 40px;

    margin-top: 40px;

    flex-wrap: wrap;
}

.hero-stats h2 {

    color: #3b82f6;

    margin-bottom: 5px;
}

.hero-stats span {

    color: #94a3b8;
}

/* ================= HERO IMAGE ================= */

.hero-image {

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;

    min-width: 320px;
}

.hero-image img {

    width: 400px;

    height: 400px;

    max-width: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #3b82f6;

    box-shadow:
        0 15px 45px rgba(59, 130, 246, 0.25);

    transition: 0.4s ease;
}

.hero-image img:hover {

    transform: scale(1.02);

    box-shadow:
        0 20px 55px rgba(59, 130, 246, 0.35);
}

/* ================= SECTIONS ================= */

section {

    padding:
        100px 8%;
}

section h2 {

    font-size: 40px;

    margin-bottom: 35px;

    text-align: center;

    position: relative;
}

/* ================= ABOUT ================= */

.about p {

    max-width: 850px;

    margin: auto;

    text-align: center;

    line-height: 1.9;

    color:
        #cbd5e1;
}

/* ================= PROJECTS ================= */

.project-container {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 35px;

    align-items: stretch;
}

.project-card {

    background:
        rgba(17, 24, 39, 0.8);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    overflow: hidden;

    transition: 0.4s ease;

    backdrop-filter: blur(10px);

    display: flex;

    flex-direction: column;
    height: 100%;
}

.project-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 10px 35px rgba(59, 130, 246, 0.25);
}

.project-card img {

    width: 100%;

    height: 230px;

    object-fit: cover;
    display: block;
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {

    font-size: 24px;

    margin-bottom: 15px;
}

.project-info p {

    color:
        #cbd5e1;

    line-height: 1.7;

    margin-bottom: 25px;
    flex-grow: 1;
}

.project-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

/* ================= RESPONSIVE ================= */

@media(max-width:950px) {

    .hero {

        flex-direction: column-reverse;

        text-align: center;
    }

    .hero-text p {

        margin:
            auto auto 35px;
    }

    .hero-buttons {

        justify-content: center;
    }

    .hero-text h1 {

        font-size: 45px;
    }

    .hero-image img {

        width: 280px;

        height: 280px;
    }
}

@media(max-width:700px) {

    .navbar {

        flex-direction: column;

        gap: 20px;
    }

    .nav-links {

        gap: 20px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .hero-text h1 {

        font-size: 36px;
    }

    /* ================= RESPONSIVE ================= */

    @media(max-width:950px) {

        .hero {

            flex-direction: column-reverse;

            text-align: center;
        }

        .hero-text p {

            margin: auto auto 35px;
        }

        .hero-buttons {

            justify-content: center;
        }

        .hero-text h1 {

            font-size: 45px;
        }

        .hero-image img {

            width: 280px;

            height: 280px;
        }

    }

    @media(max-width:700px) {

        .navbar {

            flex-direction: column;

            gap: 20px;
        }

        .nav-links {

            gap: 20px;

            flex-wrap: wrap;

            justify-content: center;
        }

        .hero-text h1 {

            font-size: 36px;
        }

        .skills-container,
        .services-container {

            grid-template-columns: 1fr;
        }

    }

    /* ================= REVEAL ANIMATION ================= */

    section {

        opacity: 0;

        transform: translateY(50px);

        transition:
            opacity 0.8s ease,
            transform 0.8s ease;
    }

    section.show {

        opacity: 1;

        transform: translateY(0);
    }

    /* ================= TECH STACK ================= */

    .tech-stack {

        display: flex;

        gap: 10px;

        flex-wrap: wrap;

        margin-bottom: 20px;
    }

    .tech-stack span {

        background:
            rgba(59, 130, 246, 0.15);

        color:
            #60a5fa;

        padding:
            6px 12px;

        border-radius: 20px;

        font-size: 14px;

        border:
            1px solid rgba(59, 130, 246, 0.3);
    }

    /* ================= FEATURED BADGE ================= */

    .featured-badge {

        display: inline-block;

        margin: 20px 20px 0;

        background:
            #3b82f6;

        color: white;

        padding:
            6px 12px;

        border-radius: 20px;

        font-size: 13px;

        font-weight: 600;
    }


    .project-card {

        overflow: hidden;
    }

    .project-card img {

        transition: transform 0.5s ease;
    }

    .project-card:hover img {

        transform: scale(1.05);
    }

    /* ================= MOBILE RESPONSIVE ================= */

    @media (max-width: 768px) {

        .hero {

            flex-direction: column-reverse;

            text-align: center;

            gap: 50px;

            padding: 60px 6%;
        }

        .hero-text p {

            margin: 0 auto 30px;
        }

        .hero-buttons {

            justify-content: center;

            flex-wrap: wrap;
        }

        .hero-stats {

            justify-content: center;
        }

        .hero-image img {

            width: 280px;

            height: 280px;
        }

        .about-container,
        .skills-container,
        .services-container,
        .projects-container {

            grid-template-columns: 1fr;
        }

        .contact-links {

            justify-content: center;
        }

        .navbar {

            padding: 15px 6%;
        }

        .navbar ul {

            gap: 15px;

            flex-wrap: wrap;

            justify-content: center;
        }

        .hero-text h1 {

            font-size: 42px;
        }

        .hero-text h3 {

            font-size: 22px;
        }

        /* ================= ACTIVE NAV LINK ================= */

        .navbar ul li a.active {

            color: #3b82f6;
        }
    }
}

/* ================= SKILLS ================= */

.skills-container {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    margin-top: 40px;
}

.skill-card {

    background:
        rgba(17, 24, 39, 0.8);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    backdrop-filter: blur(10px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.skill-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 10px 30px rgba(59, 130, 246, 0.20);
}

.skill-card h3 {

    color: #3b82f6;

    font-size: 24px;

    margin-bottom: 15px;
}

.skill-card p {

    color: #cbd5e1;

    line-height: 1.7;

    font-size: 15px;
}

/* ================= SERVICES ================= */

.services-container {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

    margin-top: 40px;
}

.service-card {

    background:
        rgba(17, 24, 39, 0.8);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    padding: 30px;

    border-radius: 20px;

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 10px 30px rgba(59, 130, 246, 0.25);
}

.service-card h3 {

    margin-bottom: 15px;

    color: #3b82f6;
}

.service-card p {

    color: #cbd5e1;

    line-height: 1.8;
}

/* ================= CONTACT FORM ================= */

.contact {

    text-align: center;
}

.contact-links {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin: 35px 0;
}

.contact-btn {

    text-decoration: none;

    color: white;

    background: #3b82f6;

    padding: 12px 24px;

    border-radius: 12px;

    transition: 0.3s ease;
}

.contact-btn:hover {

    transform: translateY(-4px);

    background: #60a5fa;
}

.contact-form {

    max-width: 700px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 20px;
}

.contact-form input,
.contact-form textarea {

    background:
        rgba(17, 24, 39, 0.8);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    padding: 16px;

    border-radius: 14px;

    color: white;

    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {

    outline: none;

    border:
        1px solid #3b82f6;
}

/* ================= FOOTER ================= */

footer {

    margin-top: 50px;

    padding: 50px 8%;

    text-align: center;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.footer-content h3 {

    color: #3b82f6;

    margin-bottom: 10px;
}

.footer-content p {

    color: #94a3b8;

    margin-bottom: 20px;
}

.footer-links {

    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;

    margin-bottom: 25px;
}

.footer-links a {

    text-decoration: none;

    color: #f8fafc;

    transition: 0.3s ease;
}

.footer-links a:hover {

    color: #60a5fa;
}

.copyright {

    font-size: 14px;

    color: #94a3b8;
}

@media (max-width: 768px) {

    .skills-container,
    .services-container {

        grid-template-columns: 1fr;
    }

}

/* ================= ACTIVE NAVIGATION ================= */

.navbar ul li a {

    color: #f8fafc;

    text-decoration: none;

    transition: 0.3s ease;

}

.navbar ul li a:hover {

    color: #60a5fa;

}

.navbar ul li a.active {

    color: #3b82f6;

    font-weight: 600;

}