/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/1920x1080/?portfolio') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sections */
section {
    padding: 5rem 5%;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

/* About Section */
#about {
    background-color: #fff;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Categories Section */
#categories {
    background-color: #f9f9f9;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e8f4fc;
    color: #3498db;
    font-weight: bold;
    font-size: 1.5rem;
}

.video-icon {
    background-color: #e8f4fc;
    color: #3498db;
}

.audio-icon {
    background-color: #e8f7e8;
    color: #27ae60;
}

.image-icon {
    background-color: #fcf3e8;
    color: #e67e22;
}

.font-icon {
    background-color: #f4e8fc;
    color: #9b59b6;
}

.animation-icon {
    background-color: #f8e8fc;
    color: #d35400;
}

.category-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.category-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-files {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
}

.view-more {
    color: #3498db;
    font-weight: 600;
    transition: color 0.3s;
}

.category-card:hover .view-more {
    color: #2980b9;
}

/* Category Pages */
.category-header {
    background-color: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    margin-top: 70px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-header h1 {
    margin-left: 1.5rem;
    color: #2c3e50;
}

.description {
    background-color: #f9f9f9;
    padding: 2rem;
    text-align: center;
}

.description p {
    max-width: 800px;
    margin: 0 auto;
}

.file-list {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.file-list h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    font-weight: bold;
}

.video-file {
    background-color: #e8f4fc;
    color: #3498db;
}

.audio-file {
    background-color: #e8f7e8;
    color: #27ae60;
}

.image-file {
    background-color: #fcf3e8;
    color: #e67e22;
}

.font-file {
    background-color: #f4e8fc;
    color: #9b59b6;
}

.animation-file {
    background-color: #f8e8fc;
    color: #d35400;
}

.file-name {
    flex: 1;
}

.file-size {
    color: #777;
    font-size: 0.9rem;
}

.back-link {
    display: inline-block;
    margin: 2rem;
    color: #3498db;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Projects Section */
#projects {
    background-color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://source.unsplash.com/random/400x300/?web') center/cover no-repeat;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.drive-link {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(52, 152, 219, 0.9);
    padding: 0.5rem;
    text-align: center;
    transition: background-color 0.3s;
}

.drive-link:hover {
    background-color: rgba(41, 128, 185, 1);
}

.drive-link a {
    color: #fff;
    font-weight: bold;
}

/* Contact Section */
#contact {
    background-color: #f9f9f9;
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        max-height: 300px;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 5%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-container {
        flex-direction: column;
        align-items: center;
    }
    
    .category-card {
        width: 100%;
        max-width: 320px;
    }
}