/*
* Digital Marketing Agency Redesign V2
* Author: AI
* Version: 2.0
*/

/* ---------------------------------- */
/*          1. Global Styles          */
/* ---------------------------------- */
:root {
    --bg-dark: #0A0A0C; /* Deep gunmetal black */
    --bg-light: #18181C; /* Slightly lighter dark for contrast */
    --primary-color: #00B4D8; /* Electric blue accent */
    --accent-color: #90E0EF; /* Soft cyan glow for highlights */
    --text-primary: #E5E5E5; /* Light gray for readability */
    --text-secondary: #A0A0A5; /* Muted neutral text */
    --border-color: rgba(0, 180, 216, 0.15); /* Subtle cyan border hint */
    --border-radius: 6px;
    --transition-speed: 0.4s;
    --font-body: 'Roboto', sans-serif;
    --font-heading: 'Teko', sans-serif;
    --max-width: 1200px;
}


* {
    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-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

/* ---------------------------------- */
/*         2. Utility Classes         */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--bg-dark);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    color: var(--bg-dark);
    background-color: var(--primary-color);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.4rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.section-title span {
    font-family: var(--font-body);
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.section-title .subtitle {
    max-width: 700px;
    margin: 15px auto 0;
    font-size: 1.1rem;
}

/* ---------------------------------- */
/*        3. Header & Navigation      */
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}

.site-header.scrolled {
    padding: 15px 0;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    filter: invert(1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-left: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1100;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu .bar::before,
.hamburger-menu .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger-menu .bar::before {
    top: -9px;
}

.hamburger-menu .bar::after {
    bottom: -9px;
}

.mobile-nav-open .hamburger-menu .bar {
    background-color: transparent;
}

.mobile-nav-open .hamburger-menu .bar::before {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-open .hamburger-menu .bar::after {
    transform: translateY(-9px) rotate(-45deg);
}


/* ---------------------------------- */
/*           4. Hero Section          */
/* ---------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(30, 30, 30, 1) 0%, rgba(18, 18, 18, 1) 70%, #121212 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Staggered text reveal */
.staggered-reveal {
    opacity: 1;
}

.staggered-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(10deg);
    animation: reveal-char 0.5s forwards;
}

@keyframes reveal-char {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 30px 0;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-down-link {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down-icon {
    width: 2px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
}

.scroll-down-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: #fff;
    animation: scroll-indicator 2.5s infinite ease-in-out;
}

@keyframes scroll-indicator {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(35px);
    }

    100% {
        transform: translateY(35px);
        opacity: 0;
    }
}


/* ---------------------------------- */
/*        5. Process Section          */
/* ---------------------------------- */
.process-section {
    background-color: var(--bg-light);
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background-image: linear-gradient(to bottom, var(--primary-color) 0%, var(--accent-color) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 30px;
}

.timeline-content {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.timeline-step {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-step::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 31px;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}


/* ---------------------------------- */
/*         6. Services Section        */
/* ---------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
}

.service-card-inner {
    padding: 40px;
    transform: translateZ(20px);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform var(--transition-speed) ease;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--bg-dark);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-15deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 20px;
    display: inline-block;
}

/* ---------------------------------- */
/*       7. Interactive Quiz          */
/* ---------------------------------- */
.quiz-section {
    background-color: var(--bg-light);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.quiz-step {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-step h3 {
    margin-bottom: 30px;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.quiz-options.vertical {
    flex-direction: column;
    align-items: center;
}

.quiz-option {
    padding: 15px 30px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.quiz-option:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.quiz-result-step p {
    font-size: 1.2rem;
    color: var(--text-primary);
    max-width: 500px;
    margin: 20px auto 30px;
}

/* ---------------------------------- */
/*      8. Industry Tabs Section      */
/* ---------------------------------- */
.tabs-container {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 20px 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    width: 200px;
    position: relative;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.tab-btn:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 15px;
}


/* ---------------------------------- */
/*        9. Testimonials Section     */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--bg-light);
    overflow: hidden;
}

.testimonial-carousel-wrapper {
    position: relative;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 80px;
    /* Space for arrows */
    text-align: center;
}

.testimonial-card .quote {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 300;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 30px;
}

.testimonial-card .author h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.testimonial-card .author span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.carousel-controls button {
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-controls button:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}


/* ---------------------------------- */
/*       10. Call to Action (CTA)     */
/* ---------------------------------- */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #D46F00);
}

.cta-content h2 {
    color: var(--bg-dark);
}

.cta-content p {
    color: var(--bg-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 30px;
}

.cta-content .btn-primary {
    background-color: #fff;
    color: var(--bg-dark);
    border-color: #fff;
}

.cta-content .btn-primary:hover {
    background-color: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}


/* ---------------------------------- */
/*        11. Footer Section          */
/* ---------------------------------- */
.site-footer {
    background-color: #000;
    padding: 80px 0 0;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column .logo-link {
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.9rem;
}

.footer-column h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a,
.footer-column p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-icons a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ---------------------------------- */
/*      12. Animations on Scroll      */
/* ---------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item.animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}

.timeline-item.animate-on-scroll:nth-child(4) {
    transition-delay: 0.6s;
}

.service-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}


/* ---------------------------------- */
/*       13. Inner Page Styles        */
/* ---------------------------------- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.8), var(--bg-dark));
}

.page-header h1 {
    font-size: 4rem;
}

.legal-content,
.contact-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.legal-content .container {
    max-width: 900px;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 40px 0 15px;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-details li {
    margin-bottom: 20px;
}

.contact-details strong {
    display: block;
    color: #fff;
}

.contact-details a,
.contact-details span {
    color: var(--text-secondary);
}


/* ---------------------------------- */
/*       14. Responsive Design        */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .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: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .process-timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-step {
        left: -30px;
        transform: translateY(-50%) scale(0.8);
    }

    .timeline-step::before {
        left: 21px;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tab-buttons {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
    }

    .tab-btn {
        width: auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .staggered-reveal span {
        animation-delay: 0s !important;
    }

    .testimonial-card {
        padding: 0;
    }

    .testimonial-card .quote {
        font-size: 1.2rem;
    }

    .carousel-controls {
        display: none;
    }

    /* Hide arrows, rely on swipe for future implementation */

    .footer-grid {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .quiz-options {
        flex-direction: column;
        align-items: center;
    }

    .quiz-container {
        padding: 30px;
    }

    .tabs-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .tab-content {
        padding: 30px 20px;
    }
}