/*
    AdSmash Heroes Theme
    Main Stylesheet
*/

/* ------------------- */
/* 1. Global Variables & Resets */
/* ------------------- */

:root {
    --crimson-red: #F44336;
    --mustard-yellow: #FFCA28;
    --jet-black: #0D0D0D;
    --off-white: #f5f5f5;
    --pure-white: #ffffff;
    --grey: #222;

    --font-heading: 'Bangers', cursive;
    --font-body: 'Lato', sans-serif;

    --header-height: 80px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--jet-black);
    color: var(--off-white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

.halftone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

/* ------------------- */
/* 2. Typography & Base Elements */
/* ------------------- */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--pure-white);
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--mustard-yellow);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--crimson-red);
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: var(--mustard-yellow);
    text-shadow: 2px 2px 0 var(--crimson-red);
}

.content-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-title h2::before,
.section-title h2::after {
    content: '💥';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    color: var(--mustard-yellow);
}

.section-title h2::before {
    left: -20px;
}

.section-title h2::after {
    right: -20px;
    transform: translateY(-50%) scaleX(-1);
}

.section-title p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.8);
}

/* ------------------- */
/* 3. Header & Navigation */
/* ------------------- */

.site-header {
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--mustard-yellow);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    filter: invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo a:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.main-nav .nav-links {
    display: flex;
    gap: 30px;
}

.main-nav .nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--crimson-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav .nav-links a.active {
    color: var(--crimson-red);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--off-white);
    margin: 6px 0;
    transition: all var(--transition-speed) ease;
}


/* ------------------- */
/* 4. CTA Buttons */
/* ------------------- */

.cta-button {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    padding: 12px 30px;
    border: 3px solid var(--mustard-yellow);
    color: var(--mustard-yellow);
    background-color: transparent;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--mustard-yellow);
    transition: left var(--transition-speed) ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--jet-black);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 202, 40, 0.3);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.primary-cta {
    background-color: var(--crimson-red);
    border-color: var(--crimson-red);
    color: var(--pure-white);
}

.cta-button.primary-cta::before {
    background-color: var(--mustard-yellow);
}

.cta-button.primary-cta:hover {
    color: var(--jet-black);
    border-color: var(--mustard-yellow);
}

/* ------------------- */
/* 5. Hero Section */
/* ------------------- */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background:
        linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 1)),
        url('https://www.transparenttextures.com/patterns/lined-paper-2.png');
    overflow: hidden;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--jet-black);
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 55% 50%, 50% 0, 45% 50%, 0 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text .hero-title {
    color: var(--pure-white);
    line-height: 1;
    text-shadow: 4px 4px 0 var(--jet-black), 6px 6px 0 var(--crimson-red);
}

.hero-text .hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin: 1rem 0;
    letter-spacing: 2px;
}

.hero-text .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-interactive-zone {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#boring-ad {
    width: 300px;
    height: 300px;
    background-color: #eee;
    color: #333;
    border: 5px dashed #aaa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
}

#boring-ad:hover {
    transform: rotateY(10deg) rotateX(-10deg) scale(1.05);
    box-shadow: 20px 20px 0px rgba(244, 67, 54, 0.5);
}

#boring-ad p {
    margin: 0;
    font-size: 1.2rem;
}

#boring-ad span {
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    margin: 10px 0;
    letter-spacing: 5px;
}

.fragments-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fragment {
    position: absolute;
    background-color: #eee;
    border: 1px dashed #aaa;
}

/* ------------------- */
/* 6. Services Section */
/* ------------------- */
.services-section {
    background: var(--grey);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    margin-top: -50px;
    padding: 150px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    perspective: 1500px;
}

.service-card {
    background: var(--jet-black);
    border: 3px solid var(--mustard-yellow);
    padding: 40px 30px;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: rotateY(15deg) rotateX(-10deg) scale(1.05) translateZ(20px);
    box-shadow: -20px 20px 30px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 202, 40, 0.1) 0%, transparent 40%);
    transition: transform var(--transition-speed) ease-out;
    transform: scale(0);
}

.service-card:hover::before {
    transform: scale(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.2);
}

.service-card h3 {
    color: var(--mustard-yellow);
    margin-bottom: 1rem;
}

.service-card .comic-sound {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--crimson-red);
    transform: rotate(-15deg);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.service-card:hover .comic-sound {
    opacity: 1;
    bottom: 10px;
    right: 10px;
}

/* ------------------- */
/* 7. Results Section */
/* ------------------- */
.results-section {
    position: relative;
}

