/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9ff 0%, #fef7f0 50%, #f0f8ff 100%);
    overflow-x: hidden;
}

/* Custom CSS Variables for Pastel Colors */
:root {
    --primary-color: #8B5FBF;
    --primary-light: #A47BD1;
    --secondary-color: #FF9A9E;
    --accent-mint: #A8E6CF;
    --accent-peach: #FFD3A5;
    --accent-lavender: #E6E6FA;
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
    --gray-50: #F7FAFC;
    --gray-100: #EDF2F7;
    --shadow-soft: 0 10px 25px rgba(139, 95, 191, 0.1);
    --shadow-medium: 0 15px 35px rgba(139, 95, 191, 0.15);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.display-4, .display-5 {
    font-weight: 700;
}

.lead {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Decorative Background Blobs */
.blob {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    top: 50%;
    left: -10%;
    animation-delay: 2s;
}

.blob-3 {
    top: 80%;
    right: 10%;
    animation-delay: 4s;
}

.blob img {
    width: 300px;
    height: 300px;
    filter: blur(1px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* Header/Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 95, 191, 0.1);
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--accent-lavender);
    transform: translateY(-2px);
}

.nav-link.btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white !important;
}

.nav-link.btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(248, 249, 255, 0.7) 0%, rgba(254, 247, 240, 0.7) 100%);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-content h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.hero-illustration img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 100px 0;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 95, 191, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Collapse animation and visibility for feature descriptions */
.feature-description.collapse {
    display: none;
  }
  
  .feature-description.collapse.show {
    display: block;
}

/* Optional: Animate the arrow rotation */
.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: #007bff;
  }
  
  .toggle-arrow.rotate {
    transform: rotate(180deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-peach));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-icon i {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 154, 158, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.floating-element {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
    animation: floatSmall 4s ease-in-out infinite;
}

.floating-element-1 {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-peach));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.floating-element-2 {
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-lavender), var(--primary-light));
    border-radius: 50%;
    animation-delay: 2s;
}

.floating-element-3 {
    bottom: 30%;
    left: 20%;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-peach), var(--secondary-color));
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    animation-delay: 4s;
}

@keyframes floatSmall {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-5deg); }
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 249, 255, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.how-it-works-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 154, 158, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.how-it-works-floating {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
    animation: floatSmall 5s ease-in-out infinite;
}

.how-it-works-floating-1 {
    top: 30%;
    left: 5%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-peach), var(--secondary-color));
    border-radius: 50% 30% 70% 40% / 40% 70% 30% 60%;
    animation-delay: 1s;
}

.how-it-works-floating-2 {
    top: 70%;
    right: 8%;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--accent-mint), var(--primary-light));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 3s;
}

.how-it-works-floating-3 {
    bottom: 40%;
    left: 15%;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, var(--accent-lavender), var(--primary-color));
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    animation-delay: 5s;
}

.step-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 95, 191, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: translateY(-50%);
    opacity: 0.6;
}

.step-connector::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -8px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .step-connector {
        display: none;
    }
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.about-illustration img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.footer h6 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link i {
    width: 18px;
    height: 18px;
}

/* Register Page Specific Styles */
.register-section {
    padding-top: 180px;
    min-height: 100vh;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    margin-bottom: 3rem;
}

.google-form {
    border-radius: var(--border-radius);
    min-height: 800px;
}

.form-fallback .card {
    border-radius: var(--border-radius);
}

.form-control, .form-select {
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 95, 191, 0.25);
}

.form-benefits {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.benefit-item {
    padding: 1rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin: 0 auto 1rem;
    display: block;
}

.benefit-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

.scale-up {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleUp 0.6s ease forwards;
}

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

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

@keyframes scaleUp {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .blob {
        display: none;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .form-benefits {
        margin-top: 2rem;
    }
    
    .google-form {
        height: 700px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .blob {
        animation: none;
    }
}

/* Focus States for Better Accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar, .footer, .blob {
        display: none;
    }
    
    .hero-section, .features-section, .about-section, .cta-section {
        padding: 2rem 0;
        background: white !important;
    }
}
