/* Color Palette */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFD166;
    --dark: #1A535C;
    --light: #F7FFF7;
    --purple: #9B5DE5;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-donate {
    background-color: var(--purple);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.4);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(155, 93, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(155, 93, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(155, 93, 229, 0);
    }
}

/* Floating Sticky Navigation */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: rgba(247, 255, 247, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 15px 0px;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-nav.scrolled {
    top: 10px;
    padding: 12px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 275px;
    height: auto;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    margin-left: 25px;
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* Underline Effect */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--purple);
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu.active {
    color: var(--purple);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    border-radius: 20px 0 0 20px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin: 20px 0;
    position: relative;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* Mobile Underline Effect */
.mobile-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    width: 100%;
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-donate {
    margin-top: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(255, 214, 102, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

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

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
}

.icon-1 { top: 10%; left: 10%; color: var(--primary); animation-delay: 0s; }
.icon-2 { top: 20%; right: 15%; color: var(--secondary); animation-delay: 1s; }
.icon-3 { bottom: 30%; left: 15%; color: var(--accent); animation-delay: 2s; }
.icon-4 { bottom: 20%; right: 10%; color: var(--purple); animation-delay: 3s; }

/* Services Section */
.services {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

/* How It Works - UPDATED */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(155, 93, 229, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    opacity: 0;
    z-index: 1;
}

.step.radiating .step-number::before {
    animation: radiate 2s ease-out infinite;
}

@keyframes radiate {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
}

.step h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.step p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonial-cards {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
}

.testimonial-card {
    min-width: 300px;
    background-color: var(--light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

.author-info p {
    font-size: 0.9rem;
    color: #777;
}

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

.cta-logo {
    width: 275px;
    max-width: 80%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background-color: white;
    color: var(--primary);
}

.cta .btn:hover {
    background-color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0f3a42 100%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 214, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.footer-column a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-column a:hover {
    color: var(--secondary);
}

.northly-link {
    color: var(--secondary) !important;
    font-weight: 600;
}

.northly-link::after {
    background-color: var(--primary) !important;
}

.northly-link:hover {
    color: var(--primary) !important;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary);
}

.copyright-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
    text-align: left;
}

.design-credit {
    color: #aaa;
    font-size: 0.9rem;
    text-align: right;
}

.design-credit i {
    color: var(--primary);
    margin: 0 5px;
}

/* Message from Gia Tab */
.message-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 30%, var(--accent) 70%, var(--purple) 100%);
    color: white;
    padding: 15px 10px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transition: opacity 2.5s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.message-tab.active {
    opacity: 1;
}

.message-tab.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2.5s ease, visibility 2.5s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.lightbox-text {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--dark);
}

.lightbox-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.lightbox-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .copyright-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copyright, .design-credit {
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .floating-nav {
        padding: 12px 20px;
        width: 95%;
    }
    
    .message-tab {
        padding: 12px 8px;
        font-size: 1rem;
    }
    
    .step {
        margin-bottom: 40px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .nav-logo {
        width: 275px;
    }
    
    .cta-logo {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        width: 2250px;
    }
    
    .cta-logo {
        width: 200px;
    }
}