/* Global Resets & Basic Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.8rem;
    color: #B71C1C; /* Darker Red for headings */
        transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;

}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.2rem;
    color: #D32F2F; /* Primary Red */
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    text-decoration: none;
    color: #D32F2F; /* Primary Red for links */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.caption {
    font-size: 0.8rem;
    text-align: center;
    color: #777;
    margin-top: 5px;
}

/* Header & Navigation */
header {
    background: #B71C1C; /* Darker Red */
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #FFCDD2; /* Lighter Red for hover */
}

/* Hero Section */
#hero {
    background: url('images/liptrac/liptracrender.png') no-repeat center center/cover; /* Replace with your image */
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position:relative;
      /* Transition for smooth background movement */
    transition: background-position 1s ease-out, background-size 2s ease-out;

}



#hero:hover {
    background-size: 105%; /* Zooms in slightly on hover */
}
/* Ensure hero content is above the overlay */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Hover effect for zoom */
#hero:hover {
    background-size: 105%; /* Subtle zoom on hover */
}
/* Overlay for better text readability */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 0, 0, 0.75); /* Dark red overlay */
    z-index: 0; /* Ensure overlay is below content */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #f4f4f4;
}

.cta-button {
    display: inline-block;
    background: #D32F2F; /* Primary Red */
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #B71C1C; /* Darker Red */
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.alt-bg {
    background-color: #FFEBEE; /* Very Light Red/Pink */
}

/* Problem Section */
#problem .problem-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 30px 0;
}

#problem .stat-item {
    flex-basis: 30%;
}

#problem .stat-item h3 {
    color: #D32F2F;
    font-size: 2rem;
}

/* Solution Section */
.solution-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Changed to flex-start to align content to the top */
}

.solution-text {
    flex: 2;
}

.solution-image {
    flex: 1;
    text-align: center;
}

.solution-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 350px; /* Adjust as needed */
    margin: 0 auto;
}

.solution-text ul li {
    margin-bottom: 1.2rem; /* Increased space between bullet points for better distinction */
    display: grid; /* Use CSS Grid for precise column alignment */
    /* Updated grid-template-columns:
       auto: for the icon (takes only necessary space)
       170px: for the bold title (fixed width to ensure consistent start for description)
       1fr: for the description (takes remaining space)
    */
    grid-template-columns: auto 170px 1fr;
    align-items: start; /* Align content to the top within each grid row */
    gap: 0 10px; /* Horizontal gap between columns */
    line-height: 1.5; /* Improve readability */
}

.benefit-icon {
    color: #D32F2F;
    font-size: 1.2em;
    grid-column: 1; /* Place the icon in the first column */
    padding-top: 2px; /* Small adjustment for vertical alignment */
}

.solution-text ul li strong {
    grid-column: 2; /* Place the bold title in the second column */
    color: #333; /* Ensure readability */
    /* Remove white-space: nowrap; if you added it previously, as the fixed column width handles overflow */
}

/* This targets the descriptive text (the <span> after the <strong>) */
.solution-text ul li span:last-of-type {
    grid-column: 3; /* Place the description in the third column */
    color: #555;
}


/* How It Works Section */
.how-it-works-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.step {
    flex-basis: 23%;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
#vision h2 {
    margin-bottom: 20px;
}
.vision-statement {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: #B71C1C; /* Darker Red */


    transition: transform 0.9s ease-out, box-shadow 0.9s ease-out;

}
.vision-statement:hover{

    transform: scale(1.05); /* Slightly enlarge on hover */

}
.step h3 {
    margin-top: 15px;
    font-size: 1.3rem;
}
.step-image-diagram {
    max-width: 50em; /* Adjust as needed */
    margin: 0 auto 15px auto;
    border: 1px solid #eee;
    border-radius: 4px;
}


/* Impact Section */
.impact-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.impact-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
#impact p:last-of-type { /* For the RTPS score line */
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #B71C1C;
}

/* Technology Section */
.tech-details p {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #D32F2F;
    border-radius: 4px;
}
.research-basis {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
}
.paper-link {
    font-weight: bold;
}

/* Future Section */
#future ul li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}
#future ul li::before {
    content: '→';
    color: #D32F2F;
    position: absolute;
    left: 0;
}


/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin-bottom: 0.3rem;
    color: #ccc;
}

/* Basic Responsiveness (add more specific media queries if needed) */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 10px;
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin: 5px 0;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .problem-stats, .solution-flex, .how-it-works-steps {
        flex-direction: column;
    }
    .step, .impact-item {
        margin-bottom: 20px;
    }
}

/* In your liptrac-styles.css file */

/* Problem Section - Stat Items */
#problem .stat-item {
    flex-basis: 30%;
    /* Add transition for smooth hover effect */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

#problem .stat-item:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* How It Works Section - Step Boxes */
.step {
    flex-basis: 23%;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    /* Add transition for smooth hover effect */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.step:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Impact Section - Impact Points */
.impact-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* Add transition for smooth hover effect */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.impact-item:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */

}


h2:hover{

        transform: scale(1.05); /* Slightly enlarge on hover */
}

/* No changes are needed for the Technology section details or Future section list items,
   as they are not typically styled with a box-like structure for this type of hover effect. */

/* In your liptrac-styles.css file */

/* Technology Section - Tech Details Paragraphs */
.tech-details p {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #D32F2F;
    border-radius: 4px;
    /* Add transition for smooth hover effect */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.tech-details p:hover {
     border-left: 6px solid #D32F2F;
    transform: scale(1.02); /* Slightly enlarge on hover (adjust value as desired) */
    box-shadow: 0 4px 15px rgba(100,0,0,0.1); /* Enhance shadow on hover */
}

/* ... (rest of your existing CSS) ... */