:root {
    --primary-purple: #2d1b4e;
    --primary-pink: #e44cce;
    --primary-light-purple: #a14cce;
    --text-color: #ffffff;
    --gradient-bg: linear-gradient(135deg, #2d1b4e 0%, #3a1b66 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth; /* Native smooth scrolling for anchor links */
}

body {
    background-color: var(--primary-purple);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(228, 76, 206, 0.1), transparent 70%);
    animation: pulseBG 15s infinite alternate;
    z-index: -1;
}

@keyframes pulseBG {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.1); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(45, 27, 78, 0.9);
    z-index: 100;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s ease-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-icon {
    color: var(--primary-pink);
    font-size: 28px;
    animation: bounce 2s infinite;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-pink);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-pink);
}

.cta-button {
    background-color: var(--primary-pink);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--primary-light-purple);
    box-shadow: 0 5px 15px rgba(228, 76, 206, 0.4);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-text {
    flex: 1;
}

.hero-heading {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(228, 76, 206, 0.5);
    animation: textGlow 2s infinite alternate;
}

.hero-heading span {
    display: block;
}

.hero-subheading {
    font-size: 24px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-shapes {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 300px;
}

.shape {
    position: absolute;
    animation: floatRotate 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #e44cce 0%, #c44cff 100%);
    border-radius: 14px;
    left: 20%;
    top: 30%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ff9d4c 0%, #ffc04c 100%);
    border-radius: 50% 50% 50% 70%;
    right: 25%;
    top: 15%;
    animation-delay: 1s;
}

.shape-3 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, #4cc4ff 0%, #4c8eff 100%);
    right: 40%;
    bottom: 15%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 2s;
}

/* Section Animation */
section {
    padding: 80px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-child(odd) {
    animation-delay: 0.2s;
}

section:nth-child(even) {
    animation-delay: 0.4s;
}

.section-heading {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(228, 76, 206, 0.3);
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-pink);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: expand 1s ease-out forwards;
}

.section-subheading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* FAQs Section */
.faqs {
    background-color: rgba(45, 27, 78, 0.7);
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: rgba(61, 37, 104, 0.5);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(161, 76, 206, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInUp 0.5s ease-out forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.2s; }
.faq-item:nth-child(2) { animation-delay: 0.4s; }
.faq-item:nth-child(3) { animation-delay: 0.6s; }

.faq-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.faq-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

/* Camp Details Section */
.camp-details {
    background: var(--gradient-bg);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-card {
    background: rgba(61, 37, 104, 0.5);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInUp 0.5s ease-out forwards;
}

.detail-card:nth-child(1) { animation-delay: 0.2s; }
.detail-card:nth-child(2) { animation-delay: 0.4s; }
.detail-card:nth-child(3) { animation-delay: 0.6s; }

.detail-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.detail-name {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--primary-pink);
}

/* Signup Form Section */
.signup {
    background: var(--gradient-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.signup-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(61, 37, 104, 0.8);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: zoomIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.signup-title {
    display: block;
    font-size: 72px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(228, 76, 206, 0.6);
    animation: textGlow 1.5s infinite alternate, slideInUp 0.8s ease-out forwards;
}

.signup-title-top {
    font-size: 48px;
    animation-delay: 0.2s;
}

.signup-title-middle {
    font-size: 36px;
    animation-delay: 0.4s;
}

.signup-title-bottom {
    font-size: 64px;
    animation-delay: 0.6s;
}

.signup-accent {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
    border-radius: 5px;
    animation: expand 1s ease-out forwards, glowPulse 2s infinite alternate;
}

/* Add subtle background shapes for extra flair */
.signup::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(228, 76, 206, 0.2), transparent 70%);
    animation: floatRotate 8s ease-in-out infinite;
    z-index: 0;
}

.signup::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(161, 76, 206, 0.15), transparent 70%);
    animation: floatRotate 10s ease-in-out infinite reverse;
    z-index: 0;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.3s; }
.form-group:nth-child(3) { animation-delay: 0.4s; }
.form-group:nth-child(4) { animation-delay: 0.5s; }
.form-group:nth-child(5) { animation-delay: 0.6s; }
.form-group:nth-child(6) { animation-delay: 0.7s; }
.form-group:nth-child(7) { animation-delay: 0.8s; }
.form-group:nth-child(8) { animation-delay: 0.9s; }
.form-group:nth-child(9) { animation-delay: 1s; }
.form-group:nth-child(10) { animation-delay: 1.1s; }

.form-group label {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-pink);
    text-shadow: 0 0 5px rgba(228, 76, 206, 0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: none;
    border-radius: 15px; /* Smoother, more rounded corners */
    background: linear-gradient(135deg, rgba(61, 37, 104, 0.9), rgba(45, 27, 78, 0.7)); /* Darker gradient */
    color: var(--text-color);
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(228, 76, 206, 0.3), inset 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none; /* Reset Chrome/Safari default styles */
    -moz-appearance: none; /* Reset Firefox default styles */
    appearance: none; /* Standard reset */
}

