/* public/css/landing/home.css — V3 */

/* ── Carousel base ── */
.hero-carousel {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-container { height: 100%; width: 100%; }

.carousel-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

.slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide.active .slide-bg { transform: scale(1); }

.hero-content {
    position: relative; z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

/* ── Hero text animations ── */
.animate-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(40px);
}
.animate-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}
.animate-btns {
    opacity: 0;
    transform: translateY(30px);
}
.carousel-slide.active .animate-title { animation: heroIn 0.9s cubic-bezier(0.215,.61,.355,1) 0.2s forwards; }
.carousel-slide.active .animate-text  { animation: heroIn 0.9s cubic-bezier(0.215,.61,.355,1) 0.4s forwards; }
.carousel-slide.active .animate-btns  { animation: heroIn 0.9s cubic-bezier(0.215,.61,.355,1) 0.6s forwards; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ── Controls ── */
.carousel-controls {
    position: absolute; top: 50%; width: 100%;
    display: flex; justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 10;
}
.carousel-controls button {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .35s ease;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.carousel-controls button:hover {
    background: #22c55e;
    border-color: #22c55e;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(34,197,94,.4);
}

/* ── Indicators ── */
.carousel-indicators {
    position: absolute; bottom: 48px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
    align-items: center;
}
.indicator {
    width: 10px; height: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: all .4s ease;
}
.indicator.active {
    width: 36px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.6);
}

/* ── Buttons ── */
.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .35s ease;
    font-size: .95rem;
    letter-spacing: .2px;
}
.btn-primary {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 12px 30px rgba(34,197,94,.4);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(34,197,94,.55);
    color: white;
}
.btn-outline {
    background: rgba(255,255,255,.08);
    color: white;
    border: 2px solid rgba(255,255,255,.5);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.85);
    transform: translateY(-4px);
    color: white;
}
.hero-btns {
    display: flex; gap: 16px;
    justify-content: center; margin-top: 16px;
}

/* ── Stats ── */
.stats {
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0,0,0,.1);
    border-radius: 28px;
    margin: -70px auto 0;
    position: relative; z-index: 100;
    padding: 50px 60px;
    max-width: 1200px; width: 90%;
}
.stat-item h3 {
    font-size: 3.2rem;
    margin-bottom: 8px;
    font-weight: 900;
    line-height: 1;
}
.stat-item p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 1.5px;
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    max-width: 1400px; margin: 0 auto;
}
.gallery-item {
    height: 380px;
    border-radius: 20px;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    transition: transform .4s ease, box-shadow .4s ease;
    cursor: pointer;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 25px 60px rgba(0,0,0,.18); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.85), rgba(15,23,42,.2));
    display: flex; align-items: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity .4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    font-weight: 800; font-size: 1.1rem;
    color: white;
    border-left: 3px solid #22c55e;
    padding-left: 14px;
    font-family: 'Outfit', sans-serif;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

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

/* ── Responsive ── */
@media (max-width: 1100px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item:first-child { grid-column: 1 / -1; }
}
@media (max-width: 968px) {
    .hero-content { max-width: 90%; }
    .stats { grid-template-columns: repeat(2,1fr); padding: 35px 30px; margin-top: -40px; }
}
@media (max-width: 768px) {
    .hero-btns { flex-direction: column; gap: 12px; align-items: center; }
    .btn { width: 280px; justify-content: center; }
    .carousel-controls { display: none; }
    .stats { grid-template-columns: 1fr; width: 95%; padding: 28px 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 280px; }
    .gallery-item:first-child { grid-column: auto; }
}
@media (max-width: 480px) {
    .stats { margin-top: -20px; padding: 22px 16px; }
    .stat-item h3 { font-size: 2.2rem; }
    .btn { width: 100%; }
}
