/* ========================================
   HIRA — FRONTEND DEVELOPER PORTFOLIO
======================================== */

:root {
    --black: #080808;
    --dark: #101010;
    --card: #141414;
    --red: #d62828;
    --red-light: #e63946;
    --white: #f5f5f5;
    --gray: #a0a0a0;
    --border: #292929;
    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
}

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

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


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

header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #0b0b0b;
}
.header.scrolled {
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    width: min(1200px, 90%);
    margin: auto;

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

.logo {
    font-family: var(--serif);
    font-size: 27px;
    letter-spacing: 4px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: #ccc;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--red-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.talk-btn {
    padding: 12px 22px;
    border: 1px solid var(--red);
    color: var(--white);
    transition: 0.3s;
}

.talk-btn:hover {
    background: var(--red);
}

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


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

.hero {
    min-height: 100vh;
    position: relative;

    display: flex;
    align-items: center;

    padding: 140px 0 90px;

    background:
        radial-gradient(
            circle at 80% 35%,
            rgba(214, 40, 40, 0.16),
            transparent 30%
        ),
        var(--black);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

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

    background-size: 70px 70px;
    pointer-events: none;
}

.hero-container {
    width: min(1200px, 90%);
    margin: auto;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;

    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--red-light);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(55px, 7vw, 100px);
    line-height: 0.98;
    font-weight: 400;
    max-width: 850px;
}

.hero h1 span {
    color: var(--red-light);
    font-style: italic;
}

.hero-text {
    color: var(--gray);
    max-width: 560px;
    margin: 30px 0;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    font-size: 12px;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--red);
    color: white;
}

.btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-3px);
}

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

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

.availability {
    margin-top: 35px;
    color: var(--gray);
    font-size: 12px;
}

.availability span {
    color: var(--red-light);
    margin-right: 8px;
}


/* HERO VISUAL */

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    transition: 0.5s;
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-8px);
    border-color: rgba(214, 40, 40, 0.5);
}

.hero-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 11px;
}

.code-window {
    background: #0b0b0b;
    border: 1px solid var(--border);
    padding: 25px;
    font-family: monospace;
    color: #aaa;
    font-size: 13px;
    line-height: 2;
}

.code-red {
    color: var(--red-light);
}

.code-white {
    color: white;
}


/* ========================================
   SECTION COMMON
======================================== */

section {
    padding: 120px 0;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    font-weight: 400;
}

.section-description {
    max-width: 600px;
    color: var(--gray);
    margin-top: 20px;
}


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

.about {
    padding: 120px 4%;
    background: #111;
    overflow: hidden;
}

.about-container {
    width: min(1400px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    gap: 80px;
    align-items: center;
}


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

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

.section-label {
    display: inline-block;

    margin-bottom: 30px;

    color: #ef3340;

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

    letter-spacing: 6px;
    text-transform: uppercase;
}

.about-content h2 {
    margin: 0 0 40px;

    color: #f5f5f5;

    font-family: "Playfair Display", serif;

    font-size: clamp(48px, 5vw, 78px);
    font-weight: 400;

    line-height: 1.05;
}

.about-content h2 em {
    display: block;

    font-style: italic;
    color: #f5f5f5;
}

.about-content p {
    max-width: 700px;

    margin: 0 0 25px;

    color: #aaa;

    font-size: 18px;
    line-height: 1.8;
}


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

.about-image {
    width: 100%;

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(239, 51, 64, 0.35);

    background: #181818;
}

.about-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(239, 51, 64, 0.08),
        transparent 45%,
        rgba(0, 0, 0, 0.25)
    );

    pointer-events: none;
}

.about-image img {
    display: block;

    width: 100%;
    height: 560px;

    object-fit: cover;

    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.04);
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 30px 25px;
    min-height: 160px;
    transition: 0.35s;
}

.skill-card:hover {
    border-color: var(--red);
    transform: translateY(-6px);
}

.skill-number {
    color: var(--red);
    font-size: 12px;
}

.skill-card h3 {
    margin: 25px 0 10px;
    font-size: 18px;
    font-weight: 500;
}

.skill-card p {
    color: var(--gray);
    font-size: 13px;
}


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

