
/* Import Google Fonts from CDN */
/* Removed Google Fonts import, using local font-face declarations below */

/* Local font-face declaration for Inter variable font */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Local font-face declarations for Poppins font weights 300, 400, 500, 600, 700, 800 using .ttf files */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Color Variables in HSL */
:root {
    --color-bg-dark-1: hsl(240, 6%, 12%);
    --color-bg-dark-2: hsl(240, 6%, 11%);
    --color-bg-dark-3: hsl(240, 6%, 17%);
    --color-white: hsl(0, 0%, 100%);
    --color-gray-light: hsl(0, 0%, 80%);
    --color-pink: hsl(330, 85%, 47%);
    --color-pink-alt: hsl(330, 90%, 55%);
    --color-pink-light-1: hsla(330, 85%, 47%, 0.1);
    --color-pink-light-2: hsla(330, 85%, 47%, 0.15);
    --color-pink-light-3: hsla(330, 85%, 47%, 0.3);
    --color-pink-light-4: hsla(330, 85%, 47%, 0.7);
    --color-pink-light-5: hsla(330, 85%, 47%, 0.9);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg-dark-1);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Font Family Variables */
:root {
    --font-family-heading: 'Poppins', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

p {
    color: var(--color-gray-light);
    line-height: 1.8;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: var(--color-white);
    padding: 8px;
    z-index: 100;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Header Styles */
.header {
    background-color: rgba(30, 30, 34, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    display: none;
}

@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-pink);
}

/* Mobile Menu - CSS Only Approach */
.mobile-menu-checkbox {
    display: none;
}

/* Hide vertical scrollbar globally but keep scrolling enabled */
html, body {
  overflow-y: scroll; /* keep scrolling enabled */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Hide vertical scrollbar on mobile and tablet devices */
@media (max-width: 1024px) {
  html, body {
    overflow-y: scroll; /* keep scrolling enabled */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-nav {
    display: none;
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: var(--color-white);
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Mobile menu toggle animation when checked */
    .mobile-menu-checkbox:checked + .mobile-menu-toggle .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-checkbox:checked + .mobile-menu-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-checkbox:checked + .mobile-menu-toggle .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Mobile navigation - covers viewport but leaves space for header */
    .mobile-nav {
        display: none;
        position: fixed;
        top: 72px; /* Leave space for header with logo (1rem padding + 40px logo + 1rem padding) */
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: #1e1e22;
        z-index: 1000;
        padding: 2rem 0;
    }

    /* Show mobile navigation when checkbox is checked */
    .mobile-menu-checkbox:checked ~ .mobile-nav {
        display: flex;
    }

    .mobile-nav__list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        height: 100%;
        width: 100%;
    }

    .mobile-nav__item {
        width: auto;
        text-align: center;
    }

    /* Mobile nav links styled like footer links - simple and clean */
    .mobile-nav__link {
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-size: 2rem;
        font-weight: 600;
        padding: 1rem 2rem;
        transition: color 0.3s ease;
    }

    /* Hover effect matching footer links - just color change */
    .mobile-nav__link:hover,
    .mobile-nav__link:focus {
        color: var(--color-pink);
    }

    /* Button-based mobile menu styles */
    .mobile-nav--open {
        display: flex !important;
    }

    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Mobile Landscape - Grid Layout for Menu and Hero adjustments */
@media (max-width: 1024px) and (orientation: landscape),
       (max-height: 500px) and (orientation: landscape) {
    /* Ensure mobile nav is hidden by default in landscape too */
    .mobile-nav {
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Show mobile navigation when checkbox is checked */
    .mobile-menu-checkbox:checked ~ .mobile-nav {
        display: flex;
    }

    .mobile-nav__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 1.5rem;
        justify-items: center;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem;
    }

    .mobile-nav__item {
        width: 100%;
        text-align: center;
    }

    /* Center the last item (Contact) on the bottom row */
    .mobile-nav__item:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .mobile-nav__link {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

  .footer__social {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer__social > section {
    flex: 1 1 0;
  }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(26, 26, 30, 1.0) 0%,
        rgba(26, 26, 30, 0.5) 25%,
        rgba(26, 26, 30, 0.5) 75%,
        rgba(26, 26, 30, 1.0) 100%);
    z-index: -1;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    z-index: 1;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__title-highlight {
    color: var(--color-pink);
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc;
}

.hero__cta {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero__cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Fix hero content being hidden behind fixed header on mobile */
    .hero {
        min-height: calc(100vh - 72px); /* Account for header height */
        margin-top: 72px; /* Push content below fixed header */
    }

    .hero__title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

/* Secondary button style */
.btn--secondary {
    background: rgba(42, 42, 46, 0.9);
    border: 2px solid var(--color-pink) !important;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: var(--color-pink);
    border: 2px solid rgb(244, 38, 140) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 18, 120, 0.3);
    color: #ffffff;
}

/* How It Works Section */
.hiw {
    position: relative;
    padding: 8rem 0;
    background-color: var(--color-bg-dark-3);
}
/* Section fades */

.wwd::before,
.rtb::before,
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(26, 26, 30, 1) 0%,
        rgba(28, 28, 32, 0.9) 15%,
        rgba(30, 30, 34, 0.7) 30%,
        rgba(30, 30, 34, 0.4) 50%,
        rgba(30, 30, 34, 0.2) 70%,
        rgba(30, 30, 34, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}


.hiw::before,
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(30, 30, 34, 1) 0%,
        rgba(28, 28, 32, 0.9) 15%,
        rgba(26, 26, 30, 0.7) 30%,
        rgba(26, 26, 30, 0.4) 50%,
        rgba(26, 26, 30, 0.2) 70%,
        rgba(26, 26, 30, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* What We Do Section */
.wwd,
.rtb {
    padding: 6rem 0;
    background-color: var(--color-bg-dark-1);
    position: relative;
}

.wwd__container,
.rtb__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wwd__content,
.rtb__content {
    text-align: center;
}

.wwd__copy,
.rtb__copy {
    margin-bottom: 4rem;
}

/* Base section title styles - ensure all section titles are white */
.section-title,
.section__title {
    color: #ffffff !important;
    position: relative;
    z-index: 2; /* Ensure titles appear above gradient overlays */
}

.wwd__copy .section-title,
.rtb__copy .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-highlight {
    color: rgb(224, 18, 120);
}

.wwd__subtitle,
.rtb__subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
}

.wwd__services,
.rtb__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.wwd__service-item,
.rtb__service-item {
    background-color: #2a2a2e;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(224, 18, 120, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wwd__service-item:hover,
.rtb__service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--color-pink-light-3);
    border-color: rgba(224, 18, 120, 0.3);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0;
    background: linear-gradient(135deg,
        rgba(224, 18, 120, 0.2),
        rgba(224, 18, 120, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(224, 18, 120);
    flex-shrink: 0;
}

/* Font Awesome icon styling inside service-icon container */
.service-icon .fa,
.service-icon svg {
    font-size: 48px; /* Adjust size to fit container */
    width: 48px;
    height: 48px;
    color: rgb(224, 18, 120); /* Pink color matching SVG icons */
    display: block;
}

/* Ensure Font Awesome icons are centered in the flex container */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-align: left;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    text-align: left;
    flex-grow: 1;
}

.service-list {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0 0 0;
    color: #cccccc;
}

.service-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* How It Works Section */
.hiw {
    position: relative;
    padding: 8rem 0;
    background-color: #1a1a1e;
}

.hiw__container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2; /* Ensure content appears above gradient overlays */
}

.hiw__copy .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hiw__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    gap: 3rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start; /* Ensure all items align to the top of their grid areas */
}

.hiw__items-item {
    display: grid !important; /* Use grid instead of flex for proper 2x2 layout */
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1rem 2rem;
    align-items: start;
    align-self: start; /* Add this to prevent the item from stretching vertically */
}

.item-number {
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgb(224, 18, 120) 0%,
        rgb(244, 38, 140) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0; /* Remove auto margin */
    flex-shrink: 0;
    align-self: start;
}

.item-title {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-height: 60px; /* Match the height of item-number */
}

.item-title h3 {
    font-size: 1.5rem;
    margin: 0; /* Remove bottom margin */
    color: #ffffff;
    text-align: left;
}

.item-content {
    grid-column: 1 / 3; /* Span both columns */
    grid-row: 2;
    margin-top: 0.5rem;
    align-self: start;
    vertical-align: top; /* Top-align the content */
}

.item-content p {
    color: #cccccc;
    line-height: 1.8;
    margin: 0;
    text-align: left;
    vertical-align: top; /* Top-align the paragraph content */
}

/* Additional rule to ensure proper alignment */
.hiw__items-item {
    height: auto !important; /* Prevent any height stretching */
}

.item-content {
    display: block; /* Ensure block display for proper text flow */
    height: auto !important; /* Prevent height stretching */
}

/* Testimonials Section */
.testimonials {
    position: relative;
    padding: 4rem 0 2rem 0;
    background-color: #1a1a1e;
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.testimonials__copy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.testimonials__copy .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-slider {
    margin-bottom: 2rem;
    position: relative;
    overflow-x: hidden; /* Only hide horizontal overflow */
    overflow-y: visible; /* Allow vertical overflow for navigation buttons */
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Center the full-width slider */
    max-width: none;
    z-index: 2;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Track width will be calculated based on number of slides */
}

.testimonial-slide {
    width: 33.33vw; /* Each slide is 33.33% of viewport width - shows 3 cards */
    flex-shrink: 0;
    padding: 0 1rem; /* Default desktop padding - overridden by media queries */
    box-sizing: border-box;
}

.testimonials-slider::before,
.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.testimonials-slider::before {
    left: 0;
    background: linear-gradient(to right, #1e1e22, transparent);
}

.testimonials-slider::after {
    right: 0;
    background: linear-gradient(to left, #1e1e22, transparent);
}

.testimonial {
    background-color: #2a2a2e;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    margin: 0 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial__logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin-top: auto;
    padding-top: 1rem;
}

.testimonial__text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #cccccc;
    font-style: italic;
    flex-grow: 1;
}

.testimonial__author {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.testimonial__author span {
    color: var(--color-pink);
}

.testimonial__logo {
    max-height: 50px;
    max-width: 150px;
    width: auto;
    height: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial__logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.testimonials-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10; /* Ensure navigation is above other elements */
    padding: 15px 0; /* Add padding to prevent clipping when buttons scale */
}

.nav-chevron {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(224, 18, 120, 0.3);
    background: transparent;
    color: rgba(224, 18, 120, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-chevron:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
    background: rgba(224, 18, 120, 0.1);
    transform: scale(1.1);
}

.nav-chevron:active {
    transform: scale(0.95);
}

.nav-chevron svg {
    width: 24px;
    height: 24px;
}

/* Counter Section */
.counter__wrapper {
    margin-top: 2rem;
}

.testimonials__counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter__item {
    padding: 2rem;
}

.counter__item-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-pink);
    margin-bottom: 0.5rem;
}

.counter__item h3 {
    font-size: 1.1rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    position: relative;
    background-color: var(--color-bg-dark-1);
    padding: 6rem 0 0 0;
}

.footer__container {
    max-width: 1200px;
    padding: 0;
}

.footer__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    position: relative;
    z-index: 2; /* Ensure footer title appears above gradient overlay */
}

.footer__content {
    gap: 4rem;
    align-items: middle;
}

.contact-form-placeholder {
    background-color: #2a2a2e;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    color: #cccccc;
}

.footer__social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links .fa,
.social-links svg {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--color-white);
    display: block;
    transition: opacity 0.3s ease;
}

/* Make FontAwesome SVG icons responsive and smaller on mobile and tablet */
@media (max-width: 1024px) {
    .service-icon .fa,
    .service-icon svg,
    .social-links .fa,
    .social-links svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-icon .fa,
    .service-icon svg,
    .social-links .fa,
    .social-links svg {
        width: 2rem;
        height: 2rem;
    }
}

.social-links li:hover {
    opacity: 0.7;
}

.footer__social-link:hover {
    color: var(--color-pink);
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.legal-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--color-pink);
}

.footer__address {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer__address span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
    height: 25px;
    margin-bottom: 0.5rem;
}

.legal-links a,
.footer__address span {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Wave Element with Gradient Overlay */
.element-waves {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    mask: linear-gradient(to bottom,
        transparent 0%,
        rgba(26, 26, 30, 0.2) 20%,
        rgba(26, 26, 30, 0.4) 40%,
        rgba(26, 26, 30, 0.6) 60%,
        rgba(26, 26, 30, 0.8) 80%,
        #1a1a1e 100%
    );
    -webkit-mask: linear-gradient(to bottom,
        transparent 0%,
        rgba(26, 26, 30, 0.2) 20%,
        rgba(26, 26, 30, 0.4) 40%,
        rgba(26, 26, 30, 0.6) 60%,
        rgba(26, 26, 30, 0.8) 80%,
        #1a1a1e 100%
    );
}

.footer__social .copyright {
  font-size: 0.875rem;
  color: var(--color-text-muted, #999999);
  margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-pink) 0%, rgb(244, 38, 140) 100%);
    color: #ffffff;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 18, 120, 0.4);
    color: #ffffff;
}

/* Medium screens - tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hiw__items {
        gap: 2.5rem 3rem;
        max-width: 900px;
        align-items: start; /* Ensure consistent top alignment in tablet view */
    }

    .item-title h3 {
        font-size: 1.3rem;
        text-align: left;
        margin: 0 !important; /* Override desktop margin */
    }

    .item-content {
        grid-column: 1 / 3; /* Explicitly span from column 1 to column 3 */
        grid-row: 2;
        margin-top: 0.5rem;
        align-self: start; /* Changed from stretch to start for top alignment */
        vertical-align: top; /* Top-align the content */
    }

    .item-content p {
        font-size: 0.95rem;
        text-align: left;
        margin: 0 !important; /* Override desktop margin */
        vertical-align: top; /* Top-align the paragraph content */
    }

    .item-number {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        flex-shrink: 0;
        align-self: start;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .wwd__services,
    .rtb__services {
        gap: 2rem;
    }

    .wwd__service-item,
    .rtb__service-item {
        padding: 2rem;
    }
}
/* Responsive Design */
@media (max-width: 768px) and (orientation: landscape) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

/* Mobile Landscape - Reduce hero title further */
@media (max-width: 768px) and (orientation: landscape) {
    .hero__title {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .wwd-section,
    .rtb-section {
        padding: 4rem 0;
    }

    .wwd__copy .section-title,
    .rtb__copy .section-title {
        font-size: 2rem;
    }

    .wwd__subtitle,
    .rtb__subtitle {
        font-size: 1.1rem;
    }

    .wwd__services,
    .rtb__services {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .wwd__service-item,
    .rtb__service-item {
        padding: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .wwd__verticals,
    .rtb__verticals {
        padding: 2rem;
    }

    .verticals-title {
        font-size: 1.5rem;
    }

    .verticals-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .vertical-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .hiw__items {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content; /* Changed from auto to min-content for natural heights */
        gap: 3rem;
        align-items: start; /* Ensure top alignment in mobile view */
    }

    .item-title h3 {
        font-size: 1.2rem;
    }

    .item-content p {
        font-size: 0.9rem;
        margin: 0;
        vertical-align: top; /* Top-align the paragraph content */
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials__counter {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials {
        padding: 3rem 0 1.5rem 0;
    }

    .testimonials-slider {
        margin-bottom: 1.5rem;
    }

    .testimonials-navigation {
        margin-top: 1rem;
        padding: 15px 0; /* Match the desktop padding */
    }

    .counter__wrapper {
        margin-top: 1.5rem;
    }

    .testimonials-navigation {
        padding: 15px 0; /* Match the desktop padding */
    }

    .nav-chevron {
        width: 45px;
        height: 45px;
    }

    .nav-chevron svg {
        width: 20px;
        height: 20px;
    }

    .testimonials-slider::before,
    .testimonials-slider::after {
        width: 50px;
    }

    .testimonial {
        min-height: 250px;
        padding: 2rem;
    }

    .testimonial__logo-container {
        min-height: 50px;
        padding-top: 0.5rem;
    }

    .testimonial__logo {
        max-height: 40px;
        max-width: 120px;
    }

    @media (max-width: 768px) {
      .footer__social {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-between;
        align-items: flex-start;
      }
      .footer__social > section {
        flex: 1 1 0;
        min-width: 0;
        max-width: 33.33%;
      }
      .footer__social > section.address {
        flex: 1 1 0;
      }
    }

    @media (max-width: 1024px) and (orientation: landscape),
           (max-height: 500px) and (orientation: landscape) {
      .footer__social {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-between;
        align-items: flex-start;
      }
      .footer__social > section {
        flex: 1 1 0;
        min-width: 0;
        max-width: 33.33%;
      }
      .footer__social > section.address {
        flex: 1 1 0;
      }
    }
}

/* Responsive slider layout */
@media (min-width: 1024px) {
    .testimonial-slide {
        width: 33.33vw; /* Show 3 cards: each is 33.33% of viewport width */
        padding: 0 1rem; /* 16px padding on each side */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-slide {
        width: 50vw; /* Show 2 cards: each is 50% of viewport width */
        padding: 0 0.5rem; /* 8px padding on each side */
    }
}

@media (max-width: 767px) {
    .testimonial-slide {
        width: 100vw; /* Show 1 card: full viewport width */
        padding: 0; /* No padding on mobile for full alignment */
    }

    .testimonial {
        margin: 0 1rem; /* Add margin to the card itself instead of slide padding */
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .testimonial {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }

    .footer__address span {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 0.5rem;
    }

    /* Ensure container stacks vertically if flex or grid is used */
    .footer__address {
        display: block;
    }

    .footer__content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer__address span, .legal-links li {
        width: 100%;
        display: block;
        height: auto;
        margin-bottom: 0.5rem;
    }
}

/* Additional fix for very small mobile devices */
@media (max-width: 480px) {
    .hero {
        min-height: calc(100vh - 72px);
        margin-top: 72px;
    }

    .hero__title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero__container {
        padding: 0 1.5rem;
    }
}

/* Additional styles for sub-pages */
.section {
    background-color: #1a1a1e;
    color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section__content {
    max-width: 800px;
    margin: 0 auto;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: #ffffff;
}

.section__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* Ensure dynamic components work properly */
#dynamic-navigation,
#dynamic-footer {
    width: 100%;
}

/* Center the contact section title above the containers and add spacing */
.contact-section__title {
  font-family: var(--font-family-heading);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--color-white); /* white text to match other section titles on dark background */
  text-align: center;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2; /* Ensure title appears above overlays */
}

.contact-footer-wrapper {
  /* no flex styles here to keep padding intact */
  width: 100%;
  margin-top: 2rem;
  box-sizing: border-box;
}

.contact-footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center containers horizontally */
  align-items: stretch;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  margin: 0 auto;
  padding-left: 100px;
  padding-right: 100px;
}

.contact-footer-container > * {
  max-width: 600px; /* Limit width of child containers to allow centering */
  margin: 0 auto; /* Center child containers horizontally */
}

.contact-section, #dynamic-footer {
  flex-basis: calc(50% - 1rem);
  max-width: calc(600px - 1rem);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Responsive adjustment for flex direction on smaller screens */
@media (max-width: 768px) {
  .contact-footer-container {
    flex-direction: column;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Stack on tablet portrait and mobile */
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .contact-section {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
  #dynamic-footer {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Mobile Landscape Specific Overrides */
/* Mobile Landscape Hero Title Override */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .hero__title {
        font-size: 1.25rem !important;
    }

    /* Adjust hero section to account for header height */
    .hero {
        min-height: calc(100vh - 72px) !important;
        margin-top: 72px !important;
    }
}

/* Mobile Landscape Stats Counter 1x3 Grid */
@media (max-width: 1024px) and (orientation: landscape) {
    .testimonials__counter {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 1rem !important;
        text-align: center;
    }

    .counter__item {
        padding: 1rem !important;
    }
}

/* Ensure .contact-footer-container uses flex-direction: row on desktop and tablet landscape for side-by-side layout */
@media (min-width: 768px) and (orientation: landscape) {
  .contact-footer-container {
    flex-direction: row !important;
  }
}

/* Mobile Landscape Footer and Contact Form Stack */
@media (max-width: 852px) and (orientation: landscape) {
  .contact-footer-container {
    flex-direction: column;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .contact-section, #dynamic-footer {
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Add top margin to footer on advertisers and publishers pages to avoid overlap with fixed header */
@media (min-width: 768px) {
    body.advertisers .footer,
    body.publishers .footer {
        margin-top: 72px; /* Height of fixed header */
    }
}

@media (max-width: 480px) {
  .footer__social {
    flex-direction: column;
    gap: 1rem;
  }
  .footer__social > section {
    max-width: 100%;
    flex: none;
  }
}