/*---------------------------------------------------------- BASE CSS ----------------------------------------------------------------------------------------------------- */

/* ---------------------------- CSS RESET ------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #FAF7F2;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------------------------- ELEMENTS ------------------------------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

a:focus {
    outline: 2px solid #1E1E1E;
    outline-offset: 2px;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------------------------- FONTS ------------------------------- */
@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/inter-regular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/inter-medium-webfont.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/inter-semibold-webfont.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("../assets/fonts/playfairdisplay-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------- VARIABLES ------------------------------- */
:root {
    /* Colors */
    --color-main-bg: #F1F5F9;
    --color-section-alt: #E2E8F0;
    --color-text: #020617;

    --color-accent-primary: #0EA5E9;
    --color-accent-secondary: #94A3B8;

    --color-secondary-light: #E0F2FE;
    --color-secondary-medium: #7DD3FC;
    --color-secondary-dark: #0369A1;

    --color-text-muted: #475569;

    --color-glass-light: rgba(255,255,255,0.6);
    --color-glass-medium: rgba(255,255,255,0.35);

    --gradient-primary: linear-gradient(135deg, #38BDF8, #64748B);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Font Sizes */
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Line Heights */
    --lh-h1: 1.2;
    --lh-h2: 1.3;
    --lh-h3: 1.35;
    --lh-body: 1.6;

    /* Letter Spacing */
    --ls-heading: 0.5px;
    --ls-body: 0px;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 1rem;

    /* Section spacing */
    --space-section: 3rem;
    --space-section-lg: 6rem;

    --section-heading-padding: 1rem;

    /* UI */
    --header-height: 100px;
    --logo-size: 120px;
    --icon-size: 84px;

    --radius: 6px;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------------------------- TYPOGRAPHY ------------------------------- */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
    color: var(--color-text);
    background-color: var(--color-main-bg);
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: var(--ls-heading);
    color: var(--color-text);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

h5 {
    font-size: var(--fs-h5);
}

p {
    font-size: var(--fs-body);
}

ul, li {
    font-size: var(--fs-body);
}

.sub-text {
    color: var(--color-text-muted);
    font-size: var(--fs-h5);
    font-family: var(--font-secondary);
}

/* ---------------------------- LAYOUT SYSTEM ------------------------------- */

/* Horizontal container ONLY */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Vertical spacing (sections) */
.section {
    padding-block: var(--space-section);
}

.section-lg {
    padding-block: var(--space-section-lg);
}

/* Section headings */
.section-heading {
    margin-bottom: var(--section-heading-padding);
}

/* Header height */
header {
    height: var(--header-height);
}

/* ---------------------------- IMAGES ------------------------------- */
img {
    display: block;
    max-width: 100%;
}

/* ---------------------------- UTILITIES ------------------------------- */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* ---------------------------- RESPONSIVE ------------------------------- */

/* Tablet */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --space-section: 5rem;
        --space-section-lg: 7rem;

        --fs-h1: 3.5rem;
        --fs-h2: 2.5rem;
        --fs-h3: 2rem;
    }

    p,ul,li {
        font-size: 1.2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --container-padding: 3rem;
        --space-section: 4rem;
        --space-section-lg: 8rem;

        --fs-h1: 4rem;
        --fs-h2: 2.75rem;
        --fs-h3: 2rem;
        --fs-h4: 1.4rem;
    }

    a {
        font-size: 1.2rem;
    }

    p,ul,li {
        font-size: 1.3rem;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    :root {
        --container-padding: 4rem;
    }

    h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.5rem; }

    a { font-size: 1.6rem; }
    p,ul,.cons-list { font-size: 1.4rem; }
}

@media (min-width: 1920px) {
    :root {
        --container-padding: 0rem;
        --container-width: 1600px;
    }

    h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2rem; }
    h4 {font-size: 1.8rem;}

    a { font-size: 1.6rem; }
    p,ul,li { font-size: 1.4rem; }
}

/* Mobile utilities */
@media (max-width: 767px) {
    .flex {
        flex-direction: column;
    }
}

/*---------------------------------------------------------- LAYOUT CSS ----------------------------------------------------------------------------------------------------- */

/* ----------------- HEADER -------------------- */

header {
    width: 100%;
    height: var(--header-height);
    background: transparent;
    backdrop-filter: none;
    color: var(--color-text);

    position: fixed;
    z-index: 9999;
}

header .container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    
    padding-top: 0.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px black;
}

/* Logo */
header img {
    height: var(--logo-size);
    width: var(--logo-size);
    object-fit: contain;
}

