:root {
    --primary-color: #0088ff;
    --secondary-color: #e9e9e9;
    --text-color: #333;
    --light-text: #777;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    display: flex;
    background-color: #f9f9f9;
    color: var(--text-color);
}

.sidebar {
    width: 380px;
    padding: 40px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
}

.logo-link, .title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-link:hover, .title-link:hover {
    opacity: 0.9;
}

.logo img {
    height: 80px;
    width: 80px;
}

.site-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 16px;
    color: black;
}

.tagline {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.button {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

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

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
}

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

.filter-container {
    margin-bottom: 40px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 8px;
}

.location-filter {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    background-color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.location-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

.resources {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--light-text);
}

.resource-boxes {
    display: flex;
    gap: 10px;
    width: 100%;
}

.resource-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 16px;
    text-decoration: none;
    color: var(--light-text);
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    transition: all 0.2s ease;
}

.resource-box:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.resource-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.main-content {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    min-height: 100vh;
}

/* Home page specific styles */
.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.agency-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agency-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agency-card-link:hover .agency-card {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-content {
    padding: 24px;
}

.card-company-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Company logo styling for agency cards */
.agency-card .company-image {
    width: 100%;
    height: 250px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 4px;
    position: relative;
}

.agency-card .company-logo {
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.agency-card:hover .company-logo {
    max-width: 98%;
    max-height: 98%;
}

.company-description {
    color: var(--light-text);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
}

.company-website {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--light-text);
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 4px 10px;
    gap: 4px;
    margin-right: 8px;
}

.company-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--light-text);
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 4px 10px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.location-icon-small {
    width: 12px;
    height: 12px;
}

.code-icon {
    opacity: 0.7;
}

/* Company profile page specific styles */
.company-profile {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
}

.company-header {
    margin-bottom: 32px;
}

.page-company-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.company-location {
    color: var(--light-text);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-icon {
    width: 16px;
    height: 16px;
}

.company-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
}

.company-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.company-description p {
    margin-bottom: 24px;
    line-height: 1.6;
    color: #444;
}

.company-description p:last-of-type {
    margin-bottom: 32px;
}

.website-btn {
    display: inline-block;
}

/* Media queries */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .agency-grid {
        grid-template-columns: 1fr;
    }
    
    .company-image {
        margin-bottom: 24px;
    }
    
    .agency-card .company-image {
        height: 200px;
    }
    
    .agency-card .company-logo {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Developer page specific styles */
.developer-card {
    display: flex;
    flex-direction: row;
    padding: 24px;
}

.developer-card .company-image {
    width: 120px;
    height: 120px;
    margin-right: 24px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.developer-card .company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.developer-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.developer-card .card-company-name {
    margin-top: 0;
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .agency-grid {
        grid-template-columns: 1fr;
    }
    
    .developer-card {
        flex-direction: column;
    }
    
    .developer-card .company-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 16px;
    }
} 