/* ============================================

   Bootstrap Customization & Custom Styles

   ============================================ */



:root {

    /* Custom Colors */

    --primary-green: #2d8659;

    --secondary-green: #4a7c59;

    --primary-blue: #3b82f6;

    --secondary-blue: #2563eb;

    --light-gray: #f5f5f5;

    --text-light: #666666;

}



/* Override Bootstrap primary color */

.btn-primary,

.bg-primary {

    background-color: var(--primary-green) !important;

    border-color: var(--primary-green) !important;

}



.btn-primary:hover {

    background-color: #23704a !important;

    border-color: #23704a !important;

}



.text-primary {

    color: var(--primary-green) !important;

}



/* ============================================

   Parallax Effects (Custom)

   ============================================ */



.parallax-container {

    position: relative;

    overflow: hidden;

    will-change: transform;

}



.parallax-bg {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 120%;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    will-change: transform;

    transform: translate3d(0, 0, 0);

    display: block;

    z-index: 0;

    /* Force hardware acceleration */

    backface-visibility: hidden;

    perspective: 1000px;

}



.parallax-bg::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(

        to bottom,

        rgba(0, 0, 0, 0.4) 0%,

        rgba(0, 0, 0, 0.6) 100%

    );

}



/* Desktop: Use fixed attachment for better parallax */

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {

    .parallax-bg {

        background-attachment: fixed;

    }

}



/* Mobile: Use scroll but allow JavaScript transforms for parallax */

@media (max-width: 767px) {

    .parallax-bg {

        background-attachment: scroll;

        /* Ensure transforms work on mobile */

        transform: translate3d(0, 0, 0);

        will-change: transform;

    }

}



@media (prefers-reduced-motion: reduce) {

    .parallax-bg {

        background-attachment: scroll;

        transform: none !important;

    }

    

    .parallax-image {

        transform: none !important;

    }

}



.parallax-content {

    position: relative;

    z-index: 1;

}



.parallax-section {

    position: relative;

    overflow: hidden;

}



.parallax-section::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(255, 255, 255, 0.15);

    z-index: 1;

    pointer-events: none;

}



.parallax-image {

    position: absolute;

    top: -20%;

    left: 0;

    width: 100%;

    height: 140%;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    opacity: 0.85;

    z-index: 0;

    will-change: transform;

    transform: translate3d(0, 0, 0);

    display: block;

    /* Force hardware acceleration for smooth mobile performance */

    backface-visibility: hidden;

    perspective: 1000px;

    /* Ensure images are visible */

    min-height: 100%;

    /* Add subtle green tinting overlay */

}



.parallax-image::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(

        to bottom,

        rgba(45, 134, 89, 0.1) 0%,

        rgba(45, 134, 89, 0.2) 50%,

        rgba(45, 134, 89, 0.15) 100%

    );

    z-index: 1;

    pointer-events: none;

    mix-blend-mode: multiply;

}



/* Make images more visible on mobile and ensure parallax works */

@media (max-width: 767px) {

    .parallax-image {

        opacity: 0.9;

        height: 120%;

        top: -10%;

        /* Ensure transforms work on mobile */

        transform: translate3d(0, 0, 0);

        will-change: transform;

    }

    

    .parallax-section::before {

        background: rgba(255, 255, 255, 0.2);

    }

    

    .parallax-image::after {

        background: linear-gradient(

            to bottom,

            rgba(45, 134, 89, 0.15) 0%,

            rgba(45, 134, 89, 0.25) 100%

        );

    }

    

    /* Ensure parallax sections allow transforms */

    .parallax-section {

        overflow: hidden;

        position: relative;

    }

}



@media (prefers-reduced-motion: reduce) {

    .parallax-image {

        top: 0;

        height: 100%;

        transform: none !important;

    }

    

    .parallax-bg {

        transform: none !important;

    }

}



.parallax-section-content {

    position: relative;

    z-index: 2;

}



/* Cards on parallax sections need better contrast */

.parallax-section .card {

    background-color: rgba(255, 255, 255, 0.98);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);

}



.parallax-section .section-title {

    color: white;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.3);

    font-weight: 700;

}



/* ============================================

   Jade Color Background Sections

   ============================================ */



.jade-bg-section {

    position: relative;

    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);

    overflow: hidden;

}



.jade-bg-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(

        135deg,

        rgba(45, 134, 89, 0.95) 0%,

        rgba(74, 124, 89, 0.95) 100%

    );

    z-index: 0;

    opacity: 0.98;

}



.jade-bg-section .section-content {

    position: relative;

    z-index: 1;

}



/* Text color adjustments for jade sections */