/* ---------------- NAV ---------------- */
header nav {
    display: flex;
}

/* NAV LIST */
header nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* LINKS */
header a {
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-medium);
}

header a:hover,
header a:focus {
    color: var(--color-secondary-dark);
}

#navMenu a.active {
    color: var(--color-secondary-medium);
}

/* ---------------- HAMBURGER BUTTON ---------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    display: block;
    transition: var(--transition-medium);
}

/* ACTIVE STATE (hamburger → X) */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-toggle {
    position: relative;
    z-index: 110; /* higher than nav */
}

/* ---------------- OVERLAY ---------------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);

    opacity: 0;
    visibility: hidden;

    transition: opacity var(--transition-medium), visibility var(--transition-medium);

    z-index: 90;
}

/* Active overlay */
.overlay.active {
    opacity: 1;
    visibility: visible;
}


/*------------------------------ FOOTER --------------------------------------*/

.footer-decor-line {
    height: 1px;
    width: 100%;
    background-color: var(--color-accent-secondary);
    margin-bottom: 2rem;
}


.footer-logo img {
    height: auto;
    width: var(--logo-size);
    margin: 2rem auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-quick-links,
.footer-location,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-quick-links a,
.footer-contact a {
    text-decoration: none;
    color: var(--color-accent-primary);
    transition: color var(--transition-medium);
}

.footer-quick-links a:hover,
.footer-contact a:hover {
    color: var(--color-secondary-dark);
}

.footer-location p,
.footer-contact p {
    margin-bottom: 0;
}

/* ---------------- MOBILE MENU ---------------- */
@media (max-width: 767px) {
    

    /* Stack header */
    header .container {
        flex-direction: row;
        position: fixed;
        top: 0;
    }

    header.scrolled {
    
    padding-top: 4rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px black;
}


    /* Remove all active/hover/focus highlight from submenu links on mobile */
    #navMenu .submenu a,
    #navMenu .submenu a:active,
    #navMenu .submenu a:focus,
    #navMenu .submenu a:hover {
        color: inherit;       /* keep text color same as normal */
        background: none;     /* remove background highlight */
        transition: none;     /* disable transition easing */
    }

    /* Show hamburger */
    .nav-toggle {
        display: flex;
    }

    /* NAV PANEL */
    header nav {
        position: fixed;
        top: 0;
        right: 0;

        height: 100vh;
        width: 75%;
        max-width: 300px;

        background: var(--gradient-primary);
        

        flex-direction: column;
        justify-content: center;
        align-items: center;

        transform: translateX(100%);
        transition: transform var(--transition-medium);

        box-shadow: -5px 0 15px rgba(0,0,0,0.2);

        z-index: 100;
    }

    /* ACTIVE STATE */
    header nav.active {
        transform: translateX(0);
    }

    /* Vertical nav */
    header nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    header nav ul > li:not(:last-child)::after {
        content: "";
        display: block;
        height: 1px;
        width: 150px;
        margin: 1rem 0 0 0;
        background-color: var(--color-accent-secondary);
    }

    .no-scroll {
        overflow: hidden;
        width: 100%;
    }
}

/* ---------------------------- NAV (TABLET) ------------------------------- */
@media (min-width: 768px) {

    header {
        top: 0;
    }

    header img {
        height: 2.7rem;
        width: auto;
    }

    header.section {
        padding: 0;
    }

    nav ul {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    nav ul li a {
        position: relative;
        text-decoration: none;
        color: inherit;
        padding: 0.25rem 0;
    }

    /* underline */
    nav ul li a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 100%;
        height: 2px;
        background: currentColor;

        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    /* hover */
    nav ul li a:hover::after {
        transform: scaleX(1);
    }

    nav ul li a.active::after {
        transform: scaleX(1);
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    
    header.container {
        padding: 4rem 4rem;
    }

    header img {
        height: 3rem;
        width: auto;
    }
}

@media (min-width: 1440px) { 
    header img {
        height: 3.5rem;
        width: auto;
    }
}


@media (min-width: 1920px) {
    header img {
        height: 4rem;
        width: auto;
    }
}

/*---------------------------------------------------------- CONPONENTS CSS ------------------------------------------------------------------------------------------------- */

/* ---------------------- BUTTONS ---------------------------------- */

.primary-btn{
    text-decoration: none;
    color: var(--color-text);
    padding: 1rem;
    font-weight: 500;
    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 1px 1px 4px var(--color-accent-primary),
        inset -1px -1px 4px var(--color-accent-secondary);

    transition: var(--transition-medium);
}

.primary-btn:hover {
    color: var(--color-accent-primary);
    transform: translateY(-2px); /* 👈 smoother than padding jump */
}

/*---------------------------------------------------------- HOME CSS ----------------------------------------------------------------------------------------------------- */


/* ----------------------------------------------------------- HERO ---------------------------------------------------------- */

.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    gap: 4rem; /* 👈 spacing between text + mockups */

    background: var(--gradient-primary);
    padding-top: 8rem;
    padding-bottom: 2rem;
}

/* -------------SECTION DIVIDER ------------*/

.section-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0; /* removes weird spacing */
    pointer-events: none;
}

