/* Global CSS - AMPC for Digital Comms */

:root {
    /* Color Palette */
    --bg-body: #eae8ea;
    --text-main: #020304;
    --primary-accent: #5368e1;
    --secondary-accent: #32ac7e;
    --gradient-accent: linear-gradient(to right, #fd717c, #fdad38);
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Typography - Fluid Scaling (Mobile to 4K) */
    /* Base size scales from 16px at 320px width to 24px at 2560px width */
    --font-size-base: clamp(1rem, 0.8rem + 0.5vw, 1.5rem);

    /* Headings */
    --font-size-h1: clamp(2.5rem, 2rem + 3vw, 6rem);
    --font-size-h2: clamp(2rem, 1.5rem + 2vw, 4.5rem);
    --font-size-h3: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    --font-size-h4: clamp(1.3rem, 1rem + 1.3vw, 2.7rem);
    --font-size-nav: clamp(1rem, 0.9rem + 0.4vw, 1.4rem);
    --font-size-nav-mobile: clamp(1.8rem, 1.8rem + 0.8vw, 1.9rem);

    /* Spacing */
    --spacing-section: clamp(4rem, 2rem + 5vw, 10rem);
    --spacing-container: clamp(1rem, 5vw, 10rem);
    --spacing-special-section: clamp(3.8rem, 1.8rem + 4.5vw, 8.5rem);
    /* Layout */
    --max-width: 2560px;
    --header-height: clamp(70px, 5vh + 2rem, 120px);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base for rems */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: var(--font-size-base);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

/* Header - Glassmorphism */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-container);
    background: rgba(234, 232, 234, 0.6);
    /* Semi-transparent body color match */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
    height: 100%;
}

.logo img {
    height: clamp(50px, 8vh, 90px);
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    gap: clamp(1.5rem, 2vw, 4rem);
}

.nav-link {
    font-size: var(--font-size-nav);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    padding: 0.8em 2em;
    background: var(--primary-accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-nav);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(83, 104, 225, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.hero-title {
    font-size: var(--font-size-h1);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: var(--font-size-h3);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 60ch;
}

/* Abstract Background Shapes for Hero */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: clamp(300px, 40vw, 800px);
    height: clamp(300px, 40vw, 800px);
    background: var(--primary-accent);
    top: -10%;
    right: -10%;
}

.shape-2 {
    width: clamp(200px, 30vw, 600px);
    height: clamp(200px, 30vw, 600px);
    background: #fd717c;
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        opacity: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        opacity: 1;
        right: 0;
    }

    .nav-link {
        font-size: var(--font-size-nav-mobile);
    }

    .btn-cta-mobile {
        padding: 0.7em 1.9em !important;
        font-size: larger !important;

    }
}

/* About Section */
.about-section {
    padding: var(--spacing-section) 0;
    background: var(--white);
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: var(--font-size-h3);
    /* Slightly smaller than hero subtitle but large */
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-main);
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: var(--spacing-section) 0;
    background: var(--bg-body);
}


.btn-cta {
    padding: 0.8em 2em;
    background: var(--primary-accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-nav);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(83, 104, 225, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.hero-title {
    font-size: var(--font-size-h1);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: var(--font-size-h3);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 60ch;
}

.hero-cta {
    margin: 0;
}

.hero-btn {
    display: inline-block;
    margin: 0;
}

/* Abstract Background Shapes for Hero */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: clamp(300px, 40vw, 800px);
    height: clamp(300px, 40vw, 800px);
    background: var(--primary-accent);
    top: -10%;
    right: -10%;
}

.shape-2 {
    width: clamp(200px, 30vw, 600px);
    height: clamp(200px, 30vw, 600px);
    background: #fd717c;
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* About Section */
.about-section {
    padding: var(--spacing-section) 0;
    background: var(--white);
    position: relative;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: var(--font-size-h3);
    /* Slightly smaller than hero subtitle but large */
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-main);
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: var(--spacing-section) 0;
    background: var(--bg-body);
}

.services-header {
    margin-bottom: 4rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--text-main);
    /* Fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    height: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Overlay for text readability */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.service-card:hover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-short-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
    max-width: 85%;
}

.btn-expand {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    /* Push to right */
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

.btn-expand:hover {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 767px) {
    .modal-overlay {
        align-items: flex-start;
    }

    .modal-content {
        margin: 1rem 0;
        /* Add vertical margin for spacing */
        max-height: none;
        /* Allow content to determine height */
    }
}

@media (min-width: 768px) {
    .modal-content {
        height: 500px;
    }
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--primary-accent);
    color: var(--white);
}

.modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;

    }
}

.modal-image {
    flex: 1;
    background: #000;
    min-height: 200px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}

#modal-title {
    font-size: var(--font-size-h2);
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.1;
}

#modal-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Clients Section */
.clients-section {
    padding: var(--spacing-section) 0;
    background: var(--white);
}

.clients-header {
    margin-bottom: 4rem;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    filter: grayscale(100%);
}

.client-logo:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}



/* Clients Section */
.clients-section {
    padding: var(--spacing-section) 0;
    background: var(--white);
}

.clients-header {
    margin-bottom: 4rem;
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    filter: grayscale(100%);
}

.client-logo:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: var(--font-size-h1);
    background-image: linear-gradient(to right, var(--white) 0%, var(--white) 60%, #32ac7e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: var(--font-size-h3);
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

.btn-cta-large {
    display: inline-block;
    padding: 1.2em 3em;
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-cta-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--white);
    color: var(--primary-accent);
}

/* Footer */
.site-footer {
    background: var(--text-main);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 100px;
    width: fit-content;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 300;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-col ul li a {
    color: var(--white);
    transition: opacity 0.3s ease;
}

.footer-col ul li:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.95rem;
    opacity: 0.6;
}

/* Stats Section */
.stats-section {
    padding: var(--spacing-special-section) 0;
    padding-bottom: clamp(3rem, 1rem + 3vw, 6rem);
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: clamp(2rem, 3vw, 4rem);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- Add these specific background rules --- */

/* Card 1: Uses Primary Accent */
.stat-card:nth-child(1) {
    background: linear-gradient(135deg, var(--bg-body) 70%, var(--primary-accent) 120%);
}

/* Card 2: Uses Secondary Accent */
.stat-card:nth-child(2) {
    background: linear-gradient(135deg, var(--bg-body) 70%, var(--secondary-accent) 120%);
}

/* Card 3: Uses the Pink color (#fd717c) */
.stat-card:nth-child(3) {
    background: linear-gradient(135deg, var(--bg-body) 70%, #fd717c 120%);
}

/* Card 4: Uses the Orange color (#fdad38) */
.stat-card:nth-child(4) {
    background: linear-gradient(135deg, var(--bg-body) 70%, #fdad38 120%);
}


.stat-number {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-number::after {
    content: '+';
    color: var(--primary-accent);
}

.stat-card:nth-child(2) .stat-number::after {
    color: var(--secondary-accent);
}

.stat-card:nth-child(3) .stat-number::after {
    color: #fd717c;
}

.stat-card:nth-child(4) .stat-number::after {
    content: '%';
    color: #fdad38;
}

.stat-label {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}