/* Scholastica - Educational Portfolio Styles */
/* Greek/Roman Aesthetic Theme */

:root {
    --primary-color: #8B4513;      /* Saddle Brown - Classical columns */
    --secondary-color: #DAA520;    /* Goldenrod - Greek gold */
    --accent-color: #CD853F;       /* Peru - Warm earth tone */
    --background-color: #FFF8DC;   /* Cornsilk - Papyrus-like */
    --card-background: #FFFEF7;    /* Off-white - Marble */
    --text-primary: #2F4F4F;       /* Dark slate gray */
    --text-secondary: #696969;     /* Dim gray */
    --border-color: #D2B48C;       /* Tan - Classical stone */
    --shadow-light: rgba(139, 69, 19, 0.1);
    --shadow-medium: rgba(139, 69, 19, 0.2);
    --shadow-heavy: rgba(139, 69, 19, 0.3);
}

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

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--card-background) 0%, var(--background-color) 100%);
    border-bottom: 3px solid var(--border-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(218, 165, 32, 0.02) 10px,
            rgba(218, 165, 32, 0.02) 20px
        );
    pointer-events: none;
}

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

.laurel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.laurel {
    font-size: 2.5rem;
    color: var(--secondary-color);
    animation: gentle-sway 4s ease-in-out infinite;
}

.left-laurel {
    transform: scaleX(-1);
    animation-delay: -2s;
}

@keyframes gentle-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.3rem;
    text-shadow: 2px 2px 4px var(--shadow-light);
    margin: 0;
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
    margin: 0.5rem 0 1.5rem;
    letter-spacing: 0.1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

/* Resource Banner (full-width card for Curricular Resources) */
.resource-banner {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow:
        0 8px 24px var(--shadow-light),
        0 2px 8px var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.resource-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.resource-banner:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px var(--shadow-medium),
        0 4px 16px var(--shadow-heavy);
    border-color: var(--secondary-color);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 
        0 8px 24px var(--shadow-light),
        0 2px 8px var(--shadow-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.05), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 40px var(--shadow-medium),
        0 4px 16px var(--shadow-heavy);
    border-color: var(--secondary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.project-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Crimson Text', serif;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-accent:hover {
    background: transparent;
    color: var(--secondary-color);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

/* Pitch Section */
.pitch-section {
    margin-bottom: 4rem;
}

.pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pitch-card {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all 0.3s ease;
}

.pitch-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.pitch-number {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pitch-label {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.pitch-detail {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pipeline Demo */
.pipeline-demo {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.pipeline-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
}

.pipeline-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.pipeline-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pipeline-step {
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 240px;
}

.pipeline-step .step-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.pipeline-step h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pipeline-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    padding-top: 1.5rem;
}

/* Variety Text */
.variety-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.variety-text p {
    margin-bottom: 1rem;
}

.variety-text p:last-child {
    margin-bottom: 0;
}

/* Disclaimer Section */
.disclaimer-section {
    margin: 4rem 0;
}

.disclaimer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.disclaimer-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
}

.disclaimer-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.disclaimer-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 700px;
    margin: -2rem auto 2.5rem;
    line-height: 1.6;
}

/* Description Section (downloads page) */
.description-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: var(--card-background);
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.description-editor {
    max-width: 800px;
    margin: 0 auto;
}

/* Support Section */
.support-section {
    margin: 4rem 0;
    text-align: center;
}

.support-card {
    display: inline-block;
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 8px 24px var(--shadow-light);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-motto {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--secondary-color);
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: var(--secondary-color);
    margin: 1.5rem auto;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 0.2rem;
    }
    
    .laurel-wrapper {
        gap: 1rem;
    }
    
    .laurel {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .pitch-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-flow {
        flex-direction: column;
        align-items: center;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .pipeline-step {
        max-width: 100%;
    }

    .disclaimer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 0.1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .support-card {
        padding: 1.5rem 2rem;
    }
}