/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    overflow: hidden; /* Prevent scrolling */
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh; /* Reduce hero height */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem; /* Reduced size */
    font-weight: 600;
    margin: 0;
}

.hero p {
    font-size: 1rem; /* Reduced size */
    font-weight: 400;
    margin-top: 10px;
}

/* Files Section */
.files-section {
    padding: 20px 0; /* Reduce padding */
    background-color: white;
    flex-grow: 1; /* Take available space */
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: center;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px; /* Reduce margin */
}

/* File Grid */
.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Reduced gap */
    justify-content: center;
}

/* File Card */
.file-card {
    background-color: #fff;
    padding: 15px; /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    font-size: 1rem; /* Slightly smaller text */
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* File Link */
.file-link {
    font-size: 1rem; /* Reduced font size */
    color: #6a11cb;
    text-decoration: none;
    font-weight: 600;
}

.file-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0; /* Reduced padding */
    text-align: center;
    position: relative;
    font-size: 0.9rem; /* Slightly smaller font */
}

.footer p {
    margin: 0;
    font-weight: 400;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 600;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Back to top button */
.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    background-color: #6a11cb;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #2575fc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem; /* Smaller on mobile */
    }

    .hero p {
        font-size: 0.9rem; /* Smaller on mobile */
    }

    .file-link {
        font-size: 0.9rem; /* Adjust file link font size */
    }
}
