.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: white; /* White background for better contrast */
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #333; /* Black color for main text */
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
    color: #333; /* Black color for paragraph */
}

/* Wave Animation Styles */
.meu-solutions-animated {
    display: inline-block;
    color: #ff9500; /* Pure orange color */
    font-weight: bold;
    letter-spacing: 2px;
}

.wave-letter {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: center bottom;
    color: #ff9500; /* Ensure each letter is orange */
}

/* Individual letter delays for wave effect */
.wave-letter:nth-child(1) { animation-delay: 0s; }
.wave-letter:nth-child(2) { animation-delay: 0.1s; }
.wave-letter:nth-child(3) { animation-delay: 0.2s; }
.wave-letter:nth-child(4) { animation-delay: 0.3s; }
.wave-letter:nth-child(5) { animation-delay: 0.4s; }
.wave-letter:nth-child(6) { animation-delay: 0.5s; }
.wave-letter:nth-child(7) { animation-delay: 0.6s; }
.wave-letter:nth-child(8) { animation-delay: 0.7s; }
.wave-letter:nth-child(9) { animation-delay: 0.8s; }
.wave-letter:nth-child(10) { animation-delay: 0.9s; }
.wave-letter:nth-child(11) { animation-delay: 1s; }
.wave-letter:nth-child(12) { animation-delay: 1.1s; }
.wave-letter:nth-child(13) { animation-delay: 1.2s; }

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

/* Hover effect to speed up animation */
.meu-solutions-animated:hover .wave-letter {
    animation-duration: 0.8s;
}

/* Glow effect for orange text */
.meu-solutions-animated {
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
    transition: text-shadow 0.3s ease;
}

.meu-solutions-animated:hover {
    text-shadow: 0 0 20px rgba(255, 149, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .meu-solutions-animated {
        letter-spacing: 1px;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .meu-solutions-animated {
        letter-spacing: 0.5px;
    }
}

/* Additional styling for better visual hierarchy */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    color: orange;
}

.back-btn {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 149, 0, 0.4);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
}

.hero-image {
    max-width: 900px;
    width: 100%;
    height: auto;
    margin: 0 auto 50px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 32px 32px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced Story Cards Grid - 3 per row */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.story-card {
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
}
.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    z-index: 1;
}
.story-header {
    padding: 40px 32px 24px;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.03) 0%, rgba(255, 107, 53, 0.03) 100%);
    position: relative;
    flex-shrink: 0;
}

.story-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    box-shadow: 0 12px 30px rgba(255, 149, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.story-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff9500, #ff6b35);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.story-role {
    color: #ff9500;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 149, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.story-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff9500, #ff6b35);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.story-card:hover .story-icon {
    transform: scale(1.1) rotate(5deg);
}

.story-header {
    padding: 24px 20px 16px;
    position: relative;
    flex-shrink: 0;
}

.story-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.story-title {
    margin-bottom: 8px;
}

.story-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.story-role {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.story-content {
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-preview {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-weight: 400;
    opacity: 0.95;
}

.story-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2px;
}

.view-details-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.difficulty-badge {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    background: white;
    margin: 20px;
    padding: 0;
    border-radius: 24px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
    padding: 40px;
    border-radius: 24px 24px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.modal-header .role {
    opacity: 0.95;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 48px;
}

.modal-body p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
    color: #444;
    font-weight: 400;
}

.highlight {
    background: linear-gradient(120deg, rgba(255, 149, 0, 0.15) 0%, rgba(255, 107, 53, 0.15) 100%);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #d63031;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 6px solid #ff9500;
    padding: 32px;
    margin: 32px 0;
    font-style: italic;
    border-radius: 0 16px 16px 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: #ff9500;
    position: absolute;
    top: -8px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.quote p {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card {
    animation: fadeInUp 0.8s ease forwards;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }
.story-card:nth-child(4) { animation-delay: 0.4s; }

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-card {
        height: auto;
        min-height: 350px;
    }

    .story-header {
        padding: 20px 16px 12px;
    }

    .story-content {
        padding: 0 16px;
    }

    .story-footer {
        padding: 0 16px 16px;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 32px 24px;
    }

    .modal-body {
        padding: 32px 24px;
    }

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

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    font-size: 20px;
    font-weight: bold;
}

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

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 149, 0, 0.4);
}

/* Loading States */
.story-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.story-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
