/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #111827;
    color: #f3f4f6;
    min-height: 100vh;
    line-height: 1.5;
}

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 1280px;
    }
}

/* Header */
header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

header .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header .text-center {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
}

h1 .gradient-text {
    background: linear-gradient(to right, #2563eb, #60a5fa, #e5e7eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: #9ca3af;
}

/* Main Content */
main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #374151;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
}

/* Card Image Container */
.card-image-container {
    position: relative;
}

.card-image-container img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, #111827, rgba(17, 24, 39, 0.6), transparent);
}

.card-image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem;
}

.card-image-title h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.card-image-title p {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-section {
    margin-bottom: 1.5rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(37, 99, 235, 0.9);
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-section p {
    color: #d1d5db;
    line-height: 1.75;
}

/* Lists */
.card-section ul {
    list-style: disc;
    list-style-position: inside;
    color: #d1d5db;
}

.card-section ul li {
    margin-bottom: 0.5rem;
}

/* Quotes Container */
.quotes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

blockquote {
    position: relative;
    padding: 1rem;
    background-color: rgba(17, 24, 39, 0.5);
    border-radius: 0.5rem;
    border-left: 4px solid #4b5563;
}

blockquote p {
    font-style: italic;
    color: #d1d5db;
}

/* Footer */
footer {
    background-color: #111827;
    border-top: 1px solid #1f2937;
    margin-top: 3rem;
}

footer .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
    color: #6b7280;
}

footer p {
    margin: 0;
}

footer .footer-credit {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

footer a {
    color: #2563eb;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

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

/* Animation delays for staggered effect */
.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 100ms; }
.card:nth-child(3) { animation-delay: 200ms; }
.card:nth-child(4) { animation-delay: 300ms; }
.card:nth-child(5) { animation-delay: 400ms; }
.card:nth-child(6) { animation-delay: 500ms; }
.card:nth-child(7) { animation-delay: 600ms; }
.card:nth-child(8) { animation-delay: 700ms; }
.card:nth-child(9) { animation-delay: 800ms; }
.card:nth-child(10) { animation-delay: 900ms; }

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