:root {
    /* Warm Earth Palette */
    --bg-color: #FDFBF7;
    /* Warm off-white/beige */
    --bg-secondary: #F3EFE7;
    /* Light warm beige */
    --bg-tertiary: #E8E2D7;
    /* Darker beige for borders/accents */

    --text-main: #4A4036;
    /* Dark warm brown */
    --text-secondary: #7D7061;
    /* Medium brown-grey */

    --accent-color: #6B8E23;
    /* Olive Green - Primary Action */
    --accent-hover: #556B2F;
    /* Darker Olive */
    --accent-light: #9ACD32;
    /* Light Olive for highlights */

    --nav-height: 80px;
    /* Increased for larger logo */
    --card-shadow: 0 15px 40px rgba(74, 64, 54, 0.08);
    /* Soft brown shadow */
    --border-radius: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 142, 35, 0.3);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid #D7CDBD;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: rgba(74, 64, 54, 0.03);
    border-color: var(--text-main);
}

.btn-primary-large {
    background-color: var(--accent-color);
    color: white;
    padding: 18px 45px;
    font-size: 1.25rem;
    border-radius: 40px;
    margin-top: 25px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(253, 251, 247, 0.85);
    /* Matches bg-color with transparency */
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 64, 54, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.6rem;
    /* Increased logo text size */
    color: var(--text-main);
}

.logo img {
    height: 50px;
    /* Increased logo image size */
    margin-right: 12px;
    /* border-radius: 8px; REMOVED border radius to respect the transparent png shape */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1002;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 26px;
    height: 2.5px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(74, 64, 54, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(74, 64, 54, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cta-group {
    margin-top: 2.5rem;
}

/* Modular Section (How it Works) */
.section {
    padding: 120px 0;
}

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

.section-subtitle {
    text-align: center;
    margin-bottom: 70px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

/* Expanded Grid for 7 items */
.modules-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.module-card-video {
    display: block;
    /* Make link block */
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    padding-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 64, 54, 0.03);
    text-decoration: none;
    /* remove link underline */
}

/* Center the last item if it's odd */
.module-card-video.large-span {
    grid-column: 1 / -1;
    /* Span full width if supported layout, or just fit */
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1000px) {
    .modules-grid-expanded {
        grid-template-columns: repeat(3, 1fr);
    }

    .module-card-video.large-span {
        grid-column: 2 / 3;
        /* Center in 3-col grid */
    }
}

.module-card-video:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(74, 64, 54, 0.15);
}

/* Video Overlay Effect */
.video-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: auto;
    bottom: 20px; /* fills the container minus padding */
    /* Match img height */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.module-card-video:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: rgba(107, 142, 35, 0.9);
    /* Olive green transparent */
    border-radius: 50%;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    /* Optical center for triangle */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-card-video:hover .play-icon {
    transform: scale(1.15);
    background: var(--accent-color);
}

/* Video container to prevent overflow */
.video-container {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
}

/* Blurred background video */
.video-container .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.2); /* Scale up to cover blur edges */
    z-index: 1;
}

/* Main video in foreground */
.video-container .video-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Clickable video indicator */
.video-container {
    cursor: pointer;
}

.video-container::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 50px;
    height: 50px;
    background: rgba(107, 142, 35, 0.85);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-container:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal Popup */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-video {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.video-modal-info {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 20px;
    color: white;
}

.video-modal-info h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: white;
}

.video-modal-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95vw;
        border-radius: 14px;
    }
    
    .video-modal-video {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .video-modal-info {
        padding: 20px 15px 15px;
    }
    
    .video-modal-info h3 {
        font-size: 1.15rem;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

.module-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* For video elements specifically */
video.module-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module-card-video h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.module-card-video p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Grid */
.bg-warm {
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.feature-item .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(107, 142, 35, 0.2));
}

/* Horizontal Scroll for Use Cases */
.cards-scroll {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px 50px 5px;
    scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    min-width: 320px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(74, 64, 54, 0.05);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 160px 0;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-color) 100%);
    position: relative;
}

/* Footer */
footer {
    background-color: #2C2620;
    /* Dark Brown for footer */
    color: #E8E2D7;
    padding: 80px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-links a {
    color: #AA9F91;
    margin-left: 30px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

/* Specific Utilities */
.text-olive {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        /* Image on top for mobile */
        text-align: center;
        gap: 40px;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-content {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .btn-secondary {
        margin-left: 10px;
        margin-top: 15px;
        display: inline-block;
    }

    /* Grid adjustment for mobile */
    .modules-grid-expanded {
        grid-template-columns: 1fr;
    }

    .module-card-video.large-span {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: var(--text-main);
    }

    .nav-links.active {
        right: 0;
    }

    .overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Hamburger Animation */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links a {
        margin: 0;
    }
}
/* Custom Interaction Prompt for Model Viewer */
.interaction-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.hand-animation {
    font-size: 4rem;
    animation: hand-sway 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.prompt-text {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-top: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
}

@keyframes hand-sway {
    0%, 100% { transform: translateX(-15px) rotate(-10deg); }
    50% { transform: translateX(15px) rotate(10deg); }
}

/* Model Viewer Styles */
.model-wrapper {
    width: 100%;
    height: 500px;
    background: transparent;
    border-radius: 24px;
    overflow: visible;
    position: relative;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .model-wrapper {
        height: 350px; /* Smaller height for mobile */
        max-width: 100%;
    }
}

.ar-button-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.3);
    transition: transform 0.2s;
    width: 100%;
    max-width: 250px;
    text-align: center;
}

.ar-button-external:hover {
    transform: translateY(-2px);
    background-color: var(--accent-hover);
}
