:root {
    /* Color palette */
    --primary: #d4af40;
    --dark: #1e1e1e;
    --darker: #0d0d0d;
    --block-bg: #1a1a1a;
    --light: #f5f5f5;
    --extra-light: #bebebe;
    --accent: #d4af40;

    /* Fonts */
    --font: 'Montserrat', sans-serif;
    --font-old: 'Inter', sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}


html,
body {
    /* overflow-x: hidden; */
    margin: 0;
    padding: 0;
}


body {
    padding-top: 80px;
    /* since nav is fixed */
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

html {
    scroll-padding-top: 60px;
    /* For anchor link offset */
}


/* Layout sections */
header,
section {
    padding: 4rem 2rem;
    box-sizing: border-box;
    /* prevents padding from adding overflow */
    width: 100%;
}


/* Navigation styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Ensure it spans full width */
    background: var(--darker);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    /* ensure padding doesn’t exceed width */
}


nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
}

nav a:hover {
    font-weight: bold;
    color: var(--accent);
}

/* Logo container and image */
.logo img {
    height: 50px;
    /* control visible logo height */
    width: auto;
    display: block;
    /* remove inline image extra space */
}

.logo {
    margin: 0;
    padding: 0;
    display: flex;
    /* optional, good for alignment */
    align-items: center;
    /* vertical center if needed */
    height: 100%;
    /* optional, to fill nav height */
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem 2rem 5rem 2rem;
    color: var(--light);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    margin-bottom: 2rem;
}

.hero .cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .btn {
    min-width: 200px;
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--light);
}

/* Text coloring */
#what p {
    color: var(--extra-light);
}

#what h3 {
    color: var(--light);
}

/* Features grid */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* ⬅️ This centers items in each row */
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    padding: 0 1rem;
}


