/* =========================================================
   ULTRA PREMIUM DEVELOPER PORTFOLIO
   BLACK / NEON / FUTURISTIC
========================================================= */




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

:root {
    --black: #020403;
    --black-2: #050806;
    --black-3: #09100c;

    --green: #00ff88;
    --green-2: #00d96f;
    --green-soft: #7dffbd;

    --white: #f4fff8;
    --gray: #9aa69f;
    --gray-2: #59635e;

    --line: rgba(0, 255, 136, 0.12);
    --glass: rgba(8, 15, 11, 0.62);

    --glow:
        0 0 25px rgba(0, 255, 136, 0.18),
        0 0 80px rgba(0, 255, 136, 0.05);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    color: var(--white);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 255, 136, 0.09),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 35%,
            rgba(0, 255, 136, 0.06),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(0, 255, 136, 0.04),
            transparent 30%
        ),
        var(--black);

    font-family: "Inter", sans-serif;

    overflow-x: hidden;
}


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

body::before {
    content: "";

    position: fixed;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(0, 255, 136, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 255, 136, 0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            transparent 80%
        );

    pointer-events: none;

    z-index: -5;
}


/* =========================================================
   NOISE EFFECT
========================================================= */

body::after {
    content: "";

    position: fixed;

    inset: 0;

    opacity: 0.035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");

    pointer-events: none;

    z-index: 9999;
}


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

::selection {
    background: var(--green);

    color: #001b0d;
}


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

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

::-webkit-scrollbar-track {
    background: #010201;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            var(--green),
            var(--green-2)
        );

    border-radius: 20px;
}


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

.navbar {
    position: fixed;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    width: min(1150px, 92%);

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 18px 0 25px;

    background:
        linear-gradient(
            120deg,
            rgba(12, 22, 16, 0.82),
            rgba(3, 7, 5, 0.78)
        );

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

    border-radius: 20px;

    backdrop-filter: blur(25px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px rgba(255, 255, 255, 0.035);

    z-index: 1000;

    animation: navEnter 1s ease;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    position: relative;

    font-size: 25px;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.logo span {
    color: var(--green);

    text-shadow:
        0 0 10px var(--green),
        0 0 30px rgba(0, 255, 136, 0.45);
}

.logo::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    right: -9px;
    bottom: 3px;

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 10px var(--green);
}


/* =========================================================
   NAV LINKS
========================================================= */

.navbar-links {
    display: flex;
    gap: 5px;
}

.navbar-links a {
    position: relative;

    padding: 10px 14px;

    color: #8e9992;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    font-family: "Inter", sans-serif;

    border-radius: 10px;

    transition: 0.3s ease;
}

.navbar-links a:hover {
    color: var(--green);

    background: rgba(0, 255, 136, 0.055);
}

.navbar-links a::before {
    content: "";

    position: absolute;

    width: 4px;
    height: 4px;

    left: 50%;
    bottom: 4px;

    background: var(--green);

    border-radius: 50%;

    transform: translateX(-50%) scale(0);

    box-shadow: 0 0 12px var(--green);

    transition: 0.3s;
}

.navbar-links a:hover::before {
    transform: translateX(-50%) scale(1);
}

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

.navbar-collapse {
    flex-grow: 0;
}

.navbar-toggler {
    border: 1px solid var(--line);

    border-radius: 10px;

    padding: 8px 10px;

    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow:
        0 0 0 2px
        rgba(0, 255, 136, 0.15) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}




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

.hero {
    position: relative;

    min-height: 100vh;

    width: min(1250px, 90%);

    margin: auto;

    padding-top: 150px;

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 90px;
}


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

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -250px;
    top: 25%;

    border-radius: 50%;

    background:
        var(--green);

    filter: blur(180px);

    opacity: 0.055;

    pointer-events: none;
}


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

.hero-text {
    position: relative;

    animation:
        heroReveal 1s
        cubic-bezier(.2,.8,.2,1);
}

.small-title {
    display: flex;

    align-items: center;

    gap: 12px;

    color: var(--green);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 13px;

    margin-bottom: 25px;
}

.small-title::before {
    content: "";

    width: 45px;
    height: 1px;

    background: var(--green);

    box-shadow:
        0 0 15px var(--green);
}


/* =========================================================
   MAIN TITLE
========================================================= */

.hero h1 {
    font-size:
        clamp(
            70px,
            10vw,
            125px
        );

    line-height: 0.85;

    letter-spacing: -8px;

    margin-bottom: 25px;

    background:
        linear-gradient(
            120deg,
            #ffffff 5%,
            #caffdf 45%,
            var(--green) 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    filter:
        drop-shadow(
            0 0 30px
            rgba(0,255,136,0.08)
        );
}


/* =========================================================
   SUBTITLE
========================================================= */

.hero h2 {
    display: inline-block;

    color: var(--green);

    font-size:
        clamp(
            25px,
            3vw,
            38px
        );

    font-weight: 700;

    margin-bottom: 25px;

    text-shadow:
        0 0 25px
        rgba(0,255,136,0.2);
}

.hero-text > p:not(.small-title) {
    max-width: 580px;

    color: var(--gray);

    line-height: 1.9;

    font-size: 15px;
}


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

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 35px;
}

