* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #080812;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: #ffffff;
    text-decoration: none;
}

section {
    padding: 100px 8%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 8, 18, 0.9);
    border-bottom: 1px solid 25253a;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: auto;
    padding: 18px 8%;
    display: flex;
    align-items: center;
    gap: 28px;
}

nav > a:first-child {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

nav > a:not(:first-child) {
    color: #b8b8c9;
    font-size: 14px;
    transition: 0.3s;
}

nav > a:not(:first-child):hover {
    color: #a855f7;
}

#home {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: #7c3aed;
    opacity: 0.12;
    filter: blur(120px);
    border-radius: 50p;
    top: 10%;
    right: 10%;
}

#home > * {
    position: relative;
    z-index: 1;
}

#home p:first-child {
    color: #a855f7;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 13px;
}

#home h1 {
    max-width: 800px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 1.05;
    margin-bottom: 25px;
}

#home h1 + p {
    max-width: 650px;
    color: #b8b8c9;
    font-size: 18px;
}

#home a {
    display: inline-block;
    margin-top: 20px;
    margin-right: 12px;
    padding: 13px 22px;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    transition: 0.3s;
}

#home a:hover {
    background: #7c3aed;
}

#home > div {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translate(-50%);
    text-align: center;
}

#home > img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #7c3aed;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.25);
}

#home > div p {
    margin: 8px 0 0;
}

#home > div p:last-of-type {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

#home > div p:last-of-type {
    font-size: 14px;
    color: #a855f7;
}

section > p:first-child {
    color: #a855f7;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

section h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

#about,
#projects,
#labs,
#technologies,
#journey,
#contact {
    border-top: 1px solid #1d1d30;
}

#about > p:not(:first-child) {
    max-width: 750px;
    color: #b8b8c9;
}

#projects > div,
#labs > div,
#technologies > div,
#journey > div {
    background: #10101d;
    border: 1px solid #24243a;
    border-radius: 14px;
    padding: 25px;
    margin-top: 20px;
    transition: 0.3s;
}

#projects > div:hover,
#labs > div:hover,
#technologies > div:hover,
#journey > div:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
}

section h3 {
    margin-bottom: 8px;
}

section div p {
    color: #a9a9ba;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.labs-grid > div {
    background: #10101d;
    border: 1px solid #24243a;
    border-radius: 14px;
    padding: 25px;
    transition: 0.3s;
}

.labs-grid > div:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
}

@media (max-width: 900px) {
    .labs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .labs-grid {
        grid-template-columns: 1fr;
    }
}

#projects,
#technologies,
#journey {
    display: block;
}

#technologies,
#journey {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#technologies > p:first-child,
#technologies > h2,
#journey > p:first-child,
#journey > h2 {
    grid-column: 1 / -1;
}

#technologies > div,
#journey > div {
    margin-top: 0;
}

@media (max-width: 700px) {
    #technologies,
    #journey {
        grid-template-columns: 1fr;
    }
}

#projects > div {
    max-width: 900px;
    margin-top: 30px;
    padding: 35px;
    background: linear-gradient(
        135deg,
        #111122,
        #0d0d18
    );
    border: 1px solid #3b2a5c;
}

#projects > div h3 {
    font-size: 28px;
}

#projects > div p {
    color: #b8b8c9;
}

#projects > div p:nth-of-type(1) {
    color: #f0c674;
    font-weight: bold;
    letter-spacing: 1px;
}

#projects > div a {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 20px;
    border: 1px solid #7c3aed;
    border-radius: 8px;
}

#projects > div a:hover {
    background: #7c3aed;
}

#contact {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 120px;
}

#contact h2 {
    font-size: clamp(36px, 5vw, 60px);
}

#contact > p:not(:first-child) {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: #b8b8c9;
}

#contact a {
    color: #a855f7;
    font-weight: bold;
}

#contact a:hover {
    color: #c084fc;
}

footer {
    text-align: center;
    padding: 50px 8%;
    border-top: 1px solid #1d1d30;
    background: #05050c;
}

footer img {
    width: 55px;
    margin-bottom: 10px;
}

footer p {
    color: #777789;
    font-size: 14px;
    margin: 6px 0;
}

footer p:first-of-type {
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 768px) {

   nav {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.project-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.project-nav a {
    text-align: center;
}

.project-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.project-nav a {
    text-align: center;
}

    nav > a:not(:first-child) {
        font-size: 13px;
    }

    #home {
        min-height: auto;
        padding-top: 80px;
    }

    #home > div {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 50px;
        width: 100%;
    }

    #home > div img {
        width: 230px;
        height: 290px;
    }

    section {
        padding: 75px 6%;
    }

    section h2 {
        font-size: 34px;
    }
}

