/* Import Space Grotesk & Outfit Fonts */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
    --color-teal: #5d969d;
    --color-gold: #e3a842;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #9b9498;
    --color-dark-bg: #0f171a;
    --color-dark-card: #162226;
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
    /* --font-heading: "Space Grotesk", sans-serif; */
    /* --font-body: "Outfit", sans-serif; */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Brand Button Styles */
.btn-brand-primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-brand-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-gold);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-brand-primary:hover::before {
    width: 100%;
}

.btn-brand-primary:hover {
    color: var(--color-black);
    box-shadow: 0 10px 20px rgba(93, 150, 157, 0.25);
}

.btn-brand-secondary {
    border: 1px solid var(--color-gold);
    color: var(--color-black);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-brand-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    box-shadow: 0 10px 20px rgba(227, 168, 66, 0.25);
}

/* Portfolio Filters */
.filter-btn {
    position: relative;
    transition: all 0.3s ease;
    color: var(--color-gray);
    font-family: var(--font-heading);
    font-weight: 500;
}

.filter-btn::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-teal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn.active {
    color: var(--color-teal);
    font-weight: 600;
}

.filter-btn.active::after {
    width: 100%;
}

/* Portfolio Grid Cards */
.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f7f9fa;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 26, 0.95) 10%,
        rgba(15, 23, 26, 0.4) 60%,
        rgba(15, 23, 26, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-card:hover .portfolio-arrow-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Custom Text Gradient */
.text-gradient {
    background: linear-gradient(
        135deg,
        var(--color-teal) 0%,
        var(--color-gold) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Metrics Section Card */
.metric-card {
    border-radius: 20px;
    border: 1px solid rgba(93, 150, 157, 0.1);
    background: linear-gradient(145deg, #ffffff, #f4f8f8);
    transition: all 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(93, 150, 157, 0.1);
    border-color: rgba(93, 150, 157, 0.3);
}

/* Case Study Details Styles */
.case-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 180px 0 100px;
}

.case-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 26, 0.7),
        var(--color-dark-bg)
    );
    z-index: 1;
}

.case-hero-content {
    position: relative;
    z-index: 2;
}

.case-badge {
    background: rgba(93, 150, 157, 0.15);
    border: 1px solid rgba(93, 150, 157, 0.3);
    color: var(--color-teal);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Video Reel Cards */
.reel-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.reel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(93, 150, 157, 0.3);
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--color-white);
}

.reel-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.reel-card:hover .reel-play-btn {
    background: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
    transform: scale(1.1);
}

/* Service evidence showcase mockups */
.evidence-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.evidence-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(93, 150, 157, 0.15);
}

/* Growth Container on Detail Page */
.growth-pill {
    background: linear-gradient(
        135deg,
        var(--color-dark-card) 0%,
        #1e2e33 100%
    );
    border: 1px solid rgba(227, 168, 66, 0.2);
    border-radius: 24px;
}

/* Custom Image Grid Layout */
.grid-photo-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.grid-photo-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(93, 150, 157, 0.1);
    mix-blend-mode: color;
    opacity: 0;
    transition: all 0.3s ease;
}

.grid-photo-item:hover::after {
    opacity: 1;
}

/* Page Transition Loader */
#pre-loader {
    position: fixed;
    inset: 0;
    background: var(--color-dark-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(93, 150, 157, 0.2);
    border-top: 3px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0f171a;
}
::-webkit-scrollbar-thumb {
    background: #5d969d;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e3a842;
}

/* FAQ Accordion Styles */
.faq-item {
    border-bottom: 1px solid rgba(93, 150, 157, 0.15);
    transition: all 0.3s ease;
}

.faq-item.active {
    background-color: rgba(93, 150, 157, 0.03);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-gold);
}

/* SVG Chart Animations */
.chart-bar {
    transform-origin: bottom;
    animation: growBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chart-dot {
    opacity: 0;
    animation: fadeInDot 0.5s ease forwards;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInDot {
    to {
        opacity: 1;
    }
}

/* Timeline Process Connectors */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--color-teal),
        var(--color-gold)
    );
    opacity: 0.3;
}

@media (min-width: 1024px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
        top: 40px;
        bottom: 40px;
        width: 2px;
        height: auto;
    }
}
