/* ========================================
   SIF Consulting - Design System
   ======================================== */

/* CSS Variables - Colors & Typography */
:root {
    /* Colors - PRD Palette */
    --color-primary: #5507DA;
    /* Purple Indigo */
    --color-primary-dark: #4005A3;
    --color-primary-light: #7B3AED;
    --color-secondary: #4D71FF;
    /* Shiny Blue */
    --color-accent: #8DD8FF;
    /* Morning Glory Blue */
    --color-accent-teal: #BBFBFF;
    /* Bianchi Green */
    --color-dark: #1A1A1A;
    /* Eerie Black */

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-black: #0F0F0F;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;

    /* Typography */
    --font-family-primary: 'Gantari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-family-secondary: 'Spectral', Georgia, 'Times New Roman', serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-lg: 1.125rem;
    /* 18px */
    --fs-xl: 1.25rem;
    /* 20px */
    --fs-2xl: 1.5rem;
    /* 24px */
    --fs-3xl: 1.875rem;
    /* 30px */
    --fs-4xl: 2.25rem;
    /* 36px */
    --fs-5xl: 3rem;
    /* 48px */
    --fs-6xl: 3.75rem;
    /* 60px */

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: var(--space-6);

    /* Header Height */
    --header-height: 80px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Utilities
   ======================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section__subtitle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    font-family: var(--font-family-secondary);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section__title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-gray-900);
    line-height: 1.2;
    margin-bottom: var(--space-6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--full {
    width: 100%;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 46px;
    width: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 65px;
}

.nav__link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-black);
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
}

/* Search Bar */
.nav__search {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: #EEEEEE;
    padding: var(--space-2) var(--space-3);
    border-radius: 5px;
    width: 239px;
    position: relative;
}

.nav__search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-gray-600);
    outline: none;
}

.nav__search-input::placeholder {
    color: #767676;
}

.nav__search-icon {
    flex-shrink: 0;
    color: var(--color-gray-600);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: var(--fs-xl);
    color: var(--color-gray-800);
    cursor: pointer;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-xl);
        padding: var(--space-16) var(--space-8);
        transition: right var(--transition-base);
        z-index: 1001;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }

    .nav__link {
        font-size: var(--fs-lg);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: var(--space-6);
        right: var(--space-6);
    }

    .nav__toggle {
        display: block;
    }

    .nav__search {
        display: none;
    }
}

/* ========================================
   Hero Section / Slider
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero__slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero__slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--space-24);
    gap: var(--space-12);
}

.hero__content-left {
    flex: 0 0 60%;
    max-width: 60%;
}

.hero__content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    max-width: 510px;
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: 1.1;
    margin: 0;
}

.hero__description {
    font-size: var(--fs-base);
    font-family: var(--font-family-secondary);
    color: var(--color-white);
    line-height: 1.6;
    margin: 0;
}

/* Hero Button Style */
.btn--hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    border-radius: 0;
    transition: all var(--transition-base);
    width: 249px;
}

.btn--hero:hover {
    background: var(--color-gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Slider Dots Navigation */
.hero__dots {
    position: absolute;
    top: calc(var(--header-height) + var(--space-8));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 100;
}

.hero__dot {
    width: 16px;
    height: 4px;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-base);
}

.hero__dot.active {
    width: 60px;
    opacity: 1;
}

.hero__dot:hover {
    opacity: 0.8;
}

/* Slider Arrow Navigation */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 100;
    backdrop-filter: blur(4px);
}

.hero__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero__arrow--prev {
    left: var(--space-8);
}

.hero__arrow--next {
    right: var(--space-8);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero__slide-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        gap: var(--space-6);
        padding-bottom: var(--space-16);
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }

    .hero__content-left,
    .hero__content-right {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero__title {
        font-size: var(--fs-4xl);
    }
}

