/* Main Styles for NAV YUG Web3 NGO */

/* CSS Variables for iOS-style design */
:root {
    /* React-style vibrant color palette */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --pink-color: #ec4899;
    --orange-color: #f97316;
    --emerald-color: #059669;
    --blue-color: #3b82f6;
    --purple-color: #8b5cf6;
    --teal-color: #14b8a6;
    
    /* Background and surface colors */
    --background-color: #f8fafc;
    --background-dark: #0f172a;
    --surface-color: #ffffff;
    --surface-dark: #1e293b;
    
    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* Border and shadow */
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--teal-color));
    --gradient-success: linear-gradient(135deg, var(--success-color), var(--emerald-color));
    --gradient-warning: linear-gradient(135deg, var(--warning-color), var(--orange-color));
    --gradient-pink: linear-gradient(135deg, var(--pink-color), var(--purple-color));
    --gradient-blue: linear-gradient(135deg, var(--blue-color), var(--accent-color));
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --gradient-cosmic: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #a8edea 100%);
    
    /* Glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --backdrop-blur: blur(20px);
}

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

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Utility classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* iOS-style buttons */
.ios-button {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50px !important;
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
}

.ios-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.ios-button:active {
    transform: translateY(0);
    transition: all 0.1s;
}

.ios-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ios-button:hover::before {
    left: 100%;
}

/* Glass morphism effects */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.glass-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 25%, rgba(236, 72, 153, 0.1) 50%, rgba(6, 182, 212, 0.1) 75%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-stats {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.floating-card {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature list */
.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Service cards */
.service-card {
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:nth-child(1)::before {
    background: var(--gradient-primary);
}

.service-card:nth-child(2)::before {
    background: var(--gradient-secondary);
}

.service-card:nth-child(3)::before {
    background: var(--gradient-success);
}

.service-card:nth-child(4)::before {
    background: var(--gradient-warning);
}

.service-card:nth-child(5)::before {
    background: var(--gradient-pink);
}

.service-card:nth-child(6)::before {
    background: var(--gradient-blue);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:nth-child(1) .service-icon {
    background: var(--gradient-primary);
}

.service-card:nth-child(2) .service-icon {
    background: var(--gradient-secondary);
}

.service-card:nth-child(3) .service-icon {
    background: var(--gradient-success);
}

.service-card:nth-child(4) .service-icon {
    background: var(--gradient-warning);
}

.service-card:nth-child(5) .service-icon {
    background: var(--gradient-pink);
}

.service-card:nth-child(6) .service-icon {
    background: var(--gradient-blue);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features li:last-child {
    border-bottom: none;
}

/* Impact section */
.impact-card {
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.impact-card:nth-child(1)::before {
    background: var(--gradient-primary);
}

.impact-card:nth-child(2)::before {
    background: var(--gradient-pink);
}

.impact-card:nth-child(3)::before {
    background: var(--gradient-success);
}

.impact-card:nth-child(4)::before {
    background: var(--gradient-secondary);
}

.impact-card:hover::before {
    opacity: 0.1;
}

.impact-card > * {
    position: relative;
    z-index: 1;
}

.impact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.impact-card:nth-child(1) .impact-icon {
    background: var(--gradient-primary);
}

.impact-card:nth-child(2) .impact-icon {
    background: var(--gradient-pink);
}

.impact-card:nth-child(3) .impact-icon {
    background: var(--gradient-success);
}

.impact-card:nth-child(4) .impact-icon {
    background: var(--gradient-secondary);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.impact-suffix {
    font-size: 2rem;
    font-weight: 600;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Testimonials */
.testimonial-section {
    margin-top: 4rem;
}

.testimonial-card {
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--text-secondary);
}

/* Contact form */
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info i {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.contact-info h5 {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1a1a1a !important;
}

.footer-brand h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #ccc;
    line-height: 1.6;
}

.footer-title {
    color: 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: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.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: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.copyright {
    margin: 0;
    color: #999;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recommendation-item:last-child {
    border-bottom: none;
}

.next-steps {
    padding-left: 1rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}