.btn,
.btn-outline {
    position: relative;

    min-width: 155px;

    padding: 15px 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;

    overflow: hidden;

    transition: 0.35s ease;
}

.btn {
    color: #001b0d;

    background:
        linear-gradient(
            135deg,
            var(--green-soft),
            var(--green)
        );

    box-shadow:
        0 0 30px
        rgba(0,255,136,0.22);
}

.btn::before {
    content: "";

    position: absolute;

    width: 100px;
    height: 200%;

    background:
        rgba(255,255,255,0.35);

    transform:
        rotate(25deg)
        translateX(-180px);

    transition: 0.5s;
}

.btn:hover::before {
    transform:
        rotate(25deg)
        translateX(300px);
}

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

    box-shadow:
        0 15px 45px
        rgba(0,255,136,0.3);
}

.btn-outline {
    color: var(--green);

    background:
        rgba(0,255,136,0.025);

    border:
        1px solid
        rgba(0,255,136,0.2);
}

.btn-outline:hover {
    transform:
        translateY(-5px);

    border-color:
        var(--green);

    background:
        rgba(0,255,136,0.07);

    box-shadow:
        0 15px 40px
        rgba(0,255,136,0.1);
}


/* =========================================================
   CODE WINDOW
========================================================= */

.hero-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(15,28,20,0.8),
            rgba(3,7,5,0.86)
        );

    border:
        1px solid
        rgba(0,255,136,0.16);

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 40px 100px
        rgba(0,0,0,0.55),
        0 0 70px
        rgba(0,255,136,0.07);

    transform:
        perspective(1200px)
        rotateY(-7deg)
        rotateX(2deg);

    animation:
        cardReveal 1.2s
        cubic-bezier(.2,.8,.2,1);

    transition:
        transform 0.6s,
        box-shadow 0.6s;
}

.hero-card:hover {
    transform:
        perspective(1200px)
        rotateY(0deg)
        rotateX(0deg)
        translateY(-10px);

    box-shadow:
        0 50px 120px
        rgba(0,0,0,0.65),
        0 0 100px
        rgba(0,255,136,0.12);
}


/* =========================================================
   CODE LIGHT
========================================================= */

.hero-card::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -170px;
    right: -150px;

    border-radius: 50%;

    background:
        var(--green);

    filter:
        blur(130px);

    opacity: 0.08;
}


/* =========================================================
   CODE HEADER
========================================================= */

.code-header {
    height: 48px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 0 18px;

    background:
        rgba(255,255,255,0.025);

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

.code-header span {
    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #28332d;
}

.code-header span:nth-child(1) {
    background: #ff5f57;
}

.code-header span:nth-child(2) {
    background: #febc2e;
}

.code-header span:nth-child(3) {
    background: #28c840;
}


/* =========================================================
   CODE
========================================================= */

.hero-card pre {
    padding: 35px;

    overflow-x: auto;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 13px;

    line-height: 2;

    color: var(--green);
}

.hero-card code {
    text-shadow:
        0 0 10px
        rgba(0,255,136,0.2);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    position: relative;

    width: min(1200px, 90%);

    margin: auto;

    padding: 140px 0;
}

.section::before {
    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(0,255,136,0.12),
            transparent
        );
}


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

.section-title {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 65px;
}

.section-title span {
    color: var(--green);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 12px;

    padding: 8px 11px;

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

    border-radius: 8px;

    background:
        rgba(0,255,136,0.035);
}

.section-title h2 {
    font-size:
        clamp(
            35px,
            5vw,
            52px
        );

    letter-spacing: -2px;
}


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

.about-content {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 90px;

    align-items: center;
}

.about-text h3 {
    font-size: 32px;

    margin-bottom: 22px;
}

.about-text p {
    color: var(--gray);

    line-height: 2;

    margin-bottom: 15px;
}

.about-box {
    display: grid;

    gap: 12px;
}

.about-box div {
    position: relative;

    padding: 23px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        linear-gradient(
            120deg,
            rgba(12,22,16,0.75),
            rgba(5,9,7,0.7)
        );

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

    border-radius: 14px;

    overflow: hidden;

    transition: 0.4s;
}

.about-box div::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 3px;
    height: 100%;

    background:
        var(--green);

    transform:
        scaleY(0);

    transition: 0.3s;
}

.about-box div:hover {
    transform:
        translateX(10px);

    border-color:
        rgba(0,255,136,0.3);

    box-shadow:
        0 15px 40px
        rgba(0,255,136,0.06);
}

.about-box div:hover::before {
    transform:
        scaleY(1);
}

.about-box strong {
    color: var(--green);
}

.about-box span {
    color: var(--gray-2);

    font-size: 13px;
}


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

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 16px;
}

.skill-card {
    position: relative;

    padding: 32px 20px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(13,22,17,0.72),
            rgba(4,8,6,0.82)
        );

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

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.4s,
        border 0.4s,
        box-shadow 0.4s;
}

.skill-card::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 1px;

    left: 0;
    bottom: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--green),
            transparent
        );

    transform:
        scaleX(0);

    transition: 0.4s;
}

