/*
* ADDITIVES SUPPLEMENTS & GRAINS - STYLESHEET
* ---------------------------------------------
* Table of Contents:
* 1.  Global Styles & Variables
* 2.  Typography
* 3.  Layout & Container
* 4.  Buttons & Links
* 5.  Header & Navigation
* 6.  Hero Section
* 7.  Feature Section
* 8.  Products Section
* 9.  Calculator Section
* 10. Pricing Section
* 11. Testimonial Section
* 12. CTA Section
* 13. Page Header (for inner pages)
* 14. Legal & Contact Page Styles
* 15. Footer
* 16. Helper Classes & Animations
* 17. Interactive Elements (Chat, Popup)
* 18. Responsive Design (Media Queries)
*/

/* 1. Global Styles & Variables
--------------------------------------------- */
:root {
    --color-purple: #9370DB;
    /* MediumPurple */
    --color-blue: #00BFFF;
    /* DeepSkyBlue */
    --color-dark: #101018;
    --color-dark-2: #1c1c24;
    --color-light: #FFFFFF;
    --color-gray: #A9A9A9;
    --color-light-gray: #f0f2f5;
    --gradient: linear-gradient(120deg, var(--color-purple), var(--color-blue));
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light);
    color: #444;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Typography
--------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--color-purple);
}

ul {
    list-style: none;
}

/* 3. Layout & Container
--------------------------------------------- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.dark-bg {
    background-color: var(--color-dark);
}

.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.dark-bg p {
    color: var(--color-light);
}

.dark-bg p {
    color: var(--color-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.dark-bg .section-header p {
    color: var(--color-gray);
}


/* 4. Buttons & Links
--------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(147, 112, 219, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.btn-tertiary:hover {
    background-color: var(--color-blue);
    color: var(--color-light);
}

.dark-bg .btn-tertiary {
    color: var(--color-light);
    border-color: var(--color-light);
}

.dark-bg .btn-tertiary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.btn-block {
    display: block;
    width: 100%;
}


/* 5. Header & Navigation
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(16, 16, 24, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    background-color: var(--color-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    transition: var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: var(--color-light);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: var(--transition-speed);
}

.nav-list a.active,
.nav-list a:hover {
    color: var(--color-blue);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-list a.active::after,
.nav-list a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-light);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--color-dark-2);
    color: var(--color-blue);
}

/* 6. Hero Section
--------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?q=80&w=2070&auto=format&fit=crop'), linear-gradient(rgba(16, 16, 24, 0.8), rgba(16, 16, 24, 0.8));
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    animation: zoom-in-out 30s infinite alternate;
}

@keyframes zoom-in-out {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-light);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-light-gray);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}


/* 7. Feature Section
--------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--color-light);
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* 8. Products Section
--------------------------------------------- */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-link {
    background: none;
    border: 2px solid var(--color-gray);
    color: var(--color-gray);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-speed);
}

.tab-link:hover,
.tab-link.active {
    background: var(--gradient);
    color: var(--color-light);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-dark-2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-speed);
    text-align: center;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--color-gray);
    min-height: 48px;
    /* 2 lines of text */
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

/* 9. Calculator Section
--------------------------------------------- */
.calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.calculator-form select {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.calculator-result {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--color-light-gray);
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

.calculator-result h3 {
    margin-bottom: 1rem;
    color: var(--color-purple);
}

.calculator-result p {
    margin-bottom: 1.5rem;
}

/* 10. Pricing Section
--------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--color-dark-2);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-speed);
    border: 2px solid transparent;
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-light);
    margin: 1rem 0;
}

.pricing-header .price sup {
    font-size: 1.5rem;
    top: -1.5rem;
}

.pricing-header .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gray);
}

.pricing-header .desc {
    font-style: italic;
    color: var(--color-gray);
    min-height: 40px;
}

.pricing-features {
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    width: 20px;
    text-align: center;
}

.pricing-features .fa-check {
    color: var(--color-blue);
}

.pricing-features .fa-times {
    color: #555;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--color-purple);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--color-light);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* 11. Testimonial Section
--------------------------------------------- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 350px;
    /* Adjust as needed */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-slide img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-light);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.author-name {
    margin-bottom: 0.25rem;
}

