body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background-color: #2f455c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    position: relative;
    z-index: 100;
}

.logo-link {
    position: absolute;
    left: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 53px;
    width: auto;
}

.logo {
    position: absolute;
    left: 40px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    border-bottom: 2px solid #3cc47f;
}

.btn-investors {
    background-color: #3cc47f;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    text-transform: none;
    position: absolute;
    right: 40px;
}

.btn-investors:hover {
    background-color: #3cc47f;
    border-bottom: none;
    color: white;
}

/* Hero Section */
.hero {
    background-image: url('Banner_04 (1).png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 5px;
    margin: 0;
    text-transform: uppercase;
}

.hero-content .underline {
    width: 60px;
    height: 1px;
    background-color: #3cc47f;
    margin: 20px auto 0;
}

/* Portfolio Container - Single background for all sections */
.portfolio-container {
    background-image: url('Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Portfolio Sections */
.portfolio-section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 8px;
    color: #2c3e50;
    margin: 0;
}

.section-header .underline {
    width: 60px;
    height: 1px;
    background-color: #3cc47f;
    margin: 20px auto 0;
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.exits-grid {
    grid-template-columns: repeat(4, 1fr);
}

.writeoffs-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.logo-item img {
    max-width: 150px;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #888;
    text-align: center;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-text:hover {
    color: #333;
    opacity: 1;
    transform: scale(1.05);
}

.logo-text span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
}

.logo-placeholder {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    letter-spacing: 2px;
}

/* Specific logo styles */
.logo-text.spacex {
    font-weight: 700;
    letter-spacing: 3px;
    font-style: italic;
}

.logo-text.wahed {
    font-family: serif;
    font-weight: 700;
    font-size: 26px;
}

.logo-text.zipline {
    font-weight: 800;
    font-size: 28px;
}

.logo-text.just {
    border: 2px solid #555;
    padding: 8px 12px;
    font-size: 16px;
    letter-spacing: 0;
}

.logo-text.kraken {
    font-size: 28px;
    font-weight: 500;
}

.logo-text.grab {
    background-color: #666;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
}

.logo-text.palantir {
    background-color: #333;
    color: white;
    padding: 8px 16px;
    font-size: 16px;
}

.logo-text.fridge {
    background-color: #444;
    color: white;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1.2;
}

.logo-text.udemy {
    font-size: 32px;
    font-weight: 700;
}

/* Write-offs section */
.writeoffs-section {
    padding-bottom: 100px;
}

/* Footer */
footer {
    background-color: #253545;
    color: white;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    margin: 0 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
    column-gap: 10px;
    row-gap: 10px;
}

.social-icons a {
    color: white;
    font-size: 16px;
    background-color: #3cc47f;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    text-decoration: none;
    margin: 0 10px 0 0;
}

.social-icons a:last-child {
    margin-right: 0;
}

.social-icons a i {
    color: #fff;
    fill: #fff;
}

@media (max-width: 992px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    .logo {
        position: relative;
        left: 0;
    }
    
    .btn-investors {
        position: relative;
        right: 0;
        margin-top: 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
        letter-spacing: 6px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .writeoffs-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Loading and Error States */
.loading-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

.error-state {
    color: #cc0000;
}
