/* ========================
   GLOBAL
======================== */
html, body {
    background-color: #302f2f;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 0;
}

h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 3px;
    background: rgb(198, 80, 16);
    border-radius: 10px;
}

/* ========================
   NAVBAR
======================== */
.navBar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 200px;
    background-color: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: background-color 0.5s ease;
}

.navBar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

.logo {
    flex: 1;
}

.logo img {
    height: 60px;
    width: auto;
    display: flex;
    align-items: center;
}

.navLinks {
    display: flex;
    gap: 80px;
    justify-content: center;
    flex: 1;
}

.navLinks a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    white-space: nowrap;
}

.navLinks a:hover {
    color: rgb(198, 80, 16);
}

.language {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    flex: 1;
    justify-content: flex-end;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
    background: white;
    color: black;
    font-weight: bold;
}

/* ========================
   HERO
======================== */
.hero {
    height: 100vh;
    margin-top: 0;
    background: url("images/hero.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%       { transform: translate(-50%, 10px); }
}

/* ========================
   FULL SECTIONS
======================== */
.full-section {
    background-color: #302f2f;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
    position: relative;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.full-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   ABOUT SECTION
======================== */
.about-vision-section {
    background: white;
    padding: 0;
    display: block;
    text-align: left;
    min-height: unset;
}

.about-b-wrap {
    width: 100%;
}

.about-b-top {
    padding: 70px 200px 50px;
    background: #5a5a5a;
}

.about-b-overtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgb(198, 80, 16);
    margin: 0 0 16px 0;
}

.about-b-heading {
    font-size: 28px;
    font-weight: 600;
    color: white;
    line-height: 1.35;
    max-width: 620px;
    margin: 0 0 20px 0;
    display: block;
    padding-bottom: 0;
}

.about-b-heading::after {
    display: none;
}

.about-b-body {
    font-size: 16px;
    color: #b9b8b8;
    line-height: 1.8;
    max-width: 680px;
    margin: 0;
}

.about-b-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #302f2f;
}

.about-b-stat {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.about-b-stat:last-child {
    border-right: none;
}

.about-b-num {
    font-size: 40px;
    font-weight: 600;
    color: rgb(198, 80, 16);
    line-height: 1;
    margin-bottom: 8px;
}

.about-b-desc {
    font-size: 12px;
    color: #b9b8b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-b-vision {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 200px;
    background: #5a5a5a;
    border-top: 1px solid #5a5a5a;
}

.about-b-vision-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgb(198, 80, 16);
    white-space: nowrap;
    flex-shrink: 0;
}

.about-b-vision-divider {
    width: 1px;
    height: 36px;
    background: #ccc;
    flex-shrink: 0;
}

.about-b-vision-text {
    font-size: 15px;
    color: #b9b8b8;
    line-height: 1.65;
    margin: 0;
    font-style: italic;
}

/* ========================
   PRINCIPLES SECTION
======================== */
.principles-section {
    background: #302f2f;
}

.principles-section h2 {
    color: white;
}

.principles-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.flip-card {
    width: 280px;
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.flip-front {
    background: #4a4a4a;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    gap: 1rem;
}

.flip-front h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.flip-back {
    background: rgb(205, 110, 59);
    transform: rotateY(180deg);
}

.flip-back p {
    color: white;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

/* ========================
   SERVICES SECTION
======================== */
.services-section {
    background: #5a5a5a;
}

.services-grid {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.service-card {
    background: #5a5a5a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0;
}

.service-card:first-child {
    border-top: none;
}

.service-card .accordion {
    background: #5a5a5a;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.service-card .accordion:hover {
    background: #666;
}

.service-card .accordion.active {
    background: #5a5a5a;
    color: rgb(198, 80, 16);
}

.service-card .accordion .chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-card .accordion.active .chevron {
    transform: rotate(180deg);
}

.service-card .panel {
    background: #5a5a5a;
    border-left: none;
    border-radius: 0;
    padding: 0 24px 0 66px;
}

.service-card .panel p {
    padding: 0 0 20px 0;
    margin: 0;
    color: #b9b8b8;
    line-height: 1.7;
}

.services-section h2 {
    color: white;
}

/* ========================
   ACCORDION (team section)
======================== */
.accordion {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #f5f5f5;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.accordion:hover {
    background-color: #e0e0e0;
}

.accordion.active {
    background-color: rgb(198, 80, 16);
    color: white;
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fafafa;
    padding: 0 18px;
    border-left: 3px solid rgb(198, 80, 16);
    border-radius: 0 0 5px 5px;
}

.panel p {
    margin: 10px 0;
    line-height: 1.6;
}

/* ========================
   TEAM SECTION
======================== */
.scroll {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 60px 200px;
    background: #302f2f;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll .content {
    flex: 6;
    min-width: 0;
}

.scroll .image {
    flex: 4;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.image img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: 100% 30%;
    border-radius: 4px;
    transition: transform 0.3s ease;
    display: block;
}

/* Team name text */
.scroll .content > p {
    color: white;
}

/* Team accordions */
.scroll .accordion {
    background-color: #4a4a4a;
    color: #e0e0e0;
}

.scroll .accordion:hover {
    background-color: #555;
}

.scroll .accordion.active {
    background-color: rgb(198, 80, 16);
    color: white;
}

.scroll .panel {
    background-color: #3a3a3a;
}

.scroll .panel p {
    color: #b0b0b0;
}

.image img:hover {
    transform: scale(1.05);
}

#team,
#aboutUs {
    scroll-margin-top: 100px;
}

/* ========================
   PRO BONO SECTION
======================== */
.pro-bono-section {
    background: #5a5a5a;
    color: white;
    padding: 80px 40px;
}

.pro-bono-section h2 {
    color: white;
}

.pro-bono-intro {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 500px;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.7;
}

.pro-bono-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.pro-bono-card {
    background: #3a3a3a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 36px 30px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: border-color 0.3s ease;
}

.pro-bono-card:hover {
    border-color: rgba(198, 80, 16, 0.5);
}

.pro-bono-card h3 {
    margin: 0;
    font-size: 17px;
    color: white;
}

.pro-bono-card p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.pro-bono-time {
    font-size: 22px;
    font-weight: 700;
    color: rgb(198, 80, 16);
    margin-top: 4px;
}

.pro-bono-highlight {
    background: #3a3a3a;
    border-color: rgba(255, 255, 255, 0.07);
}

.pro-bono-highlight h3 {
    font-size: 22px;
    color: rgb(198, 80, 16);
}

.pro-bono-highlight p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================
   FOOTER
======================== */
.footer-bar {
    background-color: rgb(20, 20, 20);
    color: white;
    padding: 40px 60px 16px;
}

#contacts {
    scroll-margin-top: 100px;
}

.footer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: white;
}

