/* =========================================================
   CODEHYPE — GLOBAL STYLES
========================================================= */

:root {
    --bg: #08090d;
    --bg-soft: #0e1016;
    --card: #11141b;
    --card-hover: #171b24;

    --text: #f5f7fa;
    --muted: #a5acb8;

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

    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.08);
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Inter",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;
}

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

a:hover {
    color: inherit;
}

p {
    color: var(--muted);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.03em;
}


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

.navbar {
    background: rgba(8, 9, 13, 0.82) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

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

    padding: 18px 0;
}

.navbar-brand {
    color: var(--text) !important;

    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.navbar-brand span {
    color: var(--muted);
}

.navbar .nav-link {
    color: #aeb4bf !important;

    margin-left: 22px;

    font-size: 0.95rem;
    font-weight: 500;

    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
}

.navbar-toggler {
    border-color: var(--border);
}

.navbar-toggler:focus {
    box-shadow: none;
}


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

.codehype-brand {
    display: flex;
    align-items: center;
}

.codehype-logo {
    width: 125px;
    height: 60px;

    object-fit: contain;
    display: block;
}


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

.btn {
    border-radius: 10px;

    padding: 12px 22px;

    font-weight: 600;

    transition: all 0.25s ease;
}

.btn-primary {
    background: #ffffff;
    color: #08090d;

    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: #e9ebee;
    color: #08090d;

    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #08090d;

    transform: translateY(-2px);
}


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

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    color: #8f97a5;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


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

.home-hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(255, 255, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.035),
            transparent 28%
        ),
        var(--bg);
}

.home-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;

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

    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    max-width: 900px;

    margin: 0;

    font-size: clamp(3.5rem, 8vw, 7rem);

    line-height: 0.98;

    letter-spacing: -0.065em;
}

.home-hero h1 span {
    color: #777f8c;
}

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

    margin-top: 30px;

    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


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

.hero-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 45px;

    margin-top: 65px;
}

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

.hero-stat strong {
    color: #ffffff;

    font-size: 1.4rem;
    font-weight: 700;
}

.hero-stat span {
    color: #7f8794;

    font-size: 0.82rem;

    margin-top: 2px;
}


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

.home-intro,
.channels-section,
.skills-section,
.home-cta {
    padding: 120px 0;
}

.home-intro {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.channels-section {
    border-top: 1px solid var(--border);
}

.skills-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.home-cta {
    border-top: 1px solid var(--border);
}


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

.home-intro h2,
.channels-section h2,
.skills-section h2,
.home-cta h2 {
    margin-bottom: 25px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.05;
}

.home-intro h2 span {
    color: #707885;
}


/* =========================================================
   INTRO
========================================================= */

.home-intro p {
    max-width: 720px;

    margin-bottom: 22px;

    font-size: 1.05rem;
}


/* =========================================================
   CHANNEL CARDS
========================================================= */

.channel-card {
    height: 100%;

    padding: 42px;

    background: var(--card);

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

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

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

    background: var(--card-hover);

    border-color: rgba(255, 255, 255, 0.17);
}

.channel-icon {
    display: flex;

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

    width: 55px;
    height: 55px;

    margin-bottom: 30px;

    border-radius: 14px;

    background: var(--accent-soft);

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

    font-size: 1.5rem;
}

.channel-card h3 {
    margin: 8px 0 15px;

    font-size: 2rem;
}

.channel-card p {
    min-height: 95px;

    margin-bottom: 25px;
}


/* =========================================================
   TEXT LINKS
========================================================= */

.text-link {
    display: inline-flex;

    align-items: center;

    color: #ffffff;

    font-weight: 600;

    transition: opacity 0.2s ease;
}

.text-link:hover {
    opacity: 0.65;
}


/* =========================================================
   SKILL CARDS
========================================================= */

.skill-card {
    height: 100%;

    min-height: 170px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 30px;

    background: var(--card);

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

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

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

    background: var(--card-hover);

    border-color: rgba(255, 255, 255, 0.16);
}

.skill-card i {
    color: #c8cdd5;

    font-size: 2rem;

    margin-bottom: 35px;
}

.skill-card h3 {
    margin: 0;

    font-size: 1.15rem;
}


/* =========================================================
   CTA
========================================================= */

.home-cta {
    position: relative;

    overflow: hidden;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.06),
            transparent 40%
        );
}

.home-cta p {
    max-width: 600px;

    margin: 0 auto;
}


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

.contact-emails {
    display: flex;

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

    flex-wrap: wrap;

    gap: 8px;

    color: #858d9a;

    font-size: 0.9rem;
}

.contact-emails a {
    transition: color 0.2s ease;
}

.contact-emails a:hover {
    color: #ffffff;
}


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

.about-contact {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 4px;

    margin-top: 20px;
}

.about-contact .hero-label {
    margin-bottom: 4px;
}

.about-email {
    display: inline-flex;

    align-items: center;

    color: #858d9a;

    text-decoration: none;

    font-size: 0.95rem;

    line-height: 1.4;

    margin: 0;
    padding: 0;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.about-email:hover {
    color: #ffffff;

    transform: translateX(3px);
}

.about-email i {
    color: #00d9ff;
}


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

.page-hero {
    padding: 150px 0 110px;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(255, 255, 255, 0.06),
            transparent 30%
        ),
        var(--bg);
}

.page-hero h1 {
    max-width: 850px;

    margin: 0;

    font-size: clamp(3.5rem, 8vw, 6.5rem);

    line-height: 0.95;
}

.page-hero p {
    max-width: 700px;

    margin-top: 30px;

    font-size: 1.1rem;
}


/* =========================================================
   ABOUT / LABS SECTIONS
========================================================= */

