/*
* styles.css
* Redesign for B Young Originals Unlimited Digital Marketing
* Theme: Optical Illusion Grid
*/

/* ------------------- */
/* ROOT & VARIABLES
/* ------------------- */
:root {
    --color-primary: #00c6ff;
    --color-secondary: #5f27cd;
    --color-background: #0d0c22;
    --color-surface: #191836;
    --color-surface-light: #24224f;
    --color-text: #e0e0e0;
    --color-heading: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-shadow: rgba(0, 198, 255, 0.2);
    --color-success: #2ecc71;
    --color-white: #fff;

    --font-primary: 'Poppins', sans-serif;
    --font-monospace: 'Roboto Mono', monospace;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.4s;
    --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ------------------- */
/* BASE & RESET
/* ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(13, 12, 34, 0) 0%, var(--color-background) 80%);
    z-index: -9;
}


/* ------------------- */
/* OPTICAL ILLUSION GRID
/* ------------------- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pan-grid 60s linear infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

@keyframes pan-grid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

/* ------------------- */
/* GENERAL TYPOGRAPHY
/* ------------------- */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.3;
    position: relative;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-white);
}

ul {
    list-style: none;
}

/* ------------------- */
/* REUSABLE COMPONENTS
/* ------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    transition: transform var(--transition-speed) var(--transition-ease);
    position: relative;
    z-index: 2;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-shadow);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::before,
h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-text-stroke: 1px var(--color-primary);
    color: transparent;
    opacity: 0.1;
    z-index: -1;
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        clip-path: inset(50% 0 30% 0);
    }

    20% {
        clip-path: inset(0 0 80% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(10% 0 90% 0);
    }

    80% {
        clip-path: inset(40% 0 40% 0);
    }
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}


/* ------------------- */
/* HEADER & NAVIGATION
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, backdrop-filter var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(13, 12, 34, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 80px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.nav-link:hover::after,
.header-cta.active:after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta.active {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active .bar-middle {
    opacity: 0;
}

.mobile-toggle.active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-surface);
    z-index: 999;
    transition: right 0.4s var(--transition-ease);
    padding-top: calc(var(--header-height) + 2rem);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.mobile-nav ul a {
    font-size: 1.2rem;
}

/* ------------------- */
/* HERO SECTION
/* ------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateZ(50px);
}

.hero-title {
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-3d-object-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    z-index: 0;
}

.hero-3d-object {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate-cube 20s linear infinite;
}

@keyframes rotate-cube {
    0% {
        transform: translate(-50%, -50%) rotateX(0) rotateY(0);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg);
    }
}

.hero-3d-object .face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid var(--color-primary);
    background: rgba(0, 198, 255, 0.05);
    opacity: 0.3;
}

.face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* ------------------- */
/* SERVICES SECTION
/* ------------------- */
.services-section {
    padding: 100px 0;
    background: var(--color-background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 2000px;
}

.service-card {
    background-color: transparent;
    height: 300px;
    border: none;
    transform-style: preserve-3d;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--transition-ease);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card-front:hover {
    box-shadow: 0 0 25px var(--color-shadow);
    background-color: var(--color-surface-light);
}

.service-card-back {
    transform: rotateY(180deg);
    background-image: linear-gradient(to top right, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    text-align: center;
}

.service-card-back h3 {
    color: var(--color-white);
}

.service-card-back p {
    font-size: 0.9rem;
}


.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.service-card-front:hover .service-icon {
    transform: scale(1.1);
}

.btn-card {
    margin-top: 1.5rem;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: 5px;
}

.btn-card:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}


/* ------------------- */
/* ABOUT US SECTION
/* ------------------- */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}

.about-list {
    margin: 1.5rem 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.about-list i {
    color: var(--color-primary);
}

.about-image-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-cube {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin-about-cube 30s linear infinite;
}

@keyframes spin-about-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDN8fGRpZ2l0YWwlMjBtYXJrZXRpbmd8ZW58MHx8fHwxNjI4NTI2NzY1&ixlib=rb-1.2.1&q=80&w=400');
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-primary);
    opacity: 0.5;
    transform: rotateY(calc(var(--i) * 90deg)) translateZ(150px);
}

/* ------------------- */
/* INDUSTRIES SECTION
/* ------------------- */
.industries-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.industries-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.industry-item {
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 150px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: default;
}