@media screen and (max-width: 768px) {
    .hero__slide {
        display: block;
    }

    .hero__slide-bg {
        position: absolute;
        height: 100%;
        width: 100%;
        flex: none;
    }

    .hero__slide-overlay {
        display: block;
    }

    .hero__slide-content.container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        padding-bottom: var(--space-16);
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        gap: var(--space-6);
        max-width: 100%;
        z-index: 2;
    }

    .hero__content-left {
        width: 100%;
        order: 1;
    }

    .hero__content-right {
        width: 100%;
        order: 2;
        padding-top: 0;
        gap: var(--space-4);
        align-items: center;
        /* Ensure internal flex items center if any */
    }

    .hero__title {
        font-size: var(--fs-3xl);
        color: var(--color-white);
    }

    .hero__description {
        font-size: var(--fs-base);
        color: var(--color-white);
        margin-bottom: var(--space-4);
    }

    .btn--hero {
        width: 100%;
        max-width: 300px;
        background: var(--color-white);
        color: var(--color-black);
        margin: 0 auto;
        /* Enhance centering */
    }

    .btn--hero:hover {
        background: var(--color-gray-100);
        transform: translateY(-2px);
    }

    .hero__arrow {
        display: none;
    }

    .hero__dots {
        width: auto;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero__dot {
        background: var(--color-white);
    }

    .hero__dot.active {
        background: var(--color-white);
        opacity: 1;
    }
}

@media screen and (max-width: 480px) {
    .hero__slide-content {
        padding-bottom: var(--space-10);
        gap: var(--space-6);
    }

    .hero__title {
        font-size: var(--fs-2xl);
    }

    .hero__description {
        font-size: var(--fs-xs);
    }

    .btn--hero {
        font-size: var(--fs-sm);
        padding: var(--space-2) var(--space-3);
    }

    .hero__arrow {
        display: none;
    }


}

/* ========================================
   About Section
   ======================================== */

.about {
    padding: var(--space-8) 0 var(--space-24) 0;
    background: linear-gradient(to right, #5507da 0%, #5507da 56.731%, #4d71ff 100%);
    position: relative;
    overflow: hidden;
}

/* Group 20 Vector Background */
.about__vector-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.about__vector-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

.about .container {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-24);
}

.about .section__subtitle {
    color: var(--color-white);
}

.about .section__title {
    color: var(--color-white);
}

.about__description {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: var(--space-12);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.stats__item {
    text-align: center;
    padding: var(--space-8);
    background: rgba(78, 7, 199, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stats__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(78, 7, 199, 1);
}

.stats__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.stats__number {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin-bottom: var(--space-1);
}

.stats__label {
    font-size: var(--fs-sm);
    font-family: var(--font-family-secondary);
    color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .about {
        padding-bottom: var(--space-12);
    }
}

/* ========================================
   Team Section
   ======================================== */

.team {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    background: var(--color-white);
    position: relative;
    z-index: 10;
    margin-bottom: var(--space-8);
    /* Pull section up */

}

/* Wave Divider connecting Hero and Team */
.team__divider {
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 151px;
    z-index: 1;
}

.team__divider img {
    display: block;
    width: 100%;
    height: 100%;
}

.team__divider::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Pattern */
    background-image: url('../images/cbfdb662d996790906b5443317b4fe9a96a0c83b.png');
    background-size: 33.33%;
    background-repeat: repeat;
    background-position: center bottom;
    opacity: 0.15;
    pointer-events: none;
    /* Mask the pattern to the wave shape */
    -webkit-mask-image: url('../images/wave-divider.svg');
    mask-image: url('../images/wave-divider.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center bottom;
    mask-position: center bottom;
}

.team__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: url('../images/cbfdb662d996790906b5443317b4fe9a96a0c83b.png');
    background-size: 33.33%;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.15;
}

.team__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.team .container {
    position: relative;
    z-index: 2;
}

.team .section__subtitle {
    color: var(--color-black);
}

.team .section__title {
    color: var(--color-black);
}

.team__description {
    font-size: var(--fs-lg);
    color: var(--color-gray-600);
    max-width: 800px;
    margin-bottom: var(--space-12);
}



.team .container {
    position: relative;
    z-index: 1;
}

.team .section__subtitle {
    color: var(--color-black);
}

.team .section__title {
    color: var(--color-black);
}

.team__description {
    font-size: var(--fs-lg);
    color: var(--color-black);
    max-width: 800px;
    margin-bottom: var(--space-12);
}

.team__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

/* Featured Team Member */
.team__featured {
    display: flex;
    gap: var(--space-12);
    background: var(--color-black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team__featured.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team__featured-image {
    position: relative;
    flex: 0 0 567px;
    overflow: hidden;
}

.team__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team__featured:hover .team__featured-image img {
    transform: scale(1.05);
}

.team__featured-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.team__featured-content {
    flex: 1;
    padding: var(--space-16) var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-12);
}

.team__featured-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.team__featured-name {
    font-size: 31px;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin: 0;
}

.team__featured-role {
    font-size: 15px;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin: 0;
}

.team__featured-bio {
    font-size: var(--fs-lg);
    color: var(--color-white);
    line-height: 1.6;
    margin: 0;
}

/* Team Grid */
.team__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
}

.team__member {
    flex: 0 0 calc((100% - (3 * var(--space-6))) / 4);
    max-width: 280px;
    /* Optional: prevent them from getting too huge if only 1 item */
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    opacity: 0;
    transform: translateY(40px);
}



.team__member.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.team__member:nth-child(1) {
    animation-delay: 0.1s;
}

.team__member:nth-child(2) {
    animation-delay: 0.2s;
}

.team__member:nth-child(3) {
    animation-delay: 0.3s;
}

.team__member:nth-child(4) {
    animation-delay: 0.4s;
}

.team__member:nth-child(5) {
    animation-delay: 0.5s;
}

.team__member:nth-child(6) {
    animation-delay: 0.6s;
}

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

.team__member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team__member-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-gray-200);
}

