/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { 
    --primary: #004a99; 
    --secondary: #ffd700; 
    --nav-bg: #151829;    
    --bg-light: #f8f9fa; 
    --bg-warm: #FAF3E0;   
    --text: #333; 
    --white: #fff; 
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 70px; 
}

body { 
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    overflow-x: hidden; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-20 { margin-top: 20px; }
.text-white { color: var(--white) !important; }
.text-center { text-align: center; margin-bottom: 50px; }

/* --- Navbar & Mobile Menu --- */
.navbar { 
    background: var(--nav-bg); 
    padding: 12px 0; 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); 
    border-bottom: 1px solid rgba(255, 215, 0, 0.2); 
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar .logo img { max-height: 40px; width: auto; display: block; }

/* FIXED: Menu Toggle Visibility */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    z-index: 2100;
    width: 30px;   /* Added width */
    height: 30px;  /* Added height */
}

.menu-toggle span {
    display: block; /* Ensure spans render as blocks */
    width: 100%;    /* Spans fill the 30px width */
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links { display: flex; list-style: none; }
.nav-links li a { 
    text-decoration: none; 
    color: var(--white); 
    margin-left: 15px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: 0.3s; 
}
.nav-links li a:hover { color: var(--secondary); }

/* --- Hero --- */
.hero { height: 80vh; background: url('assets/images/hero2.jpg') no-repeat center center/cover; color: var(--white); }
.hero-overlay { background: rgba(0,0,0,0.6); width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; max-width: 800px; }

/* --- Sections & Text --- */
.section { padding: 60px 0; background-color: var(--bg-light); } 
.bg-warm { background-color: var(--bg-warm) !important; }

.section-title { 
    font-size: 2.2rem; 
    color: var(--primary); 
    margin-bottom: 20px !important; 
}

.text-content p, 
.services-content p, 
.spread-text p {
    text-align: justify;
    margin-bottom: 15px;
}

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.reverse .text-content { order: 2; }

/* --- Image Content --- */
.image-content img { 
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    display: block;
}

/* --- Competence Grid --- */
.competence-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.competence-grid .card:nth-child(-n+3) { grid-column: span 4; }
.competence-grid .card:nth-child(n+4) { grid-column: span 3; }

.card { background: var(--white); padding: 15px; text-align: center; border-radius: 12px; border: 1px solid #eee; transition: 0.3s; }
.card img { width: 100%; height: 180px; margin-bottom: 15px; border-radius: 10px; object-fit: cover; }
.card p { font-weight: 700; color: #000; text-transform: uppercase; font-size: 0.85rem; }

/* --- Gallery --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 15px; 
    width: 100%;
}

.gallery-item { 
    height: 250px; 
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.gallery-item:hover img { transform: scale(1.05); }

/* --- Lists --- */
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; list-style: none; }
.values-list li::before { content: '-'; color: var(--primary); font-weight: bold; margin-right: 10px; }

.dash-list { list-style: none; padding-left: 0; }
.dash-list li { position: relative; padding-left: 15px; }
.dash-list li::before { content: "-"; position: absolute; left: 0; }

footer { background: #151829; color: #fff; text-align: center; padding: 15px 0; font-size: 0.9rem; }

/* --- Responsive Updates --- */

@media (max-width: 992px) {
    .menu-toggle { 
        display: flex; 
        margin-right: -10px; /* <--- Add this line. Adjust the number as needed. */

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 20px;
        text-align: center;
        border-bottom: 3px solid var(--secondary);
        z-index: 1500;
    }
    .nav-links.active { display: flex !important; }
    .nav-links li { margin: 10px 0; }
    .nav-links li a { font-size: 1.1rem; margin: 0; }
}

@media (max-width: 768px) {
    /* Reduced Home Page Heading */
    .hero { height: 60vh; }
    .hero h1 { font-size: 1.5rem; margin-bottom: 10px; }
    .hero p { font-size: 0.9rem; }

    /* Change Grid to Flex for reordering */
    .grid-2 { 
        display: flex; 
        flex-direction: column; 
        gap: 30px; 
    }

    /* Target About Us: Image above Text */
    #about .image-content { order: 1; }
    #about .text-content { order: 2; }
    
    .reverse { flex-direction: column; }
    .reverse .text-content { order: 2; }
    .reverse .image-content { order: 1; }

    .section-title { font-size: 1.8rem; text-align: center; }
    
    .text-content p, .services-content p, .spread-text p {
        text-align: justify;
        word-wrap: break-word;
    }

    .image-content img {
        max-width: 100% !important;
        height: auto;
        margin: 0 auto;
    }

    .competence-grid { grid-template-columns: 1fr; }
    .competence-grid .card:nth-child(-n+3),
    .competence-grid .card:nth-child(n+4) {
        grid-column: auto;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 220px; }

    #contact iframe { width: 100%; min-width: 100%; height: 300px; }
}