.section-separator svg {
    display: block;
    width: 100%;
    height: 300px; /* adjust this */
}

/* ------------------------ Content -------------------------- */

.hero-content {
    z-index: 5;
    max-width: 600px;
}

.hero-content p {
    margin-bottom: 2rem;
}



/* ------------------------ Mockups -------------------------- */

.mockup-stack {
    position: relative; /* 👈 IMPORTANT: keep in layout */
    width: 100%;
    max-width: 600px;
    height: 400px; /* 👈 FIXED: enough space for cards */
    transform: none; /* 👈 reset shift on mobile */

    perspective: 1200px;
    transform: translateX(-40px); /* 👈 pulls cards inward */
    flex-shrink: 0;
    isolation: isolate;
}

/* Base card */
.mockup {
    position: absolute;
    width: 100%;
    max-width: 100%;

    border-radius: 12px;
    overflow: hidden;

    background: var(--color-glass-light);
    backdrop-filter: blur(8px);

    box-shadow: 0 20px 50px rgba(0,0,0,0.08);

    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;

    transition: transform var(--transition-medium),
                opacity var(--transition-medium);
}

.mockup img {
    width: 100%;
    display: block;
}

/* ------------------------ Card Positions -------------------------- */

/* BACK */
.card-4 {
    top: 10px;
    left: 100px;

    transform:
        rotateY(-20deg)
        rotateX(12deg)
        rotateZ(12deg)
        scale(0.9);

    opacity: 0.35;
    filter: blur(2px);
    z-index: 1;
}

/* MID BACK */
.card-3 {
    top: 50px;
    left: 0px;

    transform:
        rotateY(-18deg)
        rotateX(10deg)
        rotateZ(12deg)
        scale(0.95);

    opacity: 0.55;
    filter: blur(1px);
    z-index: 2;
}

/* MID FRONT */
.card-2 {
    top: 110px;
    left: 80px;

    transform:
        rotateY(-15deg)
        rotateX(8deg)
        rotateZ(12deg)
        scale(1);

    opacity: 0.75;
    z-index: 3;
}

/* FRONT */
.card-1 {
    top: 170px;
    left: 10px;

    transform:
        rotateY(-12deg)
        rotateX(6deg)
        rotateZ(12deg)
        scale(1.05);

    opacity: 0.95;
    z-index: 4;
}

/* ------------------------------------------------------------ TRUST SECTION -------------------------------------------------------*/

.trust-section img {
    margin-bottom: 2rem;
}

/* ----------------------------------------------------------- PAIN/SOLUTION ---------------------------------------------------------- */

.pain-header,
.solution-header,
.trust-header {
    padding-bottom: 2rem;
}

.pain-grid,
.solution-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pain-card,
.solution-card {
    display: flex;
    flex-direction: column;
    border: 0 solid white;
    padding: 1rem;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 1px 1px 4px var(--color-accent-primary),
        inset -1px -1px 4px var(--color-accent-secondary);
    border-radius: var(--radius);
}

.pain-card-content,
.solution-card-content {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: stretch; /* ensures span stretches to match tallest content */
}

.pain-card span,
.solution-card span {
    display: block;
    width: 0.5rem;
    background-image: var(--gradient-primary); /* gradient applied correctly */
    border-radius: 4px; /* optional, for a nicer look */
}