.results-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.result-explosion {
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23FFCA28' stroke-width='6' stroke-dasharray='15%2c 15' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,0 61,35 98,35 68,57 79,91 50,70 21,91 32,57 2,35 39,35' fill='%23F44336'/%3E%3Cpolygon points='50,10 58,37 88,37 64,55 72,81 50,65 28,81 36,55 12,37 42,37' fill='%23FFCA28'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.result-text {
    display: flex;
    flex-direction: column;
}

.result-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--jet-black);
    text-shadow: 2px 2px var(--pure-white);
}

.result-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ------------------- */
/* 8. Process Section */
/* ------------------- */
.process-section {
    background-color: var(--grey);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--mustard-yellow);
    transform: translateX(-2px);
    background-image: repeating-linear-gradient(45deg, var(--jet-black), var(--jet-black) 5px, var(--mustard-yellow) 5px, var(--mustard-yellow) 10px);
}

.process-step {
    display: flex;
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.process-step:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    justify-content: flex-end;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    justify-content: flex-start;
}

.step-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--crimson-red);
    border: 3px solid var(--mustard-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--pure-white);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.process-step:nth-child(odd) .step-bubble {
    right: -30px;
}

.process-step:nth-child(even) .step-bubble {
    left: -30px;
}

.step-content {
    background-color: var(--jet-black);
    padding: 20px;
    border: 2px solid var(--mustard-yellow);
    width: 100%;
}

.step-content h3 {
    color: var(--mustard-yellow);
    margin-bottom: 0.5rem;
}

/* ------------------- */
/* 9. Testimonials Section */
/* ------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    position: relative;
    background: var(--grey);
    padding: 30px;
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--crimson-red), var(--mustard-yellow)) 1;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--mustard-yellow);
    opacity: 0.3;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    display: block;
    color: var(--mustard-yellow);
    font-size: 1.2rem;
}

.testimonial-author span {
    color: var(--off-white);
    font-size: 0.9rem;
}

/* ------------------- */
/* 10. Footer */
/* ------------------- */

.site-footer {
    background: var(--grey);
    color: var(--off-white);
    padding-top: 60px;
    border-top: 5px solid var(--crimson-red);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -80px;
    padding-top: 140px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-heading {
    font-family: var(--font-body);
    color: var(--mustard-yellow);
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    text-transform: capitalize;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--crimson-red);
}

.footer-column .logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: var(--off-white);
    text-decoration: none;
}

.footer-column ul a:hover {
    color: var(--mustard-yellow);
    padding-left: 5px;
}

.footer-bottom {
    background: var(--jet-black);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ------------------- */
/* 11. Live Chat Widget */
/* ------------------- */

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--crimson-red);
    border: 3px solid var(--mustard-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: transform var(--transition-speed) ease;
}

.live-chat-widget:hover .chat-icon {
    transform: scale(1.1) rotate(15deg);
}

.chat-tooltip {
    position: absolute;
    bottom: 10px;
    right: 75px;
    background-color: var(--mustard-yellow);
    color: var(--jet-black);
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transform: scale(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.live-chat-widget:hover .chat-tooltip {
    transform: scale(1);
}

/* ------------------- */
/* 12. Legal & Contact Pages */
/* ------------------- */

.page-header-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(rgba(13, 13, 13, 0.7), var(--jet-black));
}

.page-title {
    text-shadow: 3px 3px 0 var(--crimson-red);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--off-white);
    max-width: 600px;
    margin: 1rem auto 0;
}

.legal-content .container,
.contact-section .container {
    max-width: 900px;
}

.legal-content h2 {
    color: var(--mustard-yellow);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Page Specifics */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--mustard-yellow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--grey);
    border: 2px solid var(--mustard-yellow);
    color: var(--off-white);
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--crimson-red);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.contact-info-block {
    margin-bottom: 2rem;
    padding-left: 10px;
    border-left: 3px solid var(--crimson-red);
}

.contact-info-block h3 {
    font-size: 1.5rem;
    color: var(--mustard-yellow);
    font-family: var(--font-body);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.form-status-message {
    margin-top: 1rem;
    padding: 10px;
    display: none;
}

.form-status-message.success {
    background-color: #28a745;
    color: white;
}

.form-status-message.error {
    background-color: #dc3545;
    color: white;
}


/* ------------------- */
/* 13. Scroll Animations */
/* ------------------- */
[data-scroll-anim] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll-anim].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* 14. Responsive Design */
/* ------------------- */

@media (max-width: 992px) {
    .header-container {
        padding: 0 15px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--jet-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease-in-out;
        border-left: 3px solid var(--mustard-yellow);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .main-nav .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .header-cta {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-interactive-zone {
        order: 1;
        margin-bottom: 40px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        padding: 0 20px;
    }

    .timeline-line {
        left: 20px;
    }

    .process-step,
    .process-step:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .process-step .step-bubble,
    .process-step:nth-child(even) .step-bubble {
        left: -10px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}