/* Reset */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none; /* flat navbar */
}

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

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #0a3d62;
    text-decoration: none;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #0a3d62;
    font-weight: 500;
}

nav a:hover {
    color: #0078d7;
}

/* Hero */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(to right, #4facfe, #00f2fe); /* light blue gradient */
    color: #fff;
}

.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero a {
    color: #fff !important;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); /* soft shadow for readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero p.subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* lighter shadow for subtitle */
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.hero-image img {
    max-width: 400px;   /* limit width on desktop */
    height: auto;
}

/* Buttons */
.cta-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background: #0078d7;
    color: #fff;
}

.btn-primary:hover {
    background: #005a9e;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #0078d7;
}

/* Sections */
.features, .products, .contact {
    padding: 4rem 2rem;
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f9f9f9;
    text-align: left;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Icons */
.icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Contact Form */
.form-group {
    margin-bottom: 1rem;
}

.input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #f1f1f1;
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-image {
        text-align: center;
    }

    .hero-image img {
        max-width: 250px;  /* smaller on mobile */
    }

    /* Features & Products Grid */
    .grid-3 {
        grid-template-columns: 1fr; /* stack to one column */
        gap: 1.5rem;
    }

    .card {
        text-align: center; /* center product cards on mobile */
    }

    .card img.icon {
        margin-left: auto;
        margin-right: auto;
    }
}