:root {
    --primary: #1a1a1a;
    --accent: #00bcd4;
    /* Brand Cyan - matches logo precisely */
    --accent-dark: #009999;
    /* Specific teal for buttons per user request */
    --glass: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar - Glassmorphism */
.navbar {
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: var(--primary);
}

.navbar .nav-link {
    color: white;
    font-weight: 500;
}

/* Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.navbar-logo {
    height: 45px;
    width: auto;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-logo {
    height: 38px;
}

.navbar-contact {
    transition: all 0.4s ease;
}

.navbar-phone-icon {
    font-size: 1.8rem;
    color: var(--accent);
    /* Using logo blue color for the icon */
    filter: drop-shadow(0 0 5px rgba(0, 188, 212, 0.3));
    animation: phone-ring 2s infinite ease-in-out;
}

@keyframes phone-ring {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(-15deg);
    }

    20% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

.navbar-phone {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    /* Slightly reduced default */
    font-weight: 800;
    transition: all 0.4s ease;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.5px;
    animation: text-pulse 2s infinite ease-in-out;
}

@keyframes text-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.navbar.scrolled .navbar-phone {
    color: var(--primary);
}

@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
        background: var(--glass);
        backdrop-filter: blur(10px);
    }

    .navbar .nav-link {
        color: var(--primary);
        padding: 10px 0;
    }

    .navbar-logo {
        height: 35px;
    }

    .navbar-phone {
        font-size: 1.25rem;
    }

    .navbar-phone-icon {
        font-size: 1.25rem;
    }

    .navbar-contact {
        margin-left: 10px !important;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 28px;
    }

    .navbar-phone {
        font-size: 1rem;
    }

    .navbar-phone-icon {
        font-size: 1rem;
    }

    .navbar-contact {
        margin-left: 8px !important;
    }

    .hero {
        height: 60vh;
        /* Better aspect ratio on mobile to show more of the image */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem !important;
    }
}

/* Hero Section - Electric Blinds Demo */
/* Hero Section - Electric Blinds Demo */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: #333;
    /* Fallback */
    z-index: 0;
    /* Establish stacking context */
}

/* Hero Carousel - Full Window */
#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    width: 100%;
    height: 100%;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after {
    /* Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    /* On top of blinds */
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    /* On top of overlay */
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

/* Product Cards - Floating Look */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    overflow: hidden;
    height: 300px;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Buttons */
.btn-custom {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accent {
    background: var(--accent-dark);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: #008080;
    transform: scale(1.05);
    color: white;
}

/* Section Spacing */
section {
    padding: 100px 0;
}

/* Contact Section */
.contact-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    padding: 50px;
    border-top: 6px solid var(--accent);
}

.form-control:focus,
.form-select:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.2);
    border: 1px solid var(--accent) !important;
}

/* Map Section */
.map-section {
    padding-bottom: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
}

.showroom-hours-card {
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent) !important;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showroom-hours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-box-sm {
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.icon-box-sm i {
    font-size: 0.9rem !important;
}

.icon-box-status {
    background: rgba(0, 150, 136, 0.1) !important;
}

.icon-box-status i {
    color: #009688 !important;
}

.icon-box-weekday {
    background: rgba(156, 39, 176, 0.1) !important;
}

.icon-box-weekday i {
    color: #9c27b0 !important;
}

.icon-box-weekend {
    background: rgba(233, 30, 99, 0.1) !important;
}

.icon-box-weekend i {
    color: #e91e63 !important;
}

.icon-box-location {
    background: rgba(255, 87, 34, 0.1) !important;
}

.icon-box-location i {
    color: #ff5722 !important;
}

.icon-box-phone {
    background: rgba(76, 175, 80, 0.1) !important;
}

.icon-box-phone i {
    color: #4caf50 !important;
}

.icon-box-email {
    background: rgba(33, 150, 243, 0.1) !important;
}

.icon-box-email i {
    color: #2196f3 !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

/* Footer */
footer {
    background: #fdfdfd;
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
}

.footer-social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-5px);
}

.footer-social-icon {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 15px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

/* Maximizing internal contrast and sharpness for Instagram QR icon */
img[alt="Instagram"] {
    filter: contrast(1.8) saturate(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer-social-link:hover .footer-social-icon {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--accent);
}

/* Workflow Section */
.workflow-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.workflow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--accent);
}

.workflow-card i {
    display: inline-block;
    padding: 20px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

/* Custom 5-column layout for products */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Floating Promo Window */
.promo-floating-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    cursor: move;
    /* Indicate it can be moved */
    user-select: none;
}

.promo-floating-window:active {
    cursor: grabbing;
}

.promo-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.drag-handle {
    cursor: grab;
    font-size: 0.9rem;
}

.promo-floating-window:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.promo-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.promo-close:hover {
    color: var(--primary);
}

.promo-badge {
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .promo-floating-window {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

/* Fabric Gallery Styles */
.fabric-card {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.fabric-card:hover {
    transform: scale(1.05);
}

.fabric-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.fabric-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fabric-card:hover .fabric-info {
    opacity: 1;
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Sub-page Specific Styles */
.subpage-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    padding-top: 100px;
}

@media (max-width: 576px) {
    .subpage-hero {
        height: 50vh;
        padding-top: 80px;
    }

    .subpage-hero h1 {
        font-size: 2.2rem;
    }
}

.feature-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.cta-section {
    background: #f8f9fa;
    border-radius: 40px;
    padding: 80px 40px;
}