/*
==============================================
Brainstorm League Theme Stylesheet
==============================================
TABLE OF CONTENTS
----------------------------------------------
1.  CSS Variables & Root Styles
2.  Reset & Base Styles
3.  Typography & Headings
4.  Layout & Container
5.  Buttons & Links
6.  Header & Navigation
7.  Footer
8.  Preloader
9.  Hero Section
10. Services Section
11. Idea Battles Section
12. Team Section
13. Testimonials Section
14. Calculator Section
15. Contact Page
16. Legal Pages (Generic Styles)
17. Utility & Helper Classes
18. Animations & Keyframes
19. Modals & Popups
20. Live Chat Widget
21. Responsive Design (Media Queries)
==============================================
*/

/* 1. CSS Variables & Root Styles
---------------------------------------------- */
:root {
    --electric-purple: #A259FF;
    --neon-green: #B9FF00;
    --jet-black: #0A0A0A;
    --dark-gray: #1a1a1a;
    --medium-gray: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-glow-purple: 0 0 15px rgba(162, 89, 255, 0.6);
    --shadow-glow-green: 0 0 20px rgba(185, 255, 0, 0.7);
}

/* 2. Reset & Base Styles
---------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--jet-black);
    color: var(--light-gray);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--neon-green);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--white);
}

/* 3. Typography & Headings
---------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.1rem;
    color: var(--light-gray);
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

.subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--neon-green);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    max-width: 100%;
    color: #ccc;
}

/* 4. Layout & Container
---------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}


/* 5. Buttons & Links
---------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--electric-purple);
    color: var(--white);
    border-color: var(--electric-purple);
}

.btn-primary:hover {
    background-color: #8e44ad;
    border-color: #8e44ad;
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--medium-gray);
}

.btn-secondary:hover {
    background-color: var(--neon-green);
    color: var(--jet-black);
    border-color: var(--neon-green);
    transform: translateY(-3px);
}

.has-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: left var(--transition-medium);
}

.btn:hover.has-shine::before {
    left: 150%;
}

/* 6. Header & Navigation
---------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-medium);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--medium-gray);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    filter: invert(1);
    transition: transform var(--transition-medium);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--light-gray);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-green);
    transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* 7. Footer
---------------------------------------------- */
.footer {
    background-color: #050505;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--medium-gray);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-about p {
    color: #ccc;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--electric-purple);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--neon-green);
    padding-left: 5px;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    margin-bottom: 0.75rem;
}

.footer-contact-info i {
    color: var(--electric-purple);
    width: 20px;
    text-align: center;
}

.footer-contact-info a {
    color: #ccc;
}

.footer-contact-info a:hover {
    color: var(--neon-green);
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--medium-gray);
    color: var(--white);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.footer-social a:hover {
    background: var(--electric-purple);
    transform: translateY(-5px);
}

/* 8. Preloader
---------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--jet-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo img {
    height: 60px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-bar {
    width: 150px;
    height: 4px;
    background: var(--medium-gray);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: var(--electric-purple);
    animation: loading-bar 2s ease-in-out forwards;
}

/* 9. Hero Section
---------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 50px;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, var(--dark-gray) 0%, var(--jet-black) 70%);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    
}

.thought-bubble {
    position: absolute;
    background: rgba(162, 89, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--electric-purple);
    border: 1px solid rgba(162, 89, 255, 0.3);
    animation: float 8s ease-in-out infinite;
}

.thought-bubble i {
    font-size: 1.5rem;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-duration: 7s;
}

.bubble-2 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 15%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.bubble-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-duration: 10s;
}

.bubble-4 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 5%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 3vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-3d-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scene {
    width: 250px;
    height: 250px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-125px);
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(185, 255, 0, 0.1);
    border: 2px solid var(--neon-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-green);
}

.cube-face i {
    font-size: 3rem;
    color: var(--neon-green);
}

.front {
    transform: rotateY(0deg) translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* 10. Services Section
---------------------------------------------- */
.services-section {
    background-color: var(--dark-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--jet-black);
    border: 1px solid var(--medium-gray);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--electric-purple);
    box-shadow: var(--shadow-glow-purple);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--electric-purple), #8e44ad);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: #ccc;
    font-size: 0.95rem;
}