/* Founder photo fix */

#home > div {
    position: absolute !important;
    right: 8% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 300px !important;
    text-align: center;
}

#home > div img {
    display: block;
    width: 260px !important;
    height: 330px !important;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 20px;
}

#home > div p {
    margin: 8px 0;
}

/* Labs grid fix */

#labs .labs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

#labs .labs-grid > div {
    margin-top: 0;
    width: auto;
}

@media (max-width: 900px) {
    #labs .labs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #labs .labs-grid {
        grid-template-columns: 1fr;
    }
}

/* Technology cards */

#technologies > div {
    position: relative;
    overflow: hidden;
}

#technologies > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #7c3aed;
}

#technologies > div h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

#technologies > div p {
    margin-bottom: 0;
    font-size: 15px;
}

/* Journey timeline */

#journey > div {
    position: relative;
    padding-left: 35px;
}

#journey > div::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 25px;
    width: 10px;
    height: 10px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

#journey > div h3 {
    font-size: 20px;
}

#journey > div p {
    margin-bottom: 0;
}

/* Card interaction */

#projects > div,
#labs .labs-grid > div,
#technologies > div,
#journey > div {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#projects > div:hover,
#labs .labs-grid > div:hover,
#technologies > div:hover,
#journey > div:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.12);
}

/* Project feature list */

#projects > div ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    padding-left: 20px;
    color: #b8b8c9;
}

#projects > div li::marker {
    color: #a855f7;
}

@media (max-width: 600px) {
    #projects > div ul {
        grid-template-columns: 1fr;
    }
}

#projects > div h3 {
    max-width: 750px;
    line-height: 1.3;
}

/* Founder section */

#founder {
    border-top: 1px solid #1d1d30;
}

#founder h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

#founder > p:not(:first-child) {
    max-width: 750px;
    color: #b8b8c9;
    font-size: 17px;
}

/* Founder image */

#founder {
    display: grid;
    grid-template-columns: 280px 1fr;
    column-gap: 50px;
    align-items: center;
}

#founder .founder-image {
    grid-row: 1 / span 3;
}

#founder .founder-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #7c3aed;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.2);
}

@media (max-width: 700px) {
    #founder {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    #founder .founder-image {
        grid-row: auto;
        max-width: 280px;
    }
}

#about h3 {
    margin-top: 35px;
    color: #a855f7;
    font-size: 18px;
    letter-spacing: 1px;
}

/* Strategen focus areas */

.focus-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.focus-areas > div {
    padding: 24px;
    background: #10101d;
    border: 1px solid #24243a;
    border-radius: 14px;
    transition: 0.3s;
}

.focus-areas > div:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
}

.focus-areas h3 {
    margin-top: 0;
    color: #ffffff;
}

.focus-areas p {
    margin-bottom: 0;
    color: #a9a9ba;
}

@media (max-width: 700px) {
    .focus-areas {
        grid-template-columns: 1fr;
    }
}

/* Projects introduction */

#projects > h2 + p {
    max-width: 700px;
    color: #a9a9ba;
    font-size: 17px;
    margin-bottom: 35px;
}

/* Labs introduction */

#labs > h2 + p {
    max-width: 700px;
    color: #a9a9ba;
    font-size: 17px;
    margin-bottom: 35px;
}

/* Technologies introduction */

#technologies > h2 + p {
    grid-column: 1 / -1;
    max-width: 700px;
    color: #a9a9ba;
    font-size: 17px;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Journey introduction */

#journey > h2 + p {
    grid-column: 1 / -1;
    max-width: 700px;
    color: #a9a9ba;
    font-size: 17px;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Section heading consistency */

section > p:first-child {
    margin-bottom: 12px;
}

section > h2 {
    margin-bottom: 15px;
}

section > h2 + p {
    line-height: 1.8;
}

/* Projects page */

body:has(#projects-page) main {
    max-width: 1100px;
    margin: 0 auto;
}

.projects-page-content {
    max-width: 900px;
}

.projects-page-content h1 {
    font-size: clamp(48px, 7vw, 80px);
    line-height: 1.05;
}

.projects-page-content h2 {
    color: #ffffff;
    margin-top: 50px;
}

.projects-page-content h3 {
    color: #a855f7;
    margin-top: 45px;
    font-size: 24px;
}

.projects-page-content p,
.projects-page-content li {
    color: #b8b8c9;
}

.projects-page-content ul,
.projects-page-content ol {
    padding-left: 25px;
}

