/*
  Digital Marketing Agency Redesign V3
  Theme: Premium Corporate / Gold & Charcoal
  Author: DomainName
  Version: 3.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #D4AF37;
    /* Gold */
    --bg-dark: #1A1D24;
    --bg-medium: #242831;
    --text-light: #F0F0F0;
    --text-medium: #B0B0B0;
    --border-color: rgba(212, 175, 55, 0.2);

    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --header-height: 80px;
}

/* Basic Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 20px 45px;
    font-size: 1rem;
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ---------------------------------- */
/* 2. Header and Navigation           */
/* ---------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    height: var(--header-height);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(26, 29, 36, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--text-light);
}

.header-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 45px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.parallax-bg,
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.parallax-bg {
    z-index: -2;
    transform: scale(1.1);
}

.parallax-overlay {
    z-index: -1;
    background: radial-gradient(circle, rgba(26, 29, 36, 0.4) 0%, rgba(26, 29, 36, 1) 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 5.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-headline .highlight-text {
    color: var(--primary-color);
}

.hero-subheadline {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* ---------------------------------- */
/* 4. Value Proposition Section       */
/* ---------------------------------- */
.value-prop-section {
    padding: 60px 0;
    background-color: var(--bg-medium);
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-prop-item {
    text-align: center;
    padding: 20px;
}

.prop-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.value-prop-item h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 5. Services Section (Accordion)    */
/* ---------------------------------- */
.service-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    border-bottom: 1px solid var(--border-color);
}

.service-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    cursor: pointer;
}

.service-item-header h3 {
    font-size: 2rem;
    transition: color 0.3s ease;
}

.service-item.active .service-item-header h3,
.service-item-header:hover h3 {
    color: var(--primary-color);
}

.service-toggle-icon {
    width: 30px;
    height: 30px;
    position: relative;
    transition: transform 0.4s ease;
}

.service-toggle-icon::before,
.service-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--text-light);
    transform: translate(-50%, -50%);
}

.service-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.service-item.active .service-toggle-icon {
    transform: rotate(135deg);
}

.service-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.service-item.active .service-item-body {
    max-height: 500px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    padding: 0 0 30px 0;
}

.service-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* ---------------------------------- */
/* 6. Industries Section              */
/* ---------------------------------- */
.industries-section {
    padding-bottom: 0;
}

.industries-scroller {
    display: flex;
    gap: 30px;
    padding: 30px calc(50% - 640px);
    /* Centers content with overflow */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.industries-scroller::-webkit-scrollbar {
    display: none;
}

.industry-card {
    flex: 0 0 350px;
    height: 450px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
}

.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.industry-card:hover .industry-bg {
    transform: scale(1.05);
}

.industry-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 29, 36, 0.9) 0%, transparent 50%);
}

.industry-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    line-height: 1.3;
}

/* ---------------------------------- */
/* 7. Testimonials Section            */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--bg-medium);
}

.testimonial-slider-wrapper {
    max-width: 800px;
    margin: auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 300px;
    /* Adjust height as needed */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(0.95);
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.testimonial-author h4 {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-author span {
    font-style: italic;
}

.slider-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.slider-nav button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.slider-nav button:hover {
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: var(--primary-color);
}

/* ---------------------------------- */
/* 8. ROI Calculator Section          */
/* ---------------------------------- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--bg-medium);
    padding: 60px;
    border-radius: 10px;
}

.slider-group {
    margin-bottom: 40px;
}

.slider-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.slider-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--bg-medium);
}

.slider-group .slider-value {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light);
}

.calculator-outputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-dark);
    border-radius: 10px;
    padding: 40px;
}

.output-box {
    margin-bottom: 40px;
}

.output-box:last-child {
    margin-bottom: 0;
}

.output-box h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.output-box span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ---------------------------------- */
/* 9. CTA Section                     */
/* ---------------------------------- */
.cta-section {
    background: var(--bg-medium);
    text-align: center;
}

.cta-section .container {
    max-width: 850px;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* ---------------------------------- */
/* 10. Footer Section                 */
/* ---------------------------------- */
.main-footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 1rem;
}

#footer-about .footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--text-light);
}

#footer-about img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 15px;
}

.footer-col a,
#footer-contact p {
    color: var(--text-medium);
}

#footer-contact p {
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

/* ---------------------------------- */
/* 11. Legal & Contact Page Styles    */
/* ---------------------------------- */
.page-header {
    padding: 150px 0 80px;
    margin-top: calc(var(--header-height) * -1);
    text-align: center;
    background-color: var(--bg-medium);
}

.legal-content .container {
    max-width: 850px;
}

.legal-content h2 {
    font-size: 2.2rem;
    margin: 40px 0 15px;
    color: var(--primary-color);
}

.legal-content p,
.legal-content li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}


/* ---------------------------------- */
/* 12. Scroll & Load Animations       */
/* ---------------------------------- */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subheadline.animate-on-load {
    animation-delay: 0.2s;
}

.hero-cta.animate-on-load {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/* 13. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-headline {
        font-size: 4rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    #footer-about {
        grid-column: 1 / -1;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-outputs {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }

    .header-logo {
        z-index: 1001;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .service-content {
        grid-template-columns: 1fr;
    }

    .service-content img {
        max-width: 80%;
        margin: 0 auto 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .value-prop-grid {
        grid-template-columns: 1fr;
    }

    .service-item-header h3 {
        font-size: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1.4rem;
    }

    .calculator-wrapper {
        padding: 30px;
    }
}