/* Homepage Luxurious Styles with Animations */

/* Hero Section with Floating Elements */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.15), rgba(139, 111, 71, 0.05));
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 20s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 30s;
}

.circle-4 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 5%;
    animation-delay: 15s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, 10px) scale(1.05);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.2), rgba(139, 111, 71, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(166, 124, 82, 0.3);
    border-radius: 50px;
    color: var(--wood);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(166, 124, 82, 0.2);
}

.hero-badge i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.pulse-effect {
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px var(--shadow), 0 0 0 0 rgba(166, 124, 82, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px var(--shadow), 0 0 0 15px rgba(166, 124, 82, 0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--wood);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

/* Award Section */
.award-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--beige) 100%);
    position: relative;
    overflow: hidden;
}

.award-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.08) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.award-content {
    position: relative;
    z-index: 1;
}

.award-header {
    text-align: center;
    margin-bottom: 3rem;
}

.award-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
    animation: trophy-shine 3s ease-in-out infinite;
}

@keyframes trophy-shine {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05) rotate(5deg);
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
    }
}

.award-icon i {
    font-size: 4rem;
    color: var(--white);
}

.award-header h2 {
    font-size: 2.8rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.award-description {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 3rem;
    border-left: 6px solid #FFD700;
}

.award-description p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--dark-gray);
    margin-bottom: 1.8rem;
}

.award-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.4s ease;
    background: var(--white);
    aspect-ratio: 4/3;
}

.award-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px var(--shadow);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.1), rgba(139, 111, 71, 0.05));
    color: var(--wood);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.image-placeholder span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Statistics Visualization */
.stats-visualization {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
    opacity: 0.8;
}

.stats-chart-container {
    background: var(--light-beige);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

.stats-legend {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.legend-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow);
}

.legend-color {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legend-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wood);
    font-family: 'Playfair Display', serif;
}

.legend-label {
    font-size: 0.95rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.quick-stat-card {
    background: linear-gradient(135deg, var(--wood), var(--brown));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.quick-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-stat-card:hover::before {
    opacity: 1;
    animation: ripple 1.5s ease-out;
}

@keyframes ripple {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.quick-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(139, 111, 71, 0.4);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.stat-percentage {
    display: inline;
    font-size: 2rem;
    margin-left: 0.3rem;
}

.stat-label {
    font-size: 1.05rem;
    opacity: 0.95;
}

/* Intro Section */
.intro {
    padding: 6rem 0;
    background: var(--beige);
}

.intro-text {
    text-align: center;
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto;
    line-height: 2;
    color: var(--dark-gray);
}

/* What We Do Section */
.what-we-do {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--light-beige) 0%, var(--beige) 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.program-card {
    background: var(--white);
    padding: 3.5rem 3rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border-top: 5px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s;
}

.program-card:hover .card-shine {
    opacity: 1;
    animation: shine 1.5s;
}

@keyframes shine {
    from {
        transform: translateX(-100%) rotate(45deg);
    }
    to {
        transform: translateX(100%) rotate(45deg);
    }
}

.program-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 60px rgba(139, 111, 71, 0.3);
    border-top-color: var(--wood);
}

.program-card .icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--wood), var(--brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.program-card:hover .icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(139, 111, 71, 0.4);
}

.program-card .icon i {
    font-size: 2.8rem;
    color: var(--white);
}

.program-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    color: var(--brown);
}

.program-card p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-size: 1.05rem;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(139, 111, 71, 0.1);
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wood);
    font-weight: 600;
    font-size: 0.95rem;
}

.learn-more {
    color: var(--wood);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.program-card:hover .learn-more {
    gap: 1.2rem;
    color: var(--brown);
}

/* CTA Section with Particles */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--wood), var(--brown));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particle-float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    top: 60%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    right: 20%;
    top: 30%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    right: 40%;
    top: 70%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 40%;
    animation-delay: 12s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0.8;
    }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.8rem;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.9;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--wood);
    font-size: 1.1rem;
    padding: 1.3rem 3rem;
}

.cta-section .btn-primary:hover {
    background: var(--beige);
    transform: translateY(-5px) scale(1.05);
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 320px;
    }

    .floating-circle {
        opacity: 0.2;
    }

    .award-header h2 {
        font-size: 2rem;
    }

    .award-description {
        padding: 2rem;
    }

    .award-gallery {
        grid-template-columns: 1fr;
    }

    .stats-chart-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .chart-wrapper {
        height: 300px;
    }

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

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
}

/* Enhanced Button Visibility */
.hero-secondary {
    background: var(--white) !important;
    color: var(--wood) !important;
    border: 3px solid var(--wood) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3) !important;
}

.hero-secondary:hover {
    background: var(--beige) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5) !important;
}

/* Enhanced Award Badge Visibility */
.hero-badge {
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.95), rgba(139, 111, 71, 0.95)) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4), 0 0 20px rgba(166, 124, 82, 0.3) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
}

/* Hero Image Section */
.hero-image-container {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(139, 111, 71, 0.3);
    aspect-ratio: 16/10;
    background: var(--white);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.hero-main-image.loaded {
    display: block;
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.1), rgba(139, 111, 71, 0.05));
    color: var(--wood);
}

.hero-main-image.loaded + .hero-image-placeholder {
    display: none;
}

.hero-image-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.hero-image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-image-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: monospace;
    background: rgba(139, 111, 71, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
}

/* Award CTA Button */
.award-cta {
    text-align: center;
    margin-top: 3rem;
}

.award-cta .btn-primary {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

/* Gallery Images */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.gallery-img.loaded {
    display: block;
}

.gallery-img.loaded + .image-placeholder {
    display: none;
}

.award-image {
    cursor: pointer;
    position: relative;
}

.award-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.award-image:hover::after {
    opacity: 1;
}

.image-placeholder small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    font-family: monospace;
    background: rgba(139, 111, 71, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    color: var(--wood);
    transform: rotate(90deg);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .hero-image-container {
        margin-top: 2rem;
    }

    .hero-image-placeholder i {
        font-size: 3rem;
    }

    .hero-image-placeholder p {
        font-size: 1rem;
    }

    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }
}
