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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #070b14;
    color: #f5f7ff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

.section {
    padding: 110px 0;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #070b14;
    --bg-secondary: #0c1220;
    --card: #101827;

    --text: #f5f7ff;
    --muted: #8993a7;

    --primary: #00f2fe;
    --primary-dark: #00b9c4;

    --border: rgba(255, 255, 255, 0.08);

    --radius: 18px;

    --transition: 0.3s ease;
}


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

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

    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

.header.scrolled {
    border-color: var(--border);
    background: rgba(7, 11, 20, 0.95);
}

.navbar {
    height: 75px;

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

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-button {
    padding: 10px 18px;

    border: 1px solid var(--primary);
    border-radius: 8px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

.nav-button:hover {
    background: var(--primary);
    color: #001014;
}

.menu-toggle {
    display: none;

    background: transparent;
    color: white;

    font-size: 22px;
}


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

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.blob {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.12;
}

.blob-1 {
    background: var(--primary);

    top: -150px;
    left: -100px;
}

.blob-2 {
    background: #7c3aed;

    right: -100px;
    bottom: -150px;
}

.hero-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--muted);

    font-size: 14px;

    margin-bottom: 12px;
}

.hero-subtitle span {
    width: 30px;
    height: 2px;

    background: var(--primary);
}

.hero h1 {
    font-size: clamp(48px, 7vw, 78px);
    line-height: 1;

    letter-spacing: -4px;

    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--primary);
}

.hero h2 {
    font-size: clamp(22px, 3vw, 32px);
    color: #ccd2df;

    margin-bottom: 20px;
}

.hero-description {
    max-width: 560px;

    color: var(--muted);

    margin-bottom: 30px;
}

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

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

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

    gap: 10px;

    padding: 13px 21px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #001014;
}

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

    box-shadow:
        0 10px 30px rgba(0, 242, 254, 0.2);
}

.btn-outline {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);

    color: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;

    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--muted);

    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);

    transform: translateY(-4px);
}


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

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

.code-card {
    width: 100%;
    max-width: 500px;

    background: #0b111d;

    border: 1px solid var(--border);
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4);

    transform: rotate(1deg);

    transition: var(--transition);
}

.code-card:hover {
    transform: rotate(0) translateY(-8px);
}

.code-header {
    height: 48px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 0 18px;

    background: #101827;

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

    color: var(--muted);

    font-size: 12px;
}

.window-buttons {
    display: flex;
    gap: 6px;
}

.window-buttons span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #4b5563;
}

.code-content {
    padding: 30px 25px;

    overflow-x: auto;
}

.code-content pre {
    font-family: monospace;

    font-size: 14px;

    line-height: 1.8;
}

.keyword {
    color: #c084fc;
}

.string {
    color: #4ade80;
}

.boolean {
    color: #38bdf8;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    max-width: 650px;

    margin: 0 auto 60px;

    text-align: center;
}

.section-label {
    color: var(--primary);

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

    margin-bottom: 12px;
}

.section-label i {
    margin-right: 6px;
}

.section-heading h2 {
    font-size: clamp(30px, 5vw, 46px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin-bottom: 15px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading > p:last-child {
    color: var(--muted);
}


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

.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;

    align-items: center;
}

.about-image {
    min-height: 360px;

    display: grid;
    place-items: center;

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

    background:
        radial-gradient(
            circle at center,
            rgba(0, 242, 254, 0.1),
            transparent 60%
        );
}

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

.profile-icon {
    width: 100px;
    height: 100px;

    margin: auto auto 20px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(0, 242, 254, 0.3);

    border-radius: 50%;

    color: var(--primary);

    font-size: 38px;

    background: rgba(0, 242, 254, 0.05);
}

.profile-card h3 {
    font-size: 22px;
}

.profile-card p {
    color: var(--muted);
}

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

    margin-bottom: 18px;
}

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

    margin-bottom: 18px;
}

.about-stats {
    display: flex;
    gap: 40px;

    margin-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    color: var(--primary);

    font-size: 30px;
}

.stat span {
    color: var(--muted);

    font-size: 13px;
}


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

.skills-grid {
    display: grid;

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

    gap: 18px;
}

.skill-card {
    padding: 28px;

    background: var(--card);

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

    border-radius: var(--radius);

    transition: var(--transition);
}

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

    border-color: rgba(0, 242, 254, 0.35);
}

.skill-icon {
    font-size: 32px;

    color: var(--primary);

    margin-bottom: 18px;
}

.skill-card h3 {
    margin-bottom: 8px;
}

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

    font-size: 13px;

    margin-bottom: 20px;
}

.skill-bar {
    width: 100%;
    height: 5px;

    background: #1b2433;

    border-radius: 20px;

    overflow: hidden;
}

