/*
 * Media Agency Theme V2
* Version: 2.0
* Author: AI Generated
*/

/* -------------------
   1. CSS Variables & Global Styles
   ------------------- */
:root {
    --bg-color: #0D1B1E;
    --primary-color: #112D32;
    --secondary-color: #254B5A;
    --accent-primary: #00BFA6;
    --accent-secondary: #4DD0E1;
    --text-color: #E0F7FA;
    --text-muted-color: #8FBBC3;
    --white: #FFFFFF;
    --border-color: rgba(77, 208, 225, 0.2);
    --shadow-color: rgba(0, 191, 166, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------
   2. Preloader
   ------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color);
    z-index: 9999;
    display: grid;
    place-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.cube-loader {
    width: 60px;
    height: 60px;
    position: relative;
    transform: rotateZ(45deg);
}

.cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    transform: scale(1.1);
}

.cube::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-primary);
    animation: cube-fold 2.4s infinite linear both;
    transform-origin: 100% 100%;
}

.cube:nth-child(2) {
    transform: scale(1.1) rotateZ(90deg);
}

.cube:nth-child(3) {
    transform: scale(1.1) rotateZ(270deg);
}

.cube:nth-child(4) {
    transform: scale(1.1) rotateZ(180deg);
}

.cube:nth-child(2)::before {
    animation-delay: 0.3s;
}

.cube:nth-child(3)::before {
    animation-delay: 0.9s;
}

.cube:nth-child(4)::before {
    animation-delay: 0.6s;
}

@keyframes cube-fold {

    0%,
    10% {
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%,
    75% {
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%,
    100% {
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

/* -------------------
   3. Header & Navigation
   ------------------- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: rgba(17, 18, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width var(--transition-smooth);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 28px;
    height: 22px;
    position: relative;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3) {
    bottom: 0;
}

.hamburger-menu.open .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* -------------------
   4. Buttons & CTAs
   ------------------- */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.cta-button.primary {
    color: var(--white);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.cta-button.secondary {
    border-color: var(--accent-primary);
    color: var(--white);
}

.cta-button.secondary::before {
    opacity: 0;
}

.cta-button.secondary:hover::before {
    opacity: 1;
}

.cta-button.large {
    padding: 16px 45px;
    font-size: 1.1rem;
}

.header-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* -------------------
   5. General Section Styling
   ------------------- */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title span {
    display: block;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title h2 {
    margin-bottom: 1rem;
}

/* -------------------
   6. Hero Section
   ------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: radial-gradient(circle at 10% 20%, rgba(192, 57, 204, 0.1), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 106, 194, 0.1), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-subtitle {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--white), #d1d1d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.glowing-orb {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary), var(--bg-color) 70%);
    animation: pulse 4s infinite ease-in-out;
    filter: blur(20px);
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    top: var(--y);
    left: var(--x);
    animation: float 6s infinite ease-in-out;
    animation-delay: var(--d);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* -------------------
   7. Stats Section
   ------------------- */
.stats-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-item p {
    margin: 0;
    color: var(--text-muted-color);
    font-weight: 500;
}

/* -------------------
   8. Services Section
   ------------------- */
.services-section {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(192, 57, 204, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 20px;
    color: var(--accent-primary);
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* -------------------
   9. Process Section
   ------------------- */
.process-section {
    background-color: var(--primary-color);
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.process-step {
    position: relative;
    padding-top: 60px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted-color);
    background-color: var(--primary-color);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.process-step:hover .step-number {
    border-color: var(--accent-primary);
    color: var(--white);
}

.step-content h3 {
    margin-bottom: 10px;
}

/* -------------------
   10. Report Section (Glassmorphism)
   ------------------- */
.report-section {
    background-color: var(--bg-color);
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.report-mockup {
    background: rgba(42, 44, 61, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.report-header h5 {
    font-weight: 600;
}

.report-header span {
    font-weight: 500;
    color: var(--text-muted-color);
}

.report-kpi {
    margin-bottom: 20px;
}

.kpi-label,
.kpi-value {
    display: inline-block;
    width: 50%;
    font-weight: 500;
}

.kpi-value {
    text-align: right;
    color: var(--white);
}

.kpi-change {
    font-size: 0.9rem;
    margin-left: 5px;
}

.kpi-change.positive {
    color: #4ade80;
}

.kpi-change.negative {
    color: #f87171;
}

.kpi-bar {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    transition: width 1.5s ease-out;
}

/* -------------------
   11. Testimonials Section
   ------------------- */
.testimonials-section {
    background-color: var(--primary-color);
}

.testimonial-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-display {
    min-height: 150px;
    margin-bottom: 40px;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--white);
    transition: opacity 0.4s ease-in-out;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-author {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-smooth);
}

.testimonial-author.active,
.testimonial-author:hover {
    opacity: 1;
}

.testimonial-author h4 {
    margin: 0;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.testimonial-author span {
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.testimonial-author.active h4 {
    color: var(--accent-secondary);
}

/* -------------------
   12. CTA Section
   ------------------- */
.cta-section {
    text-align: center;
}

.cta-content {
    background-color: var(--primary-color);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

/* -------------------
   13. Footer
   ------------------- */
.site-footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-logo img {
    height: 50px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about {
    color: var(--text-muted-color);
    max-width: 300px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: var(--text-muted-color);
}

.footer-column ul a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-column address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-muted-color);
}

.newsletter-form {
    position: relative;
    margin-top: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    font-family: var(--font-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.newsletter-form button {
    position: absolute;
    right: 7px;
    top: 7px;
    bottom: 7px;
    width: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--white);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted-color);
}

.footer-bottom ul {
    display: flex;
    gap: 30px;
}

.footer-bottom a {
    color: var(--text-muted-color);
}

/* -------------------
   14. Page-Specific Styles (Contact, Legal)
   ------------------- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-page-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-info {
    padding: 40px;
    background-color: var(--bg-color);
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent-primary);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p,
.info-text a {
    margin: 0;
    color: var(--text-muted-color);
}

.contact-form-container {
    padding: 40px;
}

.contact-form-container h2 {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex-grow: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.form-group textarea {
    resize: vertical;
}

#form-status {
    margin-top: 20px;
    font-weight: 500;
}

.legal-content-section {
    padding: 80px 0;
}

.legal-text {
    max-width: 850px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

.legal-text ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.75rem;
}

/* -------------------
   15. Animations & Responsiveness
   ------------------- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animation="fade-in"] {
    transform: translateY(20px);
}

[data-animation="fade-in-up"] {
    transform: translateY(40px);
}

[data-animation="slide-in-left"] {
    transform: translateX(-40px);
}

[data-animation="slide-in-right"] {
    transform: translateX(40px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .report-text {
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        right: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        padding-top: 90px;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }

    .contact-info,
    .contact-form-container {
        padding: 30px;
    }
}