/* Font Face Declarations */
@font-face {
    font-family: 'Roboto_Condensed';
    src: url('./fonts/Roboto_Condensed/RobotoCondensed-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto_Condensed';
    src: url('./fonts/Roboto_Condensed/RobotoCondensed-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* Primary Colors */
    --color-primary-dark: #2c3e50;
    --color-primary-medium: #34495e;
    --color-primary-medium-dark: #3a4856;
    --color-primary-light: #ecf0f1;
    
    /* Teal Colors */
    --color-teal: #65ffe0;
    --color-teal-dark: #16a085;
    
    /* Text Colors */
    --color-text-dark: #333;
    --color-text-medium: #555;
    --color-text-light: #666;
    
    /* Background Colors */
    --color-bg-white: #ffffff;
    --color-bg-extra-light: #f1f1f1;
    --color-bg-light: #e2e2e2;
    --color-bg-light-grey: #e4e7eb;
    --color-bg-medium: #bababa;
    --color-bg-medium-dark: #484848;
    --color-bg-dark: #343434;
    --color-bg-black: #000000;
    
    /* Gradient Colors */
    --gradient-teal: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    --gradient-grey: linear-gradient(135deg, var(--color-primary-medium) 0%, var(--color-primary-dark) 100%);
    
    --gradient-hero-section: linear-gradient(33deg, var(--color-primary-medium-dark) 0%, var(--color-primary-dark) 50%);

    --sphere-light: rgba(207, 242, 249, 0.4);
    --sphere-point: rgba(246, 246, 246, 0.9);
    --color-sphere-background: rgb(188, 188, 188);
    --color-sphere-box-shadow: rgba(0, 0, 0, 0.2);
    --color-sphere-border: rgb(189, 189, 189);

    --hero-background: #263743;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto_Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* Top Navigation */
.top-nav {
    background-color: var(--color-bg-dark);
    border-bottom: 2px solid color-mix(in srgb, var(--color-bg-dark) 90%, black);
    color: var(--color-bg-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-brand a {
    color: var(--color-bg-white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.nav-brand .nav-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    margin-top: auto;
    margin-bottom: auto;
}

.nav-brand a:hover {
    color: #f0f0f0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-bg-white);
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-teal-dark);
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-bg-white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-brand a {
        font-size: 20px;
    }
    
    .nav-brand .nav-logo {
        height: 35px;
        max-width: 150px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* Mobile hamburger menu at 768px and below */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        font-weight: 400;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav-link:hover {
        color: var(--color-teal-dark);
        background-color: rgba(26, 188, 156, 0.1);
    }
}

/* Hero Section */
.hero {
    height: calc(63vh - 70px);
    background: var(--gradient-hero-section);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 2;
}

.hero-text {
    flex: 2;
    text-align: left;
    margin: 0 20px;
}

.hero-image-container {
    position: absolute;
    top: 352px;
    right: -490px;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-teal) -50%, #222427 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: #c5cace;
    font-size: 2.1rem;;
    font-weight: 300;
    line-height: 1.6;
    width: calc(100% - 561px);
}

.hero-learn-more-button {
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}

/* Hero animation */
/* Rotate Sphere animation */
/* @-webkit-keyframes animateSphere {
0% { transform: rotateY(11deg) rotateX(-15deg) rotateZ(8deg) rotateY(0deg); }
100% { transform: rotateY(11deg) rotateX(-15deg) rotateZ(8deg) rotateY(360deg); }
} */

@keyframes animatePoint1 {
    0% {
        transform: rotateZ(360deg);
        }
    100% {
        transform: rotateZ(0deg);
    }
}
@-webkit-keyframes animatePoint1 {
    0% {
        transform: rotateZ(360deg);
        }
    100% {
        transform: rotateZ(0deg);
    }
}

@keyframes animatePoint2 {
    0% {
    transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

@-webkit-keyframes animatePoint2 {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes animatePoint3 {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

@-webkit-keyframes animatePoint3 {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}
  
  .scene {
    perspective: 1000px;
  }
  .sphere-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5vh;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 1400px;
    height: 1400px;
    transform-style: preserve-3d;
    transform: rotateY(11deg) rotateX(-15deg) rotateZ(8deg);
  }
  
  .sphere-border {
    border: 3px solid var(--color-sphere-border);
  }

  .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-sphere-background);
    box-shadow: 0 0 17px var(--color-sphere-box-shadow);
  }

  /* X Axis */
  .circle-1 {transform: rotate3d(1, 0, 0, 0deg);}
  .circle-2 {transform: rotate3d(1, 0, 0, 36deg);}
  .circle-3 {transform: rotate3d(1, 0, 0, 72deg);}
  .circle-4 {transform: rotate3d(1, 0, 0, 108deg);}
  .circle-5 {transform: rotate3d(1, 0, 0, 144deg);}
  .circle-6 {transform: rotate3d(1, 0, 0, 180deg);}
  .circle-7 {transform: rotate3d(1, 0, 0, 216deg);}
  .circle-8 {transform: rotate3d(1, 0, 0, 252deg);}
  .circle-9 {transform: rotate3d(1, 0, 0, 288deg);}
  .circle-10 {transform: rotate3d(1, 0, 0, 324deg);}
  /* Y Axis */
  .circle-11 {transform: rotate3d(0, 1, 0, 0deg);}
  .circle-12 {transform: rotate3d(0, 1, 0, 36deg);}
  .circle-13 {transform: rotate3d(0, 1, 0, 72deg);}
  .circle-14 {transform: rotate3d(0, 1, 0, 108deg);}
  .circle-15 {transform: rotate3d(0, 1, 0, 144deg);}
  .circle-16 {transform: rotate3d(0, 1, 0, 180deg);}
  .circle-17 {transform: rotate3d(0, 1, 0, 216deg);}
  .circle-18 {transform: rotate3d(0, 1, 0, 252deg);}
  .circle-19 {transform: rotate3d(0, 1, 0, 288deg);}
  .circle-20 {transform: rotate3d(0, 1, 0, 324deg);}
  /* Z Axis */
  .circle-21 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 0deg);}
  .circle-22 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 36deg);}
  .circle-23 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 72deg);}
  .circle-24 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 108deg);}
  .circle-25 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 144deg);}
  .circle-26 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 180deg);}
  .circle-27 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 216deg);}
  .circle-28 {transform: rotate3d(0, 1, 0, 90deg) rotate3d(1, 0, 0, 252deg);}
  
  .circle-with-point {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation-duration: 7s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.circle-with-point:before {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background: var(--sphere-point);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 2px 2px rgb(255, 255, 255), 0 0 40px rgb(255, 255, 255), 0 0 50px rgb(255, 255, 255);
}

.circle-with-point-rotate-container {
    position: absolute;
    width: 101%;
    height: 101%;
    border-radius: 50%;
}

.circle-with-point-1 {
    animation-name: animatePoint1;
    transform: translateZ(0);
    will-change: transform;
}

.circle-with-point-2 {
    animation-name: animatePoint2;
    transform: translateZ(0);
    will-change: transform;
}

.circle-with-point-2:before {
    box-shadow: 0 0 2px 2px rgb(222, 222, 222), 0 0 40px rgb(222, 222, 222), 0 0 50px rgb(222, 222, 222);
}


.circle-with-point-rotate-container-3 {
    width: 100%;
    height: 100%;
}
.circle-with-point-3 {
    animation-name: animatePoint3;
    transform: translateZ(0);
    will-change: transform;
}

.circle-with-point-3:before {
    box-shadow: 0 0 2px 2px rgb(240, 240, 240), 0 0 40px rgb(240, 240, 240), 0 0 50px rgb(240, 240, 240);
}

/* Light effect */
 .light {
     margin: auto;
     border-radius: 50%;
     width: 1400px;
     height: 1400px;
     box-shadow:0px 0px 17px 17px var(--sphere-light);
 }

 .shadow {
    position: absolute;
    top: 6vh;
    width: 1400px;
    height: 1400px;
    border-radius: 50%;
    background: radial-gradient(circle at 0% 0%, transparent 0%, rgba(0, 0, 0, 0.3) 52%);
    z-index: 2;
 }
/* Clip the sphere a bit */
.clip {
    clip-path: circle(49%);
}
/* Hero animation end */


@media (max-width: 1600px) {
    .hero {
        height: calc(60vh - 70px);
    }

    .hero-text {
        flex: 1;
    }
    .hero-image-container {
        top: 325px;
        right: -283px;
    }
    .sphere-container {
        width: 1000px;
        height: 1000px;
    }
    .light {
        width: 1000px;
        height: 1000px;
    }
    .shadow {
        width: 1000px;
        height: 1000px;
    }
    .circle-with-point:before {
        width: 50px;
        height: 10px;
    }
}

/* Hero responsive design */
@media (max-width: 968px) {
    .hero {
        padding: 50px 0 0 0;
        height: auto;
    }
    
    .hero-image-container {
        display: none;
    }

    .hero-description {
        width: auto;
        text-align: center;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-bottom: 34px;
    }

    .hero-learn-more-button {
        display: none;
    }
    
    .hero-title {
        color: var(--color-teal-dark);
        -webkit-text-fill-color: var(--color-teal-dark);
        text-align: center;
        background: none;
    }
    
    .hero-gif {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0;
    }

    .hero-title {
        display: none;
    }
    
    .hero-text {
        margin: 0;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .hero-content {
        padding: 25px 15px 20px;
        gap: 30px;
    }

    
    .hero-gif {
        max-width: 200px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px 15px 20px;
    }
}

.services {
    height: 40vh;
    min-height: 450px;
    padding: 40px 0 0;
    border-top: 2px solid color-mix(in srgb, var(--color-bg-white) 90%, var(--color-bg-black));
}
.services-container {
    height: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    height: 100%;
}

.service-card {
    background: var(--color-bg-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 20px 20px 5px 5px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text-dark);
    line-height: 1.4;
    height: 62px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin: 0 auto 5px auto;
    transition: all 0.3s ease;
}

.service-description {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-text-medium);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 1300px) {
    .services {
        height: auto;
    }
}

/* Services responsive design */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services {
        height: auto;
        padding: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 15px;
    }

    .service-card:hover {
        box-shadow: none;
    }
    
    .service-title {
        font-size: 1.1rem;
        height: auto;
    }

    .service-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-container {
        border-radius: 0;
        padding: 10px 15px;
    }

    .service-card {
        padding: 7px 0;
        box-shadow: none;
        border: none;
        position: relative;
    }

    .service-title {
        text-align: left;
    }
    
    .service-card:last-child::before {
        display: none;
    }
}

