/* FITYA Website - Custom Styles */

:root {
    --primary-blue: #2b9fc3;
    --secondary-blue: #1e7a99;
    --accent-blue: #64b5d6;
    --dark-blue: #145a73;
    --light-blue: #e3f2fd;
    --primary-green: #16a34a;
    --secondary-green: #22c55e;
    --dark-gray: #111827;
    --light-gray: #f3f4f6;
    --text-gray: #6b7280;
    --white: #ffffff;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Ensure FITYA logo has transparent background */
img[alt="FITYA Logo"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    -webkit-background-clip: padding-box !important;
    -moz-background-clip: padding !important;
    background-clip: padding-box !important;
}

/* Remove any potential backgrounds from logo containers */
.navbar img[alt="FITYA Logo"],
footer img[alt="FITYA Logo"],
nav img[alt="FITYA Logo"] {
    background: none !important;
    background-color: rgba(0,0,0,0) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Navigation Styles */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

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

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

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

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

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

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

/* Card Hover Effects */
.program-card, .testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.program-card:hover, .testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Animation */
.progress-fill {
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from {
        width: 0;
    }
}

/* Partner Logo Effects */
.partner-logo {
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 159, 195, 0.4);
}

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

.btn-success:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

/* Section Spacing */
section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading Animation */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-blue);
    transform: translateY(-5px);
}

/* Donation Specific Styles */
.donate-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    background: var(--primary-green);
    height: 100%;
    border-radius: 15px;
    position: relative;
    transition: width 1s ease;
}

.donation-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background: var(--light-gray);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Impact Stats */
.impact-stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.impact-stat .number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-gray);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-blue);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .impact-stat .number {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .donation-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar, 
    footer, 
    .scroll-to-top, 
    .donation-tabs,
    #mobile-menu-button {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blue Theme for FITYA Brand (Matching Logo) */
.text-primary {
    color: #2b9fc3 !important;
}

.bg-primary {
    background-color: #2b9fc3 !important;
}

.bg-secondary {
    background-color: #1e7a99 !important;
}

.border-primary {
    border-color: #2b9fc3 !important;
}

.hover\:bg-primary:hover {
    background-color: #2b9fc3 !important;
}

.hover\:text-primary:hover {
    color: #2b9fc3 !important;
}

.from-primary {
    --tw-gradient-from: #2b9fc3 !important;
}

.to-secondary {
    --tw-gradient-to: #1e7a99 !important;
}

.text-accent {
    color: #64b5d6 !important;
}

.bg-accent {
    background-color: #64b5d6 !important;
}

/* Additional Blue Theme Classes */
.bg-darkblue {
    background-color: #145a73 !important;
}

.bg-lightblue {
    background-color: #e3f2fd !important;
}

.text-darkblue {
    color: #145a73 !important;
}

.hover\:bg-darkblue:hover {
    background-color: #145a73 !important;
}

.hover\:bg-lightblue:hover {
    background-color: #e3f2fd !important;
}