/*==================================================================
    MYTHIC MOTIFS THEME - DIGITAL MARKETING WEBSITE
    - Author: AI Assistant
    - Version: 1.0
    - Tech: Pure CSS (No Frameworks)
==================================================================*/

/*------------------------------------------------------------------
    1. Resets & Root Variables
------------------------------------------------------------------*/
:root {
    --color-background-deep: #0d0518;
    /* Deep space purple */
    --color-background-medium: #1a122e;
    /* Darker mystic purple */
    --color-background-light: #2c1f4a;
    /* Lighter card background */
    --color-primary-glow: #00f5d4;
    /* Mythic Teal/Cyan */
    --color-secondary-ember: #b43f8d;
    /* Mystic Magenta/Ember */
    --color-accent-gold: #ffd700;
    /* Rune Gold */
    --color-text-primary: #e0e0e0;
    /* Light gray for body */
    --color-text-headings: #ffffff;
    /* Pure white for headings */
    --color-border: rgba(0, 245, 212, 0.2);
    --color-shadow-glow: rgba(0, 245, 212, 0.5);
    --color-shadow-ember: rgba(180, 63, 141, 0.6);

    --font-family-headings: 'Cinzel', serif;
    --font-family-body: 'Poppins', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

    --header-height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Poppins:wght@300;400;600&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background-deep);
    color: var(--color-text-primary);
    font-family: var(--font-family-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*------------------------------------------------------------------
    2. General & Utility Styles
------------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary-glow);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-headings);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-family-headings);
    color: var(--color-text-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-primary);
    opacity: 0.9;
}

/*------------------------------------------------------------------
    3. Header & Navigation
------------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(13, 5, 24, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(13, 5, 24, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--color-text-headings);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary-glow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Rune Spark Hover Effect */
.nav-links a:hover {
    text-shadow: 0 0 8px var(--color-shadow-glow);
}

/* CTA Button - Phoenix Glow */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--color-primary-glow);
    color: var(--color-primary-glow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-primary-glow), var(--color-secondary-ember));
    border-radius: 50px;
    transform: scale(0);
    transition: transform var(--transition-medium);
    z-index: -1;
}

.cta-button:hover {
    color: var(--color-text-headings);
    border-color: var(--color-primary-glow);
    box-shadow: 0 0 20px var(--color-shadow-glow);
}

.cta-button:hover::before {
    transform: scale(1);
}

.header-cta {
    display: block;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-text-headings);
    border-radius: 3px;
    transition: all var(--transition-medium);
}

/*------------------------------------------------------------------
    4. Footer
------------------------------------------------------------------*/
.site-footer {
    background: linear-gradient(rgba(13, 5, 24, 0), var(--color-background-deep)), url('https://www.transparenttextures.com/patterns/stardust.png');
    background-color: #08030f;
    padding: 80px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    font-family: var(--font-family-headings);
    color: var(--color-text-headings);
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after,
.footer-legal h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary-glow);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--color-text-primary);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-primary-glow);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--color-primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    opacity: 0.7;
}

/*------------------------------------------------------------------
    5. Animation & Scroll Effects
------------------------------------------------------------------*/
/* Dragon Smoke Text Reveal */
@keyframes smoke-reveal {
    0% {
        opacity: 0;
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
        transform: translateY(30px);
    }

    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

    100% {
        opacity: 1;
        text-shadow: none;
        transform: translateY(0);
    }
}

.dragon-smoke-reveal {
    animation: smoke-reveal 1.5s forwards cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

/* General Fade-in-up effect on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--scroll-delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Koi Splash Ink Wipe for Sections */
.section-koi-splash::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background-medium);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 1.2s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: -1;
}

.section-koi-splash.is-visible::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


/*------------------------------------------------------------------
    6. Hero Section
------------------------------------------------------------------*/
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    color: var(--color-text-headings);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(13, 5, 24, 0.4) 0%, var(--color-background-deep) 70%);
}

.hero-vfx-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: pan-background 60s linear infinite;
    opacity: 0.5;
}

@keyframes pan-background {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.hero-content {
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--color-text-primary);
    opacity: 0.9;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-cta-group .cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

.hero-cta-group .cta-button-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-background-deep);
    border-color: var(--color-text-primary);
    box-shadow: none;
}

