:root {
    /* Colors - Matches Logo (Blue & Orange) */
    --clr-bg: #0b0c15;
    --clr-surface: #151621;
    --clr-primary: #0066FF;
    /* Vibrant Blue */
    --clr-primary-glow: rgba(0, 102, 255, 0.4);
    --clr-secondary: #FF9900;
    /* Orange/Gold */
    --clr-text-main: #ffffff;
    --clr-text-muted: #9ca3af;
    --clr-accent: #3385ff;
    --clr-primary-gradient: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));

    /* Fonts */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Borders & Effects */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px var(--clr-primary-glow);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: var(--ff-heading);
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--spacing-md);
}

.section {
    padding-block: var(--spacing-xl);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--clr-primary-glow);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--clr-text-muted);
    color: var(--clr-text-main);
}

.btn-secondary:hover {
    border-color: var(--clr-text-main);
    background-color: rgba(255, 255, 255, 0.05);
}


.store-esun {
    background-color: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.store-printalot {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.store-zapach {
    background-color: rgba(138, 43, 226, 0.15);
    color: #8a2be2;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.store-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.store-national,
.store-national3d {
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.store-voolt,
.store-voolt3d {
    background-color: rgba(0, 102, 255, 0.1);
    color: #3385ff;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.store-3dfila {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b2;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.store-3dprime {
    background-color: rgba(230, 126, 34, 0.15);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.store-beehive {
    background-color: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    /* Gold */
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.store-3dpa {
    background-color: rgba(0, 255, 255, 0.1);
    color: #00cccc;
    /* Cyan/Teal */
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.beta-badge {
    background-color: rgba(255, 153, 0, 0.15);
    /* Orange tint matching secondary color */
    color: var(--clr-secondary);
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 153, 0, 0.3);
    vertical-align: middle;
    margin-left: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.beta-notice {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}


/* Header & Nav */
.header {
    padding-block: var(--spacing-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #000000;
    /* Match new Logo background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 250px;
    /* Increased width (Major) */
}

.logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.primary-navigation img {
    height: 45px;
    width: 45px;
}

.primary-navigation a:not(.btn) {
    color: #f3f4f6;
    /* Light gray for dark background */
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-navigation a:not(.btn):hover,
.primary-navigation a.active {
    color: var(--clr-primary);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #f3f4f6;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-primary);
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 1rem;
        display: none;
        /* Hidden by default on mobile until toggled (or assume always open for simplicity first) */
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* For simplicity in this iteration, let's just show them indented */
    .dropdown-menu {
        display: block;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dropdown-menu a {
        padding-block: 0.5rem;
    }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2000;
    flex-shrink: 0;
    /* Prevent compression */
}

.hamburger {
    display: block;
    position: relative;
    width: 2rem;
    height: 3px;
    /* Slightly thicker */
    background: #FF9900;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    background: #FF9900;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    /* Slightly thicker */
    background: #FF9900;
    transition: var(--transition);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    filter: blur(80px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.hero-description {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 50ch;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-visual {
    position: relative;
    min-height: 400px;
    height: auto;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-orb {
    position: absolute;
    /* Add absolute to orb so it doesn't break flex layout */
    width: 200px;
    height: 200px;
    background: linear-gradient(to bottom right, var(--clr-secondary), var(--clr-primary));
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

/* Liquid Glass & iOS-Style Aesthetic (Clean Version) */

/* Animated Background Gradient Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
            rgba(0, 102, 255, 0.12),
            rgba(255, 153, 0, 0.04),
            var(--clr-bg) 70%);
    z-index: -2;
    pointer-events: none;
}

/* Floating Orbs Background */
.orb-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.18;
    /* Subtle for a cleaner look */
    animation: drift 25s infinite alternate ease-in-out;
    pointer-events: none;
}

.orb-1 {
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--clr-primary);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--clr-secondary);
    animation-delay: -7s;
}

.orb-3 {
    top: 30%;
    left: 45%;
    width: 35vw;
    height: 35vw;
    background: #6366f1;
    /* Indigo accent */
    animation-delay: -12s;
    opacity: 0.1;
}

/* Glassmorphism Refined */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Stronger shadow for depth */
    animation: float 8s ease-in-out infinite reverse;
    font-size: 0.9rem;
}

/* Premium Liquid Glass Overrides */
.glass-card,
.feature-card,
.project-card,
.banner-container,
.video-container {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    /* Specular highlight */
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    /* Specular highlight */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    border-radius: 24px !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.glass-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--clr-primary);
    text-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

/* Hover Shine Effect */
.glass-card::after,
.feature-card::after,
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
            transparent 30%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.glass-card:hover::after,
.feature-card:hover::after,
.project-card:hover::after {
    transform: translateX(100%);
}

.card-1 {
    bottom: 20%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 5%;
    animation-delay: -2s;
    animation-duration: 9s;
}

.card-3 {
    top: 60%;
    left: -10%;
    animation-delay: -4s;
    animation-duration: 7s;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--clr-text-muted);
}

.feature-card {
    background: var(--clr-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--clr-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Banner Section */
.banner-container {
    background: linear-gradient(to right, var(--clr-surface), #131316);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--clr-primary);
    filter: blur(100px);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.banner-container h2 {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.banner-container .btn {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    padding-block: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--spacing-xl);
    background-color: #000000;
    /* Match header branding */
    color: #ffffff;
    /* White text */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: #9ca3af;
    /* Muted text */
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding-inline: 1rem;
    }

    .logo {
        width: 180px;
        /* Smaller logo on mobile */
    }

    .mobile-nav-toggle {
        display: block;
    }

    .primary-navigation {
        position: fixed;
        inset: 0;
        z-index: 1500;
        flex-direction: column;
        justify-content: center;
        background: rgba(15, 15, 17, 0.95);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: var(--spacing-xl);
        padding-inline: 1rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: var(--spacing-lg);
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Tablet / Small Laptop Responsive Fix */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: var(--spacing-lg);
    }
}

/* Projects Section */
.project-card {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--spacing-lg);
}

.project-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

/* Video Section Refined */
.video-section {
    padding-bottom: var(--spacing-xl);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    /* Aspect ratio optional for images, but keeps layout stable */
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Scrollbar Refined */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 2px solid var(--clr-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

/* Selection */
::selection {
    background: var(--clr-primary);
    color: white;
}


/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1 / 1;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--clr-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Button Micro-interactions */
.btn:active {
    transform: scale(0.96);
}


/* Contact Form */
.contact-form-container {
    max-width: 700px;
    margin: 3rem auto 5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.1);
}

.form-group select option {
    background: var(--clr-bg);
}

.w-100 {
    width: 100%;
}

.mt-1 {
    margin-top: 1rem;
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Modal */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1rem;
    color: white;
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--clr-secondary);
    border-color: var(--clr-secondary);
    transform: rotate(90deg);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 5px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Project Filtering */
.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: var(--clr-primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.project-card {
    transition: opacity 0.4s ease, transform 0.4s ease, display 0.4s ease allow-discrete;
}

.project-card.hide {
    opacity: 0;
    transform: scale(0.9);
    display: none;
}

@starting-style {
    .project-card:not(.hide) {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Price Comparison Table */
.price-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
    margin-top: var(--spacing-lg);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.price-table th,
.price-table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-table th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--clr-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Base Price Style */
.price-cell {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Discount Colors - Applied via JS as inline styles but these act as fallbacks */
.price-pix {
    color: #2ecc71 !important;
}

.price-old {
    color: var(--clr-text-muted);
    text-decoration: line-through;
    font-size: 0.85rem;
}

/* New Footer & Social Styles */

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--clr-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-links,
.share-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--clr-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--clr-primary-glow);
    border-color: var(--clr-primary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: white;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    max-width: 300px;
    margin-top: var(--spacing-sm);
}

/* -------------------------------------------------------------------------------------------------
   AD BANNER STYLES
------------------------------------------------------------------------------------------------- */
.ad-banner-container {
    width: 100%;
    max-width: 728px;
    /* Leaderboard standard size */
    min-height: 90px;
    margin: 2rem auto 1rem;
    /* Spacing from top and bottom */
    background-color: rgba(255, 255, 255, 0.03);
    /* Subtle backdrop */
    border: 1px dashed var(--clr-text-muted);
    /* Dashed border for placeholder feel */
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ad-banner-container {
        min-height: 250px;
        /* Square/Rectangle for mobile */
        max-width: 300px;
    }
}

/* -------------------------------------------------------------------------------------------------
   BEST DEALS SECTION
------------------------------------------------------------------------------------------------- */
.best-deals-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
}

.best-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .best-deals-grid {
        grid-template-columns: 1fr;
    }
}

.best-deals-column {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.best-deals-header {
    text-align: center;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.deal-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.deal-card:last-child {
    margin-bottom: 0;
}

.deal-price {
    font-weight: 700;
    color: #2ecc71;
    font-size: 1.1rem;
}

.deal-info {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.3;
}

.deal-store {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* Price History Badges */
.badge-price-drop,
.badge-lowest {
    font-size: 1.1em;
    cursor: help;
    transition: transform 0.2s;
}

.badge-price-drop:hover,
.badge-lowest:hover {
    transform: scale(1.2);
}

/* -------------------------------------------------------------------------------------------------
   HISTORY MODAL STYLES
------------------------------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--clr-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--clr-text-main);
}

#modal-product-name {
    margin-bottom: 20px;
    color: var(--clr-primary);
    font-size: 1.5rem;
}

.chart-container {
    position: relative;
    height: 400px;

    width: 100%;
}

/* Product Thumbnails & Tooltips */
.product-thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    /* Contain to show full product */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #fff;
    /* White bg for images usually looks better */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-thumb:hover {
    transform: scale(1.1);
    border-color: var(--clr-primary);
}

.thumb-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip for larger image */
.thumb-tooltip {
    position: absolute;
    left: 50%;
    /* Center horizontally relative to thumb */
    transform: translateX(-50%) translateY(10px);
    /* Position below the row */
    top: 100%;

    width: 180px;
    height: auto;
    background: #fff;
    border: 2px solid var(--clr-primary);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    /* High z-index */
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Ensure tooltip doesn't get cut off or hidden by table overflow 
   Note: Table cells usually have overflow:hidden or scroll. 
   If this happens, we might need fixed positioning or JS. 
   For now, let's try absolute content. 
*/

.thumb-container:hover .thumb-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.thumb-tooltip img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Fallback Icon Style */
.thumb-fallback {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    /* Dark bg for fallback */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

/* AdSense Ad Container */
.ad-banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    min-height: 90px;
    display: block;
    text-align: center;
}

.ad-banner-container .adsbygoogle {
    display: block;
    min-height: 90px;
}

/* -------------------------------------------------------------------------------------------------
   RICH TOOLTIP SYSTEM
------------------------------------------------------------------------------------------------- */
.rich-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.rich-tooltip-content {
    visibility: hidden;
    width: 340px;
    background: #1a1b26;
    /* Slightly darker than surface for contrast */
    color: #fff;
    text-align: left;
    border-radius: 12px;
    padding: 1.25rem;
    position: absolute;
    z-index: 10000;
    bottom: 160%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 450px;
    overflow-y: auto;
}

.rich-tooltip:hover .rich-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    bottom: 140%;
    pointer-events: auto;
}

.rich-tooltip-content b,
.rich-tooltip-content strong {
    color: var(--clr-primary);
    font-weight: 700;
}

/* Tooltip Arrow */
.rich-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #1a1b26 transparent transparent transparent;
}

@media (max-width: 768px) {
    .rich-tooltip-content {
        width: 280px;
        left: 0;
        transform: translateX(-30%) translateY(10px);
    }

    .rich-tooltip:hover .rich-tooltip-content {
        transform: translateX(-30%) translateY(0);
    }

    .rich-tooltip-content::after {
        left: 40%;
    }
}