/*
 * NAPCH Homepage Sections CSS
 * Traced from V3 measurements + NanoBanana mockups
 * Design Directives: asymmetric, curves, parallax, glassmorphism, mobile-first
 */

/* =============================================
   HERO SECTION — 132vh asymmetric earth-curve
   ============================================= */
.hero-section {
    position: relative;
    min-height: 132vh;
    overflow: hidden;
    /* Concave earth-curve bottom */
    border-radius: 0 0 50% 50% / 0 0 100px 100px;
    margin-bottom: 40px;
}

/* Ken Burns background rotation */
.hero-backgrounds {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    animation: kenBurnsHero 20s ease-in-out infinite;
}
.hero-bg.active { opacity: 1; }

@keyframes kenBurnsHero {
    0%   { transform: scale(1) translate(0, 0); }
    25%  { transform: scale(1.08) translate(-1%, -1%); }
    50%  { transform: scale(1.12) translate(1%, -1%); }
    75%  { transform: scale(1.08) translate(-1%, 1%); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Transparent overlay allowing vivid K9 photography to shine through */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.25) 0%, rgba(17, 45, 78, 0.15) 45%, rgba(0, 0, 0, 0.05) 80%, transparent 100%) !important;
    border-radius: 0 0 50% 50% / 0 0 100px 100px;
    backdrop-filter: none !important;
    z-index: 2;
}

/* Content overlay — fully transparent */
.hero-content-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.hero-content-wrapper {
    color: white;
    max-width: 820px;
    padding: 2.5rem 1rem;
    background: transparent !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
}

/* K9 Shield Logo */
.hero-logo-main {
    height: 120px;
    width: auto;
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.9));
    margin-bottom: 1.5rem;
}

/* Hero Title */
.hero-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 4px 4px 8px rgba(0,0,0,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-main-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 4px 4px 8px rgba(0,0,0,0.7);
}

/* Gold fact pill banner */
.hero-fact-banner {
    background: rgba(250, 207, 57, 0.9);
    color: var(--napch-navy);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Stats Row — glassmorphism boxes */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.stat-box {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    min-width: 130px;
}
.stat-big-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--napch-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.3rem;
}
.stat-big-label {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

/* Action buttons */
.hero-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: var(--napch-red);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(191,25,34,0.4);
    display: inline-block;
}
.btn-hero-primary:hover {
    background: #a01520;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(191,25,34,0.6);
    color: white;
}

/* Seminar badge */
.seminar-badge {
    background: rgba(17, 45, 78, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--napch-yellow);
}

/* =============================================
   BANNER CAROUSEL SECTION
   ============================================= */
.banner-carousel-section {
    position: relative;
    overflow: hidden;
}
.banner-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    width: 100%;
}
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17,45,78,0.8) 0%, rgba(19,125,197,0.6) 100%);
    display: flex;
    align-items: center;
}
.banner-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: white;
}
.banner-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    color: white;
}

/* Carousel controls */
.banner-carousel-section .carousel-control-prev,
.banner-carousel-section .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}
.banner-carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid white;
}
.banner-carousel-section .carousel-indicators button.active {
    background-color: var(--napch-yellow);
}

/* =============================================
   PHOTO CAROUSEL SECTION
   ============================================= */
.photo-carousel-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Wave divider before photo section */
.photo-carousel-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 50% 50% 0 0;
}

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 500px;
    width: 100%;
}
.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.photo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.photo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.photo-card:hover .photo-overlay { transform: translateY(0); }
.photo-overlay h5 { margin-bottom: 5px; font-weight: 700; }
.photo-overlay p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* =============================================
   TRAINING CARDS SECTION
   ============================================= */
.training-programs-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Wave divider */
.training-programs-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: inherit;
    border-radius: 50% 50% 0 0;
}

