/* ---------------------------------------------------
   Global Styles
--------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #222;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.section {
    padding: 70px 12%;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #154c79;
}

/* ---------------------------------------------------
   Navbar
--------------------------------------------------- */

.navbar {
    width: 100%;
    padding: 15px 12%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 45px;
    height: auto;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #154c79;
}

.navbar nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #154c79;
    font-weight: 600;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #0d6efd;
}

.dark-toggle {
    margin-left: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.4rem;
}

/* ---------------------------------------------------
   Hero Section
--------------------------------------------------- */

.hero {
    text-align: center;
    padding: 150px 12% 100px;
}

.hero-logo {
    width: 120px;
    margin-bottom: 25px;
}

.hero-banner {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 2.6rem;
    color: #154c79;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 25px;
}

.hero-buttons {
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 8px;
    transition: 0.3s;
}

.btn-primary {
    background: #154c79;
    color: #fff;
}

.btn-primary:hover {
    background: #0d6efd;
}

.btn-secondary {
    background: #ffffff;
    border: 2px solid #154c79;
    color: #154c79;
}

.btn-secondary:hover {
    background: #154c79;
    color: #fff;
}

/* ---------------------------------------------------
   Directors Section
--------------------------------------------------- */

.director-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.director-card {
    width: 280px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.director-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.director-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    background: #ddd;
}

/* ---------------------------------------------------
   Cards (Services & Projects)
--------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.card h3 {
    color: #154c79;
    margin-bottom: 12px;
}

.card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #dfe6f1; /* fallback color before image loads */
}

/* ---------------------------------------------------
   Contact Section
--------------------------------------------------- */

#contact p {
    font-size: 1.1rem;
    margin: 8px 0;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

footer {
    text-align: center;
    padding: 20px;
    background: #154c79;
    color: white;
    margin-top: 40px;
}

/* ---------------------------------------------------
   Fade In Animation
--------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------
   Projects – Tabs & Icons
--------------------------------------------------- */

.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #154c79;
    background: #ffffff;
    color: #154c79;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.project-tab:hover {
    background: #154c79;
    color: #ffffff;
}

.project-tab.active {
    background: #154c79;
    color: #ffffff;
}

.project-grid .project-card {
    position: relative;
}

.project-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.project-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3fa;
    color: #154c79;
    font-weight: 600;
}

/* ---------------------------------------------------
   Project Animations
--------------------------------------------------- */

/* Fade + Slide In Animation */
@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card {
    animation: projectFadeIn 0.4s ease forwards;
    transition: 0.3s ease;
}

/* Smooth Filter Transition */
.project-card.hide {
    opacity: 0 !important;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
}

/* Enhanced Card Hover Animation */
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 14px 25px rgba(0,0,0,0.15);
}


/* ---------------------------------------------------
   Dark Mode
--------------------------------------------------- */

body.dark {
    background: #1a1a1a;
    color: #f1f1f1;
}

body.dark .navbar {
    background: #111111cc;
    border-bottom: 1px solid #333;
}

body.dark .nav-title,
body.dark .navbar nav a {
    color: #e2e2e2;
}

body.dark .navbar nav a:hover {
    color: #0d6efd;
}

body.dark .director-card,
body.dark .card {
    background: #222;
    border: 1px solid #444;
}

body.dark footer {
    background: #0d2f4b;
}

.btn-secondary.dark {
    background: #333;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */

@media (max-width: 768px) {
    .navbar {
        padding: 12px 5%;
    }

    .section {
        padding: 60px 8%;
    }

    .hero-title {
        font-size: 2rem;
    }
}

