/* Base Styles */
:root {
    --primary-color: #175590; /* FairArbit Blue - rgb(23, 85, 144) */
    --secondary-color: #1e6bb8; /* Slightly lighter FairArbit blue for hover states */
    --accent-color: #00b294; /* Teal accent */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --mid-gray: #e0e0e0;
    --gray: #6c757d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-links a.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    background-image: url(../images/fa-background.png);
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darkening overlay to ensure text readability */
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
}

.about-text ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Founders Section */
.founders-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.founder-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--light-gray);
}

.founder-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.founder-card p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Timeline Section */
.timeline-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--mid-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background-color: white;
    width: calc(50% - 40px);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 20px;
    border: 4px solid var(--primary-color);
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -50px;
}

.timeline-item:nth-child(even)::after {
    left: -50px;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Architecture Section */
.architecture-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.architecture-image {
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.architecture-text {
    text-align: left;
    width: 100%;
}

.architecture-text ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.architecture-text ul li {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Challenges & Benefits Section */
.challenges-benefits {
    background-color: white;
}

.challenges-content, .benefits-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.challenge-item, .benefit-item {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-item:hover, .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.challenge-item i, .benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.challenge-item h3, .benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Workflow Section */
.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.workflow-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 30%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent-color);
    z-index: 1;
}

.workflow-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    font-weight: 700;
}

.workflow-step h3 {
    margin-bottom: 0.5rem;
}

/* Partnership Section */
.partnership-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.partnership-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.partnership-item:hover {
    transform: translateY(-5px);
}

.partnership-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.partnership-item h3 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-person {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-person h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-person p {
    margin-bottom: 1rem;
}

.contact-person p i {
    width: 25px;
    color: var(--primary-color);
}

.contact-form form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--mid-gray);
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -8px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 1rem;
}

.footer-contact p i {
    width: 25px;
    color: var(--accent-color);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom small {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
    margin-top: 0.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    /* Adjust workflow arrows for tablet layout */
    .workflow-step::after {
        right: -20px;
        font-size: 1.5rem;
    }
    
    .timeline-content::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 70px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px;
        top: 20px;
    }
    
    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 20px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
}

@media screen and (max-width: 900px) {
    /* Hide workflow arrows when items start wrapping more frequently */
    .workflow-step::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center items vertically */
        background-color: white;
        z-index: 2;
        transition: right 0.5s ease-in;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 0 30px; /* Add padding to avoid overlap with header */
    }
    
    .nav-links li {
        opacity: 0;
        margin: 15px 0; /* Add vertical spacing between menu items */
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
      .nav-links a {
        color: var(--dark-color); /* Ensure text is dark on white background in mobile */
        font-size: 1.2rem; /* Make text slightly larger for better touch targets */
        padding: 10px 0;
    }
    
    /* Ensure the button in mobile menu is properly styled */
    .nav-links a.btn-primary {
        color: white; /* Keep button text white */
        padding: 10px 20px;
        margin-top: 10px;
    }
    
    .burger {
        display: block;
        z-index: 3;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .about-content, .challenges-content, .benefits-content, .workflow-steps, .partnership-content, .contact-content {
        flex-direction: column;
    }
    
    /* Hide workflow arrows on mobile since steps stack vertically */
    .workflow-step::after {
        display: none;
    }
}

/* Nav Active Class for Mobile */
.nav-active {
    right: 0;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Animation for mobile nav links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
