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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    overflow-x: hidden;
    background-color: #121212;
}

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

/* Navbar */
.navbar {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 {
    color: #D4AF37;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #D4AF37;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 50%);
    animation: filmPulse 4s ease-in-out infinite alternate;
}

@keyframes filmPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(18, 18, 18, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-container h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-container h1 span {
    color: #fff;
}

.hero-container p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: #D4AF37;
    color: #1a1a1a;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* Courses */
.courses, .courses-page {
    padding: 100px 0;
    background: #1e1e1e;
}

.full-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.course-detailed {
    background: #2d2d2d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.course-header {
    position: relative;
}

.course-banner {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.course-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 30px 25px 25px;
}

.course-meta h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.95;
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.lectures-list {
    list-style: none;
    margin-bottom: 30px;
}

.lectures-list li {
    margin-bottom: 8px;
}

.lectures-list a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.lectures-list a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    border-left-color: #D4AF37;
    padding-left: 25px;
}

.start-course, .page-desc {
    width: 100%;
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    margin-top: 10px;
}

.start-course:hover {
    background: #B8860B;
}

.page-desc {
    background: transparent;
    color: #b0b0b0;
    font-size: 1.2rem;
    cursor: default;
    margin-bottom: 50px;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #f5f5f5;
}

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

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.course-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.4rem;
    color: #333;
}

.course-card p {
    padding: 0 20px 20px;
    color: #666;
}

.play-button {
    width: 100%;
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.play-button:hover {
    background: #B8860B;
}

/* Search Filter */
.search-filter {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

#searchInput, #categoryFilter {
    padding: 12px 20px;
    border: 2px solid #404040;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: #2d2d2d;
    color: #e0e0e0;
}

#searchInput:focus, #categoryFilter:focus {
    outline: none;
    border-color: #D4AF37;
}

/* About & Contact */
.about, .contact {
    padding: 100px 0;
    text-align: center;
}

.about h2, .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #f5f5f5;
}

.about p, .contact p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #b0b0b0;
}

/* Footer */
footer {
    background: #0f0f0f;
    color: #e0e0e0;
    text-align: center;
    padding: 30px 0;
}

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

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3000;
}

.close:hover {
    color: #F5A623;
}

/* Login Overlay - New */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 18, 18, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.login-content {
    background: #2d2d2d;
    padding: 60px 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    border: 1px solid #404040;
}

.login-content h2 {
    color: #f5f5f5;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.login-content p {
    color: #b0b0b0;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.google-login-btn {
    background: #4285F4;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.google-login-btn:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.4);
}

.google-icon {
    width: 22px;
    height: 22px;
}

.user-profile {
    color: #D4AF37;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.user-profile:hover {
    color: #B8860B;
}

.profile-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .login-content {
        margin: 20px;
        padding: 40px 30px;
    }
}

/* Profile Styles */
.profile-hero {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%);
    padding: 100px 0;
    color: white;
    margin-top: 70px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
}

.user-info h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.user-role {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    gap: 30px;
}

.stat {
    font-size: 1rem;
}

.profile-sections {
    padding: 80px 0;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid #404040;
    background: #2d2d2d;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #e0e0e0;
}

.tab-btn.active, .tab-btn:hover {
    background: #D4AF37;
    color: #1a1a1a;
    border-color: #D4AF37;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.progress-ring {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(45,45,45,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e0e0e0;
}

.enrolled-course {
    position: relative;
}

.course-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
}

.continue-btn {
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
}

.continue-btn:hover {
    background: #B8860B;
}

.lectures-count {
    color: #666;
    font-size: 0.9rem;
}

.progress-chart {
    max-width: 600px;
    margin: 0 auto;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background: #404040;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #B8860B);
    transition: width 0.5s ease;
}

.history-list {
    max-width: 600px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #404040;
}

.history-thumb img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.history-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.history-time {
    color: #666;
    font-size: 0.9rem;
}

.settings-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4A90E2;
}

.current-pic {
    margin-top: 10px;
}

.current-pic img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.save-btn {
    width: 100%;
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.save-btn:hover {
    background: #357ABD;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .search-filter {
        flex-direction: column;
        align-items: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .user-stats {
        flex-direction: column;
        gap: 10px;
    }

    .profile-tabs {
        flex-direction: column;
        align-items: center;
    }
}