.footer-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-item span {
    line-height: 1.6;
}

.fb-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.fb-link:hover {
    opacity: 0.75;
}

.footer-divider {
    width: 1px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    align-self: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map {
    width: 320px;
    height: 180px;
    border: none;
    border-radius: 8px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}


@media (hover: none) {
    .navLinks a:hover {
        color: white;
    }

    .flip-card:hover .flip-inner {
        transform: none !important;
    }

    /* Ensure flipped class works on touch devices */
    .flip-card.flipped .flip-inner {
        transform: rotateY(180deg) !important;
    }

}

/* ========================
   TABLET / RESPONSIVE
======================== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Navbar */
    .navBar {
        padding: 16px 40px;
    }

    .navLinks {
        gap: 40px;
    }

    /* About */
    .about-b-top {
        padding: 50px 60px 40px;
    }

    .about-b-vision {
        padding: 24px 60px;
    }

    /* Team */
    .scroll {
        padding: 60px 60px;
        gap: 40px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .scroll {
        flex-direction: column;
        align-items: center;
        padding: 40px 40px;
    }

    .scroll .content {
        width: 100%;
    }

    .scroll .image {
        width: 100%;
        justify-content: center;
    }

    .scroll .image {
        order: -1;
    }

    .scroll .content {
        order: 1;
    }

    /* Override the even-row reversal from mobile */
    .scroll:nth-child(even) {
        flex-direction: column;
    }
}

/* ========================
   MOBILE / RESPONSIVE
======================== */
@media (max-width: 768px) {

    /* Navbar */
    .navBar {
        padding: 10px 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 6px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        height: 20px;
    }

    .navLinks {
        gap: 10px;
        flex: unset;
        width: auto;
        order: unset;
    }

    .navLinks a {
        font-size: 15px;
    }

    .language {
        flex: unset;
        gap: 6px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* Hero */
    .hero-overlay {
        padding: 24px 20px;
        margin: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    /* About section */
    .about-vision-section {
        background: #5a5a5a;
        opacity: 1;
        transform: none;
    }

    .about-b-top {
        padding: 40px 24px 32px;
    }

    .about-b-vision {
        padding: 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .about-b-vision-divider {
        width: 40px;
        height: 1px;
    }

    .about-b-stats {
        grid-template-columns: 1fr;
    }

    .about-b-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        padding: 24px 20px;
    }

   /* Principles */
.principles-container {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 90%;
    gap: 12px;
}

.flip-card {
    width: 100% !important;
    height: 70px !important;
    perspective: 1000px;
}

.flip-inner {
    width: 100% !important;
    height: 70px !important;
}

.flip-front,
.flip-back {
    position: absolute !important;
    width: 100% !important;
    height: 70px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.flip-front h3 {
    font-size: 15px !important;
    text-align: left !important;
    margin: 0 !important;
    white-space: nowrap;
}

.flip-back p {
    font-size: 12px !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-card:hover .flip-inner {
    transform: none !important;
}


    /* Services */
    .services-grid {
        width: 100%;
    }

    /* Team sections */
   .scroll {
        flex-direction: column;
        padding: 32px 16px;
        gap: 16px;
        align-items: center;
    }

    .scroll .image {
        width: 100%;
        justify-content: center;
        flex: unset;
    }

    .scroll .content > p {
        font-size: 17px !important;
        line-height: 1.4;
        text-align: center;
    }

    /* Reverse image/content order for alternating rows */
    .scroll:nth-child(even) {
        flex-direction: column-reverse;
    }


    .scroll .content {
        width: 100%;
        flex: unset;
    } 

    .image img {
        width: 180px;
        height: 180px;
    }

    /* Pro bono */
    .pro-bono-card {
        width: 100%;
        max-width: 300px;
    }

    /* Footer */
    .footer-bar {
        padding: 32px 20px 16px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .footer-divider {
        width: 100%;
        height: 1px;
    }

    .map {
        width: 100%;
        height: 180px;
    }

    /* Full sections */
    .full-section {
        padding: 40px 20px;
    }
}