/* Who We Help Section */
.who-we-help {
    padding: 40px 0;
    background-color: var(--color-bg-white);
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-teal-dark);
    border-radius: 2px;
}

.help-subsection {
    display: flex;
    align-items: start;
    gap: 40px;
}

.businesses-image, .founders-image {
    border: 1px solid color-mix(in srgb, var(--color-bg-white) 90%, var(--color-bg-black));
}

.subsection-image {
    flex: 0 0 600px;
}

.businesses-subsection {
    margin-bottom: 30px;
}

.businesses-image {
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 400px;
}

.businesses-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.businesses-content {
    background-color: var(--color-bg-white);
    padding: 0;
    border-radius: 3px;
    flex: 1;
}

.founders-content {
    background-color: var(--color-bg-white);
    padding: 0;
    border-radius: 5px;
    flex: 1;
}

.founders-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-subsection:last-child {
    margin-bottom: 40px;
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background: var(--gradient-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-bg-white);
    box-shadow: 0px 6px 13px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid color-mix(in srgb, var(--color-bg-light-grey) 90%, var(--color-bg-black));
}

.placeholder-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.founders-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Small and Medium Sized Businesses subsection layout */

.subsection-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.subsection-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-light);
    font-weight: 400;
}

@media (max-width: 768px) {


    .subsection-image, .businesses-image, .case-study-image {
        display: none;
    }

    .case-study-content {
        padding-top: 20px;
    }

    .founders-content, .businesses-content {
     box-shadow: none;   
    }

    .businesses-subsection {
        margin-bottom: 0;
    }
}

