/*
    styles.css
    Author: AI Assistant
    Version: 1.0
    Description: Comprehensive stylesheet for the Mark A Cooper Trucking digital marketing website.
    Features: Dark theme, glassmorphism, 3D animations, scroll effects, full responsiveness.
*/

/* ==========================================================================
   1. CSS Variables & Global Styles
   ========================================================================== */

:root {
    --bg-primary: #0A0E24;
    --bg-secondary: #12173D;
    --bg-card: rgba(27, 32, 74, 0.6);
    --bg-card-hover: rgba(35, 42, 94, 0.7);
    --accent-primary: #6F42C1;
    /* Purple */
    --accent-secondary: #00D1B2;
    /* Teal */
    --accent-glow: rgba(111, 66, 193, 0.6);
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0C0;
    --text-headings: #FFFFFF;
    --border-color: rgba(111, 66, 193, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --header-height: 80px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated background blob */
#blob {
    background: linear-gradient(to right,
            var(--accent-primary),
            var(--accent-secondary));
    height: 350px;
    width: 350px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: rotate 20s infinite;
    opacity: 0.6;
    z-index: -2;
    filter: blur(120px);
}

#blur {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: -1;
    backdrop-filter: blur(150px);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==========================================================================
   2. Typography & Basic Elements
   ========================================================================== */

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--text-headings);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--text-headings);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title.text-center {
    text-align: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(10, 14, 36, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height var(--transition-speed) ease;
}


.logo img {
    height: 80px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-speed) ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease-in-out;
}

.nav-links li a:hover,
.nav-links li a:focus {
    color: var(--accent-secondary);
}

.nav-links li a:hover::after,
.nav-links li a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta {
    display: block;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-headings);
    border-radius: 3px;
    transition: all var(--transition-speed) ease-in-out;
}

/* Hamburger animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}


/* ==========================================================================
   4. Buttons & CTAs
   ========================================================================== */

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-headings);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    z-index: -1;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.cta-button:hover::before,
.cta-button:focus::before {
    opacity: 1;
}

.secondary-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-headings);
    background-color: transparent;
    border: 2px solid var(--accent-secondary);
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
}

.secondary-button:hover,
.secondary-button:focus {
    background-color: var(--accent-secondary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}


/* ==========================================================================
   5. General Sections & Layout
   ========================================================================== */

main>section {
    padding: 6rem 0;
    position: relative;
}

.hero-section {
    padding-top: calc(var(--header-height) + 6rem);
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.cta-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.legal-page-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
}

/* ==========================================================================
   6. Index Page: Hero Section
   ========================================================================== */

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content .highlight {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(0, 209, 178, 0.5);
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-3d-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.scene {
    width: 200px;
    height: 200px;
    position: relative;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-headings);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    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);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* ==========================================================================
   7. Index Page: Services Section
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    perspective: 1000px;
    min-height: 350px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    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;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-speed) ease;
}

.service-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
}

.service-card-back ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    width: 100%;
}

.service-card-back ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.service-card-back ul li::before {
    content: '✓';
    color: var(--accent-secondary);
    position: absolute;
    left: -1.2rem;
    font-weight: bold;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.card-cta {
    margin-top: auto;
    align-self: flex-end;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* ==========================================================================
   8. Index Page: ROI Calculator Section
   ========================================================================== */

.calculator-section {
    background: var(--bg-secondary);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 500;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(111, 66, 193, 0.2);
    outline: none;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-secondary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    transition: transform 0.2s ease;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-secondary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    transition: transform 0.2s ease;
}

.slider:hover::-webkit-slider-thumb,
.slider:focus::-webkit-slider-thumb {
    transform: scale(1.2);
}

.slider-value {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.calculator-results {
    border-left: 1px solid var(--border-color);
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h3 {
    color: var(--text-headings);
    margin-bottom: 2rem;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.result-value {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-headings);
}

.roi-positive {
    color: var(--accent-secondary);
}

.roi-negative {
    color: #FF3860;
    /* Red */
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
}


/* ==========================================================================
   9. Index Page: Process Section
   ========================================================================== */

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bg-primary);
    background: var(--text-headings);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.timeline-item:hover .timeline-step {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-50%) scale(1.1);
}

.timeline-item:nth-child(odd) .timeline-step {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-step {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--bg-card);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.03);
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-right: 30px;
}

/* ==========================================================================
   10. Index Page: Testimonials Section (UPDATED)
   ========================================================================== */
   .testimonials-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider-wrapper {
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    width: 550px;
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
    flex-grow: 1;
}

.testimonial-text::before {
    content: '“';
    font-family: 'Georgia', serif;
    font-size: 5rem;
    color: var(--accent-primary);
    position: absolute;
    top: -2rem;
    left: -1rem;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-secondary);
    object-fit: cover;
}

.author-details {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: bold;
    font-family: var(--font-primary);
    color: var(--text-headings);
}

.author-title {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 80px); /* Extend controls outside the container */
    left: -40px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-controls button {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-headings);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
    pointer-events: all;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-controls button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(111, 66, 193, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.pagination-dot.active {
    background-color: var(--accent-secondary);
    transform: scale(1.2);
}

/* Hide controls on mobile */
@media (max-width: 900px) {
    .slider-controls {
        display: none;
    }
}

/* ==========================================================================
   11. Contact Page
   ========================================================================== */

.contact-page-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form-wrapper {
    padding-right: 3rem;
    border-right: 1px solid var(--border-color);
}

#contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

#contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

#contact-form input,
#contact-form textarea,
#contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-speed) ease;
}

#contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0C0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-glow);
}

#contact-form label {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-speed) ease;
}

#contact-form input:focus+label,
#contact-form input:not(:placeholder-shown)+label,
#contact-form textarea:focus+label,
#contact-form textarea:not(:placeholder-shown)+label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background-color: var(--bg-secondary);
    padding: 0 0.4rem;
    color: var(--accent-secondary);
}

#contact-form .select-label {
    /* Special handling for select label */
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background-color: var(--bg-secondary);
    padding: 0 0.4rem;
}

#contact-form button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.contact-info-wrapper h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contact-details li strong {
    color: var(--text-headings);
    margin-bottom: 0.25rem;
}

.contact-details li span,
.contact-details li a {
    color: var(--text-secondary);
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    border: 1px dashed var(--border-color);
}


/* ==========================================================================
   12. Legal Pages (Terms, Privacy, Disclaimer)
   ========================================================================== */
.legal-content {
    background: var(--bg-card);
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--accent-secondary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-top: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}


/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--text-secondary);
}

.footer-grid h4 {
    color: var(--text-headings);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-secondary);
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-contact a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* ==========================================================================
   14. Animations & Scroll Effects
   ========================================================================== */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--scroll-delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   15. Responsiveness & Media Queries
   ========================================================================== */

/* Tablets and larger devices */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-3d-wrapper {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2rem;
        text-align: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        border-right: none;
        padding-right: 0;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    main>section {
        padding: 4rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-speed) ease-in-out;
        box-shadow: -10px 0 30px var(--shadow-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .process-timeline::after {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-step {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-step,
    .timeline-item:nth-child(even) .timeline-step {
        left: 0;
    }

    #contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}