/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #00f2ff;
    --secondary-color: #7000ff;
    --accent-color: #ff0055;
    --bg-dark: #0b0f19;
    --bg-card: rgba(20, 25, 40, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a8c0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-glow: radial-gradient(circle at center, rgba(0, 242, 255, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 20px rgba(0, 242, 255, 0.3);
    --transition-speed: 0.4s;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn i {
    margin-left: 10px;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: var(--glass-border);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    background: rgba(11, 15, 25, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 65px;
    width: auto;
    filter: brightness(1) invert(1);
    }

.nav-main {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Nav Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    animation: pulseGlow 10s infinite alternate;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text .badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(112, 0, 255, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-text h1 {
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    color: #cbd5e1;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CSS 3D Cube Animation */
.cube-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 242, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2) inset;
    backface-visibility: visible;
}

.face-front {
    transform: translateZ(100px);
}

.face-back {
    transform: rotateY(180deg) translateZ(100px);
}

.face-right {
    transform: rotateY(90deg) translateZ(100px);
}

.face-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.face-top {
    transform: rotateX(90deg) translateZ(100px);
}

.face-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Orbiting Elements */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 350px;
    height: 350px;
    animation: spinLeft 20s linear infinite;
}

.orbit-2 {
    width: 500px;
    height: 500px;
    animation: spinRight 30s linear infinite;
}

.planet {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary-color);
    transform: translate(-50%, -50%);
}

/* =========================================
   4. STATS COUNTER
   ========================================= */
.stats-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 900;
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin: 0;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card ul {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.service-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-card li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 10px;
}

/* =========================================
   6. CALCULATOR SECTION
   ========================================= */
.roi-section {
    background: linear-gradient(to bottom, var(--bg-dark), #0f1422);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-main);
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.calc-results {
    background: rgba(0, 242, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px dashed var(--primary-color);
}

.result-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid var(--bg-dark);
    border-top: 10px solid var(--primary-color);
    border-right: 10px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: pulseBorder 2s infinite;
}

.roi-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.roi-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.result-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.detail-item h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* =========================================
   7. TESTIMONIALS & TRUST
   ========================================= */
.testimonials-section {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    animation: scrollTrack 40s linear infinite;
    width: max-content;
}

.testi-card {
    width: 400px;
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.testi-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.05);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* =========================================
   8. CONTACT FORM (Embedded)
   ========================================= */
.contact-preview {
    background: radial-gradient(circle at center, #1a2138 0%, #0b0f19 100%);
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--secondary-color);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.2);
    position: relative;
}

.cta-box::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--gradient-main);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    border-radius: 25px;
}

/* =========================================
   9. LEGAL PAGES & SUBPAGES
   ========================================= */
.subpage .page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, #0f1422, var(--bg-dark));
}

.breadcrumbs {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.content-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 10px;
    border: var(--glass-border);
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin-top: 40px;
    font-size: 1.8rem;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* =========================================
   10. CONTACT PAGE SPECIFIC
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-panel {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(112, 0, 255, 0.1));
    padding: 40px;
    border-radius: 15px;
    border: var(--glass-border);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 20px;
    border: 1px solid var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-main);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   11. FOOTER
   ========================================= */
.footer {
    position: relative;
    background: #050810;
    padding-top: 80px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 65px;
    margin-bottom: 20px;
    filter: brightness(1) invert(1);
}

.footer-about p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-main);
    position: relative;
    padding-left: 15px;
}

.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 15px;
    width: 3px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* =========================================
   12. ANIMATIONS & WIDGETS
   ========================================= */
/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transition: 0.3s;
    animation: bounce 2s infinite;
}

.chat-icon .fa-times {
    display: none;
}

.chat-widget.active .chat-icon .fa-comments {
    display: none;
}

.chat-widget.active .chat-icon .fa-times {
    display: block;
}

.chat-widget.active .chat-icon {
    animation: none;
    transform: rotate(90deg);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backdrop-filter: blur(20px);
}

.chat-widget.active .chat-box {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--gradient-main);
    padding: 15px;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

.chat-header p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

.chat-body {
    padding: 20px;
    font-size: 0.9rem;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Popup */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: #1a2138;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--primary-color);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Keyframes */
@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes spinLeft {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spinRight {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.8s forwards;
}

/* =========================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-main {
        display: none;
    }

    .header-actions .mobile-toggle {
        display: flex;
    }

    /* Ensure menu shows */
    .header-actions {
        display: flex;
    }

    /* Keep container for button */
    .header-cta {
        display: none;
    }

    /* Hide quote button on mobile header */

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .calc-inputs {
        order: 2;
    }

    .calc-results {
        order: 1;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}