.projects-page-content li {
    margin-bottom: 10px;
}

.projects-page-content > a {
    display: inline-block;
    margin-top: 50px;
    padding: 12px 20px;
    border: 1px solid #7c3aed;
    border-radius: 8px;
}

.projects-page-content > a:hover {
    background: #7c3aed;
}

/* Project status badge */

.project-status {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #7c3aed;
    border-radius: 999px;
    color: #c084fc !important;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(124, 58, 237, 0.08);
}

.project-note {
    margin-top: 50px;
    padding: 20px;
    border-left: 3px solid #7c3aed;
    background: #10101d;
    color: #8f8fa3 !important;
    font-size: 14px;
}

.project-label {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 10px;
    border: 1px solid #7c3aed;
    border-radius: 999px;
    color: #a855f7 !important;
    font-size: 11px !important;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Featured project title */

.projects-page-content h1 {
    max-width: 950px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    margin-top: 25px;
    margin-bottom: 20px;
}

.project-type {
    color: #a9a9ba !important;
    font-size: 18px !important;
    margin-bottom: 20px;
}

/* Project summary */

.project-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 50px 0;
}

.project-summary > div {
    padding: 20px;
    background: #10101d;
    border: 1px solid #24243a;
    border-radius: 12px;
}

.project-summary span {
    display: block;
    color: #8f8fa3;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.project-summary strong {
    color: #ffffff;
    font-size: 14px;
}

@media (max-width: 800px) {
    .project-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .project-summary {
        grid-template-columns: 1fr;
    }
}

/* User role cards */

.role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.role-cards > div {
    padding: 22px;
    background: #10101d;
    border: 1px solid #24243a;
    border-radius: 12px;
}

.role-cards h4 {
    margin-top: 0;
    color: #ffffff;
}

.role-cards p {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .role-cards {
        grid-template-columns: 1fr;
    }
}

/* Project case study spacing */

.projects-page-content h3 {
    margin-top: 60px;
    margin-bottom: 18px;
}

.projects-page-content p {
    max-width: 850px;
    line-height: 1.8;
}

.projects-page-content ul,
.projects-page-content ol {
    max-width: 850px;
    line-height: 1.8;
}

.projects-page-content li {
    margin-bottom: 12px;
}

/* Project development progress */

.project-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.progress-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: 0.3s ease;
}

.progress-step:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.6);
}

.progress-step span {
    display: inline-block;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.progress-step h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.progress-step p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Project navigation */

.project-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 50px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
}

.project-nav a {
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.project-nav a:hover {
    color: white;
    background: rgba(139, 92, 246, 0.18);
}

/* Mobile homepage hero fix */

@media (max-width: 700px) {

    #home > div {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 30px;
        text-align: center;
    }

    #home > div img {
        width: 240px;
        height: 300px;
        object-fit: cover;
    }
}

/* Mobile navigation */

@media (max-width: 700px) {

    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    header nav a {
        font-size: 11px;
    }
}

/* Active navigation link */

header nav a.active {
    color: #a855f7;
}

/* Project CTA */

.project-cta {
    margin: 60px 0 30px;
    padding: 40px;
    text-align: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
}

.project-cta h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.project-cta p {
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    background: #8b5cf6;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #7c3aed;
}

/* Lab detail */

.lab-detail {
    margin-top: 40px;
    padding: 30px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
}

.lab-detail h3 {
    margin-top: 0;
    color: #ffffff;
}

.lab-detail p {
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Lab information */

.lab-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.lab-info div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 12px;
}

.lab-info strong {
    display: block;
    color: #a855f7;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.lab-info span {
    display: block;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Lab back link */

.lab-back {
    display: inline-block;
    margin-top: 24px;
    color: #a855f7;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.lab-back:hover {
    color: #c4b5fd;
    transform: translateX(-3px);
}

/* Technology cards */

.tech-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    transition: 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.6);
}

.tech-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
}

.tech-card p {
    margin: 0 0 10px;
    color: #c4b5fd;
    font-weight: 600;
}

.tech-card span {
    display: block;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #a8a8b3;
}

/* Founder role */

.founder-role {
    color: #a855f7;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 8px 0 18px;
}

/* Founder focus */

.founder-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.founder-focus span {
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.06);
    color: #c4b5fd;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contact button */

.contact-button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #8b5cf6;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.contact-button:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

/* Mobile overflow fix */

@media (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    header,
    main,
    section,
    footer {
        max-width: 100%;
    }
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.08);
    color: #c4b5fd;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: translateY(-3px);
}