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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.logo i {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--gradient-primary);
    color: var(--white);
}

.close-mobile-menu {
    font-size: 32px;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 10px;
}

.mobile-nav a:hover {
    background: var(--light-color);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.hero-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: fadeIn 0.8s ease;
}

.hero-feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-feature i {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cta-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Section Styles */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.section-header {
    margin-bottom: 40px;
}

.filter-tabs,
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-tab {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Courses Section */
.courses-section {
    padding: 60px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-color);
}

.course-content {
    padding: 25px;
}

.course-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.course-description {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 14px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6b7280;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-enroll {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-enroll:hover {
    transform: scale(1.05);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-type {
    font-size: 12px;
    opacity: 0.8;
}

/* Storage Section */
.storage-section {
    padding: 60px 0;
}

.storage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.storage-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.storage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.storage-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.storage-icon.used {
    background: var(--gradient-secondary);
}

.storage-icon.available {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

.storage-info h3 {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 5px;
}

.storage-size {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark-color);
}

.storage-progress-container {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.storage-progress-bar {
    width: 100%;
    height: 30px;
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.storage-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
    border-radius: 15px;
}

.storage-percentage {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.files-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.files-list {
    display: grid;
    gap: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
}

.file-item:hover {
    background: #e5e7eb;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.file-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.file-meta {
    font-size: 14px;
    color: #6b7280;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download {
    background: var(--success-color);
    color: var(--white);
}

.btn-delete {
    background: var(--danger-color);
    color: var(--white);
}

.btn-icon:hover {
    transform: scale(1.1);
}

/* Upload Section */
.upload-section {
    padding: 60px 0;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    background: var(--white);
    border: 3px dashed var(--primary-color);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    background: var(--light-color);
    border-color: var(--secondary-color);
}

.upload-area i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 20px;
}

.uploaded-files {
    margin-top: 30px;
}

.uploaded-file {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

/* Profile Section */
.profile-section {
    padding: 60px 0;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.profile-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-avatar {
    font-size: 120px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.profile-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.user-email,
.user-phone {
    color: #6b7280;
    margin-bottom: 10px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.profile-stat {
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
}

.profile-stat h4 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.activity-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.activity-card h3 {
    margin-bottom: 20px;
}

.activity-list {
    display: grid;
    gap: 15px;
}

.activity-item {
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.activity-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

.modal-content.large {
    max-width: 900px;
}

.modal-content.image-viewer {
    max-width: 90%;
    background: transparent;
    box-shadow: none;
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-color);
}

#modalImage {
    width: 100%;
    border-radius: 12px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #9ca3af;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}