/*
==================================================
    Digital Marketing Agency Stylesheet
==================================================
    - Table of Contents
    - 1. Global Styles & Variables
    - 2. Typography
    - 3. Layout & Helpers
    - 4. Header & Navigation
    - 5. Footer
    - 6. Buttons & Forms
    - 7. Hero Section
    - 8. Services Section
    - 9. Calculator Section
    - 10. Industry Section
    - 11. Testimonials Section
    - 12. CTA Section
    - 13. Contact Page
    - 14. Legal Pages
    - 15. Interactive Elements (Chat, 3D)
    - 16. Animations & Keyframes
    - 17. Responsive Design (Media Queries)
==================================================
*/

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
    --primary-dark: #0D1128;
    --primary-accent: #4A00E0;
    --secondary-accent: #8E2DE2;
    --highlight: #00BFFF;
    --text-light: #F0F0F0;
    --text-medium: #a9a9b3;
    --text-dark: #333333;
    --background-light: #FFFFFF;
    --background-medium: #f8f9fa;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. Typography
-------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: var(--primary-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--highlight);
}

ul {
    list-style: none;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* 3. Layout & Helpers
-------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: #666;
    font-size: 1.1rem;
}

/* 4. Header & Navigation
-------------------------------------------------- */
.site-header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: var(--header-height);
}

.site-header.scrolled {
    background-color: rgba(13, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* 5. Footer
-------------------------------------------------- */
footer.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-medium);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--highlight);
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.footer-column.links ul li {
    margin-bottom: 0.75rem;
}

.footer-column.links ul li a {
    color: var(--text-medium);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-column.links ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* 6. Buttons & Forms
-------------------------------------------------- */
.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.2);
}

.error-message {
    color: #d9534f;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
}

/* 7. Hero Section
-------------------------------------------------- */
.hero-section {
    background-color: var(--primary-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-accent), var(--highlight));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.hero-particle.p1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hero-particle.p2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 4s;
}

.hero-particle.p3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 15%;
    animation-delay: 8s;
}

.hero-particle.p4 {
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: 20%;
    animation-delay: 12s;
}

.hero-particle.p5 {
    width: 50px;
    height: 50px;
    top: 50%;
    left: 40%;
    animation-delay: 16s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: var(--text-light);
    font-size: 3.8rem;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}

/* 8. Services Section
-------------------------------------------------- */
.services-section {
    background-color: var(--background-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    min-height: 350px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 10px;
}

.card-front {
    background: var(--background-light);
}

.card-back {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: var(--text-light);
    transform: rotateY(180deg);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-light);
}

.card-front h3 {
    font-size: 1.3rem;
}

.card-front p {
    font-size: 0.95rem;
    color: #666;
}

.card-back h3 {
    color: var(--text-light);
}

.card-back ul {
    text-align: left;
    margin: 1rem 0;
}

.card-back ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 15px;
}

.card-back ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--highlight);
}

.card-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 20px;
    background-color: var(--text-light);
    color: var(--primary-accent);
    border-radius: 20px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.card-cta:hover {
    background-color: var(--highlight);
    color: var(--text-light);
}

/* 9. Calculator Section
-------------------------------------------------- */
.calculator-section {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.calculator-section .section-title h2,
.calculator-section .section-title p {
    color: var(--text-light);
}

.calculator-wrapper {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.calculator-form .form-group {
    margin-bottom: 2.5rem;
}

.calculator-form label {
    color: var(--text-medium);
    font-size: 1.1rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    margin-top: 1rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--highlight);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--highlight);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
}

.form-group span {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.calculator-results {
    text-align: center;
    border-left: 1px solid var(--border-color);
    padding-left: 3rem;
}

.calculator-results h3 {
    color: var(--text-medium);
    font-weight: 400;
    font-size: 1.1rem;
}

.calculator-results .result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0.5rem 0 2rem;
}

.calculator-results .result-value.highlight {
    font-size: 3rem;
    color: var(--highlight);
}

/* 10. Industry Section
-------------------------------------------------- */
.industry-section {
    background-color: var(--background-medium);
}

.industry-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background-color: #e9ecef;
    border-radius: 50px;
    padding: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tab-link {
    padding: 10px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tab-link.active {
    background: var(--primary-accent);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(74, 0, 224, 0.3);
}

.tab-content {
    display: none;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

/* 11. Testimonials Section
-------------------------------------------------- */
.testimonials-section {
    background-color: var(--background-light);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    position: absolute;
    width: 100%;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #444;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-accent);
    opacity: 0.1;
    position: absolute;
}

.testimonial-quote::before {
    top: -1.5rem;
    left: -1rem;
}

.testimonial-quote::after {
    bottom: -3.5rem;
    right: -1rem;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.author-info span {
    font-size: 0.9rem;
    color: #777;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.slider-controls button {
    background-color: rgba(13, 17, 40, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-controls button:hover {
    background-color: var(--primary-dark);
}

/* 12. CTA Section
-------------------------------------------------- */
.cta-section {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Crect width="100" height="100" fill="%230D1128"/%3E%3Cpath d="M 0 50 C 25 25, 75 75, 100 50 L 100 100 L 0 100 Z" fill="%23FFFFFF"/%3E%3C/svg%3E') no-repeat center top;
    background-size: 100% 100px;
    background-color: var(--primary-dark);
    padding-top: 150px;
    padding-bottom: 100px;
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-light);
}

.cta-content p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* 13. Contact Page
-------------------------------------------------- */
.contact-page-section {
    padding: 120px 0;
    background: var(--background-medium);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 1.5rem;
}

.info-list li strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.info-list li span {
    color: #555;
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

/* 14. Legal Pages
-------------------------------------------------- */
.legal-page-section {
    padding: 120px 0;
}

.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

/* 15. Interactive Elements (Chat, 3D)
-------------------------------------------------- */
/* -- 3D Hero Cube -- */
.hero-3d-graphic {
    perspective: 1200px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
    margin: 0 auto;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(74, 0, 224, 0.2);
    border: 1px solid var(--highlight);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.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);
}

/* -- Chat Widget -- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.open {
    transform: scale(1);
}

.chat-header {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1.5rem;
    font-size: 0.95rem;
}

.chat-options button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 0.75rem;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.chat-options button:hover {
    background-color: var(--primary-accent);
    color: #fff;
    border-color: var(--primary-accent);
}

/* 16. Animations & Keyframes
-------------------------------------------------- */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes count-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-on-load {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

.section-title .reveal-text:nth-child(1) {
    animation-delay: 0.2s;
}

.section-title .reveal-text:nth-child(2) {
    animation-delay: 0.4s;
}


/* 17. Responsive Design (Media Queries)
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-3d-graphic {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .calculator-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .industry-tabs {
        flex-direction: column;
        border-radius: 10px;
        padding: 0;
        background: transparent;
    }

    .tab-link {
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .tab-link.active {
        background: var(--primary-accent);
    }

    .contact-grid {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cube {
        width: 150px;
        height: 150px;
    }

    .face {
        width: 150px;
        height: 150px;
        font-size: 1rem;
    }

    .front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .slider-controls button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }
}