/* Global settings */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

/* Headline */
h1, .headline {
    font-weight: 800;           /* Extra Bold */
    letter-spacing: -0.02em;    /* -20 tracking */
    text-transform: none;
}

/* Sub-headline */
h2, .sub-headline {
    font-weight: 600;           /* Semi-bold or Medium */
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Body Copy */
p, .body-text {
    font-weight: 300;           /* Light */
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Specification Label */
.spec-label {
    font-weight: 900;           /* Black */
    font-style: italic;
    letter-spacing: 0.04em;     /* +40 tracking */
    text-transform: none;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Ensures the header stays above other content */
    /* Remove the solid background color to allow the transparent nav to show the image */
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px; /* Adjust the padding to better fit your logo and button */
    background-color: rgba(0, 0, 0, 0.7); /* This provides the dark transparent background */
    height: 40px; /* Adjusted for a thinner header */
    /* Rest of your styles... */
}

.logo-link {
    display: flex;
    align-items: center;
    /* No padding needed if you're using margin on the logo itself */
}

.logo {
    height: 30px; /* Adjust for a visible logo size */
    width: auto; /* Keeps the aspect ratio of the logo */
    /* No negative margin, adjust the actual header height instead */
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center; /* This will vertically center your nav items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
    padding: 0 15px;
    margin: 0; /* Ensure there's no additional space from margins */
    line-height: 1;
    /* You can add line-height or padding here if you need to adjust the vertical alignment */
}

/* Navigation links styling */
.nav-links a {
    text-decoration: none; /* Removes underline by default */
    color: #ffffff; /* White text color */
    font-size: 1em; /* Adjust the font size as needed */
    padding: 10px 15px; /* Padding for better click area */
    display: block; /* Makes the anchor tag fill the list item */
    transition: color 0.3s ease; /* Smooth transition for color changes */
}

/* Hover effect for navigation links */
.nav-links a:hover, .nav-links a:focus {
    color: #03ab94; /* Changes text color to aquamarine on hover and focus */
}

header .buy-now, a.buy-now-button {
    display: inline-flex; /* Use flexbox for centering */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    background-color: #03ab94 !important; /* Green background */
    color: white !important; /* White text */
    text-decoration: none !important; /* Remove underline */
    padding: 5px 15px !important; /* Smaller padding for a smaller button */
    border: none !important; /* Remove border */
    border-radius: 25px !important; /* Rounded corners */
    font-size: 0.9rem !important; /* Slightly smaller font size */
    font-weight: bold !important; /* Bold text */
    cursor: pointer !important; /* Pointer cursor */
    transition: background-color 0.3s ease, transform 0.3s ease !important; /* Smooth transitions */
    text-align: center !important; /* Ensure centered text */
    line-height: normal; /* Reset line-height for consistency */
}

/* Hover Effect for the Buy Now Button */
header .buy-now:hover, a.buy-now-button:hover {
    background-color: #02917a !important; /* Darker green on hover */
    color: white !important; /* Ensure text remains white */
}

/* Responsive Styling for Smaller Devices */
@media (max-width: 768px) {
    header .buy-now, a.buy-now-button {
        font-size: 1.2rem !important; /* Slightly larger font size for mobile */
        padding: 15px 30px !important; /* Larger padding for tap area */
    }
}

/* Target the Buy Now button in the navbar */
header nav .nav-links .buy-now-button {
    display: inline-block;
    background-color: #02917a; /* Green background */
    color: white; /* White text */
    text-decoration: none;
    padding: 5px 10px; /* Adjust padding for click area */
    border: 0px solid #02917a; /* Green border */
    border-radius: 25px; /* Rounded corners */
    font-size: 0.8rem; /* Standard font size */
    font-weight: bold; /* Bold text for emphasis */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-left: 10px; /* Spacing from other nav items */
    white-space: nowrap; /* Prevents text wrapping */
}

/* Hover effect for the Buy Now button */
header nav .nav-links .buy-now-button:hover {
    background-color: #07a66e; /* Darker green on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header nav .nav-links .buy-now-button {
        font-size: 1.2rem; /* Increase font size for smaller screens */
        padding: 15px 40px; /* Larger padding for better tap area */
        width: 100%; /* Take up more width on mobile */
        text-align: center; /* Center-align text */
        margin: 10px auto; /* Center the button in the navbar */
    }
}

/* Base styles for mobile navigation */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    font-size: 30px; /* Adjust size as needed */
    color: #fff; /* Adjust color as needed */
}

