/* ==============================================
   DentOcode Academy - Unified Style Sheet
   ============================================== */

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ========== Background Effects ========== */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at 30% 40%, #141B2B, #0A0C10);
}

.bg-animated::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.08), transparent 60%);
    animation: rotateBg 30s linear infinite;
    z-index: -1;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 2;
}

/* ========== Video Background ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 768px) {
    .video-background iframe {
        width: 177.77777778vh;
        height: 56.25vw;
        min-width: 100%;
        min-height: 100%;
    }
}

/* ========== Navbar ========== */
.navbar-modern {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(16px);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    background: rgba(0, 0, 0, 0.98);
    padding: 0.5rem 1rem;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.navbar-brand-modern p {
    margin: 0;
    color: #fff;
}

.navbar-brand-modern .f {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

.logo-glow {
    height: 38px;
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.4));
    transition: all 0.3s;
}

.logo-glow:hover {
    filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.6));
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ff4d4d;
    transition: width 0.3s;
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    width: 70%;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: #ff4d4d !important;
}

/* ========== Dropdown ========== */
.dropdown-modern {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 15px;
}

.dropdown-item-modern {
    color: #fff;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
}

.dropdown-item-modern:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    transform: translateX(5px);
}

/* ========== Buttons ========== */
.btn-user-modern {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 77, 77, 0.05));
    border: 1px solid rgba(255, 77, 77, 0.5);
    border-radius: 40px;
    padding: 0.4rem 1rem;
    color: #ff4d4d;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-user-modern:hover {
    background: #ff4d4d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.btn-login-modern {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-login-modern:hover {
    background: #ff4d4d;
    color: #fff;
}

/* ========== Search ========== */
.search-modern {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #fff;
    width: 250px;
}

.search-modern:focus {
    outline: none;
    border-color: #ff4d4d;
}

.btn-search-modern {
    background: #ff4d4d;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-left: 10px;
    color: #fff;
}

/* ========== Hero Section ========== */
.hero-modern {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-subtitle {
    color: #ff4d4d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-course {
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-course:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.3);
    color: #fff;
}

/* ========== Sections ========== */
.section-modern {
    padding: 5rem 0;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ========== Course Cards ========== */
.courses-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
}

.courses-scroll::-webkit-scrollbar {
    height: 5px;
}

.courses-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.courses-scroll::-webkit-scrollbar-thumb {
    background: #ff4d4d;
    border-radius: 10px;
}

.course-card-modern {
    min-width: 350px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 1.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.course-card-modern:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.instructor-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.course-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-price.free {
    color: #4caf50;
}

/* ========== Navigation Arrows ========== */
.nav-arrow-modern {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid rgba(255, 77, 77, 0.5);
    color: #ff4d4d;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.nav-arrow-modern:hover {
    background: #ff4d4d;
    color: #fff;
}

/* ========== Premium Course Card ========== */
.premium-wa-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.course-card-premium-wa {
    max-width: 500px;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(255, 77, 77, 0.2));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 77, 77, 0.3);
    position: relative;
}

.premium-badge-wa {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.premium-lock-icon-wa {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: #ff4d4d;
}

.course-features-wa {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.feature-tag-wa {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.btn-course-premium {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-course-premium:hover {
    background: rgba(255, 77, 77, 0.3);
    color: #fff;
}

.btn-whatsapp-pay-wa {
    display: block;
    background: #25D366;
    padding: 1rem;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.3s;
}

.btn-whatsapp-pay-wa:hover {
    transform: scale(1.02);
    color: #fff;
}

.btn-unlock-manual-wa {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 0.8rem;
    border-radius: 50px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-unlock-manual-wa:hover:not(:disabled) {
    background: #ff4d4d;
    color: #fff;
}

.btn-unlock-manual-wa:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-info-wa {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

.btn-start-learning {
    display: block;
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 1rem;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
    transition: all 0.3s;
}

.btn-start-learning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    color: #fff;
}

.pending-message {
    background: rgba(255, 193, 7, 0.2);
    padding: 0.5rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #ffc107;
}

/* ========== Team Section ========== */
.team-grid {
    display: flex;
    justify-content: center;
}

.team-card-modern {
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #ff4d4d;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #ff4d4d;
    margin-bottom: 1rem;
}

.team-social a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.team-social a:hover {
    color: #ff4d4d;
}

/* ========== Testimonials ========== */
.testimonials-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0.5rem;
    scroll-behavior: smooth;
}

.testimonials-scroll::-webkit-scrollbar {
    height: 5px;
}

.testimonials-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
    background: #ff4d4d;
    border-radius: 10px;
}

.testimonial-card-modern {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
}

.testimonial-header-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name h4 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-name span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-rating-modern {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text-modern {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ========== Add Review Form ========== */
.add-testimonial-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 2rem;
    margin-top: 3rem;
}

.form-label-modern {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-modern {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    padding: 0.8rem;
    width: 100%;
}

.form-control-modern:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff4d4d;
    color: #fff;
    outline: none;
}

.rating-stars-modern {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.rating-stars-modern i {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.rating-stars-modern i.active {
    color: #ffc107;
}

.btn-submit-modern {
    background: #ff4d4d;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-submit-modern:hover {
    background: #ff6b6b;
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item-modern {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff4d4d;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Footer ========== */
.footer-modern {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

/* ========== Toast Notifications ========== */
.custom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    min-width: 280px;
    max-width: 380px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.custom-toast.toast-success {
    border-left-color: #28a745;
}

.custom-toast.toast-error {
    border-left-color: #dc3545;
}

.custom-toast.toast-warning {
    border-left-color: #ffc107;
}

.custom-toast.toast-info {
    border-left-color: #17a2b8;
}

.custom-toast .toast-icon {
    font-size: 1.3rem;
}

.custom-toast.toast-success .toast-icon {
    color: #28a745;
}

.custom-toast.toast-error .toast-icon {
    color: #dc3545;
}

.custom-toast.toast-warning .toast-icon {
    color: #ffc107;
}

.custom-toast.toast-info .toast-icon {
    color: #17a2b8;
}

.custom-toast .toast-content {
    flex: 1;
    font-size: 0.85rem;
    color: #fff;
}

.custom-toast .toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1rem;
}

.custom-toast .toast-close:hover {
    color: #fff;
}

.custom-toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

/* ========== Loading States ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 77, 77, 0.3);
    border-top-color: #ff4d4d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========== Skeleton Loading ========== */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 10px;
}

.skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.skeleton-stat {
    height: 50px;
    border-radius: 25px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .course-card-modern {
        min-width: 280px;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .section-title-modern {
        font-size: 1.8rem;
    }

    .navbar-brand-modern {
        font-size: 1.3rem;
    }

    .logo-glow {
        height: 32px;
    }

    .nav-link-modern {
        font-size: 0.8rem;
        margin: 0 0.3rem;
    }

    .search-modern {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-modern {
        padding: 3rem 0;
    }

    .course-card-modern {
        min-width: 260px;
    }

    .testimonial-card-modern {
        min-width: 280px;
    }
}