/*
  styles.css for Advanced Design Modular Homes
  Author: AI Assistant
  Version: 1.0
*/

/* 
  TABLE OF CONTENTS
  1.  :root Variables
  2.  Base & Reset Styles
  3.  Utility Classes
  4.  Keyframe Animations
  5.  Header & Navigation
  6.  Mobile Navigation
  7.  Hero Section
  8.  Page Header (for subpages)
  9.  Services Section
  10. About Us Section (with 3D Cube)
  11. ROI Calculator Section
  12. Testimonials Section
  13. Pricing Section
  14. CTA Section
  15. Footer
  16. Contact Page Specifics
  17. Legal Page Specifics
  18. Popups (Contact Form Success)
  19. Scrollbar Styles
  20. Media Queries
*/

/* 1. :root Variables
--------------------------------------------- */
:root {
    --primary-color: #0A2647;
    --secondary-color: #144272;
    --light-blue-color: #205295;
    --accent-color: #FF7B54;
    --accent-hover-color: #ff6a3d;
    --light-accent-color: #FFF2ED;
    --white-color: #FFFFFF;
    --off-white-color: #f8f9fa;
    --light-gray-color: #e9ecef;
    --gray-color: #adb5bd;
    --dark-gray-color: #495057;
    --text-color: #343a40;
    --text-color-light: #f5f5f5;

    --font-family-main: 'Poppins', sans-serif;

    --header-height: 5rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(10, 38, 71, 0.15);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Base & Reset Styles
  --------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Utility Classes
  --------------------------------------------- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-accent-color);
    color: var(--accent-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(255, 123, 84, 0.3);
}

