/* CSS Variables for consistent theming */
:root {
    --primary-color: #3F51B5; /* Indigo */
    --primary-color-dark: #303F9F;
    --accent-color: #FFC107; /* Amber */
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #F8F8F8;
    --card-background: #FFF;
    --footer-background: #212121; /* Dark Gray */
    --footer-text-color: #FAFAFA;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color-dark);
}

h1 {
    font-size: 3em;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-accent:hover {
    background-color: #FFD54F; /* Lighter shade of amber */
    transform: translateY(-2px);
}

/* --- Header --- */
.main-header {
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInTop 0.5s ease-out forwards;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--light-text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.header-cta {
    margin-left: 30px;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1920x800/3F51B5/FFFFFF?text=Experienced+Developers+Collaborating') no-repeat center center/cover;
    color: #FFF;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFF;
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px);
}

.hero-section .sub-headline {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px);
}

.hero-cta {
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px);
}

/* --- Value Proposition Section --- */
.value-prop-section, .mission-section, .testimonials-section, .join-section {
    padding: 80px 0;
}

.value-prop-section {
    background-color: var(--background-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* Initial state for animation */
    transform: translateY(30px); /* Initial state for animation */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card .material-icons {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 10px;
    font-size: 1.5em;
    color: var(--primary-color-dark);
}

.card p {
    font-size: 1em;
    color: var(--light-text-color);
}

/* --- Mission Section --- */
.mission-section {
    background-color: #FFF;
    text-align: center;
}

.mission-section p {
    max-width: 900px;
    margin: 0 auto;
    color: var(--light-text-color);
    font-size: 1.2em;
    line-height: 1.8;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--background-color);
}

.testimonial-carousel {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center;
    gap: 30px;
}

.testimonial-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    max-width: 380px;
    opacity: 0; /* Initial state for animation */
    transform: translateY(30px); /* Initial state for animation */
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.testimonial-item cite {
    display: block;
    font-weight: 700;
    color: var(--primary-color-dark);
    font-size: 0.9em;
}

/* --- Join Section --- */
.join-section {
    background-color: #FFF;
    text-align: center;
}

.join-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--light-text-color);
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.step-item {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    opacity: 0; /* Initial state for animation */
    transform: translateY(30px); /* Initial state for animation */
}

.step-item .material-icons {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-item h3 {
    font-size: 1.4em;
    color: var(--primary-color-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-bottom: 0;
}

.cta-final {
    font-size: 1.2em;
    padding: 15px 35px;
    opacity: 0; /* Initial state for animation */
    transform: translateY(20px); /* Initial state for animation */
}

/* --- Footer --- */
.main-footer {
    background-color: var(--footer-background);
    color: var(--footer-text-color);
    padding: 40px 0;
    font-size: 0.9em;
    text-align: center;
}

.main-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.footer-nav ul li a {
    color: var(--footer-text-color);
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links .material-icons {
    font-size: 1.8em;
    color: var(--footer-text-color);
    transition: color 0.3s ease;
}

.social-links .material-icons:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: rgba(255,255,255,0.7);
}


/* --- Animations (Internal CSS) --- */

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply initial animation on page load */
.hero-section.animate-slide-in-left h1 {
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 0.3s;
}
.hero-section.animate-slide-in-left .sub-headline {
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 0.6s;
}
.hero-section.animate-slide-in-left .hero-cta {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.9s;
}

/* On-scroll animation base (controlled by JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 900px) {
    .main-nav ul li {
        margin-left: 20px;
    }
    .hero-section h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2em;
    }
    .cards-grid, .join-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
    .main-nav ul li {
        margin-left: 0;
    }
    .header-cta {
        margin-left: 0;
    }
    .hero-section {
        padding: 80px 0;
        min-height: 500px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section .sub-headline {
        font-size: 1.2em;
    }
    h2 {
        font-size: 1.8em;
    }
    .value-prop-section, .mission-section, .testimonials-section, .join-section {
        padding: 60px 0;
    }
    .testimonial-carousel {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-header .logo {
        font-size: 1.5em;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section .sub-headline {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    h2 {
        font-size: 1.5em;
    }
    .cards-grid, .join-steps {
        grid-template-columns: 1fr;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .social-links {
        justify-content: center;
    }
}