/* CSS Variables */
:root {
    --primary: #ff4d89;
    --secondary: #6a1b9a;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --accent: #00b4d8;
    --font-main: 'Poppins', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/*  Animated Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(106, 27, 154, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Navbar with hover animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/*  background with gradient animation */
header {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Clip-path for header shape */
header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--light);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    margin-top: 80px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Button with Pulse Effect */
.btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

/* Pulse Animation */
.btn-pulse {
    position: relative;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50px;
    z-index: -1;
    opacity: 0.5;
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* 3D Card Flip Effect */
.style-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 400px;
    perspective: 1000px;
    margin: 20px;

}

.style-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.style-card:hover .style-card-inner {
    transform: rotateY(180deg);
}

.style-card-front, .style-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.style-card-front {
    display: flex;
    flex-direction: column;
}

.style-img {
    height: 70%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.style-name {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.style-card-back {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.style-desc {
    margin-bottom: 1.5rem;
}

/* Grid for dance styles */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@keyframes dance {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

/* schedule table with striped rows */
.schedule {
    background: var(--dark);
    color: white;
    padding: 5rem 2rem;
}

.schedule-table {
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}

.schedule-table th, .schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-table th {
    background-color: var(--primary);
    font-weight: 600;
}

.schedule-table tr:nth-child(even) {
    background-color: rgba(255,255,255,0.05);
}

.schedule-table tr:hover {
    background-color: rgba(255,255,255,0.1);
}

/* testimonials with flexbox */
.testimonials {
    padding: 5rem 2rem;
    background: var(--light);
}

.testimonial-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    min-width: 300px;
    scroll-snap-align: start;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/*  contact form with transitions */
.contact {
    padding: 5rem 2rem;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,77,137,0.2);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
}

.social-icons {
    margin: 1rem 0;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive  */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 46, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .dancer {
        width: 100px;
        height: 100px;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    .dancer {
        width: 100px;
        height: 100px;
        right: 5%;
    }
}