.pain-card-text,
.solution-card-text{
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pain-card-text p,
.solution-card-text p {
    margin-bottom: 0.2rem;
}

.pain-card-label,
.solution-card-label {
    color: var(--color-accent-primary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.section-mark {
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--color-secondary-medium);
    margin-bottom: 0.5rem;
}


/* --------------------------------------------------- PORTFOLIO SECTION ----------------------------------------------------- */

.portfolio-intro {
    position: relative;
    overflow: hidden;
}

.portfolio-intro .container {
    display: flex;
    flex-direction: column;
}
.portfolio-intro {
    padding-bottom: 6rem; /* 👈 gives space so blob isn't cut */
}

.portfolio-intro::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 700px;
  left: -200px;
  top: 0;
  transform: none;
  background: var(--gradient-primary);
  border-radius: 200px;
  z-index: 0;
}

.portfolio-visual {
    z-index: 1;
}

.portfolio-content {
    z-index: 1;
    max-width: 300px;
}

.portfolio-content p{
    margin-bottom: 2rem;
}


/*----------------------------- PROCESS SECTION ------------------------------------*/

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step svg {
    height: var(--icon-size);
    width: var(--icon-size);
    color: var(--color-accent-primary);
}

.process-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);

    position: absolute;
    top: -40px;
    left: 120px;

    font-size: 14rem;
    letter-spacing: -4px;
    color: var(--color-secondary-medium);
    opacity: 0.15;

    z-index: 0;
    pointer-events: none;
}

/* ------------------------- ABOUT ME SECTION ------------------------------*/

.about-me-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.about-me-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-me-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 700px;

    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border-radius: 200px;
    z-index: 0;
    overflow: hidden;
}

.about-me-img {
    width: 15rem;
    height: 15rem;
    margin-right: 3rem;
}

.about-me-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;  
    border-radius: 50%;
    border: 1px solid var(--color-secondary-medium);
}

.about-me-content {
    padding-top: 2rem;
    max-width: 280px;
    text-align: left;
}

/* ------------------------- SERVICES SECTION ------------------------------*/

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item svg {
    height: var(--icon-size);
    width: var(--icon-size);
    color: var(--color-accent-primary);
}

/* -------------------- FINAL CTA SECTION ----------------------------------*/

.final-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--gradient-primary);
    padding-top: 8rem;   /* 👈 space for top wave */
    padding-bottom: 8rem;
}

.final-cta a {
    align-items: center;
    margin: 0 auto;
}

.final-cta p {
    padding-bottom: 1rem;
}

.section-separator.top {
    top: 0;
    bottom: auto;
    pointer-events: none;
}

.section-separator.top svg {
    transform: rotate(180deg);
}

@media (min-width: 768px) {

    .hero-section {
        gap: 8rem; /* 👈 spacing between text + mockups */

        padding-top: 10rem;
        padding-bottom: 12rem;
    }

    /* BACK */
    .card-4 {
        top: 60px;
        left: 120px;
    }

    /* MID BACK */
    .card-3 {
        top: 100px;
        left: 20px;
    }

    /* MID FRONT */
    .card-2 {
        top: 160px;
        left: 100px;
    }

    /* FRONT */
    .card-1 {
        top: 220px;
        left: 30px;
    }

    /* ------------------------- ABOUT ME SECTION ------------------------------*/

    .about-me-section {
        padding: 8rem 0;
    }

    .about-me-section::before {
        width: 900px;
        height: 700px;
    }

    .about-me-img {
        margin-right: 13rem;
    }

    .about-me-content {
        max-width: 550px;
    }

    /* ------------------------ PORTFOLIO SECTION ----------------------------- */

    .portfolio-intro {
        padding-bottom: 8rem; /* 👈 gives space so blob isn't cut */
    }

    .portfolio-intro::before {
        width: 900px;
        height: 700px;
    }

    .portfolio-visual {
        z-index: 1;
        margin-top: -4rem;
    }

    .portfolio-visual img {
        height: 20rem;
        width: auto;
    }

    .portfolio-content {
        z-index: 1;
        max-width: 550px;
    }

    .portfolio-content p{
        margin-bottom: 2rem;
    }

    .process-step::before {
        top: -60px;
        left: 320px;
    }
}