.projects {
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.project {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;

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

.project:nth-child(even) {
    grid-template-columns: 0.9fr 1.1fr;
}

.project:nth-child(even) .project-image {
    order: 2;
}

.project-image {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0d0d0d;
}

.project-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: 0.6s;
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(214, 40, 40, 0);
    transition: 0.4s;
}

.project-image:hover img {
    transform: scale(1.04);
}

.project-image:hover::after {
    background: rgba(214, 40, 40, 0.08);
}

.project-number {
    color: var(--red-light);
    font-size: 13px;
    letter-spacing: 3px;
}

.project-info h3 {
    font-family: var(--serif);
    font-size: clamp(35px, 4vw, 55px);
    font-weight: 400;
    margin: 15px 0;
}

.project-category {
    color: var(--gray);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-description {
    color: var(--gray);
    max-width: 500px;
    margin-bottom: 25px;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tech-tags span {
    border: 1px solid var(--border);
    padding: 7px 11px;
    color: #aaa;
    font-size: 10px;
    letter-spacing: 1px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: white;
    font-size: 11px;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--red);
    padding-bottom: 5px;
    transition: 0.3s;
}

.project-links a:hover {
    color: var(--red-light);
}


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

.services {
    background: var(--black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service-card {
    padding: 40px 30px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-height: 260px;
    transition: 0.35s;
}

.service-card:hover {
    background: var(--card);
}

.service-number {
    color: var(--red);
    font-size: 12px;
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    margin: 50px 0 15px;
}

.service-card p {
    color: var(--gray);
    font-size: 13px;
}


/* ========================================
   PROCESS
======================================== */

.process {
    background: var(--dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-item {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.process-item span {
    color: var(--red-light);
    font-size: 12px;
}

.process-item h3 {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 400;
    margin: 25px 0 10px;
}

.process-item p {
    color: var(--gray);
    font-size: 13px;
}


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

.contact {
    text-align: center;
}

.contact h2 {
    font-family: var(--serif);
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 400;
    line-height: 1;
    max-width: 850px;
    margin: auto;
}

.contact h2 span {
    color: var(--red-light);
    font-style: italic;
}

.contact-text {
    max-width: 550px;
    color: var(--gray);
    margin: 25px auto 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-links a {
    border-bottom: 1px solid var(--red);
    padding-bottom: 5px;
    font-size: 13px;
}


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

.footer {
    background: #050505;
    border-top: 1px solid var(--border);
    padding: 35px 0;
}

.footer-container {
    width: min(1200px, 90%);
    margin: auto;

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

.footer p {
    color: var(--gray);
    font-size: 12px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--gray);
    font-size: 12px;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--red-light);
}


/* ========================================
   SCROLL REVEAL
======================================== */

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

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


/* ========================================
   BACK TO TOP
======================================== */

.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: 1px solid var(--red);
    background: var(--black);
    color: white;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
    z-index: 999;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: var(--red);
}


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

@media (max-width: 1000px) {

    .nav-links {
        gap: 20px;
    }

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

    .hero-visual {
        max-width: 550px;
    }

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

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

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

    .project,
    .project:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .project:nth-child(even) .project-image {
        order: 0;
    }
}


@media (max-width: 750px) {

    section {
        padding: 85px 0;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 5%;
        width: 90%;

        background: #111;
        border: 1px solid var(--border);

        padding: 25px;

        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

    .project {
        padding: 50px 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


@media (max-width: 450px) {

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

    .section-heading h2 {
        font-size: 40px;
    }

    .contact h2 {
        font-size: 48px;
    }

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

    .btn {
        text-align: center;
    }
}
@media (max-width: 768px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        padding: 25px;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

}
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {

    .hamburger {
        display: block;
        z-index: 1001;
    }

}
.nav-links {
    position: absolute;
    top: 75px;
    left: 5%;
    width: 90%;

    background: #111;
    border: 1px solid var(--border);

    padding: 25px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        visibility 0.4s ease;
}

.nav-links.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}
/* ========================================
   ABOUT RESPONSIVE
======================================== */

@media (max-width: 900px) {

    .about {
        padding: 90px 6%;
    }

    .about-container {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content h2 {
        font-size: clamp(44px, 8vw, 65px);
    }

    .about-image {
        max-width: 700px;
        margin: 0 auto;
    }

    .about-image img {
        height: 480px;
    }
}


@media (max-width: 600px) {

    .about {
        padding: 75px 6%;
        background: #111;
    overflow: hidden;
    }

    .section-label {
        font-size: 12px;
        letter-spacing: 4px;
        margin-bottom: 22px;
    }

    .about-content h2 {
        font-size: 43px;
        line-height: 1.08;
        margin-bottom: 30px;
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .about-image img {
        
    height: 500px;
    width: 100%;
    object-fit: cover;
    display: block;
    }
}