/* Reset and Base Styles */
:root {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 2rem; /* Adds padding for fixed headers if we add them later */
    scroll-behavior: smooth; /* Fallback for browsers that don't support :root */
}

body {
    font-family: 'Open Sauce One', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll; /* Prevents layout shift when content grows */
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

.logo {
    max-width: 600px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

/* Typography */
.tagline {
    font-size: 2rem;
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 300;
    animation: none;
}

.mission {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: #666;
    animation: none;
}

.description {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    animation: none;
}

.description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Testimonials */
.testimonials {
    margin: 6rem 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.recommender-info {
    flex: 1;
}

.name-wrapper {
    display: flex;
    align-items: center;
}

.recommender-info h3 {
    font-size: 1.2rem;
    margin: 0;
    margin-right: 0.5rem;
}

.linkedin-icon {
    width: 16px;
    height: 16px;
}

.position {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.2rem 0;
}

.relationship {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0.2rem 0;
}

.recommendation-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.recommendation-text p {
    margin-top: 0;
}

.additional-text {
    display: none;
    margin-top: 1rem;
}

.testimonial.expanded .additional-text {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial {
    cursor: pointer;
}

/* Footer */
footer {
    margin-top: 4rem;
    text-align: center;
    padding-bottom: 1rem;
}

footer a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
}

.signature {
    margin: 1.5rem 0;
    font-style: italic;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

.legal-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid #eaeaea;
    margin-top: 1.5rem;
}

.legal-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    padding: 0 0.5rem;
}

.legal-links a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo (immediate animation) */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce simultaneous animations with shorter, staggered delays */
.tagline.animate-in { transition-delay: 50ms; }
.mission.animate-in { transition-delay: 100ms; }
.description.animate-in { transition-delay: 150ms; }

/* Testimonial animations */
.testimonials h2.animate-in { transition-delay: 50ms; }
.testimonial:nth-child(1).animate-in { transition-delay: 100ms; }
.testimonial:nth-child(2).animate-in { transition-delay: 150ms; }
.testimonial:nth-child(3).animate-in { transition-delay: 200ms; }

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .testimonial {
        min-height: 180px; /* Even smaller minimum on mobile */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .logo {
        max-width: 400px;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .mission {
        font-size: 1.25rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .testimonials h2 {
        font-size: 1.75rem;
        margin-bottom: 3rem;
    }

    .description {
        margin-bottom: 2rem;
    }

    .testimonials {
        margin-top: 2rem;
    }
}

/* Print Styles */
@media print {
    .container {
        padding: 0;
    }
    
    .testimonial {
        break-inside: avoid;
    }
} 