.team__member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team__member:hover .team__member-image img {
    transform: scale(1.05);
}

.team__member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team__member:hover .team__member-overlay {
    opacity: 1;
}

.team__member-info {
    padding: var(--space-5);
    text-align: center;
}

.team__member-name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-gray-900);
    margin: 0 0 var(--space-1) 0;
}

.team__member-role {
    font-size: var(--fs-sm);
    color: var(--color-primary);
    margin: 0;
}

.team__social-link {
    display: inline-flex;
    margin-top: var(--space-2);
    transition: opacity var(--transition-fast);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team__featured .social-icon {
    filter: brightness(0) invert(1);
    /* Force white */
    opacity: 0.8;
}

.team__featured .team__social-link:hover .social-icon {
    opacity: 1;
}

.team__member-info .social-icon {
    filter: brightness(0);
    /* Black initially */
    opacity: 0.5;
    width: 20px;
    height: 20px;
}

.team__member-info .team__social-link:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(29%) sepia(97%) saturate(2466%) hue-rotate(253deg) brightness(91%) contrast(92%);
    /* Approximating primary color #5507DA */
    opacity: 1;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .team__featured {
        flex-direction: column;
        gap: 0;
        max-width: 600px;
        margin: 0 auto;
    }

    .team__featured-image {
        flex: 0 0 auto;
        width: 100%;
        height: 400px;
    }

    .team__featured-content {
        padding: var(--space-8);
        text-align: center;
        align-items: center;
    }

    .team__featured-header {
        align-items: center;
    }

    .team__grid {
        /* grid-template-columns: repeat(2, 1fr); - Removed grid */
        justify-content: center;
    }

    .team__member {
        flex: 0 0 calc((100% - var(--space-6)) / 2);
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {

    .team__featured-name {
        font-size: var(--fs-2xl);
    }

    .team__featured-role {
        font-size: var(--fs-sm);
    }

    .team__featured-bio {
        font-size: var(--fs-base);
    }
}

@media screen and (max-width: 480px) {
    .team__grid {
        /* grid-template-columns: 1fr; - Removed grid */
    }

    .team__member {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .team__featured-content {
        padding: var(--space-6);
    }
}

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

.services {
    padding: var(--space-8) 0;
    background: var(--color-white);
}

.services .section__subtitle {
    color: var(--color-black);
}

.services .section__title {
    color: var(--color-black);
}

.services__description {
    font-size: var(--fs-lg);
    color: var(--color-gray-600);
    max-width: 800px;
    margin-bottom: var(--space-12);
}

.services__slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Removed padding to let cards go edge-to-edge if needed, or controlled by container */
    /* If we want the arrows outside, we might need some padding or absolute positioning tweaks. 
       Given the design usually keeps arrows inside or overlay, let's keep padding 0 for the slider track 
       and ensure the container constrains it. 
       Wait, previous padding was 0 60px. That was probably for arrows. 
       Let's stick to the container width. The arrows are absolute. */
}

.services__slider {
    display: flex;
    gap: var(--space-6);
    /* Using space-6 (usually 24px) for gap */
    width: 100%;
}

.service__card {
    position: relative;
    /* 
       Calculation for 3.25 cards:
       Total width = 100%
       Gaps visible = 3 gaps (between 1-2, 2-3, 3-4)
       3 full cards + 0.25 card = 3.25 cards
       3.25 * CardWidth + 3 * Gap = 100%
       3.25 * CardWidth = 100% - 3 * Gap
       CardWidth = (100% - 3 * Gap) / 3.25
    */
    width: calc((100% - 3 * var(--space-6)) / 3.25);
    height: 390px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.service__card-bg {
    position: absolute;
    inset: 0;
}

.service__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.service__card:hover .service__card-img {
    transform: scale(1.05);
}

.service__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    transition: background var(--transition-base), opacity var(--transition-base);
}

.service__card-overlay--purple {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #4e07c7 100%);
}

.service__card-overlay--blue {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #4d71ff 100%);
}

.service__card-overlay--cyan {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #8dd8ff 100%);
}

.service__card-overlay--dark {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #212121 100%);
}

.service__card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-8);
    height: 100%;
    justify-content: flex-end;
}

