/*
 * Digital Marketing Agency Website Stylesheet
 * Author: Axenos Marketing
 * Version: 1.0.0
 */

/* -------------------
 * Table of Contents
 * -------------------
 * 1.  Variables & Resets
 * 2.  Global Styles & Typography
 * 3.  Keyframe Animations
 * 4.  Preloader
 * 5.  Header & Navigation
 * 6.  Hero Section
 * 7.  Services Section
 * 8.  About Us Section
 * 9.  Industry Section
 * 10. Testimonials Section
 * 11. Calculator Section
 * 12. Call to Action (CTA) Section
 * 13. Footer
 * 14. Page-Specific Styles (Contact, Legal)
 * 15. Interactive Elements (Chat Widget)
 * 16. Responsive Design (Media Queries)
 */

/* -------------------
 * 1. Variables & Resets
 * ------------------- */
:root {
    --primary-color: #4A0E19;
    /* Deep Burgundy */
    --secondary-color: #1C0A09;
    /* Charcoal Wine */
    --accent-color: #E63946;
    /* Vibrant Crimson */
    --light-accent-color: #FF6B6B;
    /* Soft Coral Red */
    --text-color: #FAF3F3;
    /* Warm White */
    --light-gray: #CDBBA7;
    /* Muted Sand */
    --background-color: #2B1B1B;
    /* Dark Mahogany */
    --white-color: #FFFFFF;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Merriweather', serif;

    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(230, 57, 70, 0.2);
    --transition-speed: 0.3s ease-in-out;
}


/* Import Fonts (example using Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------
 * 2. Global Styles & Typography
 * ------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    font-family: var(--font-secondary);
    color: var(--light-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--light-accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.cta-button.primary:hover {
    background-color: var(--light-accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(83, 127, 231, 0.4);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--accent-color);
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* Scroll Animation Setup */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* -------------------
 * 3. Keyframe Animations
 * ------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate-cube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(83, 127, 231, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(83, 127, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(83, 127, 231, 0);
    }
}

/* -------------------
 * 4. Preloader
 * ------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-logo img {
    width: 150px;
    animation: fadeIn 1s ease-in-out;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-color);
    border-radius: 2px;
    animation: load 2s ease-in-out forwards;
}

@keyframes load {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* -------------------
 * 5. Header & Navigation
 * ------------------- */
.site-header {
    width: 100%;
    height: var(--header-height);
    background: var(--secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-speed);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: block;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: all 0.4s ease-in-out;
}

/* Mobile Nav Open State */
body.nav-open .hamburger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.nav-open .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

body.nav-open .hamburger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* -------------------
 * 6. Hero Section
 * ------------------- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(83, 127, 231, 0.1);
}

.hero-background-shapes .shape1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.hero-background-shapes .shape2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.hero-background-shapes .shape3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 25%;
    animation: float 6s ease-in-out infinite;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-text .highlight {
    color: var(--accent-color);
}

.hero-text h1,
.hero-text p,
.hero-text .hero-buttons {
    opacity: 0;
}

.hero-text .animate-on-load {
    animation: slideInUp 0.8s ease-out forwards;
}

.hero-text .animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-text .animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-text .animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}


.hero-text p {
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-cube-container {
    perspective: 1000px;
}

.rotating-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.rotating-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--accent-color);
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(83, 127, 231, 0.5);
    backdrop-filter: blur(5px);
}

.rotating-cube .front {
    transform: translateZ(125px);
}

.rotating-cube .back {
    transform: rotateY(180deg) translateZ(125px);
}

.rotating-cube .right {
    transform: rotateY(90deg) translateZ(125px);
}

.rotating-cube .left {
    transform: rotateY(-90deg) translateZ(125px);
}

.rotating-cube .top {
    transform: rotateX(90deg) translateZ(125px);
}

.rotating-cube .bottom {
    transform: rotateX(-90deg) translateZ(125px);
}


/* -------------------
 * 7. Services Section
 * ------------------- */
.services-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: transparent;
    height: 300px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-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: var(--border-radius);
    background: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.service-card-back {
    transform: rotateY(180deg);
    background: var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent-color);
}

