/* ==================================================
   GLOBAL STYLES
   ================================================== */

/* Remove default browser spacing */
*{
    scroll-behavior: smooth;
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* Site-wide typography and colors */
body{
    font-family: Arial, Helvetica, sans-serif;
    line-height:1.6;
    color:#333;
    background-color:#f4f4f4;
}

/* Consistent content width */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ==================================================
   HEADER
   ================================================== */

header{
    background:#0b1f33;
    color:white;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 5px rgba(0,0,0,.2);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1rem 0;
}

.logo{
    font-size:1.8rem;
    font-weight:bold;
    letter-spacing:1px;
}

/* Navigation links */
.nav-links{
    display:flex;
    list-style:none;
    gap:2rem;
}

.nav-links a{
    text-decoration:none;
    color:white;
    transition:.3s;
}

.nav-links a:hover{
    color:#c9d6e3;
}

/* Mobile menu button */
.menu-toggle{
    display:none;
    font-size:2rem;
    cursor:pointer;
}

/* ==================================================
   HERO SECTION
   ================================================== */

.hero{
    background:
        linear-gradient(rgba(0,0,0,.65),
        rgba(0,0,0,.65)),
        url("./assets/background.jpg");
    background-size:cover;
    background-position:center;
    color:white;
    text-align:center;
    padding:120px 20px;
}

.hero h1{
    font-size:3rem;
    margin-bottom:1rem;
}

.hero p{
    max-width:750px;
    margin:auto;
    font-size:1.1rem;
}

.btn{
    display:inline-block;
    margin-top:2rem;
    background:#1d4f91;
    color:white;
    padding:12px 24px;
    text-decoration:none;
    border-radius:5px;
    transition:.3s;
}

.btn:hover{
    background:#143a69;
}

/* ==================================================
   SERVICES SECTION
   ================================================== */

.services{
    padding:80px 0;
    background:white;
}

.services h2{
    text-align:center;
    margin-bottom:50px;
    color:#0b1f33;
}

/* Service card layout */
.service-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.service-card{
    background:#f8f9fb;
    padding:30px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-5px);
}

.service-card h3{
    margin-bottom:15px;
    color:#0b1f33;
}

/* ==================================================
   ABOUT SECTION
   ================================================== */

.about{
    background:#e9eef4;
    padding:80px 0;
}

.about-content{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.about h2{
    margin-bottom:20px;
    color:#0b1f33;
}

/* ==================================================
   CONTACT SECTION
   ================================================== */

.contact{
    padding:80px 0;
    background:white;
}

.contact h2{
    text-align:center;
    margin-bottom:30px;
    color:#0b1f33;
}

.contact-info{
    text-align:center;
    font-size:1.1rem;
}

/* ==================================================
   FOOTER
   ================================================== */

footer{
    background:#0b1f33;
    color:white;
    text-align:center;
    padding:20px;
}

/* ==================================================
   TABLET RESPONSIVE DESIGN
   ==================================================
   Activated at widths 992px and below
   ================================================== */

@media (max-width: 992px){

    .hero h1{
        font-size:2.5rem;
    }

    /* Show two cards per row on tablets */
    .service-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* ==================================================
   MOBILE RESPONSIVE DESIGN
   ==================================================
   Activated at widths 768px and below
   ================================================== */

@media (max-width:768px){

    /* Show menu button */
    .menu-toggle{
        display:block;
    }

    /* Hidden mobile menu */
    .nav-links{
        display:none;
        flex-direction:column;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#0b1f33;
        text-align:center;
        padding:1rem 0;
    }

    /* Shown when JavaScript adds active class */
    .nav-links.active{
        display:flex;
    }

    .hero{
        padding:80px 20px;
    }

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    /* Single column cards for mobile */
    .service-grid{
        grid-template-columns:1fr;
    }
}