.service__icon-placeholder {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.service__title {
    font-family: var(--font-family-secondary);
    font-size: 32px;
    font-weight: var(--fw-bold);
    line-height: 36px;
    color: var(--color-white);
    margin: 0;
}

.service__card-default {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: opacity var(--transition-base);
}

.service__card-hover {
    display: none;
    flex-direction: column;
    gap: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service__card:hover .service__card-overlay--purple {
    background: #4e07c7;
    opacity: 1;
}

.service__card:hover .service__card-overlay--blue {
    background: #4d71ff;
    opacity: 1;
}

.service__card:hover .service__card-overlay--cyan {
    background: #8dd8ff;
    opacity: 1;
}

.service__card:hover .service__card-overlay--dark {
    background: #212121;
    opacity: 1;
}

.service__card:hover .service__card-default {
    display: none;
}

.service__card:hover .service__card-hover {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

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

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

.service__description {
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.5;
    width: 100%;
    /* Changed from fixed 235px to responsive/full width of container */
    max-width: 250px;
    margin: 0;
}

.service__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-black);
    color: var(--color-white);
    padding: 10px;
    width: 178px;
    font-size: 14px;
    font-weight: var(--fw-medium);
    text-decoration: none;
    transition: background var(--transition-base);
}

.service__link:hover {
    background: rgba(0, 0, 0, 0.8);
}

.service__link svg {
    flex-shrink: 0;
}

/* Services Slider Navigation */
.services__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.services__dot {
    width: 16px;
    height: 4px;
    background: var(--color-gray-400);
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-base);
}

.services__dot.active {
    width: 60px;
    background: var(--color-primary);
    opacity: 1;
}

.services__dot:hover {
    opacity: 0.8;
}

/* Services Slider Arrows */
.services__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 20;
}

.services__arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.services__arrow--prev {
    left: 10px;
    /* Adjusted since wrapper padding is gone */
}

.services__arrow--next {
    right: 10px;
    /* Adjusted since wrapper padding is gone */
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    /* Maybe slightly different calculation or fewer cards? 
       Let's stick to the 3.25 logic as long as it fits, or drop to 2.25 */
}

@media screen and (max-width: 1024px) {
    .service__card {
        /* On tablet, maybe show 2.25 cards? */
        /* 2.25 * W + 2 * G = 100% => W = (100% - 2*G) / 2.25 */
        width: calc((100% - 2 * var(--space-6)) / 2.25);
    }
}

