/* SOUP Website Styles */

:root {
    --primary-blue: #047cb8;
    --light-blue: #047cb8;
    --dark-blue: #01477a;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --text-dark: #1e293b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: 76px;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: Impact, 'Arial Black', sans-serif;
    color: var(--dark-blue) !important;
    letter-spacing: 0.05em;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-donate {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-blue);
}

.btn-donate:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 Q 25 25, 50 50 T 100 50" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Impact Stats */
.impact-stats {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    animation: countUp 1.5s ease;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.program-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

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

.program-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* Carousel */
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-blue);
    border-radius: 50%;
    padding: 20px;
}

/* Fundraiser Cards */
.fundraiser-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    height: 100%;
    transition: all 0.3s;
}

.fundraiser-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.fundraiser-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fundraiser-card .btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.fundraiser-card .btn-light:hover {
    background-color: var(--light-gray);
    transform: scale(1.05);
}

/* Partner Logos */
.partner-logo {
    max-height: 60px;
    max-width: 120px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
    margin: 1rem auto;
    display: block;
}

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

/* Mission Cards */
.mission-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mission-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.mission-card h3 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Objectives */
.objective-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.objective-item i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.objective-item span {
    margin-left: 0.5rem;
}

/* Board Member Cards */
.board-member-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.board-member-card.featured {
    border: 3px solid var(--primary-blue);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.board-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.board-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--light-gray);
}

.board-member-card h4 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.board-member-card .position {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Page */
.contact-info-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
}

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

.contact-icon {
    background: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.contact-item h5 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--dark-blue);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Forms Page */
.form-download-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.form-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.form-icon {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    margin-right: 2rem;
}

.form-content {
    flex-grow: 1;
}

.form-content h3 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.form-details li {
    padding: 0.3rem 0;
    color: #64748b;
}

.form-action {
    flex-shrink: 0;
}

.submission-method {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    height: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 1000;
}

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

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

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

footer a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--white);
}

footer h4, footer h5 {
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 0.02em;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .section {
        padding: 40px 0;
    }

    .page-header {
        padding: 80px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .program-card,
    .fundraiser-card,
    .mission-card {
        margin-bottom: 1.5rem;
    }

    .impact-stats {
        padding: 1.5rem 1rem;
        margin-top: -30px;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .form-download-card {
        flex-direction: column;
        text-align: center;
    }

    .form-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .form-action {
        margin-top: 1rem;
    }

    .carousel-item img {
        height: 250px;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .btn-donate {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile logo sizing */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 60px !important;
    }
    
    .navbar-brand span span:first-child {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand span span:last-child {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 55px !important;
    }
    
    .navbar-brand span span:first-child {
        font-size: 1rem !important;
    }
    
    .navbar-brand span span:last-child {
        font-size: 0.65rem !important;
    }
}