/* --- SMOOTH SCROLLING --- */
html {
    scroll-behavior: smooth;
}

/* Reset and Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #333; }

/* --- COLORS --- */
:root {
    --primary: #00509d;       /* Strong Royal Blue */
    --primary-dark: #00296b;  /* Navy Blue */
    --accent: #00b4d8;        /* Bright Cyan */
    --light-bg: #f0f8ff;      /* Alice Blue */
    --white: #ffffff;
    --nav-text: #00296b;      /* Dark blue for nav links */
}

/* Typography */
h1, h2, h3, .logo { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; } /* Prevents images from overflowing screen */

/* --- NAVBAR --- */
.navbar { 
    background: var(--white); 
    padding: 0.5rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 90%; 
    margin: auto; 
    max-width: 1100px; 
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a { 
    color: var(--nav-text); 
    margin-left: 20px; 
    font-weight: 700; 
    font-size: 1rem; 
    transition: 0.3s;
}
.navbar nav a:hover { color: var(--accent); }

.btn-nav { 
    background: var(--primary); 
    padding: 10px 20px; 
    border-radius: 5px; 
    color: var(--white) !important; 
    transition: 0.3s; 
}
.btn-nav:hover { background: var(--accent); }

/* --- HERO SECTION --- */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax for Desktop */
    min-height: 85vh; /* Changed from fixed height to min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
    padding-top: 60px; /* Space for the logo */
    padding-bottom: 60px;
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 41, 107, 0.7); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; width: 100%; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; }

/* Buttons */
.btn-main {
    background: var(--accent);
    color: var(--white);
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transition: transform 0.2s ease;
    display: inline-block;
}
.btn-main:hover { background: #0096c7; transform: translateY(-3px); }
.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-block;
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* Sections */
.section { padding: 80px 20px; }
.container { max-width: 1100px; margin: auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-dark); }
.section-title-left { text-align: left; font-size: 2.5rem; margin-bottom: 20px; color: var(--white); }

/* Services Grid */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transition: 0.3s; }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; text-align: center; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary); }

/* About Section */
.bg-blue { background: var(--primary); color: var(--white); }
.about-container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 50px; }
.about-image-wrapper { flex: 1; min-width: 300px; text-align: center; }
.profile-pic { 
    width: 300px; 
    height: 300px; 
    object-fit: cover; 
    object-position: top; 
    border-radius: 50%; 
    border: 5px solid var(--accent); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}
.about-text { flex: 1; min-width: 300px; }

/* Contact Section */
.contact-container { text-align: center; }
.contact-box { background: var(--light-bg); border: 2px solid var(--primary); display: inline-block; padding: 40px; border-radius: 10px; margin-top: 20px; max-width: 100%; }
.contact-box p { font-size: 1.2rem; margin: 10px 0; color: var(--primary-dark); word-wrap: break-word; }

/* Footer */
footer { background: var(--primary-dark); color: var(--white); text-align: center; padding: 25px; margin-top: auto; border-top: 4px solid var(--accent); }

/* --- MOBILE RESPONSIVENESS (The Important Part) --- */
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    
    /* 1. Stack the Navbar */
    .navbar .container { 
        flex-direction: column; 
        text-align: center; 
    }
    .navbar nav { 
        flex-direction: column; 
        width: 100%;
        margin-top: 15px; 
        gap: 15px; 
    }
    .navbar nav a { 
        margin-left: 0; 
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 5px 0;
    }
    .btn-nav {
        width: 100%; 
        max-width: 300px;
    }

    /* 2. Fix Hero Section */
    .hero {
        background-attachment: scroll; 
        padding: 40px 20px;
    }
    .hero h1 { 
        font-size: 2rem; /* Slightly smaller for better fit */
    }
    .hero p {
        font-size: 1.1rem;
    }

    /* 3. Section Spacing */
    .section { padding: 50px 20px; }
    .section-title, .section-title-left { 
        font-size: 2rem; 
        text-align: center; 
    }

    /* 4. About Section */
    .about-container { flex-direction: column; }
    .about-text { text-align: center; }
    .profile-pic {
        width: 250px; 
        height: 250px;
    }

    /* 5. Contact Box Fixes (Long Text Solution) */
    .contact-box { 
        padding: 20px 10px; /* Reduced side padding to give text more room */
        width: 100%; 
    }
    
    .contact-box p { 
        font-size: 0.95rem; /* Slightly smaller font */
        word-wrap: break-word; /* Forces text to wrap safely if still too long */
        line-height: 1.4;
        margin-bottom: 15px; /* Adds space between the stacked items */
    }

    /* CRITICAL FIX: Stacks the label on top of the value */
    .contact-box strong {
        display: block; /* Puts "Email:" on its own line */
        margin-bottom: 2px; /* Small gap between label and value */
        color: var(--primary); /* Makes the label pop */
    }
}