:root {
    --red: #ff1744;
    --red-dark: #d50032;
    --black: #050505;
    --black-2: #090909;
    --card: #0d0d0d;
    --border: #242424;
    --white: #ffffff;
    --gray: #a0a0a0;
    --gray-dark: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body::selection {
    background: var(--red);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    width: min(1150px, 92%);
    margin: auto;
}


/* ================= NAVBAR ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    position: relative;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 2px;
    background: var(--red);
}

.hire-btn {
    padding: 11px 19px;
    border-radius: 6px;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 800;
    transition: 0.3s;
}

.hire-btn:hover {
    background: white;
    color: black;
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 27px;
    cursor: pointer;
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    background: var(--red);
    opacity: 0.055;
    filter: blur(120px);
    border-radius: 50%;
    left: -250px;
    top: 5%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid #292929;
    border-radius: 30px;
    background: #0d0d0d;
    color: #ccc;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 22px;
}

.status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 12px #00e676;
}

.hero-label {
    color: var(--red);
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero h2 {
    font-size: 24px;
    line-height: 1.4;
    color: #ddd;
    margin-top: 25px;
}

.hero h2 strong {
    display: block;
    color: white;
}

.hero-description {
    max-width: 600px;
    color: var(--gray);
    margin-top: 17px;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 13px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 0 23px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    transition: 0.3s;
}

.btn-primary {
    background: var(--red);
    color: white;
    border: 1px solid var(--red);
}

.btn-primary:hover {
    background: white;
    border-color: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 23, 68, 0.2);
}

.btn-outline {
    border: 1px solid #333;
    color: white;
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.social-links {
    display: flex;
    gap: 9px;
    margin-top: 30px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #292929;
    border-radius: 6px;
    color: #888;
    font-size: 11px;
    font-weight: 900;
    transition: 0.3s;
}

.social-links a:hover {
    color: white;
    background: var(--red);
    border-color: var(--red);
}


/* ================= CODE CARD ================= */

.developer-section {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
}

.red-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    background: var(--red);
    opacity: 0.12;
    filter: blur(90px);
    border-radius: 50%;
}

.developer-card {
    width: min(100%, 500px);
    position: relative;
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid #292929;
    border-radius: 13px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: rotate(2deg);
    transition: 0.4s;
}

.developer-card:hover {
    transform: rotate(0deg) translateY(-8px);
    border-color: rgba(255, 23, 68, 0.5);
}

.card-top {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 17px;
    background: #111;
    border-bottom: 1px solid #222;
}

.card-top > span {
    color: #777;
    font-size: 10px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ff5252;
}

.dots span:nth-child(2) {
    background: #ffc107;
}

.dots span:nth-child(3) {
    background: #00e676;
}

.code-area {
    padding: 29px;
    color: #aaa;
    font-family: monospace;
    font-size: 13px;
}

.code-area p {
    margin-bottom: 7px;
}

.purple {
    color: #d16bff;
}

.yellow {
    color: #ffc107;
}

.green {
    color: #4cff91;
}

.indent {
    padding-left: 25px;
}

.indent2 {
    padding-left: 50px;
}

.terminal-line {
    border-top: 1px solid #242424;
    margin-top: 25px;
    padding-top: 18px;
}

.terminal-line span,
.terminal-line b {
    color: var(--red);
}

.terminal-line b {
    float: right;
}

.floating-badge {
    position: absolute;
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    border: 1px solid #333;
    background: #111;
    border-radius: 9px;
    color: var(--red);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 15px 40px black;
}

.badge-one {
    left: 0;
    bottom: 45px;
}

.badge-two {
    right: 0;
    top: 65px;
}


/* ================= SECTIONS ================= */

.section {
    padding: 120px 0;
}

.dark-section {
    background: #080808;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.section-title {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-title > span {
    color: var(--red);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 900;
}