.service-card-front h3 {
    font-size: 1.3rem;
    color: var(--white-color);
}

.service-card-back h3 {
    margin-bottom: 1rem;
    color: var(--white-color);
}

.service-card-back p {
    font-size: 0.9rem;
    color: var(--white-color);
}

.learn-more-link {
    margin-top: 1.5rem;
    color: var(--white-color);
    font-weight: 600;
}


/* -------------------
 * 8. About Us Section
 * ------------------- */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image .image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80%;
    height: 80%;
    border: 10px solid var(--accent-color);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.5;
}

.about-text .section-tag {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.feature-text h4 {
    margin-bottom: 0.25rem;
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
}

/* -------------------
 * 9. Industry Section
 * ------------------- */
.industry-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    transition: all var(--transition-speed);
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.industry-card h4 {
    margin-bottom: 1rem;
    color: var(--white-color);
}


/* -------------------
 * 10. Testimonials Section
 * ------------------- */
.testimonials-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '“';
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 20rem;
    color: rgba(83, 127, 231, 0.05);
    z-index: -1;
    line-height: 1;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--white-color);
}

.testimonial-author h4 {
    color: var(--accent-color);
    margin: 0;
}

.testimonial-author span {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.slider-controls {
    text-align: center;
    margin-top: 2rem;
}

.slider-btn {
    background: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background: var(--accent-color);
}

/* -------------------
 * 11. Calculator Section
 * ------------------- */
.calculator-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.calc-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-group select {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.calc-result {
    text-align: center;
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calc-result h4 {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.total-cost {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}


/* -------------------
 * 12. Call to Action (CTA) Section
 * ------------------- */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(45deg, var(--accent-color), var(--light-accent-color));
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-text h2 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: var(--white-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
}

.cta-button-large {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--white-color);
    color: var(--primary-color);
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.cta-button-large:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: scale(1.05);
}


/* -------------------
 * 13. Footer
 * ------------------- */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--light-gray);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-about p {
    margin: 0;
}

.footer-grid h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-legal ul {
    padding: 0;
}

.footer-links li,
.footer-legal li,
.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact address {
    font-style: normal;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
}


/* -------------------
 * 14. Page-Specific Styles (Contact, Legal)
 * ------------------- */
.page-header-section {
    padding: calc(var(--header-height) + 60px) 0 60px;
    text-align: center;
    background: var(--secondary-color);
}

/* Contact Page */
.contact-page-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper {
    background: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-accent-color);
    box-shadow: 0 0 0 3px rgba(83, 127, 231, 0.3);
}

.full-width {
    width: 100%;
    font-size: 1.1rem;
}

/* Legal Pages */
.legal-content-section {
    padding: 80px 0;
}

.legal-content-section h2 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content-section p,
.legal-content-section li {
    line-height: 1.8;
}

.legal-content-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

/* -------------------
 * 15. Interactive Elements (Chat Widget)
 * ------------------- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-bubble:hover {
    transform: scale(1.1);
    animation: none;
}

.chat-bubble svg {
    width: 32px;
    height: 32px;
    fill: var(--white-color);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.4s ease;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--secondary-color);
}

.chat-header h4 {
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
}

.chat-form textarea {
    width: 100%;
    background: var(--secondary-color);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 4px;
    padding: 0.5rem;
    resize: none;
    margin-bottom: 0.5rem;
}

.chat-form .cta-button {
    width: 100%;
    padding: 8px;
}


/* -------------------
 * 16. Responsive Design (Media Queries)
 * ------------------- */

/* Tablets (up to 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .rotating-cube {
        width: 200px;
        height: 200px;
    }

    .rotating-cube .face {
        width: 200px;
        height: 200px;
    }

    .rotating-cube .front {
        transform: translateZ(100px);
    }

    .rotating-cube .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .rotating-cube .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .rotating-cube .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .rotating-cube .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .rotating-cube .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Mobile (up to 768px) */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    body.nav-open .nav-links {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger-menu {
        display: block;
    }

    .header-cta {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text {
        margin-bottom: 2rem;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .chat-window {
        width: 90vw;
        right: -15px;
    }
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        width: 95%;
    }

    h1 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .calculator-wrapper {
        padding: 2rem;
    }
}