/* Pseudo-element for glow effect */
.form-group input::before,
.form-group select::before,
.form-group textarea::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(228, 76, 206, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.6s ease, height 0.6s ease; /* Chrome/Safari */
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0; /* Ensure it’s behind content */
}

/* Hover/focus glow effect */
.form-group input:hover::before,
.form-group select:hover::before,
.form-group textarea:hover::before,
.form-group input:focus::before,
.form-group select:focus::before,
.form-group textarea:focus::before {
    width: 400px;
    height: 400px;
}

/* Placeholder styling */
.form-group input::-webkit-input-placeholder,
.form-group textarea::-webkit-input-placeholder {
    color: rgba(228, 76, 206, 0.7); /* Chrome/Safari */
    opacity: 1;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.form-group input::-moz-placeholder,
.form-group textarea::-moz-placeholder {
    color: rgba(228, 76, 206, 0.7); /* Firefox */
    opacity: 1;
    -moz-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.form-group input:-ms-input-placeholder,
.form-group textarea:-ms-input-placeholder {
    color: rgba(228, 76, 206, 0.7); /* Edge/IE */
    opacity: 1;
    -ms-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.form-group input:focus::-webkit-input-placeholder,
.form-group textarea:focus::-webkit-input-placeholder {
    opacity: 0.5; /* Chrome/Safari */
}
.form-group input:focus::-moz-placeholder,
.form-group textarea:focus::-moz-placeholder {
    opacity: 0.5; /* Firefox */
}
.form-group input:focus:-ms-input-placeholder,
.form-group textarea:focus:-ms-input-placeholder {
    opacity: 0.5; /* Edge/IE */
}

/* Focus and hover states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: linear-gradient(135deg, rgba(81, 47, 124, 0.9), rgba(55, 37, 98, 0.7));
    box-shadow: 0 6px 20px rgba(228, 76, 206, 0.6), inset 0 1px 4px rgba(0, 0, 0, 0.2);
    -webkit-transform: scale(1.03); /* Chrome/Safari */
    transform: scale(1.03);
    outline: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    box-shadow: 0 6px 20px rgba(228, 76, 206, 0.5);
    -webkit-transform: scale(1.02); /* Chrome/Safari */
    transform: scale(1.02);
}

/* Custom select arrow */
.form-group select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%207L10%2012L15%207%22%20stroke%3D%22%23e44cce%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    -webkit-appearance: none; /* Already included above, repeated for clarity */
    -moz-appearance: none;
    appearance: none;
}

/* Textarea specific */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: 12px;
}

.signature-pad {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 2px dashed rgba(228, 76, 206, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 10px;
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.signature-pad:hover {
    border-color: var(--primary-pink);
}

.signature-pad canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.clear-signature {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-pink);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.clear-signature:hover {
    background: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 76, 206, 0.4);
}

.signup-form .cta-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-light-purple));
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.signup-form .cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.signup-form .cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.signup-form .cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(228, 76, 206, 0.6);
}

/* Activities Section */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: rgba(61, 37, 104, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInUp 0.5s ease-out forwards;
}

.activity-card:nth-child(1) { animation-delay: 0.2s; }
.activity-card:nth-child(2) { animation-delay: 0.4s; }
.activity-card:nth-child(3) { animation-delay: 0.6s; }

.activity-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.activity-image img {
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-container:hover .about-image img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.contact-info {
    animation: slideInRight 0.8s ease-out;
}

/* Footer Styles */
footer {
    background: rgba(45, 27, 78, 0.9);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-section h3 {
    font-size: 24px;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(228, 76, 206, 0.3);
    animation: textGlow 2s infinite alternate;
}

.footer-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 300px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-pink);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: var(--primary-pink);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-pink);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(228, 76, 206, 0.4);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes floatRotate {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 15px rgba(228, 76, 206, 0.5); }
    100% { text-shadow: 0 0 25px rgba(228, 76, 206, 0.7); }
}

@keyframes expand {
    from { width: 0; }
    to { width: 50px; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px rgba(228, 76, 206, 0.3); }
    100% { box-shadow: 0 0 20px rgba(228, 76, 206, 0.6); }
}

/* Animation Trigger */
.animate {
    animation-play-state: running; /* Ensures animations play when section is visible */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-heading { font-size: 48px; }
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .about-image { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 20px; }
    nav ul { gap: 20px; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-heading { font-size: 36px; }
    .section-heading { font-size: 36px; }
    .about-buttons { justify-content: center; }
    .signup-title { font-size: 48px; }
    .signup-title-top { font-size: 36px; }
    .signup-title-middle { font-size: 24px; }
    .signup-title-bottom { font-size: 48px; }
    .signup-accent { width: 100px; }
    .footer-content { flex-direction: column; gap: 30px; }
}

@media (max-width: 576px) {
    nav ul { flex-wrap: wrap; justify-content: center; }
    .hero-shapes { min-height: 200px; }
    .signup-title { font-size: 36px; }
    .signup-title-top { font-size: 28px; }
    .signup-title-middle { font-size: 20px; }
    .signup-title-bottom { font-size: 36px; }
}