/* ====================
   Global Styles
==================== */

:root {

    /* Primary dark backgrounds */
    --clr-primary-600: #161B22;
    /* Secondary background (header, cards, sections) */
    --clr-primary-700: #0D1117;
    /* Main background */

    /* Neutral accents */
    --clr-surface: #1F2933;
    /* Elevated surfaces like modals or cards */
    --clr-border: #2D3748;
    /* Dividers, borders */

    /* Text colors */
    --clr-text-primary: #E6EDF3;
    /* High contrast text */
    --clr-text-secondary: #9BA4B5;
    /* Muted neutral text */

    /* Accent & CTA gradient */
    --clr-contrast-400: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --clr-accent: #3B82F6;
    /* Solid accent blue for icons, hovers, or highlights */


    --ff-primary: 'Poppins', sans-serif;

    --fs-300: clamp(1rem, 0.9565rem + 0.2174vw, 1.125rem);
    --fs-400: clamp(1.2rem, 1.0959rem + 0.5207vw, 1.4994rem);
    --fs-500: clamp(1.44rem, 1.2457rem + 0.9717vw, 1.9988rem);
    --fs-600: clamp(1.7281rem, 1.4025rem + 1.6283vw, 2.6644rem);
    --fs-700: clamp(2.0738rem, 1.5596rem + 2.5707vw, 3.5519rem);
    --fs-800: clamp(2.4881rem, 1.7066rem + 3.9076vw, 4.735rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-primary);
    font-weight: 200;
    font-size: var(--fs-300);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--clr-primary-700);
    color: var(--clr-text-primary);
}

body,
h1,
h2,
h3,
p,
ul {
    margin: 0;
    padding: 0;
}

.secondary-bg {
    background-color: var(--clr-primary-600);
}

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

a.txt-link {
    text-decoration: underline;
}

a.txt-link:hover {
    color: #2C72F6;
}

txt-link
/* ====================
   Typography
==================== */

h1 {
    margin-top: 2.5rem;
    font-size: var(--fs-800);
    font-weight: 500;
}

h2 {
    font-size: var(--fs-600);
    font-weight: 500;
}

h3 {
    font-size: var(--fs-300);
    font-weight: 400;
}

p {
    margin-bottom: 1em;
}

.section-title {
    margin-bottom: 2.5rem;
}

.section-content {
    text-align: center;
    max-width: 60ch;
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

/* ====================
   Layout
==================== */

section {
    padding: 4rem 0;
}

section.lowtop {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

section.lowbottom {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.container {
    margin-inline: auto;
    width: min(90%, 70.5rem);
}


.flip {
    flex-direction: row-reverse;
}

.services-detail-info>div {
    margin-bottom: 6em;
    align-items: center;
}

.services-detail-info>div:last-child {
    margin-bottom: 0;
}

@media (min-width: 50em) {

    section {
        padding: 7rem 0;
    }

    section.lowtop {
        padding-top: 3rem;
        padding-bottom: 7rem;
    }

    section.lowbottom {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .split {
        display: flex;
    }

    .split>*+* {
        margin-left: 2em;
    }

    .split.flip>*+* {
        margin-right: 2em;
        margin-left: 0;
    }

    .split>* {
        flex-basis: 100%;
    }
}


/* ====================
   img
==================== */

.image-container img {
    border-radius: 15px;
}

/* ====================
   Header
==================== */

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
    height: 80px;
}

div.logo {
    font-weight: 700;

}


/* ====================
   Navigation
   ==================== */

nav ul {
    display: flex;
    gap: 1.5em;
    list-style: none;
}

nav a {
    font-weight: 200;
    transition: 200ms ease;
}

nav a:hover {
    color: var(--clr-accent);
}

.sr-only {
    display: none;
}

.mobile-nav-toggle {
    display: none;
}

.primary-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}


nav a:after {
    content: "";
    position: absolute;
    background-color: var(--clr-primary-600);
    height: 3px;
    width: 0%;
    left: 50%;
    bottom: -5px;
    transition: 0.3s;
    transform: translateX(-50%);
    border-radius: 3px
}

nav a:hover::after,
a.active::after {
    width: 100%;
}


@media (max-width: 35em) {
    .primary-navigation {
        gap: 2em;
        position: fixed;
        inset: 0 0 0 30%;

        padding: min(20vh, 10rem) 2em;
        flex-direction: column;

        transform: translateX(100%);
        transition: transform 350ms ease-out;
        background: var(--clr-surface);
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
        z-index: 1000;
    }

    .mobile-nav-toggle {
        position: absolute;
        background: url(/images/burger-menu.svg);
        background-repeat: repeat;
        background-repeat: no-repeat;
        width: 2rem;
        border: 0;
        aspect-ratio: 1;
        top: 1.4rem;
        right: 1.5rem;
        z-index: 9999;
        display: block;
    }

    .mobile-nav-toggle[aria-expanded="true"] {
        background-image: url(/images/close-circle.svg);
    }
}


/* ====================
   Hero
==================== */

.hero {
    background:
        linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.0)),
        url('../images/bg-1-blue.jpg');
    background-size: cover;
    background-position: left;
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-size: clamp(2.4881rem, 1.7066rem + 3.9076vw, 4.735rem);
}

