
/* =========================================
   1. VARIABLES & RESET
========================================= */

:root {
    /* Colours */
    --primary-color: #171717;
    --secondary-color: #ffffff;
    --accent-color: #b7ff5a;
    --muted-color: #777777;
    --border-color: #dedede;

    /* Typography */
    --primary-font-family: 'Roboto', sans-serif;
    --secondary-font-family: 'Courier New', Serif;
    --third-font-family: 'Gabriola', Serif;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 900;

    /* Layout */
    --margin-left: 4vw;
    --section-padding: 100px 4vw;
    --section-gap: 8vw;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--primary-font-family);
    font-weight: var(--weight-regular);
}

h1, h2, h3, p {
    margin-top: 0;
}

a {
    color: inherit;
}


/* =========================================
   2. NAVIGATION
========================================= */

header {
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px var(--margin-left);
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: var(--weight-medium);
}

nav > a {
    white-space: nowrap;
    font-size: 1.1rem;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li:last-child a {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

nav ul li:last-child a:hover {
    background-color: #444444;
}

/* =========================================
   3. HERO SECTION
========================================= */

.hero {
    width: 100%;
    padding: 60px var(--margin-left) 100px;
}

.hero-header-text {
    font-family: var(--primary-font-family);
    margin-bottom: 30px;
}

.hero-header-text h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: var(--weight-bold);
    letter-spacing: -0.04em;
    margin: 0 0 10px;
}

.hero-body-text {
    display: flex;
    gap: 5vw;
    align-items: flex-start;
}

.hero-body-text > div:first-child {
    width: 35vw;
    max-width: 550px;
    padding-right: 3vw;
    font-family: var(--secondary-font-family);
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    line-height: 1.8;
}

.hero-body-text > div:last-child {
    flex: 1;
}

.hero-body-text > div:last-child p {
    margin: 0 0 12px;
}

.hero-body-text > div:last-child p:first-child,
.hero-body-text > div:last-child p:last-child {
    font-family: var(--secondary-font-family);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.hero-body-text > div:last-child p:nth-child(2),
.hero-body-text > div:last-child p:nth-child(3) {
    font-family: var(--third-font-family);
    font-size: 1.5rem;
}

/* Hero buttons */

.hero-button {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.hero-button > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    color: var(--secondary-color);
    background-color: var(--primary-color);

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

    font-family: var(--primary-font-family);
    font-weight: var(--weight-medium);

    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-button > button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.hero-button p {
    margin: 0;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Background Image */
.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 120%;

    background-image: url("assets\\slimane-kadi-OjtTcD6VycI-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Asymmetrical angled shape */
    clip-path: polygon(
        25% 0,
        100% 0,
        100% 100%,
        0 100%
    );

    /* Fade the image into the background */
    mask-image: linear-gradient(
        135deg,
        transparent 0%,
        black 35%,
        black 75%,
        transparent 100%
    );

    opacity: 0.35;
    z-index: -1;
}

/* =========================================
   4. SHARED SECTION LAYOUT
========================================= */

.services,
.technical-capabilities {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--section-gap);

    padding: var(--section-padding);

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

/* Shared section headings */

.services-header-text,
.technical-header {
    position: sticky;
    top: 80px;
    align-self: start;
}

.services-header-text h2,
.technical-header h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: var(--weight-medium);
    letter-spacing: -0.06em;
    margin: 15px 0;
}

.services-header-text > span,
.technical-header > span {
    font-size: 0.8rem;
    color: var(--muted-color);
    letter-spacing: 0.08em;
}

.services-header-text p,
.technical-header p {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted-color);
}

.technical-content > div:hover > span {
    color: var(--accent-color);
    cursor: pointer;
}

.technical-content > div:hover {
    cursor: pointer;
}

/* =========================================
   5. SERVICES / EXPERTISE
========================================= */

.services-body-text > div {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;

    padding: 35px 0;

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

    transition: padding-left 0.3s ease;
}

.services-body-text > div:first-child {
    border-top: 1px solid var(--border-color);
}

.services-body-text > div:hover {
    padding-left: 12px;
}

.services-body-text > div > span {
    font-size: 0.8rem;
    color: var(--muted-color);
    padding-top: 6px;
    transition: color 0.3s ease;
}

.services-body-text > div:hover > span {
    color: var(--accent-color);
}

.services-body-text > div > h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: var(--weight-medium);
    letter-spacing: -0.04em;
}

.services-body-text > div > p {
    grid-column: 2;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Development details */

.service-item > p,
.service-details {
    grid-column: 2;
}

.service-item > p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-details {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.8;
}

.service-details p {
    font-weight: var(--weight-medium);
    margin-bottom: 8px;
}

.service-details ul {
    padding-left: 20px;
    margin: 0;
}

.service-details li {
    margin-bottom: 8px;
}


/* =========================================
   6. TECHNICAL CAPABILITIES
========================================= */

.technical-content > div {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;

    padding: 35px 0;

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

    transition: padding-left 0.3s ease;
}

.technical-content > div:first-child {
    border-top: 1px solid var(--border-color);
}

.technical-content > div:hover {
    padding-left: 12px;
}

.technical-content > div > span {
    font-size: 0.8rem;
    color: var(--muted-color);
    padding-top: 6px;
}

.technical-content h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: var(--weight-medium);
    letter-spacing: -0.04em;
}

.technical-content p {
    grid-column: 2;
    max-width: 550px;
    margin: 5px 0 0;

    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted-color);
}


