/* General Styling */
:root {
    --primary-navy: #36454F; /* Darker Navy for text and important elements */
    --light-navy-pastel: #AECAD6; /* Lighter Navy Pastel for accents */
    --white: #FFFFFF;
    --light-gray: #F8F8F8;
    --text-color: #333;
    --heading-color: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    color: var(--primary-navy);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.8em;
    color: var(--primary-navy);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--light-navy-pastel);
}

/* Hero Section */
#hero {
    background-color: var(--light-gray);
    padding: 100px 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(174,202,214,0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3.5em;
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

#hero p {
    font-size: 1.3em;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--light-navy-pastel);
    transform: translateY(-2px);
}

/* Sections General */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-of-type(even) {
    background-color: var(--light-gray);
}

section h2 {
    font-size: 2.8em;
    color: var(--heading-color);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--light-navy-pastel);
    border-radius: 2px;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-item h3 {
    color: var(--primary-navy);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-color);
    font-size: 1.1em;
}

/* About Section */
#about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 1.8;
}

/* Vision & Mission Section */
#vision-mission {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.vision-mission-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.vision-box, .mission-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.vision-box h3, .mission-box h3 {
    color: var(--primary-navy);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.vision-box p {
    font-size: 1.1em;
    line-height: 1.7;
}

.mission-box ul {
    list-style: none;
    padding-left: 0;
}

.mission-box ul li {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.mission-box ul li::before {
    content: '✓'; /* Checkmark icon */
    color: var(--light-navy-pastel);
    position: absolute;
    left: 0;
    font-weight: 700;
}


/* Demo Form Section */
#demo-form {
    background-color: var(--white); /* Changed to white for contrast */
}

#demo-form p {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-gray); /* Changed to light-gray for contrast */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: var(--light-navy-pastel);
    box-shadow: 0 0 0 3px rgba(174,202,214,0.3);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
    text-align: left;
}

.footer-info, .contact-info {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-info h3, .contact-info h3 {
    color: var(--white);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.footer-info p, .contact-info p {
    font-size: 1em;
    margin-bottom: 10px;
    line-height: 1.7;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--light-navy-pastel);
}

.copyright {
    font-size: 0.9em;
    margin-top: 20px;
    opacity: 0.8;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes (initially hidden) */
.fade-in-up,
.fade-in,
.slide-in-bottom,
.fade-in-left,
.fade-in-right,
.scale-in {
    opacity: 0;
    visibility: hidden;
}

/* Animations Triggered by JavaScript (will be added by Intersection Observer) */
.animated {
    visibility: visible;
}

.fade-in-up.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.animated {
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-bottom.animated {
    animation: slideInBottom 0.8s ease-out forwards;
}

.fade-in-left.animated {
    animation: slideInLeft 0.8s ease-out forwards;
}

.fade-in-right.animated {
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in.animated {
    animation: scaleIn 0.6s ease-out forwards;
}


/* Responsive Design */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.8em;
    }

    #hero p {
        font-size: 1.1em;
    }

    section h2 {
        font-size: 2.2em;
    }

    .service-grid, .vision-mission-content {
        grid-template-columns: 1fr;
        flex-direction: column; /* Ensure stacked on smaller screens */
    }

    .vision-box, .mission-box {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px 10px;
    }

    #hero {
        padding: 80px 0;
        min-height: auto;
    }

    #hero h1 {
        font-size: 2.2em;
    }

    #hero p {
        font-size: 1em;
    }

    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .service-item, .vision-box, .mission-box, .contact-form {
        padding: 30px;
    }

    .mission-box ul li {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    #hero h1 {
        font-size: 1.8em;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.6em;
    }

    .footer-info, .contact-info {
        margin: 15px 0;
    }
}