/* Styles to show the hamburger menu on smaller screens */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger icon */
    }

    .nav-links {
        position: fixed; /* Fixed position to stay in place during scroll */
        top: 40px; /* Adjust based on your header's height to not overlap */
        left: 0;
        width: 100%;
        height: calc(100vh - 40px); /* Full height minus the header */
        background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent dark background */
        flex-direction: column;
        align-items: center;
        justify-content: start; /* Align items from the top */
        padding-top: 20px; /* Space from the top inside the menu */
        transform: translateX(-100%); /* Hide off-screen to the left */
        transition: transform 0.3s ease-out; /* Smooth slide-in effect */
        z-index: 1500; /* Ensure it's above other content */
        display: none; /* Initially hidden */
    }

    .nav-links.active {
        display: flex; /* Display as flex to show */
        transform: translateX(0%); /* Slide in */
    }

    .nav-links li {
        margin: 15px 0; /* Add space between links */
    }

    .nav-links li a {
        color: #FFFFFF;
        font-size: 1.2rem; /* Larger text for easy clicking */
    }

    /* Optionally style the button within the nav for consistency */
    .newsletter {
        margin: 20px 0; /* Space it from other navigation links */
        font-size: 1rem; /* Adjust button text size */
    }
}

/* ===== Holiday Lights Under Nav (final polished version) ===== */

.holiday-lights {
    position: absolute;
    left: 0;
    top: 100%;               /* right below nav */
    margin-top: 4px;         /* adjust closer/tighter here */
    width: 100%;
    height: 28px;
  
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
  
    pointer-events: none;
    z-index: 1001;
  }
  
  /* Bulb base */
  .light-bulb {
    position: relative;
    width: 14px;
    height: 20px;
    border-radius: 50% 50% 55% 55%;
    
    /* Glow */
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
  
    /* Twinkle + sway */
    animation:
      sway 3s ease-in-out infinite alternate,
      twinkle 2.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.28s); /* staggered bulbs */
  }
  
  /* Cap */
  .light-bulb::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    border-radius: 2px;
    background: rgba(20, 20, 20, 0.9);
  }
  
  /* Colors + glow */
  .light-bulb.red {
    background: #ff4b5c;
    box-shadow: 0 0 12px rgba(255, 75, 92, 0.9);
  }
  
  .light-bulb.green {
    background: #3ad47d;
    box-shadow: 0 0 12px rgba(58, 212, 125, 0.9);
  }
  
  .light-bulb.gold {
    background: #ffd76a;
    box-shadow: 0 0 12px rgba(255, 215, 106, 0.95);
  }
  
  .light-bulb.blue {
    background: #5ab5ff;
    box-shadow: 0 0 12px rgba(90, 181, 255, 0.95);
  }
  
  /* ===== ANIMATIONS ===== */
  
  /* Gentle sway */
  @keyframes sway {
    0%   { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
  }
  
  /* Glow twinkle */
  @keyframes twinkle {
    0%, 100% {
      opacity: 0.90;
      filter: brightness(1);
    }
    50% {
      opacity: 1;
      filter: brightness(1.35);
    }
  }
  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    .holiday-lights {
      margin-top: 3px;
      height: 22px;
    }
  
    .light-bulb {
      width: 10px;
      height: 14px;
    }
  
    .holiday-lights::before {
      top: 2px; /* keep lined up on mobile */
    }
  }
  
  #rf-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;     /* ❄️ lets user click normally */
    z-index: 999;             /* above everything except nav or lights */
  }
  
.error-section {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px;
    background-color: white; /* Plain white background */
    position: relative;
    min-height: 85vh; /* Makes sure it takes up at least the full height of the viewport */
    width: 100vw; /* Ensures it takes up the full width of the viewport */
    overflow: hidden;
}


