/* ==========================
   GLOBAL STYLING
========================== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #f5f8fa, #e6ecf0);
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================
   HEADER & NAVIGATION
========================== */

header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

/* UPDATED LOGO STYLING */
header .logo {
    max-height: 80px;    /* limits logo size */
    width: auto;         /* maintains proportions */
    display: block;      /* needed for margin auto */
    margin: 0 auto 10px auto; /* centers logo and adds bottom spacing */
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

header nav a {
    margin: 0 15px;
    font-weight: bold;
    color: #000;
}

header nav a:hover {
    color: #0074d9;
}

/* ==========================
   HERO SECTION (ALL PAGES)
========================== */

.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); /* overlay for text visibility */
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ==========================
   BUTTONS
========================== */

.btn {
    background-color: #0074d9;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #005bb5;
}

/* ==========================
   SECTIONS
========================== */

.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* ==========================
   CARDS (FOR SERVICES / WHY CHOOSE US)
========================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ==========================
   GALLERY (OUR WORK)
========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ==========================
   FOOTER
========================== */

footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
}
footer .social-links {
    margin-top: 10px;
    font-size: 14px;
}

footer .social-links a {
    color: #0074d9;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #005bb5;
}

/* ==========================
   MOBILE RESPONSIVENESS
========================== */

@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
    }

    header nav a {
        margin: 5px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}