.rating {
    color: #f39c12;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    color: var(--color-light);
    border: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-speed);
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

/* 12. CTA Section
--------------------------------------------- */
.cta-section {
    background-image: var(--gradient);
    padding: 60px 0;
    text-align: center;
    color: var(--color-light);
}

.cta-content h2 {
    color: var(--color-light);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: var(--color-light);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* 13. Page Header (for inner pages)
--------------------------------------------- */
.page-header-section {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    color: var(--color-light);
    background-color: var(--color-dark);
    margin-top: var(--header-height);
}

.page-header-section h1 {
    color: var(--color-light);
}

.page-header-section p {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.page-header-section .hero-bg {
    background-image: none;
    background: var(--color-dark);
    opacity: 1;
    animation: none;
}

/* 14. Legal & Contact Page Styles
--------------------------------------------- */
.legal-page .page-content,
.contact-page-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-page .page-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--color-purple);
}

.legal-page ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.page-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Contact Page specific */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-block h2,
.contact-form-wrapper h2 {
    margin-bottom: 1.5rem;
}

.contact-details-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-detail-item .icon {
    font-size: 1.5rem;
    color: var(--color-blue);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--color-light-gray);
    border-radius: 50%;
}

.contact-detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-detail-item p,
.contact-detail-item a {
    margin: 0;
    color: #555;
}

/* Contact Form */
.contact-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    font-family: var(--font-primary);
}

.contact-form select {
    padding-left: 15px;
}

/* no icon for select */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
}

.contact-form .form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
}

.contact-form input~.form-icon,
.contact-form textarea~.form-icon {
    top: calc(50% + 15px);
    /* Adjust for label */
}

.contact-form textarea {
    resize: vertical;
    padding: 15px;
    /* no icon for textarea */
}

/* 15. Footer
--------------------------------------------- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer h3 {
    color: var(--color-light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--gradient);
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--color-gray);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid var(--color-gray);
    border-radius: 50%;
    transition: var(--transition-speed);
}

.social-links a:hover {
    color: var(--color-light);
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--color-gray);
}

.footer-links ul a:hover {
    color: var(--color-light);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact ul li i {
    color: var(--color-blue);
    margin-top: 5px;
}

.footer-contact ul a {
    color: var(--color-gray);
}

.footer-contact ul a:hover {
    color: var(--color-light);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--color-dark-2);
}

/* 16. Helper Classes & Animations
--------------------------------------------- */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(30px);
}

.visible.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-50px);
}

.visible.slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}

.visible.slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up {
    transform: translateY(50px);
}

.visible.slide-in-up {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    transform: scale(0.9);
}

.visible.zoom-in {
    opacity: 1;
    transform: scale(1);
}

/* 17. Interactive Elements (Chat, Popup)
--------------------------------------------- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.chat-window.open {
    transform: scale(1);
}

.chat-header {
    background: var(--gradient);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: white;
    margin: 0;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 200px;
    overflow-y: auto;
}

.support-message {
    background: var(--color-light-gray);
    padding: 10px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.chat-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    padding: 0 15px;
    font-size: 1.2rem;
    color: var(--color-blue);
    cursor: pointer;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #888;
    text-decoration: none;
}

.popup-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content .btn {
    margin-top: 1.5rem;
}

/* 18. Responsive Design (Media Queries)
--------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-dark);
        transition: left 0.4s ease;
        padding-top: 30px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .nav-list a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--color-dark-2);
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 15px 30px;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .btn {
        display: none;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .testimonial-slide {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content>div {
        margin-bottom: 20px;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .calculator-wrapper {
        padding: 20px;
    }

    .legal-page .page-content,
    .contact-page-wrapper {
        padding: 20px;
    }

    .chat-window {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .chat-bubble {
        right: 10px;
        bottom: 10px;
    }
}