.error-section:hover::before {
    transform: scale(1.1);
}

.error-content {
    max-width: 50%;
    position: relative;
    z-index: 2;
}

/* Animated gradient text */
.error-content h1 {
    font-size: 2.5em;
    color: transparent;
    background: linear-gradient(90deg, 
                                rgb(0, 188, 144) 0%,   /* Dark Aquamarine start */
                                rgb(0, 129, 129) 50%, /* Blue midpoint */
                                rgb(0, 164, 79) 100%); /* Dark Aquamarine end */
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textClip 5s linear infinite;
    text-shadow: none;
}

@keyframes textClip {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.error-content p {
    font-size: 1.2em;
    color: #000000;
    line-height: 1.6;
    border-right: 3px solid #666; /* Simulates the cursor */
    white-space: nowrap; /* Keeps the text on a single line */
    overflow: hidden; /* Hides text that overflows the width of the element */
    width: 0; /* Start with 0 width to expand from */
    animation: typewriter 4s steps(40, end) 1s infinite; /* Adjust timing as needed */
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}


/* Cool animation for the error image */
.error-section img {
    max-width: 50%;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.error-section:hover img {
    transform: rotate(5deg) scale(1.1);
}

@media (max-width: 768px) {
    .error-section {
        flex-direction: column;
    }

    .error-section::before {
        transform: scale(1.05);
    }

    .error-content, .error-section img {
        max-width: 80%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .error-section {
        flex-direction: column; /* Stack elements vertically */
        padding: 20px; /* Reduce padding to save space */
        justify-content: center; /* Center items vertically */
        min-height: 80vh; /* Ensure it takes up full screen height */
    }

    .error-section::before {
        transform: scale(1); /* No scale transformation on hover */
    }

    .error-content, .error-section img {
        max-width: 100%; /* Allow content to fill the container */
        margin-top: 20px; /* Add more space between text and image */
    }

    .error-content h1 {
        font-size: 2em; /* Slightly reduce font size for smaller screens */
        animation: none; /* Optionally stop animations that might be distracting on small devices */
    }

    .error-content p {
        font-size: 1em; /* Adjust paragraph font size for readability */
        width: 100%; /* Start with full width for the typewriter effect */
        animation: typewriter 4s steps(40, end) 1s infinite; /* Keep the animation if desired */
    }

    .error-section img {
        transition: none; /* Disable hover animations for touch devices */
        transform: scale(1); /* Reset any transforms */
    }
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(24, 24, 24, 0.4); /* Semi-transparent background */
    animation: fadeInModal 0.5s ease-out; /* Fade-in animation */
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: scaleUpModal 0.5s ease-out; /* Modal scaling animation */
}

@keyframes scaleUpModal {
    from { transform: scale(0.9) translate(-50%, -50%); }
    to { transform: scale(1) translate(-50%, -50%); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Modal body layout with image and text */
.modal-body {
    display: flex;
    align-items: center;
}

.modal-img {
    width: 33.33%;
    height: auto;
    margin-right: 20px;
}

.modal-text {
    width: 66.66%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content */
}

.modal-text h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin: 0;
}

.modal-text p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 10px 0;
}

/* Email input with animated focus ring */
.email-input {
    width: 100%; /* Full width in container */
    max-width: 400px; /* Max width to control the size */
    padding: 15px; /* Increased padding for larger size */
    margin-top: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    outline: none;
    font-size: 16px; /* Slightly larger font for better readability */
}

.email-input:focus {
    border-color: #02917a; /* Green border on focus */
    box-shadow: 0 0 10px rgba(2, 145, 122, 0.5); /* Green glowing ring */
}

/* Subscribe button */
.subscribe-btn {
    background-color: #02917a;
    color: white;
    padding: 15px 30px; /* Increased padding for larger button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px; /* Larger font for better readability */
    width: 100%;
    max-width: 200px; /* Limit the button width */
    text-align: center; /* Center text inside button */
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #027a60;
}

/* Media query for responsive behavior */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 15px;
        max-height: 70%;
        overflow-y: auto;
        transform: translate(-50%, -50%);
        top: 50%;
    }

    .modal-body {
        flex-direction: column; /* Stack image and text */
        padding: 10px 0;
    }

    .modal-img, .modal-text {
        width: 100%; /* Full width for both sections */
        padding: 0;
    }

    .email-input, .subscribe-btn {
        width: 100%; /* Full width for input and button */
        padding: 12px 15px;
    }

    .close {
        font-size: 22px;
    }
}


/* CSS to position the chatbot container at the bottom right of the screen */
#chatbot-container {
    position: fixed;  /* Fixed positioning relative to the viewport */
    bottom: 20px;     /* 20 pixels from the bottom */
    right: 20px;      /* 20 pixels from the right */
    z-index: 1000;    /* High z-index to ensure it stays on top of other content */
    width: 350px;     /* Set an appropriate width for the chatbot */
    height: 500px;    /* Set an appropriate height for the chatbot */
}