.jade-bg-section .section-title {

    color: white;

    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);

}



.jade-bg-section .card {

    background-color: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

}



.jade-bg-section .objective-item,

.jade-bg-section .committee-member {

    background-color: rgba(255, 255, 255, 0.95) !important;

}



.jade-bg-section .objective-item:hover,

.jade-bg-section .committee-member:hover {

    background-color: white !important;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;

}



/* ============================================

   Hero Section

   ============================================ */



.hero-section {

    min-height: 100vh;

    color: white;

    position: relative;

}



.hero-section .parallax-bg {

    z-index: 0;

}



.hero-title {

    font-size: clamp(2rem, 6vw, 4rem);

    font-weight: 700;

    line-height: 1.1;

    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}



.hero-tagline {

    font-size: clamp(1.125rem, 2.5vw, 1.5rem);

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);

    max-width: 800px;

}



.cta-button {

    background-color: var(--primary-green);

    border: none;

    border-radius: 50px;

    padding: 0.75rem 2rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.4);

    transition: all 0.3s ease;

}



.cta-button:hover {

    background-color: #23704a !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.6);

}



.cta-button:active {

    transform: translateY(0);

}



/* ============================================

   Section Titles

   ============================================ */



.section-title {

    font-size: clamp(1.5rem, 4vw, 2.5rem);

    font-weight: 600;

    color: var(--primary-green);

}



/* ============================================

   Objective Items

   ============================================ */



.objective-item {

    background-color: var(--light-gray);

    transition: all 0.3s ease;

}



.objective-item:hover {

    transform: translateY(-5px);

    background-color: white !important;

}



.objective-icon {

    font-size: 3rem;

}



.objective-item .card-title {

    color: var(--primary-green);

    font-weight: 600;

}



/* ============================================

   Welfare Cards

   ============================================ */



.welfare-card {

    transition: all 0.3s ease;

}



.welfare-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 8px 24px rgba(45, 134, 89, 0.15) !important;

}



.card-icon {

    font-size: 3.5rem;

}



.welfare-card .card-title {

    color: var(--primary-green);

    font-weight: 600;

}



/* ============================================

   Committee Members

   ============================================ */



.committee-member {

    background-color: var(--light-gray) !important;

    transition: all 0.3s ease;

}



.committee-member:hover {

    background-color: white !important;

    transform: translateY(-5px);

    box-shadow: 0 6px 20px rgba(45, 134, 89, 0.15) !important;

}



.member-photo {

    width: 120px;

    height: 120px;

    border-radius: 50%;

    background-color: var(--primary-green);

    display: flex;

    align-items: center;

    justify-content: center;

    border: 4px solid white;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    margin-top: 1.5rem;

}

.member-photo img {
    border-radius: 35% !important;
}

.photo-placeholder {

    font-size: 4rem;

    color: white;

}



.member-name {

    color: #1a1a1a;

    font-weight: 600;

}



.member-role {

    color: var(--primary-green);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    font-size: 0.9rem;

}



/* ============================================

   Contact Section

   ============================================ */



.info-icon {

    font-size: 2rem;

    flex-shrink: 0;

    color: var(--primary-green);

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

}



.info-icon i {

    font-size: 2rem;

}



.info-details h3 {

    color: var(--primary-green);

    font-weight: 600;

}



/* Email link styling in contact section */

.contact-section .info-details a {

    color: white;

    text-decoration: none;

    transition: opacity 0.3s ease;

}



.contact-section .info-details a:hover {

    opacity: 0.8;

    text-decoration: underline;

}



.map-placeholder {

    border-radius: 8px;

    overflow: hidden;

}



.map-placeholder iframe {

    display: block;

    width: 100%;

    min-height: 600px;

    border: none;

}



/* Make map responsive on mobile */

@media (max-width: 767px) {

    .map-placeholder iframe {

        min-height: 400px;

        height: 400px;

    }

}



/* ============================================

   Gallery Carousel Section (No Parallax)

   ============================================ */



.gallery-section {

    background-color: #f8f9fa;

    position: relative;

    z-index: 1;

}



.gallery-section .section-title {

    color: var(--primary-green);

    font-weight: 700;

}



#galleryCarousel {

    max-width: 1200px;

    margin: 0 auto;

}



#galleryCarousel .carousel-inner {

    border-radius: 12px;

    overflow: hidden;

}



#galleryCarousel .carousel-item img {

    width: 100%;

    object-fit: cover;

    display: block;

}



#galleryCarousel .carousel-control-prev,

