/* --- Global Styles & Variables --- */
:root {
    --primary-color: #e67e22;
    --dark-blue: #2c3e50;
    --medium-blue: #34495e;
    --light-gray: #f4f4f9;
    --text-color: #333;
    --header-height: 100px;
    --vibrant-blue: #3498db;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.wide-container {
    max-width: 1200px; /* Adjusted for new 2x2 grid */
    margin: 0 auto;
    padding: 0 40px;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 15px;
}

.section-description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

/* --- Header & Navigation --- */
header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    box-shadow: none;
    transition: height 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 105px;
    width: auto;
    vertical-align: middle;
    transition: height 0.4s ease-in-out;
}

body.header-scrolled header {
    --header-height: 60px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.header-scrolled .logo img {
    height: 49px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--medium-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-blue);
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(to top right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2)), url('/images/robson.avif') no-repeat center center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--text-color);
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    color: var(--dark-blue);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    margin-bottom: 20px;
}

.hero-content h1 .highlight-text {
    color: var(--vibrant-blue);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 0 40px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
    text-align: center;
}

#about.content-section {
    background: #fff; /* Ensure 'About' has white background if needed */
}

.bg-light {
    background: var(--light-gray);
}

.subtitle-pill {
    display: inline-block;
    background-color: #eaf5fc;
    color: var(--vibrant-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#about h2 span, #why-partner h2 span, #contact h2 span {
    color: var(--vibrant-blue);
}

.bridge-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.bridge-item {
    text-align: center;
}

.bridge-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bridge-icon-wrapper img {
    width: 60px;
    height: auto;
}

.bridge-item h4 {
    color: var(--dark-blue);
    font-weight: 600;
}

.bridge-arrow i {
    width: 28px;
    height: 28px;
    color: #bdc3c7;
}

/* --- Updated Feature Grid (Why Partner) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eaf5fc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper i {
    color: var(--vibrant-blue);
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.feature-list li i {
    color: var(--vibrant-blue);
    width: 16px;
    height: 16px;
}

/* --- Team Section (New) --- */
#team .section-description {
    margin-bottom: 60px;
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
    text-align: left;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.team-image-wrapper {
    position: relative;
    align-self: start;
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.founder-tags span {
    background: var(--light-gray);
    border: 1px solid #e0e0e0;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--medium-blue);
}

.founder-tags i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.team-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-text h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.team-text .team-title {
    color: var(--vibrant-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: block;
}

.team-text p {
    color: #555;
    margin-bottom: 15px;
}

.team-text h4 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.expertise-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.expertise-list li i {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.btn-linkedin {
    background: #eaf5fc;
    color: var(--vibrant-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-linkedin:hover {
    background: #d8ecf8;
    transform: translateY(-2px);
}

/* --- Contact Section --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    text-align: left;
    margin-top: 50px;
}

.contact-form-wrapper h3, .contact-info-wrapper h3 {
    margin-bottom: 10px;
}

.contact-form-wrapper p, .contact-info-wrapper p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group-new {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group-new label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--medium-blue);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.5);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.contact-form .btn-primary i {
    width: 18px;
    height: 18px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-card i {
    color: var(--vibrant-blue);
    margin-top: 3px;
}

.info-card h4 {
    margin-bottom: 5px;
}

.info-card p, .info-card a {
    color: #555;
    font-size: 0.95rem;
    margin: 0;
    text-decoration: none;
}
.info-card a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}
.card-subtext {
    font-size: 0.85rem !important;
    color: #777 !important;
    margin-top: 4px !important;
}


footer {
    background: var(--dark-blue);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .team-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    .team-image-wrapper {
        max-width: 450px;
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #e0e0e0;
    }
    
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; }
    .main-nav li { margin: 0; text-align: center; }
    .main-nav a { display: block; padding: 15px; border-bottom: 1px solid var(--light-gray); }
    .hamburger { display: flex; }
    
    .wide-container, .container { padding: 0 20px; }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .contact-form .form-row {
        gap: 20px; /* Keep gap for stacked inputs */
    }
    .contact-form .form-group-new:not(:last-child) {
        margin-bottom: 0;
    }
    .bridge-graphic {
        flex-direction: column;
        gap: 20px;
    }
    .bridge-arrow { transform: rotate(90deg); }
    .team-layout { padding: 25px; }
}

@media (max-width: 576px) {
    .expertise-list {
        grid-template-columns: 1fr;
    }
    .team-text h3 {
        font-size: 2rem;
    }
}


/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #d35400;
    transform: translateY(-5px);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px 40px;
    border-radius: 10px;
    width: 90%;
    max-w: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.4s;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}