:root {
    --primary: #4A90E2;
    --dark-bg: #101827;
    --card-bg: #1f2937;
    --text-light: #f3f4f6;
    --text-dim: #9ca3af;
}

.menu-toggle {
    font-size: 35px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--dark-bg); color: var(--text-light); line-height: 1.6; overflow-x: hidden; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 5%;
    background: rgba(16, 24, 39, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.logo { 
    font-weight: bold; 
    font-size: 2.5rem; 
    color: var(--primary);
    position: absolute;
    left: 5%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    vertical-align: middle;
}

.logo a {
    display: inline-block;
    line-height: 0;
}

.logo span {
    white-space: nowrap;
    margin-left: 10px;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    justify-content: center;
}

.nav-links a { 
    text-decoration: none; 
    color: white; 
    font-size: 1.5rem; 
    font-weight: 600; 
    transition: 0.3s; 
    white-space: nowrap;
}

.menu-toggle, .burger {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #101827 0%, #1a2844 100%);
    border-top: 2px solid var(--primary);
    z-index: 999;
}

.dropdown-menu.active {
    display: flex;
    flex-direction: column;
}

.dropdown-menu ul {
    list-style: none;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.dropdown-menu li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    text-align: center;
    font-size: 1.1rem;
}

.dropdown-menu a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 5%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, #1e293b, #101827);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content { flex: 1; max-width: 650px; }
.badge { background: rgba(255,255,255,0.1); padding: 5px 15px; border-radius: 20px; font-size: 1.1rem; }
.hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin: 25px 0; line-height: 1.1; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.3rem; color: var(--text-dim); margin-bottom: 30px; }

.btn-solid, .btn-outline {
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-solid { background: var(--primary); border: none; color: white; }
.btn-outline { background: transparent; border: 1px solid var(--text-dim); color: white; }

/* Hero Collage */
.collage-container {
    flex: 1.3;
    position: relative;
    height: 480px;
    border-radius: 35px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.5);
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
    transition: transform 0.4s ease;
}

.collage-item:hover img { 
    transform: scale(1.05); 
    filter: brightness(0.8); 
}

.item-1 { grid-column: span 2; grid-row: span 2; } 
.item-5 { grid-column: span 1; grid-row: span 2; } 
.item-7 { grid-column: span 2; grid-row: span 1; } 

/* About/Disciplines Section */
.diva { 
    padding: 80px 5% 20px; 
    text-align: center;
}

.diva h2 {
    font-size: 50px;
}

.text2 { 
    color: var(--text-dim); 
    max-width: 900px; 
    font-size: 1.3rem; 
    margin: 0 auto;
}

.disciplines-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 5%;
    max-width: 2200px;
    margin: 0 auto;
}

.card {
    flex: 0 1 calc(23%);
    min-width: 280px;
    height: 450px;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.card-civil { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/Civil.jpg'); }
.card-structural { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/Structural2.0.jpg'); }
.card-electronical { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/Electronical1.jpg'); }
.card-electrical { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/Electrical.jpg'); }
.card-mechanical { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/Mechanical.jpg'); }
.card-fire { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/Fire.jpg'); }
.card-wet { background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent), url('../Images/WET.jpg'); }

.info-button {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--primary);
    padding: 12px 20px;
    border-radius: 5px;
    width: fit-content;
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Footer */
.socials { 
    text-align: center; 
    padding: 60px 5%; 
    background: #0b0f1a; 
    border-top: 1px solid #1f2937; 
}

.socials p {
    font-size: larger;
}

.socials a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: bold;
    font-size: x-large;
}

.social { 
    margin-top: 25px; 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    align-items: center; 
}

.social i { 
    color: var(--primary); 
    font-size: 2rem; 
}

#backToTop { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: large;
}

/* Responsive */
@media (max-width: 1200px) {
    .card { flex: 0 1 calc(50% - 20px); }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none !important;
    }
    
    .dropdown-menu {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        background: none !important;
        flex: none !important;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .hero-wrapper { flex-direction: column; text-align: center; }
    .nav-links { display: none; }
    .card { flex: 0 1 100%; }
}
