/* --- Global Reset & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Droid Sans', sans-serif;
    color: #151515;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #355858;
    font-weight: 700;
}

h1 {
    font-family: 'Abril Fatface', cursive;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #D7D7D7;
    color: #131313;
}

.btn-primary:hover {
    background-color: #c4c4c4;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #355858;
    color: #355858;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #355858;
    color: #fff;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #131313;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Navigation --- */
header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #575757;
}

.nav-links a:hover, .nav-links a.active {
    color: #355858; /* Changed active color to match theme */
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-image: url('https://img1.wsimg.com/isteam/getty/2179906517/:/rs=w:1500,h:1000,cg:true,m');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.sub-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #355858;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* --- About Section --- */
.about {
    padding: 80px 20px;
}

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

.card {
    background: #fff;
}

.card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 20px 0;
}

.card h3 {
    margin-bottom: 10px;
    color: #000;
    font-family: 'Abril Fatface', cursive;
    letter-spacing: 1px;
}

/* --- Partners Section --- */
.partners {
    padding: 40px 20px 80px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #131313;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.logos-grid img {
    height: 80px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logos-grid img:hover {
    opacity: 1;
}

/* --- Contact Section --- */
.contact {
    background-color: #f4f4f4;
    padding: 80px 0;
    text-align: center;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info {
    max-width: 600px;
    width: 100%;
}

.contact-info h4 {
    color: #000;
    margin-bottom: 15px;
    margin-top: 30px;
}

.info-block p {
    margin-bottom: 20px;
}

.map-placeholder {
    margin-top: 20px;
    height: 150px;
    width: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    background: #D7D7D7;
    padding: 40px 0;
    text-align: left;
}

footer p {
    font-size: 0.9rem;
    color: #355858;
}

/* ---------------------------------------------------- */
/* --- NEW STYLES FOR PEOPLE & TECHNOLOGY PAGES --- */
/* ---------------------------------------------------- */

/* --- Standard Page Header (for subpages) --- */
.page-header {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: #555;
    font-family: 'Montserrat', sans-serif;
}

/* --- Teams/People Grid --- */
.team-section {
    padding-bottom: 80px;
}

.team-grid {
    display: flex;           /* changed from grid to flex */
    flex-wrap: wrap;         /* allows items to wrap to the next line */
    justify-content: center; /* centers the items in the row */
    gap: 40px;
}

.team-card {
    text-align: center;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    
    /* Calculate width for 3 items per row minus the gaps */
    /* (100% width - (2 gaps * 40px)) divided by 3 items */
    flex: 0 0 calc((100% - 80px) / 3); 
    max-width: 400px; /* Optional: keeps cards from getting too huge on large screens */
}

.member-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #355858;
    margin-bottom: 15px;
}

.member-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.member-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 0.95rem;
    color: #666;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    /* Stack Teams to 2 columns on tablets */
    .team-card {
        flex: 0 0 calc((100% - 40px) / 2);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Stack Teams to 1 column on mobile */
    .team-card {
        flex: 0 0 100%;
    }

    /* Stack Tech page on mobile */
    .tech-wrapper {
        grid-template-columns: 1fr;
    }

    .tech-visual {
        position: static;
        margin-bottom: 40px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* --- Technology Page Split Layout --- */
.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Left, 50% Right */
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 80px;
    align-items: start;
}

/* Left Side */
.tech-visual {
    position: sticky; /* Keeps image in view while scrolling text */
    top: 40px;
}

.device-name {
    font-family: 'Abril Fatface', cursive;
    font-size: 3rem;
    color: #355858;
    margin-bottom: 20px;
    text-align: center; /* Or left, depending on preference */
}

.device-render img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Adds depth */
}

/* Right Side */
.tech-content {
    padding-left: 20px;
}

.tech-block {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tech-block:last-child {
    border-bottom: none;
}

.tech-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #131313;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    /* Stack Teams on smaller screens */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Stack Teams to 1 column on mobile */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Stack Tech page on mobile */
    .tech-wrapper {
        grid-template-columns: 1fr;
    }

    .tech-visual {
        position: static;
        margin-bottom: 40px;
    }
    
    h1 {
        font-size: 2rem;
    }
}