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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow-x: hidden;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 200px;
    height: 40px;
    border-radius: 8px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
}

.nav {
    display: flex;
    align-items: center;
}

.home-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.main-content {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    /* min-height: calc(100vh - 80px); */
    padding: 2rem;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.doc-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-card:hover::before {
    opacity: 1;
}

.doc-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
}

.doc-card h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.doc-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.footer {
    width: 100%;
    z-index: 10;
    text-align: center;
    padding: 1rem 2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .documentation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doc-card {
        padding: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .doc-card {
        padding: 1.25rem;
    }
    
    .doc-card h3 {
        font-size: 1.25rem;
    }
    
    .doc-card p {
        font-size: 0.9rem;
    }
}

/* Grid layout adjustments for exactly 5 cards */
@media (min-width: 769px) {
    .documentation-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
}