.skill-card:hover {
    transform:
        translateY(-12px);

    border-color:
        rgba(0,255,136,0.32);

    box-shadow:
        0 25px 60px
        rgba(0,255,136,0.07);
}

.skill-card:hover::before {
    transform:
        scaleX(1);
}

.skill-icon {
    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 16px;

    border:
        1px solid
        rgba(0,255,136,0.18);

    background:
        radial-gradient(
            circle,
            rgba(0,255,136,0.1),
            transparent
        );

    color: var(--green);

    font-family:
        "JetBrains Mono",
        monospace;

    font-weight: 700;

    box-shadow:
        inset 0 0 25px
        rgba(0,255,136,0.04);
}

.skill-card h3 {
    margin-bottom: 10px;

    font-size: 16px;
}

.skill-card p {
    color: var(--gray-2);

    font-size: 12px;

    line-height: 1.7;
}


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

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.project-card {
    position: relative;

    min-height: 350px;

    display: flex;

    flex-direction: column;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(12,22,16,0.8),
            rgba(3,7,5,0.9)
        );

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

    border-radius: 20px;

    overflow: hidden;

    transition:
        transform 0.5s,
        border 0.5s,
        box-shadow 0.5s;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -130px;
    bottom: -130px;

    border-radius: 50%;

    background:
        var(--green);

    filter:
        blur(100px);

    opacity: 0;

    transition: 0.5s;
}

.project-card:hover {
    transform:
        translateY(-12px);

    border-color:
        rgba(0,255,136,0.35);

    box-shadow:
        0 30px 70px
        rgba(0,0,0,0.5);
}

.project-card:hover::before {
    opacity: 0.12;
}

.project-number {
    color: var(--green);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 12px;

    margin-bottom: 38px;
}

.project-card h3 {
    font-size: 23px;

    margin-bottom: 14px;
}

.project-card p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.9;

    margin-bottom: 22px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.project-tech span {
    padding: 6px 10px;

    color: var(--green);

    background:
        rgba(0,255,136,0.04);

    border:
        1px solid
        rgba(0,255,136,0.1);

    border-radius: 7px;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 10px;
}

.project-link {
    margin-top: auto;

    padding-top: 25px;

    color: var(--green);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: 0.3s;
}

.project-link:hover {
    color: white;

    transform:
        translateX(7px);
}


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

.contact-content {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 80px;

    align-items: start;
}

.contact-info h3 {
    font-size: 32px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--gray);

    line-height: 1.9;

    margin-bottom: 35px;
}

.contact-item {
    padding: 18px 0;

    display: flex;

    flex-direction: column;

    gap: 5px;

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

.contact-item strong {
    color: var(--green);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.contact-item span {
    color: var(--gray);

    font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    padding: 30px;

    display: flex;

    flex-direction: column;

    gap: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(11,20,15,0.8),
            rgba(3,7,5,0.82)
        );

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

    border-radius: 20px;

    box-shadow:
        var(--glow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 17px;

    color: white;

    background:
        rgba(0,0,0,0.28);

    border:
        1px solid
        rgba(255,255,255,0.055);

    border-radius: 11px;

    outline: none;

    font-family:
        "Inter",
        sans-serif;

    font-size: 13px;

    transition: 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #4f5b53;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color:
        rgba(0,255,136,0.55);

    background:
        rgba(0,255,136,0.025);

    box-shadow:
        0 0 30px
        rgba(0,255,136,0.05);
}

.contact-form textarea {
    min-height: 160px;

    resize: vertical;
}

.contact-form button {
    border: none;

    cursor: pointer;

    font-family: inherit;

    margin-top: 5px;
}


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

footer {
    position: relative;

    padding: 40px 20px;

    text-align: center;

    border-top:
        1px solid
        rgba(0,255,136,0.07);

    color: var(--gray-2);

    font-size: 12px;
}


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

@keyframes navEnter {

    from {
        opacity: 0;

        transform:
            translate(-50%, -30px);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, 0);
    }
}


@keyframes heroReveal {

    from {
        opacity: 0;

        transform:
            translateX(-45px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}


@keyframes cardReveal {

    from {
        opacity: 0;

        transform:
            perspective(1200px)
            rotateY(-18deg)
            translateX(50px);
    }

    to {
        opacity: 1;

        transform:
            perspective(1200px)
            rotateY(-7deg)
            translateX(0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 70px;
    }

    .hero-text {
        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero-card {
        width: 100%;

        max-width: 700px;

        margin: auto;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .hero {
        width: 90%;

        padding-top: 180px;
    }

    .hero h1 {
        font-size: 65px;

        letter-spacing: -5px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-buttons {
        width: 100%;

        flex-direction: column;
    }

    .btn,
    .btn-outline {
        width: 100%;
    }

    .hero-card {
        transform: none;
    }

    .hero-card:hover {
        transform: translateY(-6px);
    }

    .section {
        width: 90%;

        padding: 100px 0;
    }

    .section-title {
        margin-bottom: 45px;
    }

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

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

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

    .hero h2 {
        font-size: 21px;
    }

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


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;
    }
}
