* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated RMG-themed background elements */
.rmg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.fabric-pattern {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.03;
    animation: floatPattern 25s infinite linear;
}

.fabric-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.1) 0px,
        rgba(255,255,255,0.1) 2px,
        transparent 2px,
        transparent 8px
    );
}

.sewing-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: sewingAnimation 15s infinite;
}

.thread-particle {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.6), rgba(59, 130, 246, 0.6));
    border-radius: 2px;
    animation: threadFloat 20s infinite linear;
}

@keyframes floatPattern {
    0% { transform: translateX(-100px) translateY(-100px) rotate(0deg); }
    100% { transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(360deg); }
}

@keyframes sewingAnimation {
    0% { left: -100%; width: 0%; }
    50% { left: 0%; width: 100%; }
    100% { left: 100%; width: 0%; }
}

@keyframes threadFloat {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0;
    }
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.main-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 4rem 3rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out;
    transition: transform 0.3s ease;
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.logo-section {
    margin-bottom: 3rem;
    position: relative;
}

.logo-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: logoShimmer 3s infinite;
}

@keyframes logoShimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.organization-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.organization-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-section {
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6)); }
}

.tagline {
    font-size: 1.6rem;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    padding: 2rem 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}

.progress-section {
    margin-bottom: 3rem;
}

.progress-label {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
    border-radius: 10px;
    position: relative;
    animation: progressFill 3s ease-out forwards;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressFill {
    to { width: 78%; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.contact-section {
    background: rgba(30, 41, 59, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 2.5rem;
    position: relative;
}

.contact-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.contact-title {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-email {
    font-size: 1.6rem;
    color: #3b82f6;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-email:hover {
    color: #06b6d4;
    transform: translateY(-2px);
    text-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    transition: width 0.4s ease;
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
}

.social-icon:hover {
    color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 30px rgba(59, 130, 246, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* Ripple animation for social icons */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Keyboard Navigation Support */
.keyboard-navigation *:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 3rem 2rem;
        margin: 1.5rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .main-content {
        padding: 2.5rem 1.5rem;
        margin: 0.5rem;
        border-radius: 24px;
        max-width: 100%;
    }

    .main-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        line-height: 1.4;
    }

    .description {
        font-size: 1rem;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 300px;
        width: 100%;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .stat-title {
        font-size: 1rem;
    }

    .stat-desc {
        font-size: 0.85rem;
    }

    .logo-container {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .organization-name {
        font-size: 1.3rem;
    }
    
    .organization-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .contact-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-email {
        font-size: 1.3rem;
        word-break: break-all;
    }
    
    .progress-label {
        font-size: 1rem;
    }
    
    .footer-note {
        font-size: 0.85rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
        border-radius: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .logo-container {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .organization-name {
        font-size: 1.1rem;
    }

    .organization-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .stat-item {
        padding: 1.2rem 0.8rem;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    .contact-section {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .contact-title {
        font-size: 1rem;
    }
    
    .contact-email {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .progress-label {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .main-content {
        padding: 1.5rem 0.8rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .rmg-background {
        display: none;
    }
    
    .main-content {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .social-links {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .main-content {
        border: 2px solid white;
    }
    
    .stat-item {
        border: 1px solid white;
    }
    
    .social-icon {
        border: 1px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fabric-pattern,
    .sewing-line,
    .thread-particle {
        animation: none;
    }
}

/* Mobile-specific optimizations */
@media (hover: none) and (pointer: coarse) {
    .stat-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .social-icon:hover {
        transform: none;
        box-shadow: none;
    }
    
    .contact-email:hover {
        transform: none;
        text-shadow: none;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .organization-name {
        font-size: 1rem;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
}