/* Who We Help responsive design */
@media (max-width: 968px) {
    .help-subsection {
        flex-direction: column;
        gap: 40px;
    }
    
    .founders-subsection {
        text-align: left;
    }
    
    /* Reset layout on mobile */
    
    .subsection-image {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .placeholder-image {
        height: 300px;
        font-size: 3.5rem;
    }

    .businesses-subsection {
        margin-bottom: 0;
    }
    
    .businesses-image {
        height: 300px;
    }
    
    /* Reset layout on tablet and below */
    .founders-subsection {
        gap: 40px;
    }
    
    .founders-subsection .subsection-image {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .founders-content {
        width: 100%;
        margin: 0 auto;
    }

    .founders-image {
        height: auto;
    }
    
    .businesses-subsection {
        gap: 40px;
    }
    
    .businesses-subsection .subsection-image {
        flex: none;
        width: 100%;
        margin: 0 auto;
        justify-content: center;
    }
    
    .businesses-image {
        display: none;
    }
    
    .businesses-content {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .who-we-help {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
    
    .subsection-title {
        font-size: 2rem;
    }
    
    .help-subsection {
        margin-bottom: 60px;
    }

    .help-subsection:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .who-we-help {
        padding: 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .subsection-title {
        font-size: 1.8rem;
    }
    
    .subsection-description {
        font-size: 1.3rem;
        font-weight: 300;
        color: var(--color-text-medium);
        margin: 0;
        line-height: 1.5;
        text-align: left;
    }
    
    .placeholder-image {
        height: 250px;
        font-size: 3rem;
    }
    
    .businesses-image {
        height: 250px;
        width: 100%;
        max-width: 100%;
    }
    
    .help-subsection {
        margin-bottom: 40px;
    }
    
    .founders-content {
        padding: 0px;
    }
    
    .businesses-content {
        padding: 0px;
    }
}

/* Case Studies Section */
.case-studies {
    padding: 40px 0;
    background-color: var(--color-bg-light-grey);
    border-top: 2px solid color-mix(in srgb, var(--color-bg-light-grey) 97%, var(--color-bg-black));
}

.case-study {
    display: flex;
    align-items: flex-start;
    margin-bottom: 100px;
    gap: 80px;
    position: relative;
}

.case-study:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--color-teal-dark);
    border-radius: 2px;
}

.case-study:last-child {
    margin-bottom: 0;
}

/* Alternate layout for case studies */
.case-study:nth-child(3) {
    flex-direction: row-reverse;
}

.case-study-content {
    flex: 1;
}

.case-study-image {
    flex: 0 0 300px;
}

.case-study-title {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.case-study-description {
    font-size: 1.3rem;
    color: var(--color-text-medium);
    font-weight: 500;
    margin-bottom: 20px;
}

.case-study-link {
    display: inline-block;
    color: var(--color-teal-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.case-study-link:hover {
    color: var(--color-teal-dark);
}

.case-study-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-medium);
    margin-bottom: 20px;
}

.case-study-details p:last-child {
    margin-bottom: 0;
}

.case-study-details strong {
    color: var(--color-primary-dark);
    font-weight: 500;
}

.case-study-1-image {
    background: var(--gradient-teal);
}

.set-the-pace-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.telcloud-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.ecommerce-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.case-study-2-image {
    background: var(--gradient-grey);
}

.case-study-3-image {
    background: var(--gradient-teal);
}

/* Case Studies responsive design */
@media (max-width: 1024px) {
    .case-study {
        gap: 60px;
    }
    
    .case-study-image {
        flex: 0 0 300px;
    }
}

@media (max-width: 968px) {
    .case-study {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .case-study:nth-child(3) {
        flex-direction: column;
    }
    
    .case-study-image {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .placeholder-image {
        height: 300px;
        font-size: 4rem;
    }
    
    .businesses-image {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .case-studies {
        padding: 0px 0;
    }
    
    .case-study {
        margin-bottom: 50px;
    }
    
    .case-study-title {
        font-size: 1.8rem;
    }
    
    .case-study-description {
        font-size: 1rem;
    }
    
    .case-study-details p {
        font-size: 1.3rem;
        font-weight: 300;
        color: var(--color-text-medium);
        line-height: 1.5;
        text-align: left;
    }
    
    .case-study-link {
        font-size: 1rem;
    }
    
    .placeholder-image {
        height: 250px;
        font-size: 3.5rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    border-top: 2px solid color-mix(in srgb, var(--color-primary-dark) 80%, var(--color-bg-black));
    padding: 80px 0 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-bg-white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 30px;
    max-width: 500px;
}

.contact-form {
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #34495e;
    border-radius: 8px;
    background-color: var(--color-primary-medium);
    color: var(--color-bg-white);
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--color-teal-dark);
    background-color: var(--color-primary-dark);
}

.form-group input[type="email"]::placeholder {
    color: #95a5a6;
}

.primary-button {
    padding: 15px 30px;
    background-color: var(--color-teal-dark);
    color: var(--color-bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.primary-button:hover {
    background-color: var(--color-teal-dark);
    transform: translateY(-2px);
}

.footer-links-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-bg-white);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-teal-dark);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

.footer-logo {
    height: 20px;
    width: auto;
    margin: 0 auto 5px;
}

/* Privacy Policy Page Styles */
.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
    line-height: 1.7;
}

.privacy-policy h1 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    text-align: center;
}

.privacy-policy h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin: 40px 0 20px 0;
    letter-spacing: -0.3px;
}

.privacy-policy p {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    margin-bottom: 20px;
}

.privacy-policy ul {
    margin: 20px 0;
    padding-left: 30px;
}

.privacy-policy li {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-policy strong {
    color: var(--color-primary-dark);
    font-weight: 500;
}

.privacy-policy em {
    color: var(--color-text-light);
    font-style: italic;
}

/* Privacy Policy responsive design */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 20px 0;
    }
    
    .privacy-policy h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .privacy-policy h2 {
        font-size: 1.3rem;
        margin: 25px 0 12px 0;
    }
    
    .privacy-policy p,
    .privacy-policy li {
        font-size: 0.95rem;
    }
    
    .privacy-policy ul {
        padding-left: 20px;
    }
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 25px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-title {
        font-size: 1.6rem;
    }
    
    .footer-description {
        font-size: 1.3rem;
        font-weight: 300;
    }

    .footer-link {
        font-size: 1.3rem;
        font-weight: 300;
    }
    
    .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group input[type="email"] {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