.industry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 20px var(--color-shadow);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.industry-item span {
    font-weight: 500;
}

/* ------------------- */
/* ------------------- */
/* INTERACTIVE REPORT SECTION
/* ------------------- */
.interactive-report-section {
    padding: 100px 0;
}

.report-dashboard {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.report-header h3 {
    font-weight: 500;
    font-size: 1.5rem;
}

.date-range {
    font-family: var(--font-monospace);
    font-size: 0.9rem;
    color: var(--color-text);
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.report-card {
    background-color: var(--color-surface-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.kpi-card h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-monospace);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.kpi-change.positive {
    color: var(--color-success);
}

.kpi-change.negative {
    color: #e74c3c;
}

.chart-card-1 {
    grid-column: 1 / 3;
}

.chart-card-2 {
    grid-column: 3 / 5;
}

.chart-card-1,
.chart-card-2 {
    height: 280px;
    display: flex;
    flex-direction: column;
}

.chart-card-1 h4,
.chart-card-2 h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.chart-placeholder {
    flex-grow: 1;
    width: 100%;
}

/* Vertical Bar Chart (as per image) */
.bar-chart-vertical {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 1rem 0;
}

.bar-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    gap: 2rem;
}

.bar-chart-vertical .bar {
    flex: 1;
    max-width: 50px;
    background: linear-gradient(to top, var(--color-secondary), var(--color-primary));
    border-radius: 4px 4px 0 0;
    height: 0;
    animation: bar-grow 1.5s forwards ease-out;
    position: relative;
}

.bar-chart-vertical .bar:hover .bar-tooltip {
    opacity: 1;
    transform: translateY(-10px);
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
}

.bar:nth-child(4) {
    animation-delay: 0.6s;
}

.bar-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-background);
    color: var(--color-white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

@keyframes bar-grow {
    from {
        height: 0;
    }

    to {
        height: var(--h);
    }
}

/* Animated Line Chart Placeholder */
.line-chart-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
}

.line-chart-placeholder svg {
    width: 100%;
    height: 100%;
}

.line-chart-placeholder path {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: draw-line 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* ------------------- */
/* TESTIMONIALS SECTION
/* ------------------- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Adjust as needed */
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide.exiting {
    transform: translateX(-100%);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
}

.slider-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-background);
}


/* ------------------- */
/* FOOTER
/* ------------------- */
.footer {
    background-color: var(--color-surface);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    background-color: var(--color-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}


.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-col-title {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-heading);
}

.footer-logo-link {
    margin-bottom: 1rem;
}

.footer-logo {
    height: 80px;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--color-text);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--color-text);
}

.footer-links ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--color-primary);
    margin-top: 5px;
}

.contact-info a {
    color: var(--color-text);
}

.contact-info a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}


/* ------------------- */
/* SCROLL ANIMATIONS
/* ------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) rotateX(-20deg);
    transition: opacity 0.8s var(--transition-ease), transform 0.8s var(--transition-ease);
    transform-style: preserve-3d;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ------------------- */
/* LIVE CHAT BUBBLE
/* ------------------- */
.live-chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 198, 255, 0.4);
    z-index: 100;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* ------------------- */
/* SUBPAGE STYLES (Contact, Legal pages)
/* ------------------- */
.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 100px 0 50px;
    text-align: center;
    background: linear-gradient(rgba(13, 12, 34, 0), var(--color-surface) 90%);
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumbs span {
    color: var(--color-primary);
}

.page-content {
    padding: 50px 0 100px;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
}

.content-wrapper ul li {
    margin-bottom: 0.5rem;
}


/* ------------------- */
/* CONTACT PAGE SPECIFIC
/* ------------------- */
.contact-section {
    padding: 50px 0 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info-panel {
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
}

.contact-info-panel h2 {
    color: var(--color-white);
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-panel a {
    color: var(--color-white);
    text-decoration: underline;
}

.contact-methods {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.method-details p {
    margin: 0;
}

.contact-form-wrapper {
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-surface-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-shadow);
}


/* ------------------- */
/* POPUP
/* ------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--color-text);
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}


/* ------------------- */
/* RESPONSIVENESS
/* ------------------- */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin-top: 3rem;
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-card-1,
    .chart-card-2 {
        grid-column: 1 / 3;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .header-cta {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / 3;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: auto;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .chart-card-1,
    .chart-card-2 {
        grid-column: auto;
    }
}