html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px; /* must be >= navbar height */
}

.nav-links {
    margin-left: auto;
}

/* ========== GLOBAL STYLES ========== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #333;
}

p {
    text-align: justify;
}

/* ========== HEADER (TOP-LEFT LOGO) ========== */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
    margin-right: 12px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: bold;
}

/* ========== NAVIGATION (MODERN UI) ========== */
.nav-links a {
    color: white;
    margin-left: 20px;
    padding: 6px 14px;
    text-decoration: none;       /* remove underline */
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Optional active link */
.nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
}

/* ========== SECTIONS ========== */
section {
    padding: 40px;
    max-width: 900px;
    margin: auto;
}

h2 {
    color: #0d47a1;
    margin-bottom: 20px;
}

/* ========== FORMS ========== */
form {
    display: flex;
    flex-direction: column;
}

form input,
form textarea,
form select {
    margin: 10px 0;
    padding: 10px;
    font-size: 1rem;
}

button {
    background: #0d47a1;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: #08306b;
    transform: translateY(-1px);
}

/* ========== TEAM SECTION (FULL IMAGE, NO CROP) ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.team-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* IMAGE CONTAINER */
.team-image {
    width: 100%;
    background: #f0f2f5; /* clean background for portrait images */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* FULL IMAGE — NO CROPPING */
.team-image img {
    width: 100%;
    height: auto;              /* keeps full 1414x2000 ratio */
    max-height: 420px;         /* controls card height */
    object-fit: contain;       /* IMPORTANT: shows whole image */
}

/* TEXT CONTENT */
.team-content {
    padding: 18px;
    text-align: center;
}

.team-content h3 {
    margin: 10px 0 5px;
    color: #0d47a1;
}

.team-content p {
    font-size: 0.9rem;
    color: #555;
}


/* ========== FOOTER ========== */
footer {
    background: #222;
    color: white;
    padding: 20px;
}

.footer-content {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-content a {
    color: #90caf9;
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0d47a1;
}

.service-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-tags {
    font-size: 0.8rem;
    color: #1565c0;
    font-weight: 500;
}
/* ========== FEATURED PROJECTS SECTION ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0d47a1;
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-tags {
    font-size: 0.8rem;
    color: #1565c0;
    font-weight: 500;
}
/* ========== CONTACT SECTION ========== */
#contact p {
    max-width: 700px;
    margin-bottom: 30px;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d47a1;
}

.submit-btn {
    width: 100%;
    background: #0d47a1;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #08306b;
    transform: translateY(-1px);
}

/* CONTACT INFO BOX */
.contact-info {
    background: #f0f4fa;
    padding: 25px;
    border-radius: 14px;
}

.contact-info h3 {
    margin-top: 0;
    color: #0d47a1;
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE SIDEBAR NAVIGATION ========== */
.menu-toggle {
    display: none;
    margin-left: auto;   /* <-- ADD THIS LINE */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}


/* Close button inside sidebar */
.close-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    align-self: flex-end;
    margin: 10px 20px;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(260px, 80vw);
        background: linear-gradient(135deg, #0d47a1, #1565c0);
        display: flex;
        flex-direction: column;
        padding-top: 12px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        border-left: 1px solid rgba(255,255,255,0.15);
    }

    .nav-links.show {
        transform: translateX(0);
    }

    .close-menu {
        display: block;
    }
}

/* ========== SIDEBAR VISUAL POLISH ========== */
@media (max-width: 768px) {
    .nav-links {
        box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    }

    .nav-links::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: rgba(255,255,255,0.08);
        pointer-events: none; /* ✅ THIS FIXES IT */
    }


    .nav-links a {
        font-size: 1.05rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
}
@media (max-width: 768px) {
    .nav-links a {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.show a {
        opacity: 1;
        transform: translateX(0);
    }

    /* stagger effect */
    .nav-links.show a:nth-child(2) { transition-delay: 0.05s; }
    .nav-links.show a:nth-child(3) { transition-delay: 0.1s; }
    .nav-links.show a:nth-child(4) { transition-delay: 0.15s; }
    .nav-links.show a:nth-child(5) { transition-delay: 0.2s; }
}
.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 12px 20px;
    align-self: flex-end;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.close-menu:hover {
    opacity: 1;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 260px); /* sidebar width */
    height: 100vh;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1500;
}

.nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
