/* Design System
   To rebrand the demo, change --primary-color, --primary-rgb (the same colour
   as RGB components, used for shadows and tints) and --accent-color. */
:root {
    --primary-color: #0f4c81; /* Steel Blue */
    --primary-rgb: 15, 76, 129;
    --secondary-color: #1a6fb0; /* Lighter Blue */
    --accent-color: #ffd166; /* Warm gold highlight */
    --bg-color: #f8f9fa; /* Light Gray / Off-White */
    --text-color: #212529; /* Black / Dark Gray */
    --white: #ffffff;
    --dark-bg: #1a1a1a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

span {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Navigation */
#main-nav {
    height: 80px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

/* Countdown Banner */
#countdown-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: var(--white);
    padding: 10px 0;
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--primary-color);
}

.countdown-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-text {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

#countdown-timer {
    display: flex;
    gap: 20px;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timer-segment span {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
}

.timer-segment label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 5px;
    font-weight: 600;
}

@media (max-width: 768px) {
    #countdown-banner {
        top: 80px;
        padding: 8px 0;
    }
    
    .countdown-content {
        gap: 10px;
        flex-direction: column;
    }
    
    .countdown-text {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    #countdown-timer {
        gap: 15px;
    }
    
    .timer-segment span {
        font-size: 1.2rem;
    }
}


#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

.logo a {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 45px; /* Slightly larger for better visibility */
    width: auto;
}

.logo span {
    color: var(--accent-color); /* Subtle gold for logo pop */
}

/* Marks the site as a demo. Delete this element to ship for real. */
.logo .demo-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    background-color: var(--accent-color);
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-social {
    display: flex;
    gap: 15px;
    margin-left: 2rem;
}

