/* Flourishsyboost - Air Conditioning Services Website
   Main Stylesheet - style.css */

/* ====== CSS VARIABLES ====== */
:root {
    /* Colors */
    --color-primary: #4DA8DA;
    --color-primary-light: #6FBEEC;
    --color-primary-dark: #3A96C8;
    --color-secondary: #1B4965;
    --color-secondary-light: #2A5A7A;
    --color-secondary-dark: #0C3954;
    --color-gray: #F5F7FA;
    --color-gray-dark: #D1D9E6;
    --color-white: #FFFFFF;
    --color-dark: #1A1A2E;
    --color-text: #2C3E50;
    --color-background: #E8F4FC;
    --color-background-alt: #D7EBF9;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    --fs-xs: 0.75rem;   /* 12px */
    --fs-sm: 0.875rem;  /* 14px */
    --fs-base: 1rem;    /* 16px */
    --fs-md: 1.125rem;  /* 18px */
    --fs-lg: 1.25rem;   /* 20px */
    --fs-xl: 1.5rem;    /* 24px */
    --fs-2xl: 2rem;     /* 32px */
    --fs-3xl: 2.5rem;   /* 40px */
    --fs-4xl: 3rem;     /* 48px */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-extra-slow: 800ms ease;

    /* Containers */
    --container-max: 1200px;
    --container-narrow: 960px;
}

/* ====== BASE STYLES ====== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ====== ATMOSPHERIC BACKGROUND ====== */
.atmospheric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-alt) 100%);
}

.particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 10% 20%, rgba(77, 168, 218, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(27, 73, 101, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0.8;
    animation: pulse-bg 15s infinite alternate ease-in-out;
}

.wave-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image:
            repeating-linear-gradient(90deg, transparent, transparent 400px, rgba(77, 168, 218, 0.03) 400px, rgba(77, 168, 218, 0.03) 401px),
            repeating-linear-gradient(90deg, transparent, transparent 600px, rgba(27, 73, 101, 0.02) 600px, rgba(27, 73, 101, 0.02) 601px);
    transform: rotate(1deg) translateX(0);
    animation: wave-movement 120s infinite linear;
}

@keyframes pulse-bg {
    0% { opacity: 0.7; }
    50% { opacity: 0.9; }
    100% { opacity: 0.7; }
}