.hero-cta-group .cta-button-secondary::before {
    background: none;
    /* Override phoenix effect */
}


/*------------------------------------------------------------------
    7. Services Section
------------------------------------------------------------------*/
.services-section {
    background-color: var(--color-background-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-background-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--color-shadow-ember);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    font-size: 3rem;
    color: var(--color-primary-glow);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-text-headings);
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/*------------------------------------------------------------------
    8. Interactive ROI Calculator Section
------------------------------------------------------------------*/
.calculator-section {
    background-color: var(--color-background-deep);
    position: relative;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calculator-content h2 {
    margin-bottom: 20px;
}

.calculator-content p {
    margin-bottom: 30px;
}

.calculator-form {
    background: var(--color-background-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group-calc {
    margin-bottom: 25px;
}

.form-group-calc label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text-headings);
}

.form-group-calc input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-background-deep);
    border-radius: 5px;
    outline: none;
    border: 1px solid var(--color-border);
}

.form-group-calc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary-glow);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--color-background-light);
    box-shadow: 0 0 10px var(--color-shadow-glow);
}

.form-group-calc input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary-glow);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--color-background-light);
    box-shadow: 0 0 10px var(--color-shadow-glow);
}

.output-value {
    display: inline-block;
    margin-left: 15px;
    font-weight: 600;
    color: var(--color-accent-gold);
}

.roi-result {
    margin-top: 30px;
    text-align: center;
    background: var(--color-background-deep);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.roi-result p {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.roi-result span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-glow);
    font-family: var(--font-family-headings);
}

.calculator-disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}

/*------------------------------------------------------------------
    9. Testimonials Section
------------------------------------------------------------------*/
.testimonials-section {
    background-color: var(--color-background-medium);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-medium);
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    padding: 0 20px;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '“';
    font-size: 5rem;
    font-family: serif;
    color: var(--color-primary-glow);
    opacity: 0.2;
    position: absolute;
    line-height: 1;
}

.testimonial-quote::before {
    content: '“';
    top: 0;
    left: -10px;
}

.testimonial-quote::after {
    content: '”';
    bottom: -30px;
    right: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text-headings);
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    opacity: 0.8;
    margin-top: 5px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-primary-glow);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--color-primary-glow);
    color: var(--color-background-deep);
    box-shadow: 0 0 15px var(--color-shadow-glow);
}

/*------------------------------------------------------------------
    10. Call to Action (CTA) Section
------------------------------------------------------------------*/
.cta-section {
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1557682250-33bd709cbe85?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    padding: 120px 0;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/*------------------------------------------------------------------
    11. Live Chat Dummy Widget
------------------------------------------------------------------*/
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary-glow), var(--color-secondary-ember));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--color-shadow-ember);
    z-index: 999;
    transition: transform var(--transition-fast);
}

.live-chat-widget:hover {
    transform: scale(1.1) rotate(15deg);
}

/*------------------------------------------------------------------
    12. Legal & Contact Pages
------------------------------------------------------------------*/
.legal-page-section,
.contact-page-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    background-color: var(--color-background-medium);
}

.legal-content,
.contact-layout {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-background-light);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.legal-page-section h1 {
    text-align: center;
    margin-bottom: 50px;
}

.legal-content h2 {
    color: var(--color-primary-glow);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.legal-content p,
.legal-content li {
    color: var(--color-text-primary);
    opacity: 0.9;
}

.legal-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Page Specifics */
.contact-page-section .section-title h1 {
    font-size: 3.5rem;
}

.contact-page-section .section-title {
    margin-bottom: 50px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 0;
    background: none;
    border: none;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background-color: var(--color-background-light);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-row+.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-background-deep);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-text-headings);
    font-family: var(--font-family-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-glow);
    box-shadow: 0 0 10px var(--color-shadow-glow);
}

.form-group textarea {
    resize: vertical;
}

.contact-info-wrapper h3 {
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    color: var(--color-primary-glow);
    margin-bottom: 5px;
}

.contact-details span,
.contact-details a {
    color: var(--color-text-primary);
}

/*------------------------------------------------------------------
    13. Responsive Design
------------------------------------------------------------------*/
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 80px 0;
    }

    .header-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background-color: var(--color-background-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        border-left: 1px solid var(--color-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-legal h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}