/* General Setup and Brand Colors */
:root {
    --bg-white: #D9D9D9;
    --brand-red: #E50000;
    --text-black: #030303;
    --text-grey: #4B4545;
    --bg-dark-charcoal: #1C1C1C;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* --- CRUMPLED PAPER BACKGROUND IS BACK --- */
    background-color: #f1f1f1; /* Fallback color */
    background-image: url('bg1.avif');
    background-size: cover;
    background-attachment: fixed; /* Makes the texture stay in place */
    /* --- --- */
    color: var(--text-black);
    line-height: 1.7;
    font-size: 18px;
}

/* Container for consistent width */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 70px;
}

h2 .red-text {
    color: var(--brand-red);
}

p {
    margin: 10px 0;
}

/* Dark Section Styling */
.dark-section {
    background-color: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #F5F5F5;
    border-radius: 20px;
}

.light-text {
    color: #F5F5F5;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 40px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-button {
    background: var(--brand-red);
    color: #fff;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-button:hover {
    background-color: var(--text-black);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin: 25px 0 35px;
}

.cta-button {
    display: inline-block;
    background: var(--text-black);
    color: #fff;
    padding: 16px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--brand-red);
    transform: scale(1.05);
}

.hero-image-placeholder {
    flex: 1;
    height: 450px;
    background-color: rgba(224, 224, 224, 0.5);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-grey);
    border: 1px solid rgba(0,0,0,0.1);
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Problem Section */
.problem-points {
    display: flex;
    gap: 40px;
    text-align: center;
}

.point {
    flex: 1;
}

.point-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--brand-red);
}

.point h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Demo Section */
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--text-black);
    border-radius: 10px;
    margin-bottom: 50px;
    overflow: hidden;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* --- Functionalities Section with Symmetrical 4x4 Grid --- */
.functionalities {
    /* No background color needed, will show the body's paper texture */
}

.features-grid {
    display: grid;
    /* This creates exactly 4 equal columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Media queries for responsiveness */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(224, 224, 224, 0.5);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-black);
}

.feature-card p {
    color: var(--text-grey);
}

/* Feedback Section */
.feedback p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.form-placeholder {
    min-height: 400px;
    border: 2px dashed #666;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-grey);

}

/* ────────────────────────────────────────────────────────────────────────────── */
/* │                             Responsive Media Queries                         │ */
/* ────────────────────────────────────────────────────────────────────────────── */

/* For tablets and smaller desktops (less than 992px wide) */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column; /* Stack hero content and image vertically */
        text-align: center;
    }

    .problem-points {
        flex-direction: column; /* Stack problem points vertically */
        gap: 50px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Change to a 2x4 grid */
    }
}

/* For mobile phones (less than 768px wide) */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Slightly smaller base font size for mobile */
    }
    
    section {
        padding: 80px 20px; /* Reduce padding on the sides */
    }

    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    nav {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 35px; /* Make logo slightly smaller in the header */
    }

    .hero-image-placeholder {
        height: 300px; /* Adjust hero image height for mobile */
    }
}

/* For very small mobile phones (less than 576px wide) */
@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr; /* Change to a single-column 1x8 grid */
    }
}