@keyframes wave-movement {
    0% { transform: translateX(0) rotate(1deg); }
    100% { transform: translateX(-50%) rotate(1deg); }
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(77, 168, 218, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 6px 8px rgba(77, 168, 218, 0.35);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(77, 168, 218, 0.1);
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
}

.pulse-btn {
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0% { box-shadow: 0 0 0 0 rgba(77, 168, 218, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(77, 168, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 168, 218, 0); }
}

/* ====== HEADER ====== */
.site-header {
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.site-header.scrolled {
    transform: translateY(-100%);
}

.site-header.visible {
    transform: translateY(0);
}

.site-header.transparent {
    background-color: transparent;
    box-shadow: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--fs-xl);
    color: var(--color-secondary);
    position: relative;
}

.logo-text {
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.logo-accent {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    border-radius: 3px;
    animation: logo-accent-pulse 3s infinite alternate ease-in-out;
}

@keyframes logo-accent-pulse {
    0% { width: 20px; opacity: 0.7; }
    100% { width: 40px; opacity: 1; }
}

.main-nav {
    display: flex;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 102;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    margin: 6px 0;
    transition: all var(--transition-fast);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-list a:hover {
    color: var(--color-primary);
}

.nav-list a:hover::after,
.nav-list .active a::after {
    width: 100%;
}

.nav-list .active a {
    color: var(--color-primary);
}

/* ====== HERO SECTION ====== */
.hero {
    padding: var(--space-xl) 0 calc(var(--space-xl) + 3rem);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url("../images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    color: var(--color-primary-light);
}

.hero p {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    color: var(--color-secondary-light);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-device {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s infinite ease-in-out;
    transform-style: preserve-3d;
}

.floating-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 168, 218, 0.4) 0%, rgba(27, 73, 101, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.floating-device img {
    display: block;
    transform: translateZ(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.title-reveal, .subtitle-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s forwards var(--transition-normal);
}

.subtitle-reveal {
    animation-delay: 0.3s;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
}

.wave-separator svg {
    width: 100%;
    height: 100%;
}

.wave-separator path {
    fill: var(--color-white);
}

.wave-separator.top-wave {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

.wave-separator.bottom-wave {
    bottom: 0;
}

/* ====== SERVICES PREVIEW ====== */
.services-preview {
    background-color: var(--color-white);
    padding: var(--space-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
    border-radius: 3px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, transparent 400%);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
    font-size: var(--fs-xl);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle at center, var(--color-primary-light) 0%, var(--color-primary) 70%);
    z-index: -1;
    transition: transform var(--transition-slow);
    transform: scale(1);
}

.service-card:hover .service-icon::before {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
}

.service-card p {
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-size: var(--fs-base);
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: auto;
}

.card-link i {
    margin-left: var(--space-xs);
    transition: transform var(--transition-fast);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* ====== WHY CHOOSE US ====== */
.why-choose-us {
    background-color: var(--color-background);
    padding: var(--space-xl) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    transition: all var(--transition-normal);
    flex-direction: column;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(77, 168, 218, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.feature:hover .feature-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(10deg);
}

.feature-content h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-xs);
    color: var(--color-secondary);
}

.feature-content p {
    font-size: var(--fs-base);
    color: var(--color-text);
    margin-bottom: 0;
}

/* ====== FEATURED PRODUCTS ====== */
.featured-products {
    background-color: var(--color-white);
    padding: var(--space-xl) 0;
    position: relative;
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
}

.product-description {
    font-size: var(--fs-sm);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.product-price {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* ====== TESTIMONIALS ====== */
.testimonials {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: calc(var(--space-xl) + 3rem) 0;
    position: relative;
}

.testimonials .section-title {
    color: var(--color-white);
}

.testimonials .section-title::after {
    background: var(--color-white);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.testimonial-content {
    position: relative;
}

.testimonial-content i {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: var(--fs-xl);
    color: var(--color-primary);
    opacity: 0.5;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author h4 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-xs);
    color: var(--color-white);
}

.testimonial-author p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background-color: var(--color-background);
    padding: var(--space-xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.cta-content h2 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-secondary);
}

.cta-content p {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.cta-content .btn {
    font-size: var(--fs-md);
    padding: 0.75rem 2rem;
}

/* ====== MAP SECTION ====== */
.map-section {
    background-color: var(--color-white);
    padding: var(--space-xl) 0;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.address-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.address-details p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    font-size: var(--fs-md);
}

.address-details i {
    color: var(--color-primary);
}

/* ====== FOOTER ====== */
.site-footer {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo {
    margin-bottom: var(--space-sm);
}

.footer-logo p {
    font-size: var(--fs-sm);
    opacity: 0.8;
}

.footer-links h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.footer-contact p {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact i {
    color: var(--color-primary);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-sm);
    opacity: 0.7;
}

/* ====== COOKIE CONSENT ====== */
.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 400px;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(200%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.cookie-consent.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: var(--fs-sm);
}

.cookie-content button {
    flex-shrink: 0;
}

/* ====== CONTACT FORM ====== */
.contact-form {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background-color: rgba(77, 168, 218, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--color-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-dark);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.1);
}

.form-control textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-container input {
    margin-top: 5px;
}

.checkbox-container label {
    font-size: var(--fs-sm);
    font-weight: 400;
}

.form-submit {
    text-align: center;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

[data-aos="fade-up"] { opacity: 0; transform: translateY(40px); transition: opacity 0.6s, transform 0.6s; }
[data-aos="fade-up"].aos-animate { opacity: 1; transform: translateY(0); }

[data-aos="zoom-in"] { opacity: 0; transform: scale(0.9); transition: opacity 0.6s, transform 0.6s; }
[data-aos="zoom-in"].aos-animate { opacity: 1; transform: scale(1); }

[data-aos="flip-left"] { opacity: 0; transform: perspective(800px) rotateY(20deg); transition: opacity 0.6s, transform 0.6s; }
[data-aos="flip-left"].aos-animate { opacity: 1; transform: perspective(800px) rotateY(0); }

/* ====== MEDIA QUERIES ====== */
@media (max-width: 1200px) {
    :root {
        --fs-4xl: 2.5rem; /* 40px */
        --fs-3xl: 2.25rem; /* 36px */
        --fs-2xl: 1.75rem; /* 28px */
    }

    .hero .container {
        gap: var(--space-lg);
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .floating-device {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-4xl: 2.25rem; /* 36px */
        --fs-3xl: 2rem; /* 32px */
        --fs-2xl: 1.5rem; /* 24px */
        --fs-xl: 1.25rem; /* 20px */
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem var(--space-lg) var(--space-lg);
        gap: var(--space-lg);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: top var(--transition-normal);
        z-index: 101;
        transform: translateY(-100%);
    }

    .nav-active .nav-list {
        transform: translateY(0);
    }

    .nav-active .menu-toggle span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-active .menu-toggle span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }

    .services-grid,
    .products-slider,
    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: var(--space-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }

    .footer-contact p {
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    :root {
        --space-xl: 3rem;
        --space-lg: 1.5rem;
    }

    .hero {
        min-height: 70vh;
        padding-bottom: calc(var(--space-lg) + 3rem);
    }

    .feature {
        padding: var(--space-md);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-icon {
        margin-bottom: var(--space-sm);
    }

    .address-details p {
        font-size: var(--fs-base);
    }
}

.nav-active{
    overflow: hidden;
}

/* Enhanced Legal Pages - Quantum Membrane Design System
   Integrates fractal architectural elements with responsive dynamics */

/* Base Legal Container */
.legal-section {
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl) 0;
    min-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* Quantum Membrane Background */
.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 30%, rgba(77, 168, 218, 0.15) 0%, transparent 70%),
            radial-gradient(circle at 80% 70%, rgba(27, 73, 101, 0.12) 0%, transparent 60%),
            linear-gradient(135deg, rgba(245, 247, 250, 0.8) 0%, rgba(215, 235, 249, 0.9) 100%);
    opacity: 0.9;
    z-index: -1;
    transform-origin: center;
    animation: pulse-membrane 15s infinite alternate ease-in-out;
}

@keyframes pulse-membrane {
    0% {
        opacity: 0.7;
        background-size: 100% 100%, 100% 100%, 100% 100%;
    }
    50% {
        opacity: 0.9;
        background-size: 120% 120%, 110% 110%, 100% 100%;
    }
    100% {
        opacity: 0.7;
        background-size: 100% 100%, 100% 100%, 100% 100%;
    }
}

/* Dynamic Neural Network Pattern */
.legal-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(77, 168, 218, 0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    animation: float-network 120s infinite linear;
}

@keyframes float-network {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Legal Header with Fractal Border */
.legal-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(77, 168, 218, 0.2);
    position: relative;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
            90deg,
            var(--color-primary) 0%,
            var(--color-secondary) 25%,
            rgba(255, 255, 255, 0.5) 50%,
            var(--color-secondary) 75%,
            var(--color-primary) 100%
    );
    opacity: 0.8;
    animation: border-flow 8s infinite ease-in-out;
}

@keyframes border-flow {
    0% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

.legal-header h1 {
    color: var(--color-secondary);
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.legal-header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    animation: width-pulse 4s infinite alternate ease-in-out;
}

@keyframes width-pulse {
    0% { width: 40px; opacity: 0.7; }
    100% { width: 120px; opacity: 1; }
}

/* Dynamic Date Display */
.legal-date {
    color: var(--color-text);
    opacity: 0.8;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
    display: inline-block;
    position: relative;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(77, 168, 218, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(27, 73, 101, 0.05);
    transition: all var(--transition-normal);
}

.legal-date:hover {
    box-shadow: 0 5px 15px rgba(27, 73, 101, 0.1);
    transform: translateY(-2px);
}

.policy-date {
    font-weight: 500;
    color: var(--color-primary-dark);
}

/* Enhanced Home Button */
.home-button {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(77, 168, 218, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(27, 73, 101, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 168, 218, 0.2) 0%, rgba(27, 73, 101, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.home-button:hover {
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 73, 101, 0.1);
}

.home-button:hover::before {
    opacity: 1;
}

/* Main Content Container with Fractal Architecture */
.legal-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow:
            0 10px 30px rgba(27, 73, 101, 0.07),
            0 0 0 1px rgba(77, 168, 218, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(45deg, rgba(77, 168, 218, 0.03) 25%, transparent 25%, transparent 75%, rgba(77, 168, 218, 0.03) 75%),
            linear-gradient(45deg, rgba(77, 168, 218, 0.03) 25%, transparent 25%, transparent 75%, rgba(77, 168, 218, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.5;
    z-index: -1;
    transform-origin: center;
    animation: scale-pattern 20s infinite alternate ease-in-out;
}

@keyframes scale-pattern {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

/* Enhanced Section Design */
.legal-intro {
    margin-bottom: var(--space-xl);
    font-size: var(--fs-md);
    line-height: 1.6;
    position: relative;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow:
            0 5px 15px rgba(27, 73, 101, 0.05),
            0 0 0 1px rgba(77, 168, 218, 0.05);
}

.legal-section {
    margin-bottom: var(--space-xl);
    position: relative;
}

.legal-section h2 {
    color: var(--color-secondary);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(77, 168, 218, 0.2);
    position: relative;
    display: inline-block;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.legal-section h3 {
    color: var(--color-secondary);
    font-size: var(--fs-lg);
    margin: var(--space-md) 0 var(--space-sm);
    position: relative;
    display: inline-block;
}

.legal-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    opacity: 0.7;
}

.legal-section p,
.legal-section li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.legal-section p {
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Enhanced Lists */
.legal-section ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
    position: relative;
}

.legal-section ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary-light), transparent);
    opacity: 0.3;
    border-radius: 2px;
}

.legal-section li {
    position: relative;
    padding-left: var(--space-xs);
}

.legal-section li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--color-primary);
    font-size: 1.2em;
    opacity: 0.7;
}

/* Enhanced Footer */
.legal-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(77, 168, 218, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.legal-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(77, 168, 218, 0.3) 50%,
            transparent 100%
    );
}

.legal-footer p {
    color: var(--color-text);
    opacity: 0.7;
    position: relative;
}

/* Links with pulse effect */
.legal-content a:not(.home-button) {
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    transition: all var(--transition-fast);
    font-weight: 500;
    padding: 0 3px;
    z-index: 1;
}

.legal-content a:not(.home-button)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.legal-content a:not(.home-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(77, 168, 218, 0.1);
    z-index: -1;
    transition: height 0.3s ease;
}

.legal-content a:not(.home-button):hover {
    color: var(--color-primary-dark);
}

.legal-content a:not(.home-button):hover::before {
    transform: scaleX(1);
}

.legal-content a:not(.home-button):hover::after {
    height: 100%;
}

/* Responsive Adaptations */
@media (max-width: 992px) {
    .legal-content::before {
        background-size: 40px 40px;
        background-position: 0 0, 20px 20px;
        opacity: 0.3;
        animation: scale-pattern 30s infinite alternate ease-in-out;
    }

    .legal-section::after {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .legal-footer {
        flex-direction: column;
        gap: var(--space-md);
    }

    .legal-header h1::after {
        animation: none;
        width: 60px;
    }

    .legal-content::before {
        animation: none;
    }

    .legal-section::before,
    .legal-section::after {
        animation: none;
        opacity: 0.2;
    }

    .legal-date {
        display: block;
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 576px) {
    .legal-content {
        padding: var(--space-md) var(--space-sm);
    }

    .legal-intro {
        padding: var(--space-sm);
    }

    .legal-section h2 {
        font-size: var(--fs-lg);
    }

    .legal-section h3 {
        font-size: var(--fs-md);
    }

    .legal-section::before,
    .legal-section::after,
    .legal-content::before {
        opacity: 0.1;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .legal-header h1::after,
    .legal-header::after,
    .legal-section::before,
    .legal-section::after,
    .legal-content::before {
        animation: none;
    }

    .home-button:hover,
    .legal-date:hover {
        transform: none;
    }
}