#galleryCarousel .carousel-control-next {

    width: 50px;

    height: 50px;

    background-color: rgba(45, 134, 89, 0.8);

    border-radius: 50%;

    top: 50%;

    transform: translateY(-50%);

    opacity: 0.8;

    transition: opacity 0.3s ease, background-color 0.3s ease;

}



#galleryCarousel .carousel-control-prev {

    left: 20px;

}



#galleryCarousel .carousel-control-next {

    right: 20px;

}



#galleryCarousel .carousel-control-prev:hover,

#galleryCarousel .carousel-control-next:hover {

    opacity: 1;

    background-color: var(--primary-green);

}



#galleryCarousel .carousel-indicators {

    margin-bottom: 20px;

}



#galleryCarousel .carousel-indicators button {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background-color: rgba(45, 134, 89, 0.5);

    border: 2px solid white;

    margin: 0 5px;

}



#galleryCarousel .carousel-indicators button.active {

    background-color: var(--primary-green);

}



/* Responsive adjustments for gallery */

@media (max-width: 767px) {

    #galleryCarousel .carousel-item img {

        height: 350px !important;

    }

    

    #galleryCarousel .carousel-control-prev,

    #galleryCarousel .carousel-control-next {

        width: 40px;

        height: 40px;

    }

    

    #galleryCarousel .carousel-control-prev {

        left: 10px;

    }

    

    #galleryCarousel .carousel-control-next {

        right: 10px;

    }

}



/* ============================================

   Footer

   ============================================ */



.footer-section {

    background-color: #333333;

}



.nobroker-link {

    color: var(--primary-blue);

    font-weight: 600;

    text-decoration: underline;

    transition: color 0.3s ease;

}



.nobroker-link:hover {

    color: #60a5fa;

}



/* App Store Badges - Professional Styling - Same Size */

.app-store-badge-link {

    display: inline-block;

    text-decoration: none;

    line-height: 0;

    transition: all 0.3s ease;

    margin-bottom: 0.75rem;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);

    /* Fixed identical dimensions for both badges */

    width: 180px;

    height: 60px;

    flex-shrink: 0;

}



/* App Store iOS badge specific styling */

.app-store-ios {

    height: 45px;

    margin-top: 7px;

}



.app-store-ios .app-store-badge-img {

    height: 45px;

}



.app-store-badge-link:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

}



.app-store-badge-img {

    /* Exact same dimensions for both badges */

    height: 60px;

    width: 180px;

    display: block;

    border-radius: 8px;

    /* Ensure white badges show properly on dark background */

    filter: none;

    object-fit: contain;

    object-position: center;

    /* Prevent image from overflowing */

    max-width: 100%;

    max-height: 100%;

}



/* Fallback styling if images don't load */

.app-store-badge-link img[src*="data:image/svg"] {

    padding: 8px 16px;

    background-color: white;

    width: 180px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

}



@media (max-width: 575px) {

    .app-store-badge-link {

        width: 160px;

        height: 54px;

        margin-bottom: 1rem;

    }

    

    .app-store-badge-img {

        height: 54px;

        width: 160px;

    }

    

    .app-store-badge-link img[src*="data:image/svg"] {

        width: 160px;

        height: 54px;

    }

}



.copyright {

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.875rem;

}



/* ============================================

   Responsive Adjustments

   ============================================ */



@media (min-width: 768px) {

    .py-5 {

        padding-top: 4rem !important;

        padding-bottom: 4rem !important;

    }

}



/* Mobile-specific parallax optimizations */

@media (max-width: 767px) {

    /* Reduce parallax intensity on mobile for better performance */

    .parallax-section {

        overflow: visible;

    }

    

    /* Ensure images are visible on mobile */

    .parallax-image {

        opacity: 0.5;

    }

    

    /* Adjust hero section for mobile */

    .hero-section {

        min-height: 80vh;

    }

    

    /* Better touch scrolling */

    body {

        -webkit-overflow-scrolling: touch;

    }

    

    /* Prevent text overflow on mobile */

    .container {

        padding-left: 1rem;

        padding-right: 1rem;

        max-width: 100%;

    }

    

    /* Ensure all text wraps properly */

    p, .lead, .card-text, .about-text p {

        word-wrap: break-word;

        overflow-wrap: break-word;

        hyphens: auto;

        max-width: 100%;

    }

    

    /* Fix text in cards */

    .card-body {

        padding: 1rem;

        overflow-wrap: break-word;

        word-wrap: break-word;

    }

    

    /* Fix section titles */

    .section-title {

        font-size: clamp(1.25rem, 5vw, 1.75rem);

        padding: 0 0.5rem;

    }

    

    /* Fix about section text */

    .about-text {

        padding: 0 0.5rem;

        max-width: 100%;

        overflow-x: hidden;

    }

    

    .about-text .lead,

    .about-text p {

        font-size: clamp(0.9375rem, 4vw, 1.125rem);

        line-height: 1.7;

        word-wrap: break-word;

        overflow-wrap: break-word;

        word-break: break-word;

        max-width: 100%;

    }

    

    /* Prevent all text from overflowing */

    p, .lead, .card-text, h1, h2, h3, h4, h5, h6 {

        word-wrap: break-word;

        overflow-wrap: break-word;

        max-width: 100%;

    }

    

    /* Fix container overflow */

    .container {

        max-width: 100%;

        overflow-x: hidden;

        padding-left: 1rem;

        padding-right: 1rem;

    }

    

    /* Fix row overflow */

    .row {

        margin-left: -0.5rem;

        margin-right: -0.5rem;

    }

    

    .row > * {

        padding-left: 0.5rem;

        padding-right: 0.5rem;

        max-width: 100%;

    }

}



