/* ============================================
   JUNTOS PELA ISADORA - CUSTOM STYLES
   Modern, Professional & Mobile-First Design
   ============================================ */

/* ============================================
   ROOT VARIABLES & TYPOGRAPHY
   ============================================ */
:root {
    /* Color Palette */
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #f39c12;
    --secondary-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --gray-900: #212529;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.9) 100%);
    --gradient-dark: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.9) 100%);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    transition: all var(--transition-base);
}

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

section {
    position: relative;
    overflow: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition-base);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.navbar.navbar-scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all var(--transition-base);
}

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

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

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

.btn-donate {
    background: var(--gradient-primary);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: all var(--transition-base);
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/logo.png') center center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    opacity: 0.95;
    max-width: 600px;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    border-width: 2px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline-light.btn-hero:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    transition: all var(--transition-base);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

/* ============================================
   INFO CARDS SECTION
   ============================================ */
.info-cards-section {
    padding: var(--spacing-xl) 0;
    background: var(--gray-100);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.info-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    height: 100%;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.info-card.highlight {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.info-card.highlight .info-card-title,
.info-card.highlight .info-card-text {
    color: var(--white);
}

.info-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.info-card.highlight .info-card-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.info-card-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.info-card-text {
    text-align: center;
    line-height: 1.7;
    opacity: 0.9;
}

.pix-key {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    text-align: center;
    letter-spacing: 1px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
}

/* ============================================
   STORY SECTION
   ============================================ */
.story-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
}

.story-item {
    margin-bottom: var(--spacing-lg);
    align-items: center;
}

.story-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: all var(--transition-base);
}

.story-image:hover::after {
    opacity: 1;
}

.story-image:hover {
    transform: scale(1.05);
}

.story-content {
    padding: 2rem;
}

.story-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.story-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.story-quote {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 2rem 0;
    color: var(--dark-color);
}

.quote-author {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-base);
}

.story-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.story-link i {
    transition: all var(--transition-base);
}

.story-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   DONATION CTA SECTION
   ============================================ */
.donation-cta-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: url('../img/bg2.jpg') center center/cover no-repeat;
    background-attachment: fixed;
}

.donation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: 1;
}

.donation-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.donation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.donation-icon i {
    font-size: 3rem;
    color: var(--white);
    animation: heartbeat 2s infinite;
}

.donation-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
}

.donation-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.donation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.donation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.donation-card-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.donation-card-body {
    padding: 3rem 2rem;
}

.pix-key-large {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    text-align: center;
    letter-spacing: 2px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    word-break: break-all;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.footer-text {
    color: rgba(236, 240, 241, 0.7);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-header {
    padding: 1rem;
}

.modal-body img {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .social-links {
        justify-content: flex-end;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-section {
        background-attachment: scroll;
    }

    .donation-cta-section {
        background-attachment: scroll;
    }

    .story-content {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }

    .story-image {
        height: 400px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .info-cards-section {
        padding: var(--spacing-lg) 0;
        margin-top: -2rem;
    }

    .info-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .story-section {
        padding: var(--spacing-lg) 0;
    }

    .story-image {
        height: 350px;
        margin-bottom: 1.5rem;
    }

    .story-number {
        font-size: 3rem;
    }

    .story-title {
        font-size: 1.6rem;
    }

    .story-quote {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .donation-cta-section {
        padding: var(--spacing-lg) 0;
    }

    .pix-key-large {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
        letter-spacing: 1px;
    }

    .btn-hero {
        padding: 0.875rem 2rem;
        width: 100%;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-scroll {
        bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .story-image {
        height: 300px;
    }

    .donation-icon {
        width: 80px;
        height: 80px;
    }

    .donation-icon i {
        font-size: 2.5rem;
    }

    .pix-key-large {
        font-size: 1.2rem;
        padding: 0.875rem 1rem;
    }

    .donation-card-body {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .btn,
    .social-links {
        display: none !important;
    }

    .hero-section,
    .donation-cta-section {
        background: var(--white) !important;
        color: var(--dark-color) !important;
    }
}