/* Footer Styles */
.site-footer {
    background-color: #333; /* Dark grey background */
    color: #fff; /* White text */
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    position: relative; /* To ensure footer-bottom can align correctly */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Navigation, Social Media, and Info */
.footer-nav,
.footer-social,
.footer-info {
    flex: 1 1 calc(33.33% - 20px); /* Responsive grid */
    min-width: 200px;
}

.footer-nav h3,
.footer-social h3,
.footer-info h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a,
.footer-social ul li a {
    color: #ccc; /* Light grey links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
    color: #02917a; /* Green hover color */
}

/* Footer Info Section */
.footer-info {
    font-size: 0.9rem;
    color: #ccc; /* Light grey text */
    line-height: 1.6; /* Better readability */
}

.footer-info p {
    margin: 10px 0; /* Add spacing between lines */
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #bbb; /* Lighter grey for bottom text */
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem; /* Slightly larger for clarity */
    font-weight: bold; /* Make Reel Free stand out */
    color: #fff;
}

.footer-brand {
    font-weight: 700; /* Bold */
    color: #fff;
}

.footer-year {
    font-weight: 500; /* Medium */
    color: #ccc;
}

.footer-rights {
    font-weight: 300; /* Light */
    color: #bbb;
}

.footer-divider {
    margin: 0 0.3rem;
    color: #999;
}

/* Media Query for Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack footer sections vertically */
        align-items: center;
        text-align: center;
    }

    .footer-nav,
    .footer-social,
    .footer-info {
        flex: 1 1 100%; /* Each section takes full width */
        margin-bottom: 20px; /* Add spacing between stacked sections */
    }

    .footer-bottom {
        margin-top: 20px; /* Adjust margin for smaller screens */
    }
}

/* ===========================
   Footer Chatbot Launcher
   =========================== */

   .footer-chat {
    /* mobile: flows under contact email */
    margin-top: 14px;
  }
  
  .rf-chatnote {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #9fd8cf; /* subtle teal tint under dark footer */
  }
  
  /* The pill button with two words: Help • Chat */
  .rf-chatbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 0;
    background: #18B19C;         /* brand teal */
    color: #0c2b27;               /* ink on teal */
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2, 24, 43, 0.18);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .rf-chatbtn:hover { transform: translateY(-1px); }
  .rf-chatbtn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(2, 24, 43, 0.16); }
  .rf-chatbtn:focus-visible { outline: 3px solid #33c9b5; outline-offset: 2px; }
  
  .rf-chatbtn-help { opacity: 0.95; }
  .rf-chatbtn-dot  { opacity: 0.75; }
  .rf-chatbtn-chat {
    background: #ffffff;
    color: #09443c;
    padding: 6px 10px;
    border-radius: 999px;
    line-height: 1;
    font-weight: 800;
  }
  
  /* Desktop positioning: attach to bottom-right corner of the footer */
  @media (min-width: 768px) {
    .site-footer {
      position: relative; /* already present, ensures absolute positioning is relative */
    }
    .footer-chat {
      position: absolute;
      right: 18px;
      bottom: 18px;
      margin-top: 0; /* override mobile spacing */
      text-align: right;
    }
  }
  
  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .rf-chatbtn { transition: none !important; }
  }
  