/* CSS Variables for Color Palette */
:root {
    --primary-color: #1A3B5D;       /* Dark Blue */
    --accent-blue: #A5C5EB;         /* Light Blue Button background */
    --accent-yellow: #FFDE59;       /* Yellow 360 Button */
    --bg-light: #F7F7F7;            /* Very light grey */
    --bg-white: #FFFFFF;            /* White */
    --text-main: #333333;           /* Dark grey for generic text */
    --border-color: #d1dfed;        /* Intermediary soft border color */
    --yellow-hover: #eccc39;
    --primary-hover: #132a42;
    --accent-hover: #8cb2de;
}

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

html {
    scroll-behavior: smooth;
}

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

body:not(.loaded) {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 59, 93, 0.4);
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: #000;
}

.btn-yellow:hover {
    background-color: var(--yellow-hover);
    transform: scale(1.05);
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.text-center {
    text-align: center;
}

/* Header Component */
.site-header {
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.header-btn {
    text-decoration: none;
    background-color: #BDBDBD;
    color: #000;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.header-btn:hover {
    background-color: #9e9e9e;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-white);
}

.hero-title {
    font-size: 5rem;
    color: #000;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.7rem;
    color: #000;
    margin-bottom: 35px;
    font-weight: 500;
}

.hero-main-btn {
    background-color: #004fb3;
    color: white;
    font-size: 1.4rem;
    padding: 16px 45px;
    border-radius: 8px; /* square with slight curves */
}
.hero-main-btn:hover {
    background-color: #003a85;
}

.project-example-label {
    margin-top: 200px;
    font-size: 1.6rem;
    color: #555;
    font-weight: 800;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-side-image {
    flex-shrink: 0;
}

.left-camera {
    width: 220px;
}

.right-tablet {
    width: 480px;
    transform: translateX(-30px); /* Moves tablet left */
    align-self: flex-start; /* Aligns tablet top with text top */
}

.hero-side-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.hero-content {
    text-align: right;
    transform: translateX(20px); /* Moves text right */
}

/* Showcase Section - Virtual Tour Embed */
.showcase-section {
    position: relative;
    background-color: var(--bg-white);
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main);
}

.showcase-overlay {
    display: none;
}

.showcase-content {
    position: relative;
    z-index: 2;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.showcase-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Features Section */
.features-section {
    background-color: #E2E2E2;
    padding: 60px 0;
    scroll-margin-top: 90px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}

.custom-feature-icon {
    height: 48px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.custom-feature-icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-main);
}

/* FAQ Section */
.faq-section {
    padding: 70px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 800;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 1rem;
    color: var(--accent-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 1rem;
    color: var(--text-main);
}

/* Contact Section */
.contact-section {
    padding: 70px 0;
    background-color: var(--bg-light);
    scroll-margin-top: 90px;
}

.contact-container {
    max-width: 600px;
}

.contact-form {
    background: transparent;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(165, 197, 235, 0.3);
}

.btn-submit {
    display: block;
    width: 100%;
    background-color: var(--accent-blue);
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 50px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(165, 197, 235, 0.5);
    transform: none; /* remove hover transform for block button */
}

.form-status {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Footer Section */
.site-footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
}

/* Animations & Effects */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 222, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 222, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 222, 89, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 850px) {
    /* Header adjustments */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    /* Hero section overhaul for mobile */
    .hero-container {
        flex-direction: column;
        gap: 30px;
    }
    .hero-content {
        text-align: center;
        transform: translateX(0); /* Remove the offset used for desktop */
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .project-example-label {
        margin-top: 50px;
    }
    
    /* Hide the giant tablet and camera on mobile to save space */
    .hero-side-image {
        display: none;
    }

    /* Showcase Section (Virtual Tour View) */
    .showcase-content iframe {
        width: 100% !important;
        height: 300px;
    }
    .showcase-section {
        height: auto;
        padding: 30px 0;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* General typography and padding reductions */
    .section-title {
        font-size: 2rem;
    }
    .features-section, .faq-section, .contact-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .header-btn {
        text-align: center;
        width: 100%;
    }
}
