/* public/css/main.css */

/* --- 1. Root Variables & Global Styles --- */
:root {
    --primary-blue: #005A9C;
    --accent-blue: #4D8DC9;
    --neutral-bg: #FFFFFF;
    --light-grey-bg: #F8F9FA;
    --dark-text: #212529;
    --cta-gold: #D4A017;
    --footer-bg: #1c2331;
    --success-green-dark: #155724;
    --success-green-light: #d4edda;
    --success-green-border: #c3e6cb;
    --danger-red-dark: #721c24;
    --danger-red-light: #f8d7da;
    --danger-red-border: #f5c6cb;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--neutral-bg);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--cta-gold);
    color: white;
    border: 2px solid var(--cta-gold);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--cta-gold);
    color: var(--cta-gold);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.section-intro {
    max-width: 800px;
    margin: -20px auto 50px auto;
    text-align: center;
    color: #6c757d;
}

.no-data-message {
    text-align: center;
    color: #6c757d;
    padding: 40px;
    font-style: italic;
    width: 100%;
    grid-column: 1 / -1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.3s ease-in-out;
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.slider-viewport {
    transform: translateX(0);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 110px;
    height: 65px;
    object-fit: cover;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
}

.header.sticky .logo {
    color: var(--primary-blue);
}

.header:not(.sticky) .logo {
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header:not(.sticky) .nav-links a {
    color: white;
}

.header.sticky .nav-links a {
    color: var(--dark-text);
}

.header .nav-links a:hover {
    color: var(--cta-gold);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-links li:hover .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text) !important;
    white-space: nowrap;
}

.dropdown a:hover {
    background-color: var(--light-grey-bg);
    color: var(--primary-blue) !important;
}

.mobile-nav-toggle {
    display: none;
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.mobile-nav-toggle .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.header.sticky .mobile-nav-toggle .line {
    background-color: var(--primary-blue);
}

.mobile-nav-toggle .line-1 {
    top: 0;
}

.mobile-nav-toggle .line-2 {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav-toggle .line-3 {
    bottom: 0;
}

#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 42, 75, 0.98);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 25px;
}

.mobile-nav-links a {
    color: white;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

body.mobile-nav-active {
    overflow: hidden;
}

body.mobile-nav-active #mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

body.mobile-nav-active .line-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.mobile-nav-active .line-2 {
    opacity: 0;
}

body.mobile-nav-active .line-3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 82px;
    box-sizing: border-box;
    background-image: url('../img/con.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 42, 75, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons .btn {
    margin: 0 10px;
}

#mission-vision {
    background-color: var(--neutral-bg);
}

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

.principle-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 90, 156, 0.08);
    border-top: 4px solid var(--cta-gold);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 90, 156, 0.12);
}

.principle-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.principle-card h3 {
    margin-bottom: 20px;
}

.principle-card p {
    color: #555;
    text-align: center;
}

#services-detailed {
    background-color: var(--light-grey-bg);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:first-of-type {
    border-top: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--light-grey-bg);
}

.accordion-content ul {
    padding: 0px 40px 30px 40px;
    list-style-position: inside;
}

.accordion-content li {
    margin-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-content .small-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.stats-counter {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-item .label {
    color: #6c757d;
}

#projects {
    background-color: var(--light-grey-bg);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card.hidden {
    display: none;
}

.project-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 42, 75, 0.95) 0%, rgba(0, 42, 75, 0) 100%);
    padding: 30px;
}

.project-info {
    padding: 0 10px;
}

.project-category {
    background-color: var(--cta-gold);
    color: white;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.project-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.pagination-nav {
    width: 45px;
    height: 45px;
    background-color: white;
    color: var(--primary-blue);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination-nav:hover {
    background-color: var(--primary-blue);
    color: white;
}

.pagination-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #eee;
}

.page-indicator {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #555;
}

#leadership {
    background-color: var(--neutral-bg);
}

.team-slider-container {
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.leadership-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
}

.leader-card {
    flex: 0 0 31%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.leader-photo {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    filter: grayscale(80%);
    transition: all 0.4s ease;
}

.leader-card:hover .leader-photo {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.leader-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.leader-info h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.leader-info .title {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 0.95rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-blue);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.slider-nav.active {
    opacity: 1;
    visibility: visible;
}

.slider-nav:hover {
    background-color: var(--primary-blue);
    color: white;
}

.slider-nav.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed;
}

#prevBtn {
    left: -22px;
}

#nextBtn {
    right: -22px;
}

#contact {
    background-color: var(--light-grey-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--neutral-bg);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.contact-info {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: white;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: var(--cta-gold);
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-social-icons a {
    color: white;
    font-size: 1.3rem;
    margin-right: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-social-icons a:hover {
    opacity: 1;
}

.contact-form {
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: var(--dark-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .btn {
    padding: 15px 30px;
    width: 100%;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-messages {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSlideUp 0.5s ease forwards;
}

#form-messages.show {
    display: flex;
}

#form-messages i {
    font-size: 1.2rem;
}

#form-messages.success {
    background-color: var(--success-green-light);
    color: var(--success-green-dark);
    border: 1px solid var(--success-green-border);
}

#form-messages.error {
    background-color: var(--danger-red-light);
    color: var(--danger-red-dark);
    border: 1px solid var(--danger-red-border);
}

footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p,
.footer-col ul {
    list-style: none;
}

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col .social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    .logo span {
        font-size: 1.4rem;
    }
    .principles-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .leader-card {
        flex-basis: 48%;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        max-height: 350px;
    }
    .header .btn {
        display: none;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .logo span {
        font-size: 1.2rem;
    }
    .logo-img {
        width: 60px;
        height: 36px;
    }
    .header {
        padding: 15px 0;
    }
    h1 {
        font-size: 2.2rem;
    }
    section {
        padding: 60px 0;
    }
    .principles-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .leader-card {
        flex-basis: 65%;
    }
    .slider-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .stats-counter {
        flex-direction: column;
        gap: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
    .social-icons {
        text-align: center;
    }
    .about-content h2 {
        font-size: 28px !important;
    }
    .leadership-grid {
        transform: translateX(25px);
    }
}

@media (max-width: 576px) {
    .leader-card {
        flex-basis: 85%;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
} 