.about-section,
.labs-preview,
.labs-cta {
    padding: 110px 0;
}

.about-section {
    background: var(--bg-soft);

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


/* =========================================================
   LABS CARD
========================================================= */

.labs-card {
    padding: 45px;

    background: var(--card);

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

.labs-icon {
    width: 60px;
    height: 60px;

    display: flex;

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

    margin-bottom: 25px;

    background: var(--accent-soft);

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

    border-radius: 15px;

    font-size: 1.7rem;
}

.labs-card h3 {
    font-size: 2rem;
}


/* =========================================================
   LABS SKILL CARDS
========================================================= */

.labs-skill-card {
    min-height: 250px;
}

.coming-soon {
    display: inline-block;

    margin-top: 14px;

    color: #858d9a;

    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


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

.code-window {
    overflow: hidden;

    background: #07080b;

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

.dots {
    padding: 14px 18px;

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

    color: #6f7784;

    font-size: 0.7rem;

    letter-spacing: 4px;
}

.code-window pre {
    margin: 0;

    padding: 30px;

    overflow-x: auto;

    color: #dce1e8;

    font-size: 0.9rem;

    line-height: 1.7;
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-card {
    height: 100%;

    padding: 36px;

    background: var(--card);

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

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

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

    background: var(--card-hover);

    border-color: rgba(255, 255, 255, 0.17);
}

.project-top {
    display: flex;

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

    margin-bottom: 25px;
}

.project-top > i {
    color: #aeb4bf;

    font-size: 1.6rem;
}

.project-tag {
    display: inline-block;

    color: #858d9a;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}

.project-card h2 {
    margin-bottom: 15px;

    font-size: 1.9rem;

    line-height: 1.15;
}

.project-card p {
    margin-bottom: 25px;

    line-height: 1.7;
}


/* =========================================================
   TECHNOLOGY STACK
========================================================= */

.tech-stack {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.tech-stack span {
    display: inline-block;

    padding: 6px 11px;

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

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

    border-radius: 8px;

    color: #aeb4bf;

    font-size: 0.75rem;
}


/* =========================================================
   PROJECT STATUS
========================================================= */

.project-footer {
    display: flex;

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

    gap: 20px;

    margin-top: 28px;
    padding-top: 18px;

    border-top: 1px solid #1b1d22;
}

.project-status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #858d9a;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow:
        0 0 10px rgba(74, 222, 128, 0.4);
}


/* =========================================================
   PROJECT DETAIL
========================================================= */

.project-detail-hero {
    padding-bottom: 90px;
}

.project-detail-actions {
    margin-top: 30px;
}

.project-info-card {
    padding: 30px;

    background: var(--card);

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

.project-info-item {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 18px 0;

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

.project-info-item:first-child {
    padding-top: 0;
}

.project-info-item:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

.project-info-item span {
    color: #7f8794;

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.project-info-item strong {
    color: #f5f7fa;

    font-size: 0.95rem;
}

.project-status-detail {
    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.project-feature-card {
    min-height: 230px;
}

.project-detail-stack {
    margin-top: 30px;
}


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

.simple-footer {
    border-top: 1px solid #1b1d22;

    padding: 22px 0;

    background: #08090b;

    color: #626a76;

    font-size: 0.85rem;
}

.simple-footer .container {
    text-align: center;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991px) {

    .navbar .nav-link {
        margin-left: 0;

        padding: 10px 0;
    }

    .home-hero {
        min-height: 90vh;
    }

    .home-hero h1 {
        font-size: clamp(3.2rem, 12vw, 5.5rem);
    }

    .hero-stats {
        gap: 30px;

        margin-top: 50px;
    }

    .home-intro,
    .channels-section,
    .skills-section,
    .home-cta {
        padding: 90px 0;
    }

    .channel-card {
        padding: 32px;
    }

    .about-section,
    .labs-preview,
    .labs-cta {
        padding: 90px 0;
    }

    .project-card {
        padding: 32px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 576px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar {
        padding: 14px 0;
    }

    .codehype-logo {
        width: 115px;
        height: 55px;
    }

    .home-hero {
        min-height: 85vh;
    }

    .home-hero h1 {
        font-size: 3.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

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

    .hero-stats {
        display: grid;

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

        gap: 25px;
    }

    .hero-stat strong {
        font-size: 1.15rem;
    }

    .home-intro,
    .channels-section,
    .skills-section,
    .home-cta {
        padding: 75px 0;
    }

    .home-intro h2,
    .channels-section h2,
    .skills-section h2,
    .home-cta h2 {
        font-size: 2.7rem;
    }

    .channel-card {
        padding: 28px;
    }

    .channel-card h3 {
        font-size: 1.7rem;
    }

    .channel-card p {
        min-height: auto;
    }

    .page-hero {
        padding: 95px 0 70px;
    }

    .page-hero h1 {
        font-size: 3rem;

        line-height: 1;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .about-section,
    .labs-preview,
    .labs-cta {
        padding: 75px 0;
    }

    .labs-card {
        padding: 30px;
    }

    .code-window pre {
        padding: 20px;

        font-size: 0.78rem;
    }

    .contact-emails {
        flex-direction: column;

        gap: 5px;
    }

    .contact-emails .mx-2 {
        display: none;
    }

    .project-card {
        padding: 28px;
    }

    .project-card h2 {
        font-size: 1.7rem;

        line-height: 1.15;
    }

    .project-footer {
        align-items: flex-start;

        flex-direction: column;
    }

    .project-info-card {
        padding: 25px;
    }

    .project-feature-card {
        min-height: auto;
    }

    .simple-footer {
        padding: 18px 0;

        font-size: 0.8rem;
    }
}