.training-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: none;
    position: relative;
    overflow: hidden;
}
.training-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--napch-blue) 0%, var(--napch-yellow) 100%);
    border-radius: 25px 25px 0 0;
}
.training-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--napch-blue) 0%, var(--napch-navy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(19,125,197,0.3);
    transition: all 0.3s ease;
}
.training-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(19,125,197,0.4);
}
.card-icon i { font-size: 1.5rem; color: white; }
.training-card h4 { color: var(--napch-navy); margin-bottom: 1rem; font-weight: 600; }
.card-link {
    color: var(--napch-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.card-link:hover { color: var(--napch-navy); }

/* =============================================
   JOIN NAPCH / MEMBERSHIP SECTION
   ============================================= */
.join-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--napch-navy) 0%, var(--napch-blue) 100%);
    position: relative;
    overflow: hidden;
}
.join-section::before {
    content: '';
    position: absolute;
    top: -50px; left: 0;
    width: 100%; height: 100px;
    background: linear-gradient(135deg, var(--napch-navy) 0%, var(--napch-blue) 100%);
    border-radius: 50% 50% 0 0;
    z-index: 1;
}
.join-section .join-title {
    color: var(--napch-yellow);
    font-size: 2.8rem;
    font-weight: 700;
}
.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.benefit-icon {
    width: 60px; height: 60px;
    background: var(--napch-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}
.benefit-icon i { color: var(--napch-navy); font-size: 1.3rem; }
.join-image-container {
    position: relative;
}
.join-image-container img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.floating-member-badge {
    position: absolute;
    bottom: 20px; right: -20px;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-align: center;
}
.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--napch-blue);
}
.badge-text { color: var(--napch-navy); font-weight: 600; }

/* =============================================
   STATS / BY THE NUMBERS SECTION
   ============================================= */
.stats-numbers-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}
.stats-numbers-section::before {
    content: '';
    position: absolute;
    top: -40px; left: 0;
    width: 100%; height: 80px;
    background: inherit;
    border-radius: 50% 50% 0 0;
}
.stat-card {
    text-align: center;
    padding: 2rem;
}
.stat-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--napch-blue) 0%, var(--napch-navy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}
.stat-icon i { font-size: 2rem; color: white; }
.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--napch-blue);
    margin-bottom: 0.5rem;
}
.stat-card .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--napch-navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-description { color: #666; font-size: 0.9rem; }

/* =============================================
   SEMINAR INFO SECTION
   ============================================= */
.seminar-section {
    padding: 80px 0;
    background: var(--napch-light);
    position: relative;
}
.seminar-section::before {
    content: '';
    position: absolute;
    top: -40px; left: 0;
    width: 100%; height: 80px;
    background: var(--napch-light);
    border-radius: 50% 50% 0 0;
}
.floating-event-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--napch-red);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(191,25,34,0.4);
    z-index: 2;
    font-size: 0.9rem;
}
.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.detail-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--napch-blue) 0%, var(--napch-navy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}
.detail-icon i { color: white; font-size: 1.1rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--napch-navy) 0%, var(--napch-blue) 100%);
    position: relative;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50px; left: 0;
    width: 100%; height: 100px;
    background: linear-gradient(135deg, var(--napch-navy) 0%, var(--napch-blue) 100%);
    border-radius: 50% 50% 0 0;
}
.cta-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--napch-yellow);
    margin-bottom: 0.5rem;
}
.cta-stat-label {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.btn-cta-primary {
    background: var(--napch-yellow);
    color: var(--napch-navy);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(250,207,57,0.4);
    color: var(--napch-navy);
}
.btn-cta-outline {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid white;
}
.btn-cta-outline:hover {
    background: white;
    color: var(--napch-navy);
    transform: translateY(-3px);
}

/* =============================================
   PARALLAX BACKGROUNDS
   ============================================= */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    /* Disable parallax on mobile for performance */
    .parallax-bg { background-attachment: scroll; }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 100vh;
        border-radius: 0 0 30% 30% / 0 0 50px 50px;
    }
    .hero-main-title { font-size: 1.8rem; }
    .hero-stats-row { gap: 1rem; }
    .stat-box { padding: 0.8rem; min-width: 90px; }
    .stat-big-number { font-size: 1.5rem; }
    .hero-logo-main { height: 80px; }
    .hero-content-wrapper { padding: 2rem 1rem; }
    
    .banner-image-container { height: 280px; }
    .banner-title { font-size: 1.3rem; }
    
    .photo-card { height: 350px; }
    
    .training-card { padding: 1.5rem; }
    
    .join-section .join-title { font-size: 2rem; }
    .benefit-item { flex-direction: column; text-align: center; }
    .benefit-icon { margin-right: 0; margin-bottom: 1rem; }
    
    .cta-stat-number { font-size: 2rem; }
    
    .floating-member-badge { right: 10px; bottom: 10px; }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 90vh;
        border-radius: 0 0 20% 20% / 0 0 30px 30px;
        margin-bottom: 20px;
    }
    .hero-main-title { font-size: 1.5rem; }
    .hero-stats-row { flex-wrap: wrap; gap: 0.8rem; }
    .stat-box { min-width: 80px; padding: 0.6rem; }
    .stat-big-number { font-size: 1.3rem; }
    .stat-big-label { font-size: 0.65rem; }
    .hero-fact-banner { font-size: 0.75rem; padding: 8px 15px; }
    .seminar-badge { font-size: 0.8rem; padding: 10px 15px; }
    
    .photo-card { height: 280px; }
    .photo-carousel-section { padding: 50px 0; }
    
    .training-programs-section { padding: 60px 0; }
    .training-card { padding: 1.2rem; border-radius: 15px; }
    .card-icon { width: 60px; height: 60px; }
    
    .join-section { padding: 60px 0; }
    .stats-numbers-section { padding: 60px 0; }
    .cta-section { padding: 60px 0; }
}

