:root {
    --bg: #080b12;
    --bg-soft: #10141d;
    --card: #121824;

    --text: #f5f7fa;
    --muted: #9ca7b7;

    --primary: #6c63ff;
    --primary-light: #8b85ff;

    --border: rgba(255,255,255,0.08);

    --max-width: 1150px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(90%, var(--max-width));
    margin: auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

    background: rgba(8,11,18,0.75);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}


.nav-container {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-size: 22px;
    font-weight: 800;
}


.logo span {
    color: var(--primary-light);
}


nav {
    display: flex;
    gap: 30px;
}


nav a {
    color: var(--muted);
    font-size: 14px;
    transition: 0.3s;
}


nav a:hover {
    color: white;
}


.menu-btn {
    display: none;

    background: none;
    border: none;

    color: white;
    font-size: 25px;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 75px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(108,99,255,0.18),
            transparent 35%
        );
}


.hero-content {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 70px;

    align-items: center;
}


.hello {
    color: var(--primary-light);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 15px;
}


.hero h1 {
    font-size: clamp(50px, 7vw, 90px);

    line-height: 1;

    letter-spacing: -5px;
}


.hero h1 span {
    color: var(--primary-light);
}


.hero h2 {
    margin-top: 20px;

    color: #d9deea;

    font-size: 24px;
}


.hero-description {
    color: var(--muted);

    max-width: 620px;

    margin-top: 20px;
}


.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 35px;
}


.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 24px;

    border-radius: 10px;

    font-weight: 600;

    transition: 0.3s;
}


.btn.primary {
    background: var(--primary);
}


.btn.primary:hover {
    background: var(--primary-light);

    transform: translateY(-3px);
}


.btn.secondary {
    border: 1px solid var(--border);
}


.btn.secondary:hover {
    background: white;
    color: black;
}


.social-links {
    display: flex;

    gap: 20px;

    margin-top: 35px;
}


.social-links a {
    color: var(--muted);

    font-size: 14px;
}


.social-links a:hover {
    color: white;
}


/* HERO CARD */

.hero-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 30px;
}


.profile-circle {
    width: 180px;
    height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #292451
        );

    font-size: 45px;
    font-weight: 800;

    box-shadow:
        0 0 70px rgba(108,99,255,0.35);
}


.code-card {
    width: 100%;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 20px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}


.dots {
    display: flex;
    gap: 7px;

    margin-bottom: 15px;
}


.dots span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #555;
}


.code-card pre {
    color: #d6d9e0;

    font-size: 13px;

    overflow: auto;
}


.purple {
    color: #b58cff;
}


.green {
    color: #6ee7a0;
}


.orange {
    color: #ffb86b;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}


.dark-section {
    background: var(--bg-soft);
}


.section-title {
    margin-bottom: 55px;
}


.section-title p {
    color: var(--primary-light);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
}


.section-title h2 {
    margin-top: 8px;

    font-size: 42px;
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    align-items: center;
}


.about-image img {
    width: 220px;
    height: 280px;

    object-fit: cover;

    border-radius: 20px;
}





.about-text h3 {
    font-size: 32px;

    margin-bottom: 20px;
}


.about-text h3 span {
    color: var(--primary-light);
}


.about-text p {
    color: var(--muted);

    margin-bottom: 15px;
}


.stats {
    display: flex;

    gap: 50px;

    margin-top: 35px;
}


.stats div {
    display: flex;

    flex-direction: column;
}


.stats strong {
    font-size: 28px;

    color: var(--primary-light);
}


.stats span {
    color: var(--muted);

    font-size: 12px;
}


/* =========================
   SKILLS
========================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


.skill-card {
    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    transition: 0.3s;
}


.skill-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(108,99,255,0.5);
}


.skill-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(108,99,255,0.15);

    color: var(--primary-light);

    font-size: 12px;
    font-weight: 800;
}


.skill-card h3 {
    margin-bottom: 10px;
}


.skill-card p {
    color: var(--muted);

    font-size: 14px;
}


/* =========================
   PROJECTS
========================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.project-card {
    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;

    transition: 0.3s;
}


.project-card:hover {
    transform: translateY(-8px);
}


.project-image {
    height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: 2px;
}


.project-one {
    background:
        linear-gradient(
            135deg,
            #312e81,
            #111827
        );
}


.project-two {
    background:
        linear-gradient(
            135deg,
            #164e63,
            #111827
        );
}


.project-three {
    background:
        linear-gradient(
            135deg,
            #581c87,
            #111827
        );
}


.project-content {
    padding: 25px;
}


.project-content span {
    color: var(--primary-light);

    font-size: 12px;
}


.project-content h3 {
    margin: 8px 0;
}


.project-content p {
    color: var(--muted);

    font-size: 14px;
}


.project-link {
    display: inline-block;

    margin-top: 20px;

    color: white;

    font-size: 14px;
    font-weight: 600;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    background: var(--bg-soft);
}


.contact-box {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 60px;

    padding: 45px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;
}


.contact-info h3 {
    font-size: 30px;

    margin-bottom: 15px;
}


.contact-info > p {
    color: var(--muted);

    margin-bottom: 30px;
}


.contact-item {
    display: flex;

    flex-direction: column;

    margin-top: 20px;
}


.contact-item strong {
    font-size: 13px;
}


.contact-item span {
    color: var(--muted);

    font-size: 14px;
}


form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


input,
textarea {
    width: 100%;

    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: #0c111a;

    color: white;

    font-family: inherit;

    outline: none;
}


input:focus,
textarea:focus {
    border-color: var(--primary);
}


textarea {
    resize: vertical;
}


form button {
    border: none;

    cursor: pointer;

    font-family: inherit;
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid var(--border);
}


.footer-content {
    min-height: 80px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}


.footer-content p,
.footer-content a {
    color: var(--muted);

    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    nav {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        padding: 25px;

        background: var(--bg-soft);
    }


    nav.active {
        display: flex;
    }


    .menu-btn {
        display: block;
    }


    .hero-content {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-buttons,
    .social-links {
        justify-content: center;
    }


    .hero-card {
        max-width: 550px;

        margin: auto;
    }


    .about-grid {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .projects-grid {
        grid-template-columns: 1fr;
    }


    .contact-box {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .section {
        padding: 80px 0;
    }


    .hero h1 {
        font-size: 55px;

        letter-spacing: -3px;
    }


    .hero h2 {
        font-size: 20px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .skills-grid {
        grid-template-columns: 1fr;
    }


    .stats {
        justify-content: center;

        gap: 25px;
    }


    .contact-box {
        padding: 25px;
    }


    .footer-content {
        flex-direction: column;

        justify-content: center;

        gap: 10px;
    }

}