.hero p {
    width: 70%;
    color: var(--clr-text-secondary);
}


/* ====================
   Projects (Work)
==================== */

.project-overview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 4em;
}

.project-item {
    background: var(--clr-surface);
    border-radius: 8px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-item div {
    padding: 1rem;
}

.project-item img {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: auto;
    display: block;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item p {
    color: var(--clr-text-secondary);
}


/* ====================
   Images
==================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ====================
   Buttons
==================== */

button,
.btn {
    padding: 0.6em 2em;
    font-size: var(--fs-300);
    font-weight: 300;
    background: var(--clr-contrast-400);
    border: none;
    color: #fff;
    border-radius: 6px;
    transition: 300ms ease;
    cursor: pointer;
    display: inline-block;
    margin-top: 1rem;
}

button:hover,
.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ====================
   Services
==================== */

.service-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding-top: 1rem;
    font-weight: 300;
    font-size: var(--fs-400);
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-list li i {
    font-size: 1.5rem;
    color: var(--primary-color, #007bff);
}

.service-list li:hover {
    transform: translateX(0.5rem);
    color: var(--hover-color, #0056b3);
}

#services-detail p {
    margin-top: 5rem;
    text-align: center;
    scroll-margin: 40vh 0;
}


#design,
#photo-video,
#web-solutions {
    scroll-margin: 25vh 0;
}


#photo-video a {
    text-decoration: underline;
}

#photo-video a:hover {
    color: var(--clr-accent);
}



/* ============================
   About Us Page Styling
============================ */


.team-banner {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.team-section {
    padding: 6rem 0;
    background: var(--clr-primary-600);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.team-card {
    background-color: var(--clr-surface);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    width: 350px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.2rem;
}

.team-card h3 {
    font-size: var(--fs-400);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-card p {
    font-size: var(--fs-300);
    color: var(--clr-text-secondary);
    font-weight: 200;
    line-height: 1.5;
}

.section-title {
    margin-bottom: 2rem;
    font-size: var(--fs-600);
    font-weight: 500;
}

.section-content {
    margin-top: 1.5rem;
    font-size: var(--fs-300);
    max-width: 60ch;
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

/* ============================
   Contact Page Styling
============================ */

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: var(--fs-300);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    font-family: var(--ff-primary);
    font-size: var(--fs-300);
    font-weight: 200;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2C72F6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 114, 246, 0.2);
}

.contact-form button.btn {
    align-self: flex-start;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .contact-form {
        width: 90%;
    }
}

/* ============================
   Project articles
============================ */

.project-article img {
    margin-bottom: 1rem;
}

.project-details p {
    margin-bottom: 4rem;
}


/* ============================
   Animations 
============================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}


@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
    display: inline-block;
}

.fade-in-up,
.slide-in-left {
    opacity: 0;

}