:root {
    --primary-color: #0d47a1;
    --accent-color: #00d4ff;
    --text-light: #546e7a;
}

/* Section entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes successPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(30px) rotate(360deg);
        opacity: 0;
    }
}

/* Hero section */
.about-hero {
    position: relative;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1457195740896-7f345efef228?w=1200&q=80') center/cover no-repeat;
    z-index: -2;
    filter: brightness(0.6) saturate(1.1);
}

.about-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.4) 0%, rgba(13, 71, 161, 0.5) 100%);
    z-index: -1;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    max-width: 800px;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin: 0 0 1.5rem 0;
    animation: slideInLeft 0.6s ease-out;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: slideInRight 0.6s ease-out 0.1s both;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

/* Section container */
.about-section {
    margin: 4rem 0;
    animation: fadeInUp 0.8s ease-out backwards;
}

.about-section:nth-of-type(1) { animation-delay: 0.1s; }
.about-section:nth-of-type(2) { animation-delay: 0.2s; }
.about-section:nth-of-type(3) { animation-delay: 0.3s; }
.about-section:nth-of-type(4) { animation-delay: 0.4s; }
.about-section:nth-of-type(5) { animation-delay: 0.5s; }
.about-section:nth-of-type(6) { animation-delay: 0.6s; }

.about-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-section p {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-section ul li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.about-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Mission section - featured */
.mission-content {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.03) 0%, rgba(0, 212, 255, 0.03) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(13, 71, 161, 0.1);
}

.mission-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 16px 0 0 16px;
}

/* Technology section - subtle info */
.tech-content {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    border-top: 4px solid var(--primary-color);
}

.tech-info {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.1);
}

.tech-item h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Supporters section with logos */
.supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.supporter-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.supporter-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15);
}

.supporter-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.supporter-logo img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.supporter-item:hover .supporter-logo img {
    filter: grayscale(0%);
}

.supporter-item h4 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
}

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

/* Contact form section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-top: 4rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    transform: translateY(-2px);
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Success message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: successPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.success-message h2 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
}

.success-message p {
    color: var(--text-light);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.success-close-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
}

/* Confetti animation */
.confetti-particle {
    position: fixed;
    pointer-events: none;
    animation: confetti 3s ease-out forwards;
}

/* Stepper animation for What We Do */
.stepper-container {
    position: relative;
    padding: 2rem 0;
}

.stepper-step {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInStep 0.6s ease-out forwards;
}

.stepper-step:nth-child(1) { animation-delay: 0.2s; }
.stepper-step:nth-child(2) { animation-delay: 0.4s; }
.stepper-step:nth-child(3) { animation-delay: 0.6s; }
.stepper-step:nth-child(4) { animation-delay: 0.8s; }
.stepper-step:nth-child(5) { animation-delay: 1s; }

@keyframes slideInStep {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number-wrapper {
    position: relative;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d47a1, #00d4ff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
    position: relative;
    z-index: 2;
    animation: stepPulse 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes stepPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(13, 71, 161, 0.5);
    }
}

.step-connector {
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% + 2.5rem);
    background: linear-gradient(180deg, var(--accent-color) 0%, transparent 100%);
    z-index: 1;
}

.stepper-step:last-child .step-connector {
    display: none;
}

.step-content {
    flex: 1;
    padding-top: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Tech animation for Our Technology */
.tech-animation-container {
    position: relative;
    margin: 2rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    overflow: hidden;
}

.tech-flow {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.tech-node {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: techNodeAppear 0.6s ease-out forwards;
}

.tech-node:nth-child(1) { animation-delay: 0.2s; }
.tech-node:nth-child(2) { animation-delay: 0.4s; }
.tech-node:nth-child(3) { animation-delay: 0.6s; }

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

.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    animation: iconFloat 3s ease-in-out infinite;
}

.tech-node:nth-child(2) .tech-icon {
    animation-delay: 0.5s;
}

.tech-node:nth-child(3) .tech-icon {
    animation-delay: 1s;
}

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

.tech-node h4 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.tech-node p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.data-flow-arrow {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    animation: dataFlow 2s ease-in-out infinite;
}

@keyframes dataFlow {
    0% {
        opacity: 0.3;
        transform: translateX(-20px);
    }
    50% {
        opacity: 1;
        transform: translateX(0px);
    }
    100% {
        opacity: 0.3;
        transform: translateX(20px);
    }
}

.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1s; }
.particle:nth-child(3) { left: 50%; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 90%; animation-delay: 4s; }

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .stepper-step {
        margin-bottom: 2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .step-connector {
        left: 19px;
    }

    .tech-flow {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .supporters-grid {
        grid-template-columns: 1fr;
    }
}