.skill-bar span {
    display: block;

    height: 100%;

    background: var(--primary);

    border-radius: inherit;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 1s ease;
}

.skill-card small {
    display: block;

    color: var(--muted);

    font-size: 11px;

    text-align: right;

    margin-top: 6px;
}


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

.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;

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

    gap: 20px;
}

.project-card {
    overflow: hidden;

    background: var(--card);

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

    border-radius: var(--radius);

    transition: var(--transition);
}

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

    border-color: rgba(0, 242, 254, 0.3);
}

.project-image {
    height: 210px;

    position: relative;

    display: grid;
    place-items: center;

    overflow: hidden;
}

.project-vimate {
    background:
        linear-gradient(
            135deg,
            #00f2fe,
            #07111d 70%
        );
}

.project-video {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #111827 70%
        );
}

.project-todo {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #111827 70%
        );
}

.project-overlay {
    width: 65px;
    height: 65px;

    display: grid;
    place-items: center;

    border-radius: 50%;

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

    color: white;

    font-size: 24px;
}

.project-content {
    padding: 22px;
}

.project-top {
    display: flex;

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

    margin-bottom: 10px;
}

.project-top h3 {
    font-size: 20px;
}

.project-top a {
    color: var(--muted);

    transition: var(--transition);
}

.project-top a:hover {
    color: var(--primary);
}

.project-content p {
    color: var(--muted);

    font-size: 13px;

    margin-bottom: 18px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.project-tags span {
    padding: 5px 9px;

    background: rgba(0, 242, 254, 0.06);

    color: var(--primary);

    border-radius: 5px;

    font-size: 10px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;

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

    gap: 18px;
}

.service-card {
    padding: 28px;

    background: var(--card);

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

    border-radius: var(--radius);

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: rgba(0, 242, 254, 0.3);
}

.service-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(0, 242, 254, 0.07);

    color: var(--primary);

    font-size: 20px;
}

.service-card h3 {
    font-size: 17px;

    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);

    font-size: 13px;
}


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

.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 70px;
}

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

    margin-bottom: 15px;
}

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

    margin-bottom: 30px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.contact-item > div {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(0, 242, 254, 0.07);

    color: var(--primary);
}

.contact-item span {
    display: flex;

    flex-direction: column;

    color: var(--muted);

    font-size: 12px;
}

.contact-item strong {
    color: white;

    font-size: 13px;
}

.contact-socials {
    display: flex;

    gap: 10px;

    margin-top: 30px;
}

.contact-socials a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

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

    border-radius: 9px;

    color: var(--muted);

    transition: var(--transition);
}

.contact-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
}


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

.contact-form {
    padding: 30px;

    background: var(--card);

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

    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    color: #d7dce6;

    font-size: 12px;

    margin-bottom: 8px;
}

.input-box {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 15px;

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

    border-radius: 9px;

    background: #0b111d;

    transition: var(--transition);
}

.input-box:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(0, 242, 254, 0.05);
}

.input-box > i {
    color: var(--muted);

    font-size: 13px;
}

.input-box input,
.input-box textarea {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    padding: 13px 0;

    resize: vertical;
}

.input-box input::placeholder,
.input-box textarea::placeholder {
    color: #586274;
}

.textarea-box {
    align-items: flex-start;
}

.textarea-box i {
    margin-top: 15px;
}

.submit-btn {
    width: 100%;
}

.form-message {
    margin-top: 12px;

    text-align: center;

    font-size: 13px;

    color: var(--primary);
}


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

.footer {
    padding: 25px 0;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.footer p {
    color: var(--muted);

    font-size: 12px;
}

.back-top {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

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

    border-radius: 8px;

    color: var(--primary);

    transition: var(--transition);
}

.back-top:hover {
    background: var(--primary);
    color: #001014;
}


/* =========================================================
   SCROLL BUTTON
========================================================= */

.scroll-down {
    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    color: var(--muted);

    font-size: 10px;
}

.scroll-down i {
    color: var(--primary);

    animation: bounce 1.5s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(6px);
    }
}


/* =========================================================
   INTERSECTION OBSERVER ANIMATION
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .nav-links {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        padding: 25px;

        flex-direction: column;

        background: rgba(7, 11, 20, 0.98);

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

        transform: translateY(-20px);

        opacity: 0;

        pointer-events: none;

        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);

        opacity: 1;

        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }

    .nav-button {
        display: none;
    }

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

        padding-top: 70px;
    }

    .hero-image {
        display: none;
    }

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

        gap: 40px;
    }

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

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

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


@media (max-width: 600px) {

    .section {
        padding: 80px 0;
    }

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

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

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

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

    .about-stats {
        gap: 25px;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

    .scroll-down {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}