/*
    Dance Academy - Refined Custom Styles
    Theme: Eye-Relaxing & Premium
    Colors:
    - Background: #FFFBF5 (Soft Cream)
    - Primary: #99BC85 (Muted Sage)
    - Secondary: #E1D4BB (Soft Sand)
    - Accent: #BFD8AF (Light Mint)
    - Text: #555843 (Muted Olive/Grey)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-color: #FFFBF5;
    --primary-color: #99BC85;
    --secondary-color: #E1D4BB;
    --accent-color: #BFD8AF;
    --text-color: #555843;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --soft-shadow: 0 10px 40px rgba(85, 88, 67, 0.05);
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Hero Video Styles */
.hero-video-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 251, 245, 0.4) 0%,
        rgba(255, 251, 245, 0.7) 50%,
        rgba(255, 251, 245, 0.95) 100%
    ); /* Dual-layer gradient overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
    max-width: 900px;
}

.hero-content .subtitle {
    font-family: var(--body-font);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-style: italic;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    opacity: 0.7;
}

.scroll-indicator span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Navbar Custom Styles */
.navbar {
  background-color: transparent !important;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background-color: rgba(254, 250, 246, 0.98) !important;
  backdrop-filter: blur(15px);
  padding: 0.6rem 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  margin-right: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-transparent-video:not(.scrolled) .nav-link,
.navbar-transparent-video:not(.scrolled) .fa-bars {
  color: white !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  outline: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

footer .social-links a {
  color: var(--text-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  transition: var(--transition-smooth);
}

footer .social-links a:hover {
  color: var(--primary-color);
}

/* Utility Classes */
.section-padding {
  padding: 80px 0;
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    transition: var(--transition-smooth);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-custom:hover {
    background-color: #8bab75;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(153, 188, 133, 0.3);
    color: white;
}

.soft-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(153, 188, 133, 0.1);
    transition: var(--transition-smooth);
}

.soft-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Achievement Card Dynamic Hover */
.achievement-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(153, 188, 133, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.achievement-card::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.achievement-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(153, 188, 133, 0.2);
}

.achievement-card:hover::before {
    top: 0;
}

.achievement-card i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s ease;
}

.achievement-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: white !important;
}

.achievement-card h3, 
.achievement-card p {
    transition: color 0.5s ease;
    position: relative;
    z-index: 2;
}

.achievement-card:hover h3,
.achievement-card:hover p {
    color: white;
}

/* Tablet & Mobile Grid Refinements */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .achievement-grid .col-md-4 {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    .hero-content .subtitle {
        letter-spacing: 0.2em;
        font-size: 0.8rem;
    }
    .btn-custom {
        padding: 0.8rem 2rem;
        width: 100%;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -12.5px;
}

.timeline-content {
    padding: 2.5rem;
    background-color: white;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid gray;
    transition: all 0.4s ease;
}

.timeline-container:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.timeline-container:hover::after {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container::after {
        left: 18.5px;
    }
    .right {
        left: 0%;
    }
}

/* Gallery Styles */
.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Form Styles */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-control {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(164, 190, 123, 0.25);
}

/* Program Card Hover Animation */
.program-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    cursor: pointer;
}

.program-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    color: white;
    transition: background 0.5s ease;
}

.program-card:hover .program-overlay {
    background: linear-gradient(to top, rgba(153, 188, 133, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%); /* Using primary brand color for tint */
}

.program-overlay h3 {
    color: white;
    margin-bottom: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
    z-index: 2;
}

.program-overlay p {
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 0;
    font-size: 0.95rem;
    z-index: 1;
}

.program-card:hover .program-overlay h3 {
    transform: translateY(-80px);
}

.program-card:hover .program-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Core Values List Animation */
.value-item {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: default;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.value-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-item:hover .value-icon {
    transform: scale(1.15) rotate(15deg);
}

/* Spotlight Card */
.spotlight-card {
    transition: all 0.4s ease;
}

.spotlight-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(85, 88, 67, 0.15) !important;
}

/* Lightbox Modal Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1060;
    padding-top: 5vmin;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}

.lightbox.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1061;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    z-index: 1061;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.8);
}

/* Enhancing Gallery Item Interactivity */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Animated Contact Section Redesign */
.contact-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: floatingBlobs 10s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob-1 {
    top: -100px; left: -100px;
    background: rgba(153, 188, 133, 0.3); /* Primary */
}

.blob-2 {
    bottom: -100px; right: -100px;
    background: rgba(191, 216, 175, 0.3); /* Accent */
    animation-delay: -5s;
}

@keyframes floatingBlobs {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.contact-card-wrapper {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1) !important;
}

.contact-info-panel {
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
}

.contact-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px; height: 50px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover .contact-icon {
    transform: scale(1.15) rotate(15deg);
}

.unique-input {
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
}

.unique-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(153, 188, 133, 0.2);
    background: white;
}

.animated-submit-btn {
    transition: all 0.4s ease;
    background-color: var(--primary-color);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.animated-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.4s ease;
    z-index: -1;
}

.animated-submit-btn:hover::before {
    width: 100%;
}

.animated-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(153, 188, 133, 0.3);
}

.animated-submit-btn:hover i {
    animation: paperplaneFly 0.8s ease forwards;
}

@keyframes paperplaneFly {
    0% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(25px, -25px); opacity: 0; }
    51% { transform: translate(-25px, 25px); opacity: 0; }
    100% { transform: translate(0, 0); opacity: 1; }
}

/* Animation helpers */
[data-aos] {
  pointer-events: none;
}

.aos-animate {
  pointer-events: auto;
}
/* Core Values Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-card {
    animation: float 5s ease-in-out infinite;
}

#core-values .value-item {
    background: white;
    box-shadow: var(--soft-shadow);
    color: var(--text-color);
    border: 1px solid rgba(153, 188, 133, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

#core-values .value-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

#core-values .value-item:hover .value-icon {
    color: white !important;
}

#core-values .value-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}