@media (min-width: 1024px) {
    
    .hero-section.home .hero-content {
        min-width: 800px;
    }
    
    /* ------------------------ Card Positions -------------------------- */

    .hero-section {
        gap: 8rem; /* 👈 spacing between text + mockups */

        padding-top: 10rem;
        padding-bottom: 16rem;
    }

    /* BACK */
    .card-4 {
        top: 60px;
        left: 240px;

        transform:
            rotateY(-20deg)
            rotateX(12deg)
            rotateZ(12deg)
            scale(1.2);
    }

    /* MID BACK */
    .card-3 {
        top: 100px;
        left: 120px;

        transform:
            rotateY(-18deg)
            rotateX(10deg)
            rotateZ(12deg)
            scale(1.25);
    }

    /* MID FRONT */
    .card-2 {
        top: 160px;
        left: 200px;

        transform:
            rotateY(-15deg)
            rotateX(8deg)
            rotateZ(12deg)
            scale(1.3);
    }

    /* FRONT */
    .card-1 {
        top: 220px;
        left: 130px;

        transform:
            rotateY(-12deg)
            rotateX(6deg)
            rotateZ(12deg)
            scale(1.35);
    }

    /* ------------------------------- PAIN/SOLUTION ----------------------------- */

    .pain-grid,
    .solution-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* ------------------------- ABOUT ME SECTION ------------------------------*/

    .about-me-section {
        padding: 8rem 0;
    }

    .about-me-section::before {
        width: 1200px;
        height: 600px;
    }

    .about-me-img {
        margin-right: 22rem;
    }

    .about-me-content {
        max-width: 850px;
    }

    /* ------------------------ PORTFOLIO SECTION ----------------------------- */

    .portfolio-intro {
        padding: 8rem 0 16rem 0; /* 👈 gives space so blob isn't cut */
    }

    .portfolio-intro .container {
        display: flex;
        flex-direction: row-reverse;
        
    }

    .portfolio-intro::before {
        width: 1200px;
        height: 600px;
    }

    .portfolio-visual {
        z-index: 1;
        margin-top: 0;
        flex: 1;
    }

    .portfolio-visual img {
        height: 25rem;
        width: auto;
    }

    .portfolio-content {
        z-index: 1;
        max-width: 320px;
        flex: 1;
    }

    .portfolio-content p{
        margin-bottom: 2rem;
    }

    /* -------------------- PROCESS -------------------- */

    .process-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

     .process-step::before {
        top: -40px;
        left: 20px;
    }

    /* -------------------------- SERVICES ------------------ */

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* ------------------------- FINAL CTA -------------------- */

    .final-cta {
        padding-top: 10rem;   /* 👈 space for top wave */
        padding-bottom: 10rem;
    }
}

@media (min-width: 1440px) {

    .hero-section.home .hero-content {
        min-width: 1050px;
    }

    .section-separator svg {
        height: 500px; 
    }

    .hero-section {
        padding-bottom: 18rem;
    }

    /* ------------------------ Card Positions -------------------------- */

    .hero-section {
        gap: 8rem; /* 👈 spacing between text + mockups */

        padding-top: 10rem;
        padding-bottom: 16rem;
    }

    /* BACK */
    .card-4 {
        top: 20px;
        left: 440px;

        transform:
            rotateY(-20deg)
            rotateX(12deg)
            rotateZ(12deg)
            scale(1.5);
    }

    /* MID BACK */
    .card-3 {
        top: 70px;
        left: 340px;

        transform:
            rotateY(-18deg)
            rotateX(10deg)
            rotateZ(12deg)
            scale(1.45);
    }

    /* MID FRONT */
    .card-2 {
        top: 160px;
        left: 460px;

        transform:
            rotateY(-15deg)
            rotateX(8deg)
            rotateZ(12deg)
            scale(1.5);
    }

    /* FRONT */
    .card-1 {
        top: 220px;
        left: 330px;

        transform:
            rotateY(-12deg)
            rotateX(6deg)
            rotateZ(12deg)
            scale(1.55);
    }

    /* ------------------------- ABOUT ME SECTION ------------------------------*/

    .about-me-section {
        padding: 8rem 0;
    }

    .about-me-section::before {
        width: 1500px;
        height: 700px;
    }

    .about-me-img {
        margin-right: 22rem;
    }

    .about-me-content {
        max-width: 850px;
    }

    /* ------------------------ PORTFOLIO SECTION ----------------------------- */

    .portfolio-intro {
        padding: 8rem 0 12rem 0; /* 👈 gives space so blob isn't cut */
    }

    .portfolio-intro .container {
        display: flex;
        flex-direction: row-reverse;
        
    }

    .portfolio-intro::before {
        width: 1500px;
        height: 700px;
    }

    .portfolio-visual {
        z-index: 1;
        margin-top: 0;
        flex: 1;
    }

    .portfolio-visual img {
        height: 25rem;
        width: auto;
    }

    .portfolio-content {
        z-index: 1;
        max-width: 420px;
        flex: 1;
    }

    .portfolio-content p{
        margin-bottom: 2rem;
    }

    .final-cta { 
        padding: 12rem 0;
    }

    .hero-section .section-separator svg{
        margin-bottom: -1px;
    }

    .final-cta .section-separator svg {
        margin-bottom: -1px;
    }

    .final-cta .section-separator.top svg {
        margin-top: -1px;
    }

}

