@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors Extracted from Logo */
    --primary: #00C6FF;
    /* Bright Cyan */
    --primary-dark: #0072FF;
    /* Deep Blue */
    --accent: #29B6F6;
    /* Light Blue Accent */
    --secondary: #00d2ff;
    /* Secondary Cyan */

    --text-main: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --off-white: #f8fafc;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --gradient-surface: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --backdrop-blur: blur(12px);

    --shadow-sm: 0 4px 6px -1px rgba(0, 114, 255, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 114, 255, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 114, 255, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 198, 255, 0.4);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --container: 1240px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Decorations */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

body::before {
    width: 400px;
    height: 400px;
    background: #00c6ff;
    top: -100px;
    right: -100px;
    animation: floatBlob 20s infinite alternate;
}

body::after {
    width: 300px;
    height: 300px;
    background: #0072ff;
    top: 40%;
    left: -100px;
    animation: floatBlob 25s infinite alternate-reverse;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 114, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eef2ff;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(15deg);
}

/* --- Sections --- */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 198, 255, 0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 198, 255, 0.2);
}

/* --- animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 198, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--backdrop-blur);
    border-radius: 100px;
    padding: 12px 30px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
    max-width: 100%;
    padding: 15px 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-visuals {
    position: relative;
    height: 600px;
    z-index: 1;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 4px solid var(--white);
    transition: var(--transition);
}

.hero-card:hover {
    transform: scale(1.05) rotate(-2deg);
    z-index: 10;
}

.hero-img-main {
    width: 320px;
    right: 20px;
    top: 20px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-img-secondary {
    width: 240px;
    left: 0;
    bottom: 80px;
    z-index: 3;
    animation: float 5s ease-in-out infinite 1s;
}

.stat-floating {
    position: absolute;
    right: 300px;
    bottom: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: float 7s ease-in-out infinite 0.5s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.stat-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}


/* --- Process/Features Grid --- */
.process-section {
    background: var(--white);
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -60px;
    padding-top: 100px;
    z-index: 5;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.03);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-brand);
    transition: 0.5s;
}

.feature-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: #e2e8f0;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 198, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-brand);
    color: var(--white);
    transform: rotateY(180deg);
}

/* --- Fundraisers --- */
.fundraisers {
    position: relative;
}

.fundraiser-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eef2ff;
    position: relative;
}

.fundraiser-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.fundraiser-card:hover .card-img img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 24px;
}

.campaign-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.organizer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.progress-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 10px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.amount-raised {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.card-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--off-white);
    color: var(--text-main);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.card-btn:hover {
    background: var(--gradient-brand);
    color: var(--white);
}

/* --- App CTA --- */
.cta-banner {
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    margin: 40px 0;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    border: 100px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.download-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    background: var(--white);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: 0.3s;
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */
footer {
    background: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.newsletter input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

.newsletter input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Responsive -- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 60px;
    }

    .hero-visuals {
        display: none;
    }

    /* Simplified for tablet/mobile mid-range */
    .hero-card {
        position: static;
        transform: none;
        display: inline-block;
        margin: 10px;
        max-width: 100%;
    }

    /* Actually let's just stack visuals if possible or hide complex floats */
}

@media (max-width: 768px) {
    .header {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        padding: 15px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}