.nav-social a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .nav-links li {
        margin-left: 1.5rem;
    }
    
    .nav-social {
        margin-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    }
    
    body.with-countdown .nav-links {
        top: 135px; /* Offset for navbar + banner */
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .nav-social {
        display: none;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/hero.png?v=1.1');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    margin-top: 0;
}

body.with-countdown .hero {
    margin-top: 65px; /* Offset for the fixed countdown banner */
}

@media (max-width: 768px) {
    body.with-countdown .hero {
        margin-top: 100px; /* Larger offset for mobile stacked banner */
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

/* The dark primary colour disappears against the hero photo, so the highlight
   uses the accent colour here instead. */
.hero h1 span {
    color: var(--accent-color);
}

.side-promo-flap {
    position: fixed;
    left: 0;
    top: 25%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 40px 60px 40px 30px;
    z-index: 10000;
    clip-path: polygon(0 0, 100% 15%, 85% 85%, 0 100%);
    box-shadow: 10px 5px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.side-promo-flap:hover {
    transform: translateX(0);
}

.promo-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promo-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.9;
}

.promo-price {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.promo-only {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin: 2px 0;
}

.promo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

@media (max-width: 992px) {
    .side-promo-flap {
        position: relative;
        top: 0;
        margin-bottom: 40px;
        clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
        padding: 20px 40px;
        transform: none;
    }
    .promo-price {
        font-size: 2.5rem;
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns .btn {
    margin-right: 1rem;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative; /* Added for stretched link */
    cursor: pointer; /* Added for clickability */
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    position: relative;
}

.card-icon {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.card-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-content p {
    margin-bottom: 20px;
    color: #666;
}

.card-link {
    color: var(--primary-color);
    font-weight: 700;
}

/* About */
.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.features {
    margin-top: 30px;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.features i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-form {
    flex: 1.5;
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.qty-input {
    width: 80px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--dark-bg);
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Dimensions Carousel */
.dimensions-carousel {
    background-color: var(--white);
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-slide img:hover {
    opacity: 0.9;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
}


/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .container {
        padding: 0 1.5rem;
    }

    .about-flex, .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btns .btn {
        margin-right: 0;
        width: 100%;
    }

    .buy-container {
        padding: 20px;
        margin: 30px 10px;
    }

    .buy-header, .gallery-header {
        padding: 100px 0 40px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-links {
        width: 100%;
    }

    .summary-view div[style*="display: flex"] {
        flex-direction: column !important;
    }
}

/* Dynamic Gallery Styles */
.gallery-view-active #main-nav {
    background-color: var(--primary-color);
}

.gallery-header {
    background-color: var(--primary-color);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}

body.with-countdown .gallery-header {
    padding: 180px 0 60px; /* Increased padding to clear navbar + banner */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 60px 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 200px;
    cursor: pointer;
    transition: var(--transition);
    background: #f0f0f0; /* Light gray for a cleaner look when using 'contain' */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Shows the full image without distortion */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: var(--transition);
}

.back-home {
    margin-top: 20px;
}

.placeholder-text {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    color: #888;
}

/* Buy View Styles */
.buy-header {
    background-color: var(--primary-color);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}

body.with-countdown .buy-header {
    padding: 180px 0 60px; /* Increased padding to clear navbar + banner */
}

.buy-container {
    max-width: 800px;
    margin: 60px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.buy-step h3 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.option-card {
    border: 2px solid #eee;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.option-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.option-card span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.option-card-desc {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
    max-width: 100%;
    padding: 0 4px;
}

.export-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8e6;
    border: 1px solid #f0d48a;
    border-left: 4px solid #e0a100;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 8px 0 22px;
    text-align: left;
}

.export-notice i {
    color: #c48a00;
    font-size: 1.25rem;
    margin-top: 2px;
}

.export-notice strong {
    display: block;
    margin-bottom: 4px;
    color: #5c4a00;
}

.export-notice p {
    margin: 0;
    font-size: 0.92rem;
    color: #5c4a00;
    font-weight: 400;
    line-height: 1.4;
}

.step-hint {
    color: #666;
    font-size: 0.95rem;
    margin: -4px auto 18px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 520px;
    text-align: center;
}

.summary-excluded span {
    color: var(--primary-color);
    font-weight: 700;
}

.export-price-note {
    font-size: 0.88rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
}

.option-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.02);
    transform: translateY(-5px);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1);
}

#buy-summary {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.payment-note {
    background-color: #fff5f5;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08);
}

.payment-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.summary-details {
    width: 100%;
    background: #fdfdfd;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    text-align: left;
    margin: 20px 0 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1.05rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #444;
}

.total-line {
    border-top: 2px solid #eee;
    padding-top: 15px !important;
    margin-top: 15px;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 0;
}

.btn-back:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal / Image Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
    animation: zoom 0.6s;
    background-color: white;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.2rem;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20b858;
    transform: translateY(-5px);
    box-shadow: 2px 5px 20px rgba(0,0,0,0.3);
    color: #FFF;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
 opacity: 1;
 visibility: visible;
}

@media (max-width: 768px) {
 .whatsapp-float {
 width: 50px;
 height: 50px;
 bottom: 20px;
 right: 20px;
 font-size: 25px;
 }
 .whatsapp-tooltip {
 display: none;
 }
}

/* AI Chat Widget */
.ai-chat-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 15px rgba(var(--primary-rgb), 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.ai-chat-btn:hover {
    transform: translateY(-5px);
    box-shadow: 2px 5px 20px rgba(var(--primary-rgb), 0.6);
}

.ai-chat-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}

.ai-chat-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.ai-chat-btn:hover .ai-chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-restart {
    position: relative;
    color: #ffffff !important;
    cursor: pointer;
    margin-right: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.ai-chat-restart span,
.ai-chat-restart i {
    color: #ffffff !important;
}

.ai-chat-restart:hover {
    transform: scale(1.05);
}

.ai-chat-restart::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--secondary-color); /* Blends well with the gradient */
    border-radius: 20px;
    z-index: -1;
}

.ai-chat-restart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    background: conic-gradient(transparent 0deg, transparent 260deg, rgba(255, 255, 255, 1) 360deg);
    animation: rotate-light 2.5s linear infinite;
    z-index: -2;
}

@keyframes rotate-light {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ai-chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.ai-chat-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.ai-chat-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.ai-chat-close:hover {
    transform: rotate(90deg);
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f9f9f9;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.bot {
    align-self: flex-start;
    background-color: var(--white);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-message.user {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.2);
}

.ai-chat-input-area {
    padding: 15px;
    background-color: var(--white);
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.ai-chat-input-area input:focus {
    border-color: var(--primary-color);
}

.ai-chat-send {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-chat-send:hover {
    transform: scale(1.1);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: none;
}

.typing-indicator.active {
    display: flex;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .ai-chat-btn {
        width: 50px;
        height: 50px;
        bottom: 80px; /* Above whatsapp which is at 20px */
        right: 20px;
        font-size: 20px;
    }
    .ai-chat-tooltip {
        display: none;
    }
    .ai-chat-window {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        z-index: 999999;
    }
    .ai-chat-window.active {
        transform: translateY(0);
    }
    .ai-chat-header {
        padding-top: max(20px, env(safe-area-inset-top, 20px));
        padding-right: max(20px, env(safe-area-inset-right, 20px));
    }
    .chat-message {
        font-size: 1.1rem;
        padding: 14px 18px;
    }
    .ai-chat-input-area input {
        font-size: 1.1rem;
    }
    .ai-chat-title {
        font-size: 1.25rem;
    }
    .ai-chat-subtitle {
        font-size: 1rem;
    }
}

/* Tooltip Styles */
.info-icon {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    margin-left: 8px;
    cursor: pointer;
}

.info-icon .info-tooltip {
    visibility: hidden;
    width: 260px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
    line-height: 1.4;
}

.info-icon .info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.info-icon:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
}