@media (min-width: 1920px) {

    .hero-section.home .hero-content {
        min-width: 650px;
    }

   .hero-section {
        gap: 10rem; /* 👈 spacing between text + mockups */

        padding-top: 10rem;
        padding-bottom: 0;
    }

    /* BACK */
    .card-4 {
        top: -390px; /* - 100px */
        left: 940px;

        transform:
            rotateY(-15deg)
            rotateX(12deg)
            rotateZ(12deg)
            scale(1.5); /* + 0.3 */
    }

    /* MID BACK */
    .card-3 {
        top: -300px;
        left: 820px;

        transform:
            rotateY(-15deg)
            rotateX(10deg)
            rotateZ(12deg)
            scale(1.55);
    }

    /* MID FRONT */
    .card-2 {
        top: -200px;
        left: 960px;

        transform:
            rotateY(-15deg)
            rotateX(8deg)
            rotateZ(12deg)
            scale(1.6);
    }

    /* FRONT */
    .card-1 {
        top: -100px;
        left: 830px;

        transform:
            rotateY(-15deg)
            rotateX(8deg)
            rotateZ(12deg)
            scale(1.65);
    }

    /* ------------------------------- PAIN/SOLUTION ----------------------------- */

    .pain-grid,
    .solution-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .final-cta {
        padding-top: 14rem;   /* 👈 space for top wave */
        padding-bottom: 14rem;
    }
}

/*---------------------------------------------------------- SERVICE PAGE CSS ---------------------------------------------------------------------------------------------- */

.service-hero {
    padding-bottom: 8rem;
}

.services-item h3 {
    text-align: center;
}

.service-highlight {
    color: var(--color-accent-secondary);
    font-weight: 500;
}

/* ------------- Benefits ------------------*/

.benefits-section {
    background: var(--gradient-primary);
    position: relative;
    padding: 8rem 0;
}

.benefits-section h2 {
    padding-bottom: 2rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
}

.benefits-item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.benefits-item svg {
    height: 30px;
    width: auto;
    color: var(--color-secondary-medium);
}

/*----------------- Packages ------------------*/

.package-section h2 {
    padding-bottom: 2rem;
}

.off-label {
    position: absolute;
    background: var(--color-secondary-medium);
    width: fit-content;
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    color: var(--color-secondary-dark);
    font-weight: var(--font-weight-medium);
    top: 10px;
    right: 10px;
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    z-index: 1;
}

.package-card {
    position: relative;
    border: 0px solid var(--color-accent-secondary);
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    height: max-content;
}

.popular-package {
    border: 2px solid var(--color-accent-primary);
    border-radius: var(--radius);
    height: max-content;
}

