/* --- Global Styles --- */
:root {
    --color-primary: #007bff; /* Muted Teal/Blue for CTA */
    --color-secondary: #0a192f; /* Deep Navy Blue for background */
    --color-text: #333;
    --color-light: #f4f4f9;
    --font-family: 'Arial', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--color-text);
    background-color: #ffffff;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
    color: var(--color-secondary);
}

.subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 25px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
    /* Sharper corners */
    border-radius: 4px; 
    border: none;
}

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

.btn-primary:hover {
    background-color: #0056b3;
}

/* --- Hero Section (The Top Panel) --- */
.hero {
    position: relative; /* CRITICAL: Enables z-index stacking of children */
    overflow: hidden;
    background-color: var(--color-secondary); 
    color: var(--color-light);
    padding: 100px 5%;
    text-align: center;
    background-image: none; 
    background-size: cover;
    background-position: center;
}

/* NEW: Highlight color for the accent text in the headline */
.hero .highlight-text {
    color: var(--color-primary); 
}

/* Layer 2: The Semi-Transparent Overlay (Dark overlay for readability) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ADJUSTED: Increased opacity for better text contrast */
    background: rgba(0, 0, 0, 0.65); 
    z-index: 2; /* Sits on top of the video (1) */
}

/* Layer 1: The Video Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest layer */
}

.video-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Layer 3: CRITICAL: Hero Content (Text, Buttons, Icons) */
.hero-content {
    position: relative; /* Creates a stacking context */
    z-index: 3; /* Highest layer - will show on top */
}

.hero h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero .subtitle {
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero .small-text {
    margin-top: 10px;
    font-size: 0.9em;
    color: #999;
}

.icon-group {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.icon-item {
    font-size: 1em;
    font-weight: 500;
    color: var(--color-light);
    /* NEW: Subtle shadow for readability over busy video */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
}

/* --- General Panel Styling (Sharp Corners) --- */
.panel {
    padding: 80px 5%;
    text-align: center;
    margin: 40px 5%; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    /* Adjusted for square corners */
    border-radius: 4px; 
    border: 1px solid #ddd;
}

/* --- Demo Explained Section --- */
.demo-explained {
    background-color: var(--color-light);
}

.step-group {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 40px 0;
}

.step {
    flex: 1;
    max-width: 300px;
    padding: 20px;
}

.step-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

/* --- Form Styles --- */
.form-container {
    max-width: 500px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: white;
    border: 1px solid #ccc;
    /* Adjusted for sharp corners */
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-container h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

#demoForm input[type="text"],
#demoForm input[type="email"],
#demoForm input[type="tel"],
#demoForm select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    /* Adjusted for sharp corners */
    border-radius: 4px; 
}

#demoForm button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

/* --- About Me Section --- */
.about-me {
    background-color: var(--color-secondary);
    color: white;
    text-align: left;
}

.about-me h2, .about-me h3 {
    color: var(--color-primary); /* Use accent color for headings */
}

.bio-content {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    /* Adjusted for sharp corners */
    border-radius: 4px; 
    border: 5px solid var(--color-primary);
    flex-shrink: 0;
}

.about-me p {
    color: #ccc;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 5%;
    background-color: #222;
    color: #999;
    font-size: 0.9em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    .icon-group {
        flex-direction: column;
    }
    .step-group {
        flex-direction: column;
    }
    .step {
        max-width: 100%;
    }
    .bio-content {
        flex-direction: column;
        text-align: center;
    }
}