/*
* File: style.css
* Description: Main stylesheet for Jordan Road Solutions Digital Marketing Website.
* Version: 1.0
*/

/* ------------------- */
/* ROOT VARIABLES & GLOBAL STYLES */
/* ------------------- */

:root {
    --primary-dark: #0a043c;
    --secondary-dark: #03011a;
    --accent-cyan: #03e9f4;
    --accent-coral: #ff6b6b;
    --light-text: #f0f8ff;
    --medium-text: #cccccc;
    --dark-text: #333333;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --header-height: 80px;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-dark);
    color: var(--medium-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--light-text);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-text);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--medium-text);
}

.highlight {
    color: var(--accent-cyan);
}

/* ------------------- */
/* BUTTON STYLES */
/* ------------------- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    border-color: var(--accent-cyan);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background: var(--light-text);
    color: var(--primary-dark);
}

/* ------------------- */
/* HEADER & NAVIGATION */
/* ------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 15px 0;
}

#main-header.scrolled {
    background-color: rgba(3, 1, 26, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 10px 0;
}

#main-header.header-static {
    position: static;
    background-color: var(--secondary-dark);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo svg {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);

}

#main-header .logo:hover svg {
    transform: scale(1.05);
}

#main-header .nav-links {
    display: flex;
    gap: 35px;
}

#main-header .nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

#main-header .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease-out;
}

#main-header .nav-links li a:hover::after,
#main-header .nav-links li a.active::after {
    width: 100%;
}

#hamburger-btn, #close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
}

#mobile-menu {
    display: none;
}

/* ------------------- */
/* HERO SECTION */
/* ------------------- */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(45deg, var(--primary-dark), #1b0c6b);
    overflow: hidden;
}

#hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%2303e9f4" fill-opacity="0.05"><circle fill-rule="evenodd" cx="50" cy="50" r="40"/><circle fill-rule="evenodd" cx="50" cy="50" r="30"/></g></svg>');
    animation: background-pan 30s linear infinite;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 55%;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 90%;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s forwards;
}

.hero-content h1.animate-on-load { animation-delay: 0.2s; }
.hero-content p.animate-on-load { animation-delay: 0.4s; }
.hero-buttons.animate-on-load { animation-delay: 0.6s; }
.hero-3d-visual.animate-on-load { animation-delay: 0.8s; }


/* 3D Cube */
.hero-3d-visual {
    width: 40%;
    perspective: 1000px;
}

.scene {
    width: 200px;
    height: 200px;
    margin: auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(3, 233, 244, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.face i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.face.front  { transform: rotateY(  0deg) 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); }

/* ------------------- */
/* SERVICES SECTION */
/* ------------------- */

#services {
    background-color: var(--secondary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px var(--accent-cyan);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--light-text);
}

.service-card p {
    color: var(--medium-text);
    font-size: 0.95rem;
}

/* ------------------- */
/* STATS COUNTER SECTION */
/* ------------------- */

#stats {
    background-image: linear-gradient(rgba(10, 4, 60, 0.9), rgba(10, 4, 60, 0.9)), url('https://via.placeholder.com/1920x400.png/0A043C/FFFFFF?text=Abstract+BG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.stat-item p {
    font-size: 1rem;
    color: var(--medium-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ------------------- */
/* ROI CALCULATOR SECTION */
/* ------------------- */

#roi-calculator {
    background-color: var(--secondary-dark);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.calculator-form .form-group {
    margin-bottom: 30px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--light-text);
}

.calculator-form input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.calculator-form input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px var(--accent-cyan);
}


.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
}

.calculator-form .form-group span {
    display: inline-block;
    margin-left: 15px;
    font-weight: bold;
    color: var(--accent-cyan);
    min-width: 80px;
}

.calculator-form select {
    width: 100%;
    padding: 12px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    color: var(--light-text);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.calculator-results {
    background: var(--primary-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-item {
    margin-bottom: 20px;
}

.result-item p {
    margin-bottom: 5px;
    color: var(--medium-text);
}

.result-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.result-item span.highlight {
    color: var(--accent-cyan);
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: auto;
    margin-bottom: 15px;
}

/* ------------------- */
/* INDUSTRIES SECTION */
/* ------------------- */

.industry-tabs {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.tab-buttons {
    display: flex;
    background: var(--secondary-dark);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    color: var(--medium-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--light-text);
    background: var(--primary-dark);
    border-bottom-color: var(--accent-cyan);
}

.tab-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.03);
}

.tab-btn i {
    margin-right: 10px;
    color: var(--accent-cyan);
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fade-in 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-content .content-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tab-content img {
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tab-content h3 {
    margin-bottom: 15px;
}

.tab-content ul {
    margin-top: 20px;
    list-style: none;
}

.tab-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tab-content ul li i {
    color: var(--accent-cyan);
    margin-right: 10px;
}

/* ------------------- */
/* TESTIMONIALS SECTION */
/* ------------------- */

#testimonials {
    background-color: var(--secondary-dark);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}

.testimonial-slide img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    margin-bottom: 20px;
}

.testimonial-slide blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-slide cite {
    font-style: normal;
    font-weight: 600;
    color: var(--light-text);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.slider-nav button:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
}

/* ------------------- */
/* PRICING SECTION */
/* ------------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--light-text);
}

.pricing-card .price sup {
    font-size: 1.5rem;
    top: -1.2em;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-text);
}

.pricing-card .description {
    margin-bottom: 30px;
    min-height: 40px;
}

.pricing-card ul {
    margin-bottom: 40px;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.pricing-card ul li .fa-check { color: var(--accent-cyan); }
.pricing-card ul li .fa-times { color: var(--accent-coral); }

.pricing-card.recommended {
    transform: scale(1.05);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(3, 233, 244, 0.3);
    position: relative;
    z-index: 2;
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ------------------- */
/* REPORT CTA SECTION */
/* ------------------- */

#report-cta {
    background-color: var(--secondary-dark);
}

.report-cta-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-coral));
    padding: 60px;
    border-radius: 10px;
    color: var(--primary-dark);
}