.section-title h2 {
    margin-top: 10px;
    font-size: clamp(37px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.section-title h2 strong {
    color: var(--red);
}

.section-title p {
    color: var(--gray);
    margin-top: 15px;
}


/* ================= ABOUT ================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-box {
    height: 420px;
    position: relative;
    overflow: hidden;
    border: 1px solid #242424;
    border-radius: 12px;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 23, 68, 0.12),
            transparent 50%
        ),
        #0c0c0c;
}

.about-box::after {
    content: "";
    position: absolute;
    inset: 25px;
    border: 1px solid #222;
    border-radius: 8px;
}

.big-code {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 65px;
    font-weight: 900;
}

.big-code span {
    color: var(--red);
}

.about-number {
    position: absolute;
    z-index: 3;
    top: 30px;
    right: 30px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}

.about-label {
    position: absolute;
    z-index: 3;
    left: 30px;
    bottom: 30px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 18px;
}

.about-content h3 span {
    color: var(--red);
}

.about-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 30px;
    background: #292929;
    border: 1px solid #292929;
}

.info-grid div {
    padding: 18px;
    background: #0c0c0c;
}

.info-grid span {
    display: block;
    color: #666;
    font-size: 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-grid strong {
    font-size: 12px;
}


/* ================= SKILLS ================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.skill-card {
    padding: 27px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 9px;
    transition: 0.3s;
}

.skill-card:hover {
    border-color: rgba(255, 23, 68, 0.55);
    transform: translateY(-5px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #171717;
    border: 1px solid #292929;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
}

.skill-card h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.skill-card p {
    color: #777;
    font-size: 12px;
}


/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    padding: 30px;
    background: #0b0b0b;
    border: 1px solid #252525;
    border-radius: 10px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--red);
    transform: translateY(-7px);
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
    color: var(--red);
    font-size: 25px;
    font-weight: 900;
}

.service-top span {
    color: #555;
    font-size: 11px;
}

.service-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.service-card p {
    color: #777;
    font-size: 13px;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
}

.service-list span {
    padding: 6px 9px;
    background: #151515;
    border: 1px solid #242424;
    border-radius: 4px;
    color: #aaa;
    font-size: 9px;
}


/* ================= PROJECTS ================= */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.project-card {
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 12px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 23, 68, 0.5);
}

.project-preview {
    height: 280px;
    position: relative;
    display: grid;
    place-items: center;
    padding: 30px;
    overflow: hidden;
}

.flower-preview {
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 23, 68, 0.25),
            transparent 45%
        ),
        #171010;
}

.garment-preview {
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 255, 255, 0.1),
            transparent 40%
        ),
        #111;
}

.preview-window {
    width: 82%;
    height: 190px;
    overflow: hidden;
    background: #080808;
    border: 1px solid #333;
    border-radius: 7px;
    box-shadow: 0 20px 60px black;
}

.preview-bar {
    height: 25px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 9px;
    background: #151515;
    border-bottom: 1px solid #222;
}

.preview-bar span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #555;
}

.flower-content,
.garment-content {
    padding: 22px;
}

.flower-logo,
.garment-logo {
    color: var(--red);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.flower-content h4,
.garment-content h4 {
    margin-top: 12px;
    font-size: 18px;
}

.flower-content p,
.garment-content p {
    color: #777;
    font-size: 9px;
}

.flower-content button {
    margin-top: 15px;
    padding: 7px 12px;
    background: var(--red);
    color: white;
    border: 0;
    border-radius: 3px;
    font-size: 8px;
}

.clothes {
    display: flex;
    gap: 6px;
    margin-top: 15px;
}

.clothes span {
    padding: 6px 9px;
    border: 1px solid #333;
    color: #999;
    font-size: 7px;
}

.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.project-body {
    padding: 28px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    padding: 5px 8px;
    background: #141414;
    border: 1px solid #292929;
    border-radius: 4px;
    color: #aaa;
    font-size: 9px;
}

.project-body h3 {
    margin-top: 18px;
    font-size: 23px;
}

.project-body p {
    margin-top: 9px;
    color: #777;
    font-size: 13px;
}

.project-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.project-link:hover {
    color: white;
}


/* ================= CONTACT ================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.contact-heading span {
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.contact-heading h3 {
    margin: 10px 0 15px;
    font-size: 30px;
    line-height: 1.2;
}

.contact-details > p {
    margin-bottom: 30px;
    color: #777;
    font-size: 13px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #222;
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #292929;
    border-radius: 7px;
    background: #101010;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
}

.contact-item span {
    display: block;
    color: #666;
    font-size: 9px;
    text-transform: uppercase;
}

.contact-item strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
}

.contact-form {
    padding: 30px;
    background: #0b0b0b;
    border: 1px solid #242424;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #aaa;
    font-size: 10px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px;
    outline: none;
    background: #080808;
    color: white;
    border: 1px solid #292929;
    border-radius: 6px;
    font-size: 12px;
    transition: 0.3s;
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.08);
}

.submit-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
}


/* ================= FOOTER ================= */

footer {
    padding: 50px 0;
    background: #030303;
    border-top: 1px solid #181818;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-block;
}

.footer-content p {
    margin: 8px 0 25px;
    color: #666;
    font-size: 12px;
}

.footer-line {
    height: 1px;
    margin-bottom: 20px;
    background: #1c1c1c;
}

.copyright {
    color: #555;
    font-size: 10px;
}


/* ================= SCROLL TOP ================= */

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid #333;
    border-radius: 7px;
    background: var(--red);
    color: white;
    cursor: pointer;
    font-size: 17px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}


/* ================= REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 25px;
        background: #080808;
        border-bottom: 1px solid #222;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        gap: 60px;
    }

}


@media (max-width: 650px) {

    .section {
        padding: 85px 0;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 52px;
        letter-spacing: -3px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .developer-card {
        transform: none;
    }

    .code-area {
        padding: 20px;
        font-size: 10px;
    }

    .skills-grid,
    .services-grid,
    .projects-grid,
    .info-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .about-box {
        height: 330px;
    }

    .project-preview {
        height: 240px;
    }

    .preview-window {
        width: 90%;
    }

    .contact-form {
        padding: 20px;
    }

}
