:root {
    --primary: #20376C;
    --primary-dark: #20376C;
    --secondary: #F06E22;
    --secondary-dark:#F06E22;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
    padding-top: 90px; /* Space for fixed header */
}

h1, h2, h3, h4, h5 {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

/* ================== HEADER & NAVIGATION ================== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: 60px;
    margin-right: 15px;
    background: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 32px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--white);
    line-height: 1.2;
}

.logo-text span {
    color: var(--secondary);
    font-size: 0.7rem; /* Made smaller */
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: 30px;
    display: block;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}



/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 15px;
    top: 100%;
    left: 0;
}

.dropdown-content .categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dropdown-content .category-btn {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.dropdown-content .category-btn.active, .dropdown-content .category-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

nav ul li:hover .dropdown-content {
    display: block;
}

/* ================== FLOATING ACTION BUTTON ================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.floating-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ================== HERO SLIDESHOW ================== */
.hero-slideshow {
    height: 90vh;
    position: relative;
    overflow: hidden;
    margin-top: -90px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 0 20px;
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slide-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slide-indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

/* ================== ABOUT SECTION ================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    text-align: justify;
}

.values-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-style: solid;
    border-color: var(--primary);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}
.value-card p{
    text-align: justify;
}
.value-card p{
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-image {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-image: url(Images/ughe.png);
    display: flex;
    align-items: center;
    text-shadow: 2px 2px #e67e22;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background-size: cover;      /* Scale image to cover the whole div */
      background-position: center; /* Keep image centered */
      background-repeat: no-repeat;
}

/* ================== SERVICES SECTION ================== */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: auto; /* Changed to auto for smaller height */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--primary);
    color: white;
    gap: 15px;
}

.service-header i {
    font-size: 2rem;
    flex-shrink: 0;
}

.service-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.service-content {
    padding: 20px;
}

.service-content p {
    text-align: justify;
}

/* ================== PROJECTS SECTION ================== */
.projects-controls {
    display: none; /* Now handled in dropdown */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-img {
    width: 100%;  /* Make sure div has width */
    height: 200px;
    background: linear-gradient(45deg, var(--primary), #012335);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide extra parts if image overflows */
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or 'contain' depending on need */
}


.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.project-content p {
    color: var(--gray);
    margin-bottom: 15px;
    text-align: justify;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.project-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status.completed {
    background: white;
    color: var(--secondary);
}

.status.ongoing {
    background: #fff8e1;
    color: var(--secondary);
}

/* ================== MODAL ================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--dark);
}

.modal-image {
    height: 300px;
    background: var(--primary);
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.modal-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-item {
    margin-bottom: 15px;
    display: flex;
}

.detail-label {
    font-weight: 600;
    width: 150px;
    color: var(--dark);
}

/* ================== OTHER SECTIONS ================== */
.management {
    background: linear-gradient(to right, var(--dark), #20376C);
    color: white;
}

.management .section-title h2 {
    color: white;
}

.management-card {
    background:#20376C;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.management-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--dark);
    flex-shrink: 0;
}
.management-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* or 'contain' depending on need */
}

.management-info h3 {
    color: white;
    margin-bottom: 10px;
}

.management-info p {
    text-align: justify;
}

.position {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}



.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.3s;
}


.partner-logo {
    height: 60px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom:10px ;
}
.partner-logo img{
    width: 100%;
    height: 100%;
    object-fit:fill; 
    
}

.partner-card:hover {
    transform: scale(1.05);
}

.partners-grid a{
  text-decoration:  none;
}

.partner-card h4 {
    color: var(--primary);
    font-size: 0.6rem;
}

.contact {
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

footer {
    background: #20376C;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 992px) {
    .about-content,
    .services-grid,
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .values-mission {
        grid-template-columns: repeat(2, 1fr);
    }

    .management-card {
        flex-direction: column;
        text-align: center;
    }

    .management-img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    nav ul {
        position: fixed;
        top: 90px;
        left: 0;
        background: var(--primary-dark);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        border-radius: 0;
        padding: 15px;
        display: block;
    }
    
    /* Dropdown for mobile */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    nav ul li:hover .dropdown-content {
        display: none;
    }
    
    nav ul li.active-dropdown .dropdown-content {
        display: block;
    }

    .slide h1 {
        font-size: 2.5rem;
    }

    .slide p {
        font-size: 1.2rem;
    }

    .values-mission {
        grid-template-columns: 1fr;
    }

    .projects-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .hero-btns {
        flex-direction: column;
    }
    
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 50px;
        width: 50px;
        font-size: 24px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        padding: 15px;
    }
    
    .service-header i {
        font-size: 1.5rem;
    }
    
    .service-header h3 {
        font-size: 1.1rem;
    }
}