* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: #0a2540;
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #00d4ff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #00d4ff;
}

/* Hero Section (Home) */
.hero {
    background: linear-gradient(rgba(10,37,64,0.7), rgba(10,37,64,0.7)), url('images/background.jpeg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    background: #00d4ff;
    color: #0a2540;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #00a3cc;
    color: white;
}

/* General Page Layout */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #0a2540;
    font-size: 2.2rem;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;       /* Fills the card width completely without restriction */
    height: 380px;
    background: #ddd;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 15px;
    color: #0a2540;
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #0a2540;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #0a2540;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}
/* ==========================================
   RESPONSIVE DESIGN FOR ALL DEVICES
   ================================          */

/* For Tablets and Medium Screens (Screens 992px wide and down) */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* For Mobile Phones (Screens 768px wide and down) */
@media (max-width: 768px) {
    /* Stack the navigation header neatly */
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 15px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Adjust Hero section for mobile */
    .hero {
        height: 50vh;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Shrink product image height so it fits mobile screens nicely */
    .product-img {
        height: 220px;
    }

    /* Make contact form fit mobile screen edges */
    .contact-form {
        padding: 20px;
        margin: 0 10px;
    }

    /* General container padding adjustment */
    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}