.lightning-bolt {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.lightning-bolt::before {
    content: '\f0e7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--neon-green);
    font-size: 1.5rem;
}

.service-card:hover .lightning-bolt {
    opacity: 1;
    animation: flash 0.5s ease;
}

/* 11. Idea Battles Section
---------------------------------------------- */
.idea-battles-section {
    background: var(--jet-black);
}

.battle-showcase {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
}

.battle-card {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 45%;
    flex-grow: 1;
}

.battle-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.battle-header i {
    font-size: 2.5rem;
}

.before .battle-header i {
    color: #e74c3c;
}

.after .battle-header i {
    color: var(--neon-green);
}

.battle-content h4 {
    margin-bottom: 1rem;
}

.battle-content ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.battle-content ul i {
    width: 20px;
}

.before .battle-content ul i {
    color: #e74c3c;
}

.after .battle-content ul i {
    color: var(--neon-green);
}

.battle-connector {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.spark {
    width: 6px;
    height: 30px;
    background: var(--electric-purple);
    border-radius: 3px;
    opacity: 0;
    animation: spark-flow 1.5s infinite;
}

.spark:nth-child(2) {
    animation-delay: 0.2s;
}

.spark:nth-child(3) {
    animation-delay: 0.4s;
}

/* 12. Team Section
---------------------------------------------- */
.team-section {
    background: var(--dark-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--medium-gray);
    transition: border-color var(--transition-medium);
}

.team-member:hover .team-photo-wrapper {
    border-color: var(--electric-purple);
}

.team-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.team-member:hover img {
    transform: scale(1.1);
}

.mind-power-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 0 C77.6 0 100 22.4 100 50 C100 77.6 77.6 100 50 100 C22.4 100 0 77.6 0 50 C0 22.4 22.4 0 50 0 Z" fill="none" stroke="%23A259FF" stroke-width="2" stroke-dasharray="5 5" transform-origin="center" ><animateTransform attributeName="transform" type="rotate" from="0" to="360" dur="10s" repeatCount="indefinite" /></path></svg>');
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.team-member:hover .mind-power-bg {
    opacity: 0.7;
}

.team-info h3 {
    margin-bottom: 0.25rem;
}

.team-info p {
    color: var(--neon-green);
    font-weight: 500;
}

/* 13. Testimonials Section
---------------------------------------------- */
.testimonials-section {
    background-color: var(--jet-black);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.testimonial-bubble {
    background: var(--dark-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border-left: 5px solid var(--electric-purple);
}

.testimonial-bubble p {
    font-size: 1.1rem;
    font-style: italic;
    color: #ddd;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
}

.testimonial-author h4 {
    margin-bottom: 0;
    color: var(--white);
}

.testimonial-author span {
    color: #aaa;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    gap: 0.5rem;
}

.slider-btn {
    width: 45px;
    height: 45px;
    background: var(--medium-gray);
    border: none;
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: var(--electric-purple);
}

/* 14. Calculator Section
---------------------------------------------- */
.calculator-section {
    background: var(--dark-gray);
}

.calculator-wrapper {
    background: linear-gradient(135deg, var(--jet-black) 0%, #111 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    border: 1px solid var(--medium-gray);
}

.calculator-info h2 {
    margin-bottom: 1rem;
}

.calculator-info p {
    color: #ccc;
    margin-bottom: 2rem;
}

.sample-report-link a {
    color: var(--neon-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sample-report-link a:hover {
    text-decoration: underline;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form select,
.calculator-form input {
    width: 100%;
    background: var(--medium-gray);
    border: 1px solid #444;
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
}

.calculator-form select:focus,
.calculator-form input:focus {
    outline: none;
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.3);
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.calc-result {
    margin-top: 1.5rem;
    background: var(--jet-black);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--neon-green);
    display: none;
}

/* 15. Contact Page
---------------------------------------------- */
.page-header-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, var(--dark-gray) 0%, var(--jet-black) 80%);
}

.page-header-section h1 {
    margin-bottom: 1rem;
}

.page-header-section p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info-block h2 {
    margin-bottom: 1rem;
}

.contact-details-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-detail-item i {
    font-size: 1.5rem;
    color: var(--electric-purple);
    margin-top: 5px;
    width: 30px;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    margin: 0;
    color: #ccc;
}

.contact-form-wrapper {
    background: var(--dark-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    background: var(--jet-black);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.3);
}

/* 16. Legal Pages (Generic Styles)
---------------------------------------------- */
.legal-page-section .container {
    max-width: 800px;
}

.legal-content h2 {
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--electric-purple);
}

.legal-content p,
.legal-content li {
    color: #ccc;
}

.legal-content strong {
    color: var(--white);
}

/* 17. Utility & Helper Classes (CORRECTED SECTION)
---------------------------------------------- */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Define initial positions based on data-animation attribute */
.animate-on-load[data-animation="fade-in-up"],
.animate-on-scroll[data-animation="fade-in-up"] {
    transform: translateY(30px);
}

.animate-on-scroll[data-animation="fade-in-right"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="fade-in-left"] {
    transform: translateX(50px);
}

/* Define the final, visible state triggered by the .is-visible class */
.animate-on-load.is-visible,
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* 18. Animations & Keyframes
---------------------------------------------- */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes loading-bar {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes flash {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes spark-flow {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}


/* 19. Modals & Popups
---------------------------------------------- */
.popup-overlay,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.popup-overlay.active,
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content,
.modal-content {
    background: var(--dark-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.popup-overlay.active .popup-content,
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.popup-close,
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content p {
    color: #ccc;
    margin-bottom: 2rem;
}

.modal-content {
    text-align: left;
    max-width: 700px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--white);
}

.modal-body {
    padding-top: 1.5rem;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* 20. Live Chat Widget
---------------------------------------------- */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--electric-purple);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow-purple);
    z-index: 999;
    transition: transform var(--transition-medium);
}

.live-chat-widget:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 21. Responsive Design (Media Queries)
---------------------------------------------- */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: var(--jet-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        z-index: 5;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 10;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-3d-visual {
        order: 1;
        margin-bottom: 2rem;
        height: 300px;
    }

    .hero-cta {
        justify-content: center;
    }

    .battle-showcase,
    .calculator-wrapper,
    .contact-page-wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .battle-card {
        width: 100%;
    }

    .battle-connector {
        flex-direction: row;
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .contact-page-wrapper {
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav {
        width: 80%;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero-section {
        min-height: auto;
        height: auto;
        padding: 6rem 0;
    }

    .scene {
        width: 200px;
        height: 200px;
    }

    .cube-face {
        width: 200px;
        height: 200px;
    }

    .cube-face i {
        font-size: 2rem;
    }

    .cube-face span {
        font-size: 1rem;
    }

    .front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .testimonial-slider {
        height: 340px;
    }
}