/* ===================================
   Profilioo Foundation - Main Stylesheet
   A warm, trustworthy charity website
   =================================== */

/* ===================================
   CSS VARIABLES & COLOR SCHEME
   =================================== */
:root {
    --primary-red: #E2231A;
    --primary-dark: #333333;
    --secondary-text: #666666;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --accent-orange: #FFA500;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.section-subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    text-align: center;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: #c51d15;
    border-color: #c51d15;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.logo span {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--primary-dark);
    transition: var(--transition);
}

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

.nav-menu .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1600') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   MISSION & VISION SECTION
   =================================== */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.mission-box, .vision-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.mission-box i, .vision-box i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.mission-box h3, .vision-box h3 {
    margin-bottom: 1rem;
}

/* ===================================
   CAUSES/CARDS GRID
   =================================== */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cause-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cause-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cause-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cause-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), #ff4444);
    color: var(--white);
}

.cause-icon i {
    font-size: 4rem;
}

.cause-content {
    padding: 2rem;
}

.cause-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cause-content p {
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--light-bg);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-orange));
    transition: width 1s ease;
}

.donation-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.cause-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cause-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    flex: 1;
}

/* ===================================
   STATISTICS/COUNTER SECTION
   =================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-red), #ff4444);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-red);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin: 0;
}

/* ===================================
   DONATION CTA SECTION
   =================================== */
.donation-cta {
    background: linear-gradient(rgba(226, 35, 26, 0.95), rgba(226, 35, 26, 0.95)),
                url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1600') center/cover no-repeat;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.donation-cta h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.donation-cta p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.donation-progress {
    max-width: 600px;
    margin: 2rem auto;
}

.donation-progress .progress-bar {
    height: 20px;
}

.donation-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ===================================
   TEAM SECTION
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-info p {
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   FORM STYLES
   =================================== */
.form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--primary-red);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* ===================================
   CONTACT INFO
   =================================== */
.contact-info {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 0.2rem;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
}

.contact-item p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   BLOG CARDS
   =================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 1.8rem;
}

.blog-date {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    margin-bottom: 1.2rem;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-red);
    font-weight: 600;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Hero section */
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    /* Grids */
    .causes-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Donation stats */
    .donation-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================
   UTILITY - BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}