@media screen and (max-width: 768px) {
    .services__arrow {
        width: 40px;
        height: 40px;
    }

    .service__card {
        /* On mobile landscape/large mobile, 1.25 cards? */
        width: calc((100% - 1 * var(--space-6)) / 1.25);
        height: 350px;
    }

    .service__title {
        font-size: 28px;
        line-height: 32px;
    }
}

@media screen and (max-width: 480px) {
    .service__card {
        /* On small mobile, maybe just 1 card with peek? or just 1 card taking 85% width? */
        width: 85%;
    }

    .services__slider {
        gap: var(--space-4);
    }

    .service__title {
        font-size: 24px;
        line-height: 28px;
    }

    .service__icon-placeholder {
        width: 60px;
        height: 60px;
    }

    .services__arrow {
        display: none;
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: 0;
    background: var(--color-black);
    position: relative;
    overflow: hidden;
    min-height: 636px;
}

/* Rectangle 6 Background */
.contact__background-rect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/3dab8101c809d7b4d3d33d6819972df8b64f9a70.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 636px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-8) var(--container-padding);
}

.contact__wrapper {
    display: block;
}

.contact__content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--color-black);
    max-width: 523px;
}

.contact__title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin: 0;
}

.contact__description {
    font-size: var(--fs-lg);
    color: var(--color-white);
    line-height: normal;
    margin: 0;
    max-width: 459px;
}

.contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 10px;
    background: #4e07c7;
    color: var(--color-white);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    border: none;
    width: 178px;
    text-decoration: none;
    transition: background var(--transition-base);
}

.contact__btn:hover {
    background: var(--color-primary-dark);
}

/* Contact Form */
.contact__form {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: var(--space-5);
}

.form__label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--fs-base);
    color: var(--color-gray-800);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

@media screen and (max-width: 768px) {
    .contact__wrapper {
        display: block;
    }

    .contact .container {
        align-items: center;
        justify-content: center;
        padding: var(--space-8) var(--container-padding);
    }

    .contact {
        min-height: auto;
    }

    .contact .container {
        min-height: auto;
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .contact__content {
        padding: var(--space-6);
        max-width: 100%;
    }

    .contact__title {
        font-size: var(--fs-2xl);
    }

    .contact__description {
        font-size: var(--fs-base);
    }

    .contact__btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   Social Media Section
   ======================================== */

.social-media {
    background: #4e07c7;
    padding: 10px 0;
}

.social-media__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 33px;
}

.social-media__text {
    font-size: var(--fs-lg);
    font-weight: var(--fw-regular);
    color: var(--color-white);
    margin: 0;
}

.social-media__icons {
    display: flex;
    align-items: center;
    gap: 11.85px;
}

.social-media__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.social-media__link:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.social-media__icon {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 768px) {
    .social-media__wrapper {

        gap: var(--space-4);
    }

    .social-media__text {
        font-size: var(--fs-base);
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-white);
    padding: var(--space-8) 0 0 0;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.footer__logo-wrapper {
    flex-shrink: 0;
}

.footer__logo-img {
    height: 56px;
    width: auto;
}

.footer__legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-10);
    max-width: 350px;
    width: 100%;
}

.footer__legal-links a {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-black);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer__legal-links a:hover {
    color: var(--color-primary);
}

.footer__text {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-black);
    line-height: 1.6;
    max-width: 100%;
}

.footer__text p {
    margin-bottom: var(--space-4);
}

.footer__copyright {
    margin-top: var(--space-6);
    font-weight: var(--fw-medium);
}

@media screen and (max-width: 1024px) {
    .footer__legal-links {
        gap: var(--space-6);
    }
}

@media screen and (max-width: 768px) {
    .footer__top {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
    }

    .footer__legal-links {
        flex-wrap: wrap;
        gap: var(--space-4);
        max-width: 100%;
        justify-content: center;
    }

    .footer__legal-links a {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .footer__legal-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }

    .footer__text {
        font-size: 13px;
    }
}