.popular-package .popular-package-headline {
    text-align: center;
    background-color: var(--color-accent-primary);
    color: var(--color-section-alt);
    margin-bottom: 0;
    padding: 0.5rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.package-card-separator-line {
    height: 1px;
    width: 100%;
    background-color: var(--color-accent-secondary);
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
}

.package-card-header {
    padding: 3rem 0;
}

.package-card-header-tagline p {
    color: var(--color-accent-secondary);
}

.package-card-header-tagline h3 {
    margin-bottom: 0;
}

.package-card-header-price {
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

.package-card-header-price p {
    margin-bottom: 0;
}

.previous-price {
    color: var(--color-accent-secondary);
    text-decoration: line-through;
}

.new-price {
    font-size: var(--fs-h2); 
}

.new-price-flex p:last-child {
    color: var(--color-accent-primary);
    padding-bottom: 1rem;
}

.primary-btn.package-btn {
    display: flex;
    padding: 1rem 0;
    justify-content: center;
    cursor: pointer;
}

.primary-btn.package-btn.popular-btn {
    background-color: var(--color-secondary-medium);
    color: var(--color-secondary-dark);
    cursor: pointer;
}

.primary-btn.package-btn.popular-btn:hover {
    color: var(--color-main-bg);
}

.offer-line {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.offer-line p {
    margin-bottom: 0;
    margin-top: 2px;
}

.offer-line svg {
    height: 34px;
    width: 34px;
    color: var(--color-accent-primary);
}

.offer-line-description {
    display: flex;
    flex-direction: column;
}

.offer-line-sub-text{
    color: var(--color-accent-secondary);
    font-size: var(--fs-small);
    margin-bottom: 0;
}

.price {
    display: flex;
    flex-direction: column;
}

.price-label {
    color: var(--color-secondary-medium);
    font-weight: 500;
    margin-bottom: 0;
}

.price-tag {
    display: flex;
    flex-direction: row;
}

.price-tag svg {
    height: 30px;
    width: auto;
    color: var(--color-secondary-dark);
}

/* ------------------ Comparison Table -----------------*/

.comparison-section {
    display: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border-bottom: 1px solid rgb(214, 214, 214);
    text-align: center;
    padding: 1rem 0;
}

tr:last-of-type > td {
    border-bottom: 0;
}

th:first-of-type,
td:first-of-type {
    text-align: left;
    font-weight: 700;
}

th {
    font-size: var(--fs-h4);
}

.x-icon svg {
    color: var(--color-accent-secondary);
}

td svg {
    height: 24px;
    width: 24px;
    color: var(--color-accent-primary);
}



/* ---------------- FAQ ---------------------*/

.faq-flex {
    display: flex;
    flex-direction: column;
}

.faq h2 {
    padding-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-secondary-medium);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--color-secondary-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.faq-answer p {
    margin: 0.5rem 0;
}

@media (min-width: 768px) {

    .pricing-section h2 {
        padding-bottom: 6rem;
    }

    .package-list {
        max-width: 500px;
        justify-content: center;
        margin: 0 auto;
    }

    .comparison-section {
        display: block;
    }
}

@media (min-width: 1024px) {

    .service-hero .hero-content {
        max-width: 800px;
    }

    .package-list {
        max-width: 100%;
        justify-content: center;
        margin: 0 auto;
        gap: 0.5rem;
    }
    
    .card-bottom a {
        width: 9rem;
    }

    .faq-question {
        font-size: var(--fs-h5);
    }

    .faq-answer p{
        font-size: 1.2rem;
    }

    .package-list {
        display: grid;
        grid-template-columns: repeat(3 , 1fr);
    }
    
    .popular-package {
        margin-top: -3.2rem;
    }
}

@media (min-width: 1440px) {

    .service-hero {
        padding-bottom: 14rem;
    }

    .service-hero .section-separator svg{
        margin-bottom: -1px;
    }

    .benefits-section .section-separator svg {
        margin-bottom: -1px;
    }

    .benefits-section .section-separator.top svg {
        margin-top: -1px;
    }

    .final-cta .section-separator svg {
        margin-bottom: -1px;
    }

    .final-cta .section-separator.top svg {
        margin-top: -1px;
    }

    .card-bottom a {
        width: 12rem;
    }

    .package-section h2 {
        padding-bottom: 6rem;
    }

    .benefits-section {
        padding: 10rem 0;
    }
}

@media (min-width: 1920px) {

    .service-hero .hero-content {
        max-width: 1000px;
    }

    .service-hero {
        padding-bottom: 20rem;
    }

    .benefits-section {
        padding: 12rem 0;
    }

    .benefits-list {
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

    .package-list {
        max-width: 100%;
        justify-content: center;
        margin: 0 auto;
        gap: 2rem;
    }

    .faq {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 4rem 0;
    }
}

/*---------------------------------------------------------- PORTFOLIO PAGE CSS ---------------------------------------------------------------------------------------------- */

.portfolio-hero {
    padding-bottom: 8rem;
}

.porfolio-grid{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
}

.portfolio-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.design-mockup img {
    height: auto;
    width: 40rem;
}

.portfolio-peace {
    display: flex;
    flex-direction: column;
    background: var(--gradient-primary);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 1px 1px 20px gray;
    gap: 1rem;
}

.portfolio-peace-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portfolio-peace-header h3 {
    margin: 0;
}

.portfolio-peace-content {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
}

.primary-btn {
    text-align: center;
}

.final-cta .section-separator svg {
        margin-bottom: -1px;
    }

@media (min-width: 1024px) {

    .porfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-hero {
        padding-bottom: 8rem;
    }

    .portfolio-hero .hero-content {
        max-width: 800px;
    }
}

@media (min-width: 1440px) {
    .portfolio-hero {
        padding-bottom: 14rem;
    }
}

@media (min-width: 1920px) {
    .portfolio-hero {
        padding-bottom: 16rem;
    }
    
    .design-mockup img {
        height: auto;
        width: 30rem;
    }

    .design-mockup {
        display: block;
        margin: 0 auto;
    }
}

/*---------------------------------------------------------- ABOUT PAGE CSS ---------------------------------------------------------------------------------------------- */

.about-hero {
    padding-bottom: 8rem;
}

@media (min-width: 1024px) {

    .about-hero {
        padding-bottom: 8rem;
    }

    .about-hero .hero-content {
        max-width: 800px;
    }
}

@media (min-width: 1440px) {
    .about-hero {
        padding-bottom: 14rem;
    }
}

@media (min-width: 1920px) {
    .about-hero {
        padding-bottom: 16rem;
    }

    .about-hero .hero-content {
        max-width: 1200px;
    }
}

/*---------------------------------------------------------- CONTACT PAGE CSS ---------------------------------------------------------------------------------------------- */

.contact-hero {
    padding-bottom: 12rem;
}

.contact-header {
    padding-bottom: 2rem;
}

.personal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 4rem;
}

.personal-details-item svg {
    height: 30px;
    width: auto;
}

#email svg {
    height: 23px;
    width: auto;
}

.personal-details-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.personal-details-item a {
    text-decoration: none;
    color: var(--color-accent-primary);
    transition: color var(--transition-medium);
}

.personal-details-item a:hover {
    color: var(--color-secondary-dark);
}

.personal-details-item span {
    font-weight: 700;
    color: var(--color-text-muted);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--color-accent-secondary);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--gradient-primary);
    box-shadow: 1px 1px 20px var(--color-accent-secondary);
}