/* Feature cards */
.feature {
    min-width: 250px;
    flex: 1 1 250px;
    max-width: 300px;
    /* optional */
    background: var(--block-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}


.feature:hover {
    box-shadow: 0 6px 15px var(--accent);
    transform: none;
    /* completely disable scale */
}


.feature i {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.feature p {
    color: var(--extra-light);
    max-width: 90%;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

/*  section layout */
.experience-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding: 4rem 3rem;
}

.experience-text {
    flex: 0 0 35%;
    max-width: 35%;
}

.experience-text h2 {
    font-size: 3rem;
    color: var(--light);
    line-height: 1.3;
}

.request-demo-btn {
    margin-top: 2rem;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.experience-video {
    flex: 0 0 58%;
    max-width: 58%;
}

.experience-video video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    .experience-text,
    .experience-video {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .experience-section {
        flex-direction: column;
        gap: 1.5rem;
    }

    .experience-text h2 {
        font-size: 2.7rem;
        text-align: left;

    }
}

#why {
    background-color: var(--darker);
    /* or any other color code you want */
    padding: 2rem;
    /* Optional: add some padding so content isn't cramped */
    border-radius: 8px;
    /* Optional: rounded corners */
}

/* Why choose us grid */
.why-choose {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Benefit list items */
.benefit {
    background: none;
    border-radius: 0;
    padding: 0.5rem 0;
    color: var(--light);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    /* Align icon and text at the top */
    gap: 0.75rem;
    text-align: left;
    min-width: 0;
}

.benefit i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: 0.25rem;
    /* Align icon vertically with first line of text */
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

/* Contact section */
#get-in-touch {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Contact blocks container */
.contact-blocks {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Single contact block */
.contact-block {
    background: var(--block-bg);
    padding: 2rem;
    border-radius: 10px;
    flex: 1 1 0;
    max-width: 23%;
    text-align: center;
    color: var(--light);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Hover & focus states for contact blocks */
.contact-block:hover,
.contact-block:focus,
.contact-block:hover i,
.contact-block:focus i,
.contact-block:hover p,
.contact-block:focus p {
    color: var(--darker);
    background-color: var(--accent);
    outline: none;
}

/* Icon in contact block */
.contact-block i {
    font-size: 3.5rem;
    color: var(--accent);
}

/* Contact block heading */
.contact-block h3 {
    margin: 0;
    font-size: 1.3rem;
}

/* Contact block paragraph */
.contact-block p {
    margin: 0;
    font-size: 1rem;
    color: var(--light);
}

/* Dark background for inputs and textarea in the schedule demo popup */
#demo-popup input[type="text"],
#demo-popup input[type="tel"],
#demo-popup input[type="email"],
#demo-popup textarea {
    background-color: var(--darker);
    /* Dark background */
    color: var(--light);
    /* Light text for contrast */
    border: 2px solid var(--extra-light);
    /* Subtle border */
    padding: 8px 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    /* Keep consistent font */
}

/* change placeholder color to lighter shade */
#demo-popup input::placeholder,
#demo-popup textarea::placeholder {
    color: var(--extra-light);
}

/* Highlight focused input and textarea with a different border color */
#demo-popup input[type="text"]:focus,
#demo-popup input[type="tel"]:focus,
#demo-popup input[type="email"]:focus,
#demo-popup textarea:focus {
    outline: none;
    /* Remove default outline */
    border-color: var(--accent);
    /* Example highlight color (golden yellow) */
    box-shadow: 0 0 5px var(--accent);
    /* Optional glow effect */
}

input.error {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 0.8em;
    margin-top: 2px;
    display: block;
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Show popup when active */
.popup-overlay.active {
    display: flex;
}

/* Popup content styling */
.popup-content {
    background: var(--dark);
    padding: 2rem 3rem;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    color: var(--light);
    position: relative;
    box-sizing: border-box;
}

.popup-content h2,
.popup-content h3 {
    text-align: center;
}

/* Popup close button */
.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--light);
    cursor: pointer;
}

/* Form inputs and textareas */
form input,
form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 1rem;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Submit button */
form button[type="submit"] {
    background-color: var(--accent);
    border: none;
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
}

/* Responsive contact blocks */
@media (max-width: 900px) {
    .contact-blocks {
        flex-wrap: wrap;
    }

    .contact-block {
        max-width: 48%;
        margin-bottom: 1.5rem;
        padding: 30px 20px;
    }

    .contact-block a {
        margin: 0rem;
        padding: 0;
    }
}

@media (max-width: 500px) {
    .contact-block {
        max-width: 100%;
    }
}

/* Footer styles */
footer {
    text-align: center;
    padding: 0.1rem 2rem;
    font-size: 0.9rem;
    color: var(--extra-light);
    background-color: var(--darker);
    font-family: 'Montserrat', sans-serif;
}

footer a {
    color: inherit;
    /* Makes the link the same color as surrounding text */
    text-decoration: none;
    /* Removes the underline */
    font-weight: normal;
    /* Ensures normal weight by default */
    transition: font-weight 0.2s ease;
}

footer a:hover {
    font-weight: bold;
    /* Bold on hover */
}


/* ===== MOBILE-FRIENDLY ADDITIONS BELOW ===== */

/* Global padding & font size adjustments */
@media (max-width: 1000px) {

    html,
    body {
        width: 100vw;
        overflow-x: hidden;
    }

    section,
    .hero-content,
    .features,
    .nav-links {
        width: 100vw;
        box-sizing: border-box;
    }

    .hero {
        width: 100vw;
        box-sizing: border-box;
    }
}


/* Navigation vertical stacking */
@media (max-width: 1000px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Hero section font size and padding adjustments */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero .cta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Features grid single column */
@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature {
        max-width: 100%;
    }
}

/* Why choose us grid single column */
@media (max-width: 600px) {
    .why-choose {
        grid-template-columns: 1fr;
        gap: 1.5rem 0;
    }
}

/* Buttons full width */
@media (max-width: 600px) {
    .btn {
        width: 75%;
        min-width: unset;
        display: block;
        margin: 0 auto;
        /* This centers the button horizontally */
    }

    .request-demo-btn {
        margin-top: 2rem;
        padding: 0.8rem 1.8rem;
        font-size: 1.1rem;
        border-radius: 6px;
        cursor: pointer;
    }
}


/* Contact blocks max width and margin */
@media (max-width: 600px) {
    .contact-block {
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* For mobile menu toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light);
}

/* Responsive nav styles */
@media (max-width: 1000px) {
    nav {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100vw;
        background-color: var(--darker);
        margin-top: 1rem;
        padding: 0;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid var(--block-bg);
    }

    .nav-links li:last-child {
        border-bottom: 1px solid var(--block-bg);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        color: var(--light);
        text-align: left;
        text-decoration: none;
    }

    .nav-links a:hover {
        background-color: var(--accent);
        color: var(--darker);
    }
}

@media (max-width: 1000px) {
    .feature:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}