/* Variables for easy theme changing */
:root {
--color-light: #ffffff; /* Primary White Background */
--color-background: #f4f7f9; /* Light Gray Background (subtle) */
--color-accent-blue: #006ce0; /* Primary Blue Accent */
--color-text-dark: #333333; /* Dark Text/Black */
--color-text-light: #666666; /* Subdued Gray Text */
--color-border: #dddddd; /* Light Border */
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern, clean font */
}

body {
background-color: var(--color-background);
color: var(--color-text-dark);
line-height: 1.6;
}

/* Header and Navigation */
header {
background-color: var(--color-light);
padding: 15px;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
border-bottom: 1px solid var(--color-border);
margin-left: auto;
margin-right: auto;
width: 100%;
text-align: center;
}

.logo {
font-size: 1.8em;
font-weight: 700;
color: var(--color-accent-blue);
letter-spacing: 0.5px;
}

nav a {
color: var(--color-text-light);
text-decoration: none;
margin-left: 25px;
font-weight: 500;
transition: color 0.3s;
}

nav a:hover {
color: var(--color-accent-blue);
}

/* Call-to-Action Buttons */
.cta-button {
background-color: var(--color-accent-blue);
color: white;
border: none;
padding-top: 7px;
padding-right: 20px;
padding-bottom: 10px;
padding-left: 20px;
border-radius: 6px;
cursor: pointer;
font-size: 1em;
font-weight: 600;
transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
background-color: #002b66;
}

/* Hero Section */
.hero-section {
padding: 120px 5%;
text-align: center;
background-color: var(--color-light);
border-bottom: 5px solid var(--color-accent-blue); /* A bold blue underline */
}

.hero-section h1 {
font-size: 3.5em;
margin-bottom: 15px;
color: var(--color-text-dark);
font-weight: 800;
}

.hero-section p {
font-size: 1.3em;
color: var(--color-text-light);
margin-bottom: 40px;
}

/* Content Sections */
.content-section {
padding: 80px 5%;
margin: 40px auto;
background-color: var(--color-light);
border-radius: 10px;
max-width: 1200px;
box-shadow: var(--shadow-container-u50cb8, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
}

.content-section h2 {
color: var(--color-accent-blue);
font-size: 2em;
border-bottom: 3px solid #e9ecef; /* Light gray line */
padding-bottom: 15px;
margin-bottom: 30px;
}

/* Modal Styling (for the login form) */
.modal {
display: none; 
position: fixed; 
z-index: 10; 
left: 0;
top: 0;
width: 100%; 
height: 100%; 
overflow: auto; 
background-color: rgba(0,0,0,0.4); /* Dark overlay */
}

.modal-content {
background-color: var(--color-light);
margin: 10% auto; 
padding: 30px;
border: 1px solid var(--color-border);
width: 90%; 
max-width: 380px;
border-radius: 10px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
color: var(--color-text-dark);
text-align: center;
margin-bottom: 20px;
}

.close-button {
color: var(--color-text-light);
float: right;
font-size: 28px;
font-weight: lighter;
line-height: 1;
}

.close-button:hover,
.close-button:focus {
color: var(--color-accent-blue);
text-decoration: none;
cursor: pointer;
}


/* --- FEATURE GRID STYLING (New and Updated) --- */

/* Custom styling for the features grid layout */
.features-grid {
/* Override standard section padding for a more compact grid look */
padding: 60px 5%;
max-width: 1200px; /* Slightly wider max-width for the feature section */

display: grid;
/* Create three columns on large screens */
grid-template-columns: repeat(3, 1fr); 
gap: 30px; /* Space between the grid items */
}

/* Fixes for alignment: Force H2 and intro to span all columns and center */
.features-grid h2 {
grid-column: 1 / -1; /* Make the H2 span across all columns */
text-align: center; /* Center the main heading */
max-width: none;
}

.features-grid .section-intro {
grid-column: 1 / -1; /* Make the intro text span across all columns */
font-size: 1.1em;
color: var(--color-text-light);
text-align: center; /* Center the intro text */
max-width: 900px; /* Keep the intro text narrow for readability */
margin: -10px auto 40px auto; /* Adjust positioning below the H2 */
}

.features-grid .feature-item {
background-color: var(--color-background); /* Subtle gray background for separation */
padding: 25px;
border-radius: 8px;

box-shadow: var(--shadow-container-u50cb8, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
transition: transform 0.3s, box-shadow 0.3s;
height: 100%; /* Ensures all items in a row are the same height */
}

.features-grid .feature-item:hover {
transform: translateY(-5px); /* Lift effect on hover */
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.features-grid .feature-item h3 {
color: var(--color-accent-blue);
font-size: 1.4em;
margin-bottom: 10px;
/* Prevent the H3 in the feature item from getting the H2 border styling */
border-bottom: none; 
padding-bottom: 0;
}

.features-grid .feature-item p {
color: var(--color-text-light);
font-size: 0.95em;
}

/* Specific styling for the wide element (Data Sync/Security) */
.features-grid .full-width {
grid-column: 1 / -1; /* Make this item span all columns */
text-align: center;
padding: 30px;
background-color: #e6f0ff; /* Light blue background for emphasis */
border-color: var(--color-accent-blue);
}

.features-grid .full-width h3 {
margin-bottom: 5px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
.features-grid {
/* Switch to two columns on medium screens */
grid-template-columns: repeat(2, 1fr);
}
.hero-section h1 {
font-size: 2.2em;
}
}

@media (max-width: 1400px) {
.hero-section h1 {
font-size: 2.5em;
}
}

@media (max-width: 600px) {
.features-grid {
/* Stack all items vertically on small screens */
grid-template-columns: 1fr;
}
.hero-section h1 {
font-size: 2.0em;
}
}

.imgIcon {
padding-right: 7px;
vertical-align: middle;
height: 25px;
padding-bottom: 3px;
}