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

:root {
    --bg: #030507;
    --bg2: #070a0f;
    --card: #090d13;
    --line: #18202b;
    --text: #f4f7fb;
    --muted: #788393;
    --blue: #00aaff;
    --purple: #792cff;
    --green: #00ff9d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}


/* LOADER */

.loader {
    position: fixed;
    inset: 0;
    background: #020305;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: loaderOut .7s ease 1.2s forwards;
}

.loader-logo {
    color: var(--blue);
    font-size: 45px;
    font-weight: 900;
    letter-spacing: 5px;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: .3;
        transform: scale(.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 35px var(--blue);
    }
}

@keyframes loaderOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/* BACKGROUND */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    opacity: .3;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: .12;
    z-index: -2;
    pointer-events: none;
}

.glow-blue {
    background: var(--blue);
    top: -250px;
    left: -200px;
}

.glow-purple {
    background: var(--purple);
    right: -250px;
    bottom: -250px;
}


/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3,5,7,.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    z-index: 1000;
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo span {
    color: var(--blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -9px;
    left: 0;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 27px;
    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 100vh;
    padding: 140px 8% 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 95px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -4px;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px #dce7f3;
}

.typing {
    margin-top: 28px;
    font-size: 21px;
    color: #aeb8c6;
}

.typing span {
    color: var(--blue);
    font-weight: 700;
}

.hero-description {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 22px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: .3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--blue);
    color: #001018;
    box-shadow: 0 0 25px rgba(0,170,255,.18);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(0,170,255,.45);
}

.btn-outline {
    border: 1px solid var(--line);
    color: white;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-4px);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.socials a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    transition: .3s;
}

.socials a:hover {
    color: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(0,170,255,.2);
}


/* HERO VISUAL */

.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(
        var(--blue),
        var(--purple),
        var(--blue)
    );
    animation: rotate 8s linear infinite;
    box-shadow: 0 0 70px rgba(0,170,255,.15);
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #05080d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 55px;
    font-weight: 900;
    animation: rotateReverse 8s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateReverse {
    to {
        transform: rotate(-360deg);
    }
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0,170,255,.15);
    border-radius: 50%;
}

.orbit-1 {
    width: 300px;
    height: 300px;
}

.orbit-2 {
    width: 390px;
    height: 390px;
    border-color: rgba(121,44,255,.1);
}

.floating-card {
    position: absolute;
    padding: 10px 15px;
    background: rgba(10,15,22,.85);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    color: #aab4c2;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.card-one {
    top: 35px;
    right: 10px;
    color: var(--blue);
}

.card-two {
    bottom: 55px;
    left: 0;
    animation-delay: .8s;
}

.card-three {
    bottom: 15px;
    right: 35px;
    animation-delay: 1.5s;
}

@keyframes float {
    50% {
        transform: translateY(-12px);
    }
}


/* STATS */

.home-stats {
    max-width: 1100px;
    margin: auto;
    padding: 30px 7% 100px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.stat-box {
    padding: 25px;
    border: 1px solid var(--line);
    background: rgba(9,13,19,.7);
    border-radius: 10px;
}

.stat-box strong {
    display: block;
    color: var(--blue);
    font-size: 28px;
    margin-bottom: 7px;
}

.stat-box span {
    color: var(--muted);
    font-size: 12px;
}


/* PAGE */

.page {
    padding: 160px 8% 100px;
    max-width: 1400px;
    margin: auto;
}

.page-header {
    margin-bottom: 75px;
}

.page-header > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.page-header h1 {
    margin-top: 15px;
    font-size: clamp(45px, 6vw, 75px);
    letter-spacing: -3px;
}

.page-header h1 b {
    color: var(--blue);
}

.page-header p {
    margin-top: 15px;
    color: var(--muted);
}


/* ABOUT */

.about-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 80px;
}

.about-profile {
    text-align: center;
}