/* Performance: Keep parallax on small devices but optimize */

@media (max-width: 480px) {

    .parallax-image {

        opacity: 0.9;

        /* Keep transforms enabled for parallax effect */

        transform: translate3d(0, 0, 0);

        will-change: transform;

    }

    

    .parallax-section::before {

        background: rgba(255, 255, 255, 0.25);

    }

    

    .parallax-bg {

        background-attachment: scroll !important;

        /* Keep transforms enabled */

        transform: translate3d(0, 0, 0);

        will-change: transform;

    }

    

    /* Extra text overflow prevention for small screens */

    .container {

        padding-left: 0.75rem;

        padding-right: 0.75rem;

        max-width: 100%;

        overflow-x: hidden;

    }

    

    p, .lead, .card-text, .about-text p {

        font-size: 0.9rem;

        line-height: 1.6;

        word-wrap: break-word;

        overflow-wrap: break-word;

        max-width: 100%;

    }

    

    .section-title {

        font-size: 1.25rem;

        padding: 0 0.25rem;

        word-wrap: break-word;

    }

    

    /* Ensure all content fits */

    .row {

        margin-left: -0.5rem;

        margin-right: -0.5rem;

    }

    

    .row > * {

        padding-left: 0.5rem;

        padding-right: 0.5rem;

        max-width: 100%;

        overflow-x: hidden;

    }

    

    /* Fix about section specifically */

    .about-text {

        padding: 0;

        max-width: 100%;

        overflow-x: hidden;

    }

    

    .about-text .lead,

    .about-text p {

        font-size: 0.9rem;

        line-height: 1.6;

        word-break: break-word;

        overflow-wrap: break-word;

    }

}



/* ============================================

   Smooth Scroll Animation

   ============================================ */



.fade-in {

    animation: fadeIn 0.6s ease-in;

}



@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* ============================================

   Mobile Text Overflow Prevention

   ============================================ */



/* Prevent horizontal scroll globally */

html, body {

    overflow-x: hidden !important;

    max-width: 100vw;

    width: 100%;

}



/* Ensure all text wraps properly on mobile */

@media (max-width: 767px) {

    * {

        max-width: 100%;

        box-sizing: border-box;

    }

    

    .container {

        padding-left: 1rem !important;

        padding-right: 1rem !important;

        max-width: 100% !important;

        overflow-x: hidden !important;

    }

    

    .row {

        margin-left: -0.5rem !important;

        margin-right: -0.5rem !important;

        max-width: 100% !important;

    }

    

    .row > * {

        padding-left: 0.5rem !important;

        padding-right: 0.5rem !important;

        max-width: 100% !important;

        overflow-x: hidden !important;

    }

    

    /* Fix all text elements */

    p, .lead, .card-text, h1, h2, h3, h4, h5, h6, span, div, a {

        word-wrap: break-word !important;

        overflow-wrap: break-word !important;

        word-break: break-word !important;

        max-width: 100% !important;

        hyphens: auto;

    }

    

    /* About section specific fixes */

    .about-text {

        padding: 0 !important;

        max-width: 100% !important;

        overflow-x: hidden !important;

    }

    

    .about-text p,

    .about-text .lead {

        font-size: 0.95rem !important;

        line-height: 1.6 !important;

        word-break: break-word !important;

        overflow-wrap: break-word !important;

        max-width: 100% !important;

    }

    

    /* Section titles */

    .section-title {

        font-size: 1.5rem !important;

        padding: 0 0.5rem !important;

        word-wrap: break-word !important;

        max-width: 100% !important;

    }

    

    /* Cards */

    .card, .card-body {

        max-width: 100% !important;

        overflow-x: hidden !important;

        word-wrap: break-word !important;

    }

}

