/*
  Digital Marketing Agency Redesign V2
  Theme: Dark Tech / Growth
  Author: Seth Edward Schraff Enterprises
  Version: 2.0
*/

/* ---------------------------------- */
/* 1. Global Styles & Variables       */
/* ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@700&display=swap');

:root {
    --primary-color: #00E5FF;
    /* Vibrant Cyan */
    --secondary-color: #76FF03;
    /* Lime Green */
    --bg-dark: #121212;
    --bg-medium: #1E1E1E;
    --bg-light: #282828;
    --text-light: #E0E0E0;
    --text-medium: #A0A0A0;
    --text-dark: #121212;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-body: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --font-special: 'Orbitron', sans-serif;
    --header-height: 70px;
}

/* 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.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
    width: 200%;
    height: 200%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #64dd17;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 255, 3, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title .subtitle {
    display: block;
    font-family: var(--font-special);
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title h2 {
    margin-bottom: 20px;
}

.section-title p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ---------------------------------- */
/* 2. Header and Navigation           */
/* ---------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-dark);
    height: var(--header-height);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.main-header.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.header-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-right: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    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: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu .bar,
.hamburger-menu::before,
.hamburger-menu::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu::before {
    top: 0;
}

.hamburger-menu .bar {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu::after {
    bottom: 0;
}

.hamburger-menu.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active .bar {
    opacity: 0;
}

.hamburger-menu.active::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ---------------------------------- */
/* 3. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 50px;
}

.hero-headline {
    font-size: 4.2rem;
    margin-bottom: 25px;
}

.hero-headline .highlight-text {
    color: var(--primary-color);
    font-family: var(--font-special);
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1000px;
}

.shape-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.shape {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-shape 20s infinite linear;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.face.front {
    transform: translateZ(150px);
}

.face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotate-shape {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ---------------------------------- */
/* 4. Services Section                */
/* ---------------------------------- */
.services-section {
    background-color: var(--bg-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    background-color: var(--bg-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    transform: rotate(45deg);
}

.service-card:hover .service-icon svg {
    color: var(--text-dark);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ---------------------------------- */
/* 5. Process Section                 */
/* ---------------------------------- */
.process-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--bg-light);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    margin-bottom: 40px;
}

.process-step:nth-child(odd) {
    left: 0;
}

.process-step:nth-child(even) {
    left: 50%;
}

.step-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-special);
    font-size: 1.5rem;
    color: var(--secondary-color);
    z-index: 1;
}

.process-step:nth-child(odd) .step-number {
    right: -30px;
}

.process-step:nth-child(even) .step-number {
    left: -30px;
}

.step-content {
    padding: 30px;
    background: var(--bg-medium);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.process-step:nth-child(odd) {
    text-align: right;
}

.step-content h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ---------------------------------- */
/* 6. Service Explorer Section        */
/* ---------------------------------- */
.explorer-section {
    background-color: var(--bg-medium);
}

.explorer-wrapper {
    background-color: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.explorer-nav {
    display: flex;
    background-color: var(--bg-light);
}

.explorer-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explorer-tab:hover {
    background-color: var(--bg-medium);
    color: var(--text-light);
}

.explorer-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.explorer-content {
    padding: 40px;
}

.explorer-pane {
    display: none;
}

.explorer-pane.active {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.explorer-pane img {
    max-width: 100%;
    border-radius: 8px;
}

.pane-text h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.pane-text ul {
    list-style: none;
    margin-top: 20px;
}

.pane-text li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.pane-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------------------------------- */
/* 7. Testimonials Section            */
/* ---------------------------------- */
.testimonial-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.testimonial-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background-color: var(--bg-medium);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card p::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--text-light);
}

.testimonial-author span {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.carousel-controls {
    text-align: center;
    margin-top: 30px;
}

.carousel-controls button {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.carousel-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* ---------------------------------- */
/* 8. CTA Section                     */
/* ---------------------------------- */
.cta-section {
    background-image: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)), url('https://placehold.co/1920x500/121212/1E1E1E/png?text=');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ---------------------------------- */
/* 9. Footer Section                  */
/* ---------------------------------- */
.main-footer {
    background-color: var(--bg-medium);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#footer-about .footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    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: 12px;
}

.footer-col a {
    color: var(--text-medium);
}

#footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#footer-contact svg {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
}

/* ---------------------------------- */
/* 10. Contact Page Styles            */
/* ---------------------------------- */
.page-header {
    padding: 120px 0 60px;
    margin-top: var(--header-height);
    text-align: center;
    background-color: var(--bg-medium);
}

.page-header h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
}

.contact-page-section .container {
    max-width: 1100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    background-color: var(--bg-medium);
    padding: 50px;
    border-radius: 10px;
}

.contact-form-container h2,
.contact-info-container h2 {
    margin-bottom: 20px;
}

#contact-form .form-group {
    margin-bottom: 20px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: var(--font-body);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info-container p {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    margin-right: 20px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-info-item span,
.contact-info-item a {
    color: var(--text-medium);
}

/* ---------------------------------- */
/* 11. Legal Pages Styles             */
/* ---------------------------------- */
.legal-content .container {
    max-width: 850px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 15px;
    color: var(--primary-color);
}

.legal-content p,
.legal-content li {
    margin-bottom: 15px;
    color: var(--text-medium);
}

.legal-content ul {
    padding-left: 20px;
}

/* ---------------------------------- */
/* 12. Scroll Animations              */
/* ---------------------------------- */
.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(40px);
}

.animate-on-scroll[data-animation="slide-in-right"] {
    transform: translateX(-100px);
}

.animate-on-scroll[data-animation="slide-in-left"] {
    transform: translateX(100px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---------------------------------- */
/* 13. Responsiveness                 */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-subheadline {
        margin: 0 auto 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .shape-container {
        width: 250px;
        height: 250px;
    }

    .face {
        width: 250px;
        height: 250px;
    }

    .face.front {
        transform: translateZ(125px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(125px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(125px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(125px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(125px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(125px);
    }

    .explorer-pane {
        grid-template-columns: 1fr;
    }

    .explorer-pane img {
        max-width: 80%;
        margin: 0 auto 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-dark);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: block;
    }

    .process-line {
        left: 30px;
    }

    .process-step {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 0;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        text-align: left;
    }

    .process-step .step-number {
        left: 0;
    }

    .explorer-nav {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.2rem;
    }

    .shape-container {
        width: 200px;
        height: 200px;
    }

    .face {
        width: 200px;
        height: 200px;
    }

    .face.front {
        transform: translateZ(100px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .contact-grid {
        padding: 30px;
    }
}