.big-profile {
    width: 260px;
    height: 260px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    font-weight: 900;
    background:
        radial-gradient(circle, #111923, #05080c);
    border: 1px solid var(--blue);
    box-shadow:
        0 0 50px rgba(0,170,255,.12),
        inset 0 0 50px rgba(0,170,255,.05);
}

.about-profile h2 {
    margin-top: 25px;
    font-size: 22px;
}

.about-profile p {
    margin-top: 8px;
    color: var(--blue);
    font-size: 12px;
}

.about-content h2 {
    font-size: 35px;
    margin-bottom: 25px;
}

.about-content > p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 17px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 35px;
}

.info-grid div {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.info-grid small {
    display: block;
    color: #505c6c;
    font-size: 9px;
    margin-bottom: 7px;
}

.info-grid strong {
    font-size: 12px;
}

.online {
    color: var(--green);
}


/* SKILLS */

.skills-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.skill-card {
    position: relative;
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: .35s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
    box-shadow: 0 15px 50px rgba(0,170,255,.06);
}

.skill-number {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #27303c;
    font-size: 35px;
    font-weight: 900;
}

.skill-icon {
    color: var(--blue);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 30px;
}

.skill-card h2 {
    margin-bottom: 12px;
}

.skill-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
}

.skill-tags span {
    padding: 7px 10px;
    background: #10161e;
    border: 1px solid #1b2633;
    color: #8e99a9;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
}


/* PROJECTS */

.projects-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}

.project-large {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    transition: .35s;
}

.project-large:hover {
    transform: translateY(-8px);
    border-color: var(--blue);
}

.project-preview {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    font-weight: 900;
    letter-spacing: 5px;
}

.preview-blue {
    background: linear-gradient(135deg,#004e73,#080d14);
}

.preview-purple {
    background: linear-gradient(135deg,#3e207f,#080d14);
}

.preview-green {
    background: linear-gradient(135deg,#075f49,#080d14);
}

.project-info {
    padding: 30px;
}

.project-info small {
    color: var(--blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.project-info h2 {
    margin: 12px 0;
}

.project-info p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.project-button {
    display: inline-block;
    margin-top: 25px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}


/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-text h2 {
    font-size: clamp(35px,5vw,60px);
    line-height: 1;
}

.contact-text > p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 25px;
    max-width: 500px;
}

.contact-links {
    margin-top: 40px;
}

.contact-links a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: #b9c2cf;
    font-size: 13px;
}

.contact-links span {
    display: block;
    color: #4e5968;
    font-size: 9px;
    margin-bottom: 6px;
}

.contact-form {
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    background: #05080d;
    color: white;
    padding: 15px;
    border-radius: 7px;
    margin-bottom: 14px;
    transition: .3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 15px rgba(0,170,255,.08);
}

.contact-form textarea {
    height: 160px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}


/* FOOTER */

footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--line);
}

.footer-logo {
    color: var(--blue);
    font-weight: 900;
    font-size: 25px;
    letter-spacing: 3px;
}

footer p {
    color: #596575;
    font-size: 11px;
    margin-top: 12px;
}

footer span {
    display: block;
    color: #3f4956;
    font-size: 9px;
    margin-top: 8px;
}


/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        align-self: center;
    }

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

    .about-profile {
        text-align: left;
    }

    .big-profile {
        margin: 0;
    }

}


@media (max-width: 800px) {

    .navbar {
        padding: 0 5%;
    }

    .menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 25px;
        background: #05080d;
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .page {
        padding-left: 5%;
        padding-right: 5%;
    }

}


@media (max-width: 550px) {

    .hero {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -2px;
    }

    .hero h1 span {
        -webkit-text-stroke: .7px #dce7f3;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        height: 350px;
    }

    .profile-circle {
        width: 180px;
        height: 180px;
    }

    .orbit-1 {
        width: 240px;
        height: 240px;
    }

    .orbit-2 {
        width: 310px;
        height: 310px;
    }

    .home-stats {
        padding-left: 5%;
        padding-right: 5%;
    }

    .page {
        padding-top: 130px;
    }

    .page-header h1 {
        font-size: 48px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .about-profile {
        text-align: center;
    }

    .big-profile {
        margin: auto;
    }

    .contact-layout {
        gap: 40px;
    }

}


/* REDUCE MOTION */

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

  }
