
/* Global Font Style */
body {
    font-family: 'Poppins', sans-serif;
}

/* Navbar Styling */
nav {
    background-color: #cf0f47;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

/* Navbar Hover Effects */
.navbar-brand {
    transition: all 0.3s ease;
    font-weight: 600;
}

.navbar-brand:hover {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Navbar Background Blur Effect on Hover */
nav:hover {
    backdrop-filter: blur(10px);
    background-color: rgba(207, 15, 71, 0.95);
}

/* Home Section */
#home {
    height: 100vh;
    width: 100vw;
    background-color: #cf0f47;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* For navbar */
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
}

.home-text {
    max-width: 50%;
}

#home h1 {
    font-size: 114px; /* Increased by 50px */
    font-weight: 700;
    text-align: left;
    margin-bottom: 2rem;
}

.button-container {
    text-align: left;
}
.quote {
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    color: white;
}
.outline-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 1rem 0.5rem 0;
    border: 2px solid #ffffff;
    color: #ffffff;
    background-color: transparent;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.outline-button:hover {
    background-color: #ffffff;
    color: #cf0f47;
}

.bottom-image {
    width: 45%;
    height: auto;
}

/* About Section */
#about {
    width: 100%;
    padding: 8rem 2rem;
    background-color: white;
}

.about-card {
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid rgba(207, 15, 71, 0.1);
}

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

/* Combined Stats and Carousel Section */
#stats-carousel {
    background: linear-gradient(135deg, #cf0f47 0%, #b50e40 50%, #a00d39 100%);
    padding: 4rem 0;
    position: relative;
}

#stats-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.stats-section {
    padding: 2.5rem 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    z-index: -1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    display: inline-block;
}

.stat-item h4 {
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    line-height: 1.3;
}

.carousel-section {
    padding: 0;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Stats above carousel layout */
.stats-above-layout {
    display: flex;
    flex-direction: column;
}

/* Desktop - 4 stats in a row */
@media (min-width: 992px) {
    .stats-section .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    }
    
    .stat-item {
    flex: 0 0 25%;
    max-width: 25%;
    }
}

/* Tablet - 2x2 grid */
@media (max-width: 991px) and (min-width: 577px) {
    .stats-section {
    padding: 3rem 2rem;
    }
    
    .stats-section .row {
    display: flex;
    flex-wrap: wrap;
    }
    
    .stat-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 2rem 1rem;
    }
    
    .stat-number {
    font-size: 3.5rem;
    }
    
    .stat-item h4 {
    font-size: 1rem;
    }
}

/* Mobile - 2x2 grid */
@media (max-width: 768px) {
    #stats-carousel {
    padding: 2.5rem 0;
    }
    
    .stats-carousel-container {
    border-radius: 15px;
    }
    
    .stats-section {
    padding: 1.5rem 1rem;
    }
    
    .stats-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    }
    
    .stat-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 1rem 0.5rem;
    }
    
    .stat-number {
    font-size: 2.2rem;
    }
    
    .stat-item h4 {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    }
}

/* Gallery Section Styles */
#gallery {
    height: 100vh;
    width: 100vw;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-row {
    height: 33.33vh;
    width: 100vw;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.image-container {
    display: flex;
    gap: 30px;
    animation-duration: 60s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.gallery-row:nth-child(1) .image-container,
.gallery-row:nth-child(3) .image-container {
    animation-name: slideLeft;
}

.gallery-row:nth-child(2) .image-container {
    animation-name: slideRight;
}

.gallery-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    background: #cf0f47;
    border: 3px solid #cf0f47;
}

.gallery-image:hover {
    transform: scale(1.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: #a00d39;
}

@keyframes slideLeft {
    0% {
    transform: translateX(100vw);
    }
    100% {
    transform: translateX(-100%);
    }
}

@keyframes slideRight {
    0% {
    transform: translateX(-100%);
    }
    100% {
    transform: translateX(100vw);
    }
}

/* Gallery row specific styling */
.gallery-row:nth-child(1) {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-row:nth-child(2) {
    background: rgba(255, 255, 255, 0.05);
}

.gallery-row:nth-child(3) {
    background: rgba(255, 255, 255, 0.1);
}

/* Add a subtle overlay pattern */
.gallery-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(255, 255, 255, 0.02) 51px,
    rgba(255, 255, 255, 0.02) 52px
    );
    pointer-events: none;
}

/* Footer Styles */
.blood-footer {
    background-color: #c8104f;
    color: white;
    width: 100%;
    padding: 40px 60px 20px;
}

.footer-line {
    border-top: 1px solid #ffffff70;
    margin: 20px 0;
}

.footer-header {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-bank-name {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-icons i {
    font-size: 1.3rem;
    margin-right: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: white;
    background-color: #c8104f;
}

/* Responsive Styles */
@media (max-width: 800px) {
    #home {
    flex-direction: column;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    }

    .home-text {
    max-width: 100%;
    }

    #home h1 {
    font-size: 2.5rem;
    text-align: center;
    }

    .button-container {
    text-align: center;
    }

    .outline-button {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
    }

    .bottom-image {
    width: 90%;
    margin-top: 2rem;
    }

    .navbar-nav {
    text-align: center;
    }

    /* About Section Mobile Responsiveness */
    #about {
    padding: 4rem 1rem;
    }

    .about-card {
    margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-bank-name {
    font-size: 2rem;
    text-align: center;
    }
    .footer-header {
    text-align: center;
    }
    .footer-icons {
    justify-content: center !important;
    }
    .text-end {
    text-align: center !important;
    }
}

@media (max-width: 480px) {
    #home h1 {
    font-size: 2rem;
    }

    .nav-link {
    margin: 0.2rem 0;
    }

    #about {
    padding: 2rem 0.5rem;
    }

    .about-card {
    padding: 2rem 1rem;
    }

    .stat-number {
    font-size: 2rem;
    }
    
    .carousel-item img {
    height: 250px;
    }

    .gallery-image {
    width: 150px;
    height: 110px;
    }
}

.footer-bottom .design-label {
    margin-right: 8px; /* spacing between label and first link */
    display: inline-block;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block; /* Needed for transform */
    transition: transform 0.3s ease, text-decoration 0.3s ease;
}

.footer-bottom a:hover {
    transform: scale(1.1); /* Zoom-in on hover */
}


/* Link styling */
.email-link,
.phone-link {
  color: white;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.email-link:hover,
.phone-link:hover {
  text-decoration: underline;
  cursor: pointer;
}