.contact-form button {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
}

.form-header {
    display: flex;
    flex-direction: column;
}

.form-header h3 {
    margin-bottom: 0.4rem;
}

.form-header p {
    color: var(--color-text-muted);
}

.form-element {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-form input{
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-accent-secondary);
}

.contact-form textarea {
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-accent-secondary);
    height: 150px;
    width: 100%;
    resize: vertical;
    max-height: 350px;
}

.contact-form label {
    font-weight: 500;
}

.form-important {
    color: rgba(255, 0, 0, 0.7);
}

.required-exlplanation {
    color: var(--color-text-muted);
}

.contact-form button {
    width: 10rem;
    align-items: center;
    margin: 0 auto;
    font-weight: 500;
}

.form-status {
    margin-top: 1rem;
    font-weight: 500;
}

.form-status.success {
    color: green;
}

.form-status.error {
    color: red;
}

.cf-turnstile {
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    
}


@media (min-width: 768px) {
    .contact-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        align-items: flex-start;
    }

    .personal-details {
        padding-top: 0;
    }
}

@media (min-width: 1024px) {
    .contact-wrapper {
        gap: 4rem;
    }

    .contact-form {
        max-width: 400px;
    }

    .contact-hero {
        padding-bottom: 14rem;
    }
}

@media (min-width: 1440px) {}

@media (min-width: 1920px) {}


/*-------------------------------------------------------------- BLOG ------------------------------------------------------------------------------------------------*/

.blog-hero {
    padding-bottom: 10rem;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-article-header {
    font-size: var(--fs-h4);
    text-wrap: inherit;
    margin-bottom: 2rem;
}

.blog-card {
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.blog-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-content a {
    margin-top: auto;
}

.blog-card img{
    border-top-right-radius: var(--radius);
    border-top-left-radius: var(--radius);
}

.featured-articles h2 {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-article-header {
        font-size: var(--fs-h3);
        text-wrap: inherit;
    }

    .blog-hero .hero-content {
        max-width: 800px;
    }
    
}

@media (min-width: 1440px){
    .blog-hero {
        padding-bottom: 12rem;
    }
}

@media (min-width: 1920px) {

    .blog-hero {
        padding-bottom: 18rem;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-hero .hero-content {
        max-width: 1400px;
    }
}

/* ------------------------------------------------------------- ARTICLES ---------------------------------------------------------------------------------------------*/

article span {
    margin-top: 2rem;
}

article ul {
    padding-left: 2rem;
}

article ul > li{
    list-style: disc;
}

article img {
    display: block;
    width: 100%;          
    height: auto;
    margin: 1rem 0;       
    border-radius: var(--radius);  
}

article a {
    text-decoration: none;
    color: var(--color-accent-primary);
    transition: var(--transition-medium);
}

article svg {
    height: 40px;
    width: auto;
}

.pros-list,
.cons-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.pros-item,
.cons-item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.pros-item p,
.cons-item p {
    margin: 0;
}

.pros-item svg {
    color: rgb(31, 202, 31);
}

.cons-item svg {
    color: red;
}

.static-wrapper {
    margin-bottom: 2rem;
}


article a:hover {
    color: var(--color-secondary-dark);
}

.related-posts h3 {
    margin-bottom: 2rem;
}

.blog-page h2 {
    margin-bottom: 2rem;
}

@media (min-width: 768px) { 

    article ul > li{
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    article ul > li{
        font-size: 1.3rem;
    }

    .static-wrapper,
    .wordpress-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

 }

@media (min-width: 1440px) {
    article ul > li{
        font-size: 1.4rem;
    }
}