.btn-primary:hover {
    color: white;
    background-color: var(--accent-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 123, 84, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: var(--light-gray-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-light {
    background-color: var(--white-color);
    color: var(--accent-color);
}

.btn-light:hover {
    background-color: var(--light-accent-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Animation utilities */
.animate-on-scroll,
.animate-on-load {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible,
.animate-on-load.is-visible {
    opacity: 1;
    transform: none;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in {
    transform: scale(0.95);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.zoom-in {
    transform: scale(0.8);
}

/* 4. Keyframe Animations
  --------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotateCube {
    from {
        transform: rotateX(-30deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-30deg) rotateY(360deg);
    }
}

/* 5. Header & Navigation
  --------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), padding var(--transition-fast);
    padding: 1rem 0;
}

.header.scrolled {
    background-color: var(--white-color);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--header-height) - 2rem);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: .8rem;
    color: var(--primary-color);
}

.scrolled .nav__logo {
    color: var(--primary-color);
}

.logo-svg path {
    transition: fill var(--transition-fast);
}

.header:not(.scrolled) .nav__logo .logo-svg path[fill="url(#paint0_linear_header)"] {
    fill: var(--white-color);
}

.header:not(.scrolled) .nav__logo span {
    color: var(--white-color);
}

.nav__menu {
    display: flex;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color-light);
    position: relative;
    padding: 0.5rem 0;
}

.header.scrolled .nav__link {
    color: var(--text-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent-color);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--accent-color);
}


.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-light);
}

.header.scrolled .nav__toggle {
    color: var(--primary-color);
}

/* 6. Mobile Navigation
  --------------------------------------------- */
@media screen and (max-width: 992px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--primary-color);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-smooth);
        padding: 6rem 2rem 2rem;
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__link {
        color: var(--white-color);
        font-size: 1.2rem;
    }

    .nav__toggle {
        display: block;
    }
}

/* 7. Hero Section
  --------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 4rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.hero__title .highlight {
    color: var(--accent-color);
    display: inline-block;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--light-gray-color);
    max-width: 90%;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    max-width: 120%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-20px);
    }

    100% {
        transform: translatey(0px);
    }
}

.hero__scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.hero__scroll-down a {
    color: var(--white-color);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* 8. Page Header (for subpages)
  --------------------------------------------- */
.page-header {
    padding: 10rem 0 5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    text-align: center;
}

.page-header__title {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.page-header__subtitle {
    font-size: 1.2rem;
    color: var(--light-gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* 9. Services Section
  --------------------------------------------- */
.services {
    background-color: var(--off-white-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid var(--light-gray-color);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card__icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--light-accent-color);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.service-card__title {
    margin-bottom: 1rem;
}

.service-card__description {
    color: var(--dark-gray-color);
    margin-bottom: 1.5rem;
}

.service-card__link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card__link .fa-arrow-right {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link .fa-arrow-right {
    transform: translateX(5px);
}

/* 10. About Us Section (with 3D Cube)
  --------------------------------------------- */
.about-section {
    background: var(--white-color);
}

.about-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-section__content .section-title {
    margin-bottom: 1.5rem;
}

.about-section__features {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-section__features li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.about-section__features .fa-check-circle {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.about-section__3d-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(30deg);
    animation: rotateCube 20s infinite linear;
}

.cube__face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(10, 38, 71, 0.9);
    border: 2px solid var(--accent-color);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cube__face i {
    font-size: 3rem;
    color: var(--accent-color);
}

.cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.cube-caption {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}


/* 11. ROI Calculator Section
  --------------------------------------------- */
.calculator-section {
    background-color: var(--off-white-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.calculator-form .form-group {
    margin-bottom: 2rem;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--light-gray-color);
    outline: none;
    border-radius: var(--border-radius-sm);
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--white-color);
    box-shadow: var(--shadow-md);
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid var(--white-color);
    box-shadow: var(--shadow-md);
}

.calculator-form .form-group span {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--light-accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.calculator-results {
    background-color: var(--light-accent-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
}

.calculator-results h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 123, 84, 0.2);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--dark-gray-color);
}

.result-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.result-item.revenue .result-value {
    color: #28a745;
}

.result-item.roi .result-value {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    color: var(--dark-gray-color);
    margin-top: 1.5rem;
    line-height: 1.4;
}

/* 12. Testimonials Section
  --------------------------------------------- */
.testimonials {
    background-color: var(--white-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 350px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--light-accent-color);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gray-color);
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.testimonial-author {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-company {
    color: var(--gray-color);
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-btn {
    background: var(--light-gray-color);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

/* 13. Pricing Section
  --------------------------------------------- */
.pricing {
    background-color: var(--off-white-color);
}

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-toggle-wrapper span {
    font-weight: 600;
    color: var(--dark-gray-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.featured-tag {
    position: absolute;
    top: 1.5rem;
    right: -45px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-card__header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray-color);
}

.pricing-card__title {
    margin-bottom: 0.5rem;
}

.pricing-card__subtitle {
    color: var(--dark-gray-color);
    font-size: 0.9rem;
    min-height: 40px;
}

.pricing-card__price {
    margin-top: 1.5rem;
}

.pricing-card__price .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card__price .custom-price {
    font-size: 2.5rem;
}

.pricing-card__price .period {
    color: var(--gray-color);
    font-weight: 500;
}

.pricing-card__body {
    padding: 2rem 0;
    flex-grow: 1;
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card__features .fa-check {
    color: #28a745;
}

.pricing-card__features .fa-times {
    color: #dc3545;
}

.pricing-card__footer {
    margin-top: auto;
}

/* 14. CTA Section
  --------------------------------------------- */
.cta-section {
    padding: 5rem 0;
    background: var(--white-color);
}

.cta-wrapper {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)), url('https://www.toptal.com/designers/subtlepatterns/uploads/double-bubble-outline.png');
    background-blend-mode: multiply;
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-title {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--light-gray-color);
    max-width: 600px;
}

.cta-action {
    flex-shrink: 0;
}


/* 15. Footer
  --------------------------------------------- */
.footer {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 5rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer a {
    color: var(--light-gray-color);
}

.footer a:hover {
    color: var(--accent-color);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.footer__description {
    color: var(--light-gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 350px;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer__links h3,
.footer__contact h3 {
    font-size: 1.25rem;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer__links h3::after,
.footer__contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background: var(--accent-color);
}

.footer__links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__contact i {
    color: var(--accent-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    color: var(--gray-color);
}

/* 16. Contact Page Specifics
  --------------------------------------------- */
.contact-page__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white-color);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -8rem;
    position: relative;
    z-index: 10;
}

.contact-info-block h2 {
    margin-bottom: 1.5rem;
}

.contact-details-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-detail-item .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--light-accent-color);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    color: var(--dark-gray-color);
    margin: 0;
}

.contact-form .form-title {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form .input-wrapper {
    position: relative;
}

.contact-form .form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--light-gray-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23adb5bd' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.contact-form textarea {
    padding: 1rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.2);
}

.contact-form .btn i {
    margin-left: 0.5rem;
}


/* 17. Legal Page Specifics
  --------------------------------------------- */
.legal-page {
    background: var(--off-white-color);
}

.legal-content {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: -8rem auto 0;
    position: relative;
    z-index: 10;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--primary-color);
}


/* 18. Popups (Contact Form Success)
  --------------------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    position: relative;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--gray-color);
    background: none;
    border: none;
    cursor: pointer;
}

.popup-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}

.popup-content .btn {
    margin-top: 1.5rem;
}


/* 19. Scrollbar Styles
  --------------------------------------------- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-color);
    border-radius: 10px;
    border: 3px solid var(--light-gray-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray-color);
}


/* 20. Media Queries
  --------------------------------------------- */
@media screen and (max-width: 1024px) {

    h1,
    .hero__title {
        font-size: 3rem;
    }

    h2,
    .section-title {
        font-size: 2rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image-container {
        display: none;
    }

    .about-section__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-section__3d-visual {
        margin-top: 2rem;
    }

    .footer__content {
        grid-template-columns: 1fr 1fr;
    }

    .footer__about {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page__wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        margin-top: -6rem;
    }

    .legal-content {
        padding: 2rem;
        margin-top: -6rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__about,
    .footer__links,
    .footer__contact {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__links ul,
    .footer__contact ul {
        align-items: center;
    }

    .footer__links h3::after,
    .footer__contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav__menu {
        width: 100%;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .popup-content {
        width: 90%;
        padding: 2rem 1.5rem;
    }
}