/* =============================================
   PHOTO CAROUSEL SECTION — Training in Action
   ============================================= */
.photo-carousel-section {
    position: relative;
    padding: 80px 0;
    background: #f8fafc;
}
.photo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 480px;
    width: 100%;
}
.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.photo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}
.photo-card:hover .photo-card-img {
    transform: scale(1.08);
}
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(10, 25, 47, 0.85) 40%, rgba(10, 25, 47, 0.98) 100%);
    color: white;
    padding: 30px 20px 20px 20px;
    transition: all 0.3s ease;
}
.photo-overlay h5 {
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #f6c90e;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.photo-overlay p {
    margin: 0;
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.4;
}

#photoCarousel .carousel-control-prev,
#photoCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: #112d4e;
    border: 2px solid #f6c90e;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 5;
}
#photoCarousel .carousel-control-prev { left: -24px; }
#photoCarousel .carousel-control-next { right: -24px; }
#photoCarousel .carousel-control-prev:hover,
#photoCarousel .carousel-control-next:hover {
    background: #137dc5;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
@media (max-width: 991px) {
    #photoCarousel .carousel-control-prev { left: 10px; }
    #photoCarousel .carousel-control-next { right: 10px; }
}

/* =============================================
   BANNER CAROUSEL SECTION
   ============================================= */
.banner-carousel-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: #0d1b2a;
}
.banner-image-container {
    position: relative;
    height: 440px;
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 45, 78, 0.75) 0%, rgba(19, 125, 197, 0.45) 100%);
    display: flex;
    align-items: center;
}
.banner-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
}
.banner-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* =============================================
   SEMINAR INFO SECTION
   ============================================= */
.seminar-section {
    padding: 85px 0;
    background: #ffffff;
}
.floating-event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #112d4e;
    color: #f6c90e;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 2;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(19, 125, 197, 0.12);
    color: #137dc5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.btn-cta-primary {
    background: linear-gradient(135deg, #137dc5 0%, #0d6efd 100%);
    color: #fff !important;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 125, 197, 0.3);
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 125, 197, 0.5);
}
.btn-cta-outline {
    background: transparent;
    border: 2px solid #112d4e;
    color: #112d4e !important;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.btn-cta-outline:hover {
    background: #112d4e;
    color: #fff !important;
    transform: translateY(-2px);
}