.report-text h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.report-text p {
    color: #333;
    margin-bottom: 30px;
}

.report-text .btn {
    background: var(--primary-dark);
    color: var(--light-text);
    border-color: var(--primary-dark);
}

.report-text .btn:hover {
    background: transparent;
    color: var(--primary-dark);
}

.report-visual img {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.report-visual:hover img {
    transform: rotate(0deg) scale(1.05);
}

/* ------------------- */
/* FOOTER SECTION */
/* ------------------- */

footer {
    background: var(--secondary-dark);
    padding: 80px 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col.about p {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 90%;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    margin-right: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.footer-col.links ul li {
    margin-bottom: 10px;
}

.footer-col.links a {
    color: var(--medium-text);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col.links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-col.contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-col.contact i {
    margin-right: 15px;
    color: var(--accent-cyan);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--card-border);
}


/* ------------------- */
/* CONTACT & LEGAL PAGES */
/* ------------------- */
#contact-page, #legal-page {
    background: var(--secondary-dark);
    min-height: 80vh;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-container, .contact-info-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.contact-form-container h3, .contact-info-container h3 {
    margin-bottom: 30px;
}

#contact-form .form-row {
    display: flex;
    gap: 20px;
}
#contact-form .form-group {
    margin-bottom: 20px;
    flex: 1;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#contact-form input, #contact-form textarea, #contact-form select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    color: var(--light-text);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#contact-form input:focus, #contact-form textarea:focus, #contact-form select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(3, 233, 244, 0.3);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-info-item h4 {
    margin: 0 0 5px 0;
}

.contact-info-item p {
    margin: 0;
    color: var(--medium-text);
}

#legal-page .container {
    max-width: 800px;
}

#legal-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

#legal-page h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--accent-cyan);
}
#legal-page ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}


/* ------------------- */
/* WIDGETS & MODALS */
/* ------------------- */

/* Live Chat */
#live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(3, 233, 244, 0.4);
    transition: transform 0.3s;
}
.chat-icon:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--secondary-dark);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.chat-window.open {
    transform: scale(1);
}

.chat-header {
    background: var(--primary-dark);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h4 { color: var(--light-text); }
.close-chat {
    background: none; border: none; color: var(--light-text); font-size: 1.5rem; cursor: pointer;
}
.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}
.chat-message.bot {
    background: var(--card-bg);
    padding: 10px;
    border-radius: 10px 10px 10px 0;
    font-size: 0.9rem;
    display: inline-block;
    max-width: 80%;
}
.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--card-border);
}
.chat-footer input {
    flex: 1;
    background: none;
    border: none;
    color: var(--light-text);
    padding: 0 10px;
    outline: none;
}
.chat-footer button {
    background: none; border: none; color: var(--accent-cyan); font-size: 1.2rem; cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--secondary-dark);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 1.8rem;
    color: var(--light-text);
    cursor: pointer;
}
.modal-content h3 { margin-bottom: 15px; }
.modal-content p { margin-bottom: 20px; }
#report-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    color: var(--light-text);
    border-radius: 5px;
}
.form-success-message {
    display: none;
    color: var(--accent-cyan);
    text-align: center;
    margin-top: 15px;
}


/* ------------------- */
/* ANIMATIONS & EFFECTS */
/* ------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}


@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes background-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate-cube {
    from { transform: rotateX(0) rotateY(0); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ------------------- */
/* RESPONSIVENESS */
/* ------------------- */

/* Tablets and larger */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }

    #hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-3d-visual {
        width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.recommended {
        transform: scale(1);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-cta-content {
        flex-direction: column;
        text-align: center;
    }
    .report-visual img {
        transform: rotate(0);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .section-padding {
        padding: 60px 0;
    }

    /* Mobile Navigation */
    #main-header .nav-links, #main-header .nav-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
    }

    #mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--secondary-dark);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        transition: right 0.4s ease-in-out;
        padding-top: 100px;
    }
    #mobile-menu.open {
        right: 0;
    }

    #mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    #mobile-menu ul a {
        font-size: 1.2rem;
        color: var(--light-text);
    }
    #mobile-menu .btn {
        margin-top: 20px;
    }
    
    #close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper, .contact-content-wrapper {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }
    .tab-btn {
        border-bottom: 1px solid var(--card-border);
    }
    .tab-content .content-inner {
        flex-direction: column;
        text-align: center;
    }
    .tab-content img {
        width: 100%;
        max-width: 400px;
    }

    .slider-nav {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        gap: 20px;
    }
    .testimonial-slide {
        padding: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col.about p, .footer-col.contact p {
        justify-content: center;
        max-width: 100%;
    }
    .social-links {
        margin-bottom: 30px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .scene {
        width: 150px;
        height: 150px;
    }
    .face {
        width: 150px; height: 150px; font-size: 1.2rem;
    }
    .face i { font-size: 2rem; }
    .face.front  { transform: rotateY(  0deg) translateZ(75px); }
    .face.back   { transform: rotateY(180deg) translateZ(75px); }
    .face.right  { transform: rotateY( 90deg) translateZ(75px); }
    .face.left   { transform: rotateY(-90deg) translateZ(75px); }
    .face.top    { transform: rotateX( 90deg) translateZ(75px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(75px); }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    #contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}