/* =========================================
   7. RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .hero-body-text {
        gap: 3vw;
    }

    .hero-body-text > div:first-child {
        width: 40%;
    }

    .services,
    .technical-capabilities {
        gap: 5vw;
    }

    nav ul {
        gap: 15px;
    }
}


@media (max-width: 768px) {

    /* Navigation */

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
    }

    /* Hero */

    .hero {
        padding: 50px var(--margin-left) 70px;
    }

    .hero-body-text {
        flex-direction: column;
        gap: 20px;
    }

    .hero-body-text > div:first-child {
        width: 100%;
        max-width: 550px;
        padding-right: 0;
    }

    .hero-body-text > div:last-child {
        width: 100%;
    }

    .hero-button {
        flex-wrap: wrap;
    }

    /* Shared sections */

    .services,
    .technical-capabilities {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 70px var(--margin-left);
    }

    .services-header-text,
    .technical-header {
        position: static;
    }

    /* Service entries */

    .services-body-text > div,
    .technical-content > div {
        padding: 25px 0;
    }
}


/* =========================================
   7. SELECTED PROJECTS
========================================= */

.projects {
    padding: var(--section-padding);
    border-top: 1px solid var(--border-color);
}

/* Section heading */

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 55px;
}

.projects-header > div > span {
    font-size: 0.8rem;
    color: var(--muted-color);
    letter-spacing: 0.08em;
}

.projects-header h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: var(--weight-medium);
    letter-spacing: -0.06em;
    margin: 15px 0 0;
}

.projects-header > p {
    max-width: 350px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted-color);
    margin-bottom: 5px;
}


/* Carousel */

.project-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Individual project */

.project-slide {
    display: none;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 5vw;
    width: 100%;
    min-height: 480px;
    animation: projectFade 0.45s ease;
}

.project-slide.active {
    display: grid;
}


/* Project information */

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-number {
    font-size: 0.8rem;
    color: var(--muted-color);
    letter-spacing: 0.08em;
    margin-bottom: 25px;
}

.project-info h3 {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: var(--weight-medium);
    letter-spacing: -0.06em;
    line-height: 1.1;
    margin: 0 0 20px;
}

.project-category {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-info > p {
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted-color);
    margin-bottom: 15px;
}


/* Technology tags */

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 25px;
}

.project-technologies span {
    font-size: 0.8rem;
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--muted-color);
}

.project-technologies > span:hover {
    background-color: var(--accent-color);
    cursor: pointer;
}


/* Project link */

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;

    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--weight-medium);

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

    transition: gap 0.25s ease;
}

.project-link:hover {
    gap: 17px;
}

.project-link .material-symbols-outlined {
    font-size: 1.1rem;
}


/* Project image */

.project-visual {
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    background-color: #f1f1f1;
}

.project-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-slide.active .project-visual img:hover {
    transform: scale(1.025);
}


/* Carousel navigation */

.project-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.project-dot:hover {
    background-color: var(--accent-color);
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-dot {
    width: 30px;
    height: 4px;
    padding: 0;
    border: none;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.project-dot.active {
    width: 50px;
    background-color: var(--primary-color);
}


/* Previous / next buttons */

.project-arrows {
    display: flex;
    gap: 10px;
}

.project-arrow {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 45px;
    height: 45px;

    border: 1px solid var(--border-color);
    border-radius: 50%;
    background-color: transparent;
    color: var(--primary-color);

    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.project-arrow:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}


/* Slide animation */

@keyframes projectFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background-color: #f0f0f0;
}

.project-visual img,
.project-visual video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

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

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);

    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.media-arrow:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.08);
}

.media-previous {
    left: 16px;
}

.media-next {
    right: 16px;
}

.media-arrow span {
    font-size: 28px;
}



.about-section {
    padding: var(--section-padding);
}

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

.section-heading span {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--muted-color);
}

.section-heading h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: var(--weight-medium);
    margin-top: 15px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8%;
    align-items: center;
}

.about-text h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--muted-color);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 650px;
}

.about-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
}

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

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 500px;
    }
}



.contact-section {
    padding: 120px 4vw 60px;
    background: var(--primary-color);
    color: var(--secondary-color);
}

.contact-heading span {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--muted-color);
}

.contact-heading h2 {
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 0.95;
    font-weight: var(--weight-medium);
    margin: 40px 0 25px;
}

.contact-heading p {
    max-width: 450px;
    color: #aaa;
    line-height: 1.7;
}

.contact-main {
    margin-top: 100px;
    padding-bottom: 35px;
    border-bottom: 1px solid #444;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: var(--secondary-color);
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: var(--accent-color);
}

.contact-email span {
    font-size: 1.5rem;
}

.contact-links {
    display: flex;
    gap: 35px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--accent-color);
}

.contact-links span {
    font-size: 18px;
}

@media (max-width: 768px) {
    .contact-section {
        padding-top: 80px;
    }

    .contact-main {
        margin-top: 65px;
    }

    .contact-links {
        gap: 25px;
    }
}


.site-footer {
    padding: 50px 4vw 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 50px;
}

.footer-brand a {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.footer-brand span {
    color: var(--muted-color);
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: var(--muted-color);
    font-size: 0.8rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-top:hover {
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   8. PROJECTS RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .project-slide {
        grid-template-columns: 1fr 1fr;
        gap: 3vw;
    }

    .project-info h3 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .project-visual,
    .project-visual img {
        min-height: 380px;
    }
}


@media (max-width: 768px) {

    .projects {
        padding: 70px var(--margin-left);
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 35px;
    }

    .project-slide,
    .project-slide.active {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-info {
        order: 2;
    }

    .project-visual {
        order: 1;
    }

    .project-visual,
    .project-visual img {
        min-height: 280px;
        max-height: 400px;
    }

    .project-number {
        margin-bottom: 15px;
    }

    .project-info h3 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .project-navigation {
        margin-top: 25px;
    }
}


@media (max-width: 480px) {

    .project-visual,
    .project-visual img {
        min-height: 230px;
    }

    .project-info h3 {
        font-size: 2.2rem;
    }

    .project-technologies {
        gap: 6px;
    }

    .project-technologies span {
        font-size: 0.75rem;
    }
}



@media (max-width: 480px) {

    nav {
        align-items: flex-start;
        flex-direction: column;
    }

    nav ul {
        gap: 12px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .hero-header-text h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

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

    .hero-button > button {
        width: 100%;
    }

    .services-header-text h2,
    .technical-header h2 {
        font-size: 3rem;
    }
}