/* Visual Enhancements for Home Page */

/* ============================================
   SECTION POSITIONING
   ============================================ */
.about-section,
.objectives-section,
.projects-section,
.grading-section,
.grading-section-new,
.schedule-section,
.resources-preview-section {
    position: relative;
    overflow: hidden;
}

/* ============================================
   ENHANCED FEATURE CARDS
   ============================================ */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon-wrapper {
    position: relative;
    z-index: 1;
}

.feature-icon {
    display: block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* ============================================
   GLOWING PROJECT CARDS
   ============================================ */
.project-card {
    position: relative;
    transition: all 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card.highlight {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.project-card.highlight:hover {
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.3);
    transform: translateY(-10px);
}

/* ============================================
   ANIMATED WEEK CARDS
   ============================================ */
.week-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.week-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.week-card:hover::before {
    left: 100%;
}

.week-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

.week-number {
    transition: all 0.3s ease;
}

.week-card:hover .week-number {
    transform: scale(1.15);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SPRING BREAK CARD SPECIAL EFFECT
   ============================================ */
.spring-break {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 15px 50px rgba(251, 191, 36, 0.6);
    }
}

/* ============================================
   ENHANCED GRADE CARDS
   ============================================ */
.grade-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.grade-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.grade-card.highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.grade-card.featured {
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.3);
}

.grade-circle {
    position: relative;
    transition: transform 0.4s ease;
}

.grade-card:hover .grade-circle {
    transform: rotate(360deg);
}

/* ============================================
   RESOURCE PREVIEW CARDS
   ============================================ */
.resource-preview-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-preview-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.resource-preview-card:hover::before {
    width: 400px;
    height: 400px;
}

.resource-preview-card.ai-highlight {
    border: 2px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.resource-preview-card.ai-highlight:hover {
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

.preview-icon-wrapper.ai-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    animation: pulse-ai 2s ease-in-out infinite;
}

@keyframes pulse-ai {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.preview-arrow {
    transition: transform 0.3s ease;
}

.resource-preview-card:hover .preview-arrow {
    transform: translateX(5px);
}

/* ============================================
   HERO ENHANCED EFFECTS
   ============================================ */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

/* Modern Particles Background */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure hero content is above particles */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Subtle gradient overlay for depth */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   HERO BADGE ANIMATION
   ============================================ */
.hero-badge {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   BUTTON RIPPLE EFFECT
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ============================================
   INFO CARDS GLOW
   ============================================ */
.info-card {
    position: relative;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-card .material-icons {
    transition: all 0.3s ease;
}

.info-card:hover .material-icons {
    transform: scale(1.2) rotate(10deg);
}

/* ============================================
   OBJECTIVE CARDS
   ============================================ */
.objective-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: height 0.4s ease;
}

.objective-card:hover::before {
    height: 100%;
}

.objective-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 10px 30px rgba(59, 130, 246, 0.2);
}

.objective-number {
    display: inline-block;
    transition: all 0.3s ease;
}

.objective-card:hover .objective-number {
    transform: scale(1.2);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SECTION SUBTITLE ANIMATION
   ============================================ */
.section-subtitle {
    opacity: 0;
    animation: fade-in-up 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

/* ============================================
   LOADING SPINNER (for future use)
   ============================================ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-shape {
        width: 200px !important;
        height: 200px !important;
    }

    .week-card:hover,
    .project-card:hover,
    .resource-preview-card:hover {
        transform: translateY(-5px) scale(1.02);
    }

    .grade-card:hover .grade-circle {
        transform: none;
    }
}

/* ============================================
   ANIMATED SECTION DECORATIONS
   ============================================ */
.section-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Animated Blobs */
.animated-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* Grid Dots Pattern */
.grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Code Theme Decoration */
.section-bg-decoration.code-theme {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(241, 245, 249, 0.5) 100%);
}

/* Multiple Code Line Groups */
.code-lines {
    position: absolute;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.12;
    pointer-events: none;
}

.code-lines.left {
    top: 15%;
    left: 3%;
    transform: rotate(-3deg);
    color: #3b82f6;
}

.code-lines.right {
    bottom: 20%;
    right: 3%;
    transform: rotate(3deg);
    color: #1e40af;
    text-align: right;
}

.code-line {
    display: block;
    animation: code-typing 6s ease-in-out infinite;
    white-space: nowrap;
}

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 0.5s; }
.code-line:nth-child(3) { animation-delay: 1s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes code-typing {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

/* Enhanced Floating Brackets */
.floating-brackets {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bracket {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    animation: bracket-float 15s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.bracket-1 {
    top: 10%;
    right: 8%;
    font-size: 72px;
    color: rgba(59, 130, 246, 0.08);
    animation-delay: 0s;
}

.bracket-2 {
    bottom: 15%;
    right: 20%;
    font-size: 56px;
    color: rgba(30, 64, 175, 0.08);
    animation-delay: -5s;
}

.bracket-3 {
    top: 50%;
    left: 5%;
    font-size: 48px;
    color: rgba(59, 130, 246, 0.06);
    animation-delay: -10s;
}

.bracket-4 {
    top: 25%;
    left: 15%;
    font-size: 36px;
    color: rgba(96, 165, 250, 0.08);
    animation-delay: -7s;
}

.bracket-5 {
    bottom: 30%;
    left: 25%;
    font-size: 40px;
    color: rgba(37, 99, 235, 0.06);
    animation-delay: -12s;
}

@keyframes bracket-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(-25px) rotate(-3deg) scale(1);
    }
    75% {
        transform: translateY(-10px) rotate(3deg) scale(0.98);
    }
}

/* Code Pattern Grid */
.code-pattern-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-pulse 10s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Terminal-style Decoration */
.terminal-decoration {
    position: absolute;
    top: 8%;
    right: 5%;
    width: 180px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(59, 130, 246, 0.08);
    transform: rotate(2deg);
    animation: terminal-float 12s ease-in-out infinite;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.3;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #22c55e; }

.terminal-text {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: rgba(59, 130, 246, 0.2);
    line-height: 1.6;
}

@keyframes terminal-float {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

/* ============================================
   LEARNING PATH THEME (Objectives Section)
   ============================================ */
.section-bg-decoration.learning-path-theme {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 64, 175, 0.06) 0%, transparent 50%);
}

.floating-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-num {
    position: absolute;
    font-family: 'Poppins', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.04);
    animation: num-float 20s ease-in-out infinite;
}

.num-1 { top: 10%; left: 5%; animation-delay: 0s; }
.num-2 { top: 60%; left: 15%; animation-delay: -5s; font-size: 60px; }
.num-3 { top: 20%; right: 10%; animation-delay: -10s; font-size: 70px; }
.num-4 { bottom: 15%; right: 20%; animation-delay: -15s; font-size: 50px; }

@keyframes num-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.04; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 0.08; }
}

.path-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.connecting-path {
    animation: path-draw 8s ease-in-out infinite;
}

@keyframes path-draw {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 20; }
}

.milestone-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.milestone {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 50%;
    opacity: 0.15;
    animation: milestone-pulse 3s ease-in-out infinite;
}

.milestone:nth-child(1) { top: 25%; left: 20%; animation-delay: 0s; }
.milestone:nth-child(2) { top: 50%; left: 50%; animation-delay: -1s; }
.milestone:nth-child(3) { top: 75%; right: 25%; animation-delay: -2s; }

@keyframes milestone-pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.5); opacity: 0.25; }
}

/* ============================================
   CALENDAR THEME (Schedule Section)
   ============================================ */
.section-bg-decoration.calendar-theme {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.calendar-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: grid-shift 30s linear infinite;
}

@keyframes grid-shift {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

.floating-calendar-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.calendar-icon {
    position: absolute;
    width: 60px;
    height: 70px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: cal-float 18s ease-in-out infinite;
}

.cal-month {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.cal-day {
    font-size: 24px;
    font-weight: 800;
    color: rgba(30, 64, 175, 0.15);
    line-height: 1;
}

.cal-1 { top: 8%; left: 8%; animation-delay: 0s; }
.cal-2 { top: 15%; right: 12%; animation-delay: -6s; }
.cal-3 { bottom: 12%; left: 15%; animation-delay: -12s; }

@keyframes cal-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.timeline-decoration {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    transform: translateY(-50%);
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.1) 20%, rgba(59, 130, 246, 0.1) 80%, transparent 100%);
    transform: translateY(-50%);
}

.timeline-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: dot-pulse 4s ease-in-out infinite;
}

.dot-1 { left: 10%; animation-delay: 0s; }
.dot-2 { left: 35%; animation-delay: -1s; }
.dot-3 { left: 65%; animation-delay: -2s; }
.dot-4 { left: 90%; animation-delay: -3s; }

@keyframes dot-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.2; }
    50% { transform: translateY(-50%) scale(1.5); opacity: 0.4; }
}

.floating-weeks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.week-badge {
    position: absolute;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(30, 64, 175, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.3);
    animation: badge-float 15s ease-in-out infinite;
}

.wb-1 { top: 20%; right: 8%; animation-delay: 0s; }
.wb-2 { bottom: 25%; right: 25%; animation-delay: -5s; }
.wb-3 { bottom: 15%; left: 8%; animation-delay: -10s; }

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   KNOWLEDGE THEME (Resources Section)
   ============================================ */
.section-bg-decoration.knowledge-theme {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.7) 100%);
}

.hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%233b82f6' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    opacity: 0.8;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.08);
    animation: icon-float 20s ease-in-out infinite;
}

.float-icon .material-icons {
    font-size: 24px;
    color: rgba(59, 130, 246, 0.15);
}

.icon-1 { top: 15%; left: 8%; animation-delay: 0s; }
.icon-2 { top: 10%; right: 15%; animation-delay: -5s; }
.icon-3 { bottom: 20%; left: 12%; animation-delay: -10s; }
.icon-4 { bottom: 15%; right: 8%; animation-delay: -15s; }

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(5px) rotate(-5deg); }
}

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.connection-lines line {
    animation: line-pulse 6s ease-in-out infinite;
}

.connection-lines line:nth-child(1) { animation-delay: 0s; }
.connection-lines line:nth-child(2) { animation-delay: -1.5s; }
.connection-lines line:nth-child(3) { animation-delay: -3s; }
.connection-lines line:nth-child(4) { animation-delay: -4.5s; }

@keyframes line-pulse {
    0%, 100% { stroke-opacity: 0.05; }
    50% { stroke-opacity: 0.15; }
}

.knowledge-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.k-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orb-glow 15s ease-in-out infinite;
}

.k-orb.orb-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.k-orb.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 15%;
    animation-delay: -7s;
}

@keyframes orb-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* ============================================
   NEW GRADING SECTION STYLES
   ============================================ */
.grading-section-new {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Background Decorations */
.grading-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    animation: shape-float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes shape-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(-15px, 15px) rotate(240deg);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    bottom: -50px;
    left: 10%;
}

/* Grading Header */
.grading-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.grading-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 16px;
    animation: badge-glow 3s ease-in-out infinite;
}

.grading-badge .material-icons {
    font-size: 18px;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
}

/* Grading Content Layout */
.grading-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Donut Chart Visual */
.grading-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: sticky;
    top: 120px;
}

.donut-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-segment {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.donut-container:hover .donut-segment {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-value {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.total-symbol {
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.total-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.projects {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.legend-dot.practice {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.legend-dot.presentation {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.legend-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.legend-label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.legend-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* Grade Cards Wrapper */
.grading-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Category Group */
.grade-category-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-header-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.category-header-bar .material-icons {
    font-size: 20px;
}

.category-header-bar .category-total {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.category-header-bar.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.category-header-bar.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Grade Cards Row */
.grade-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grade-cards-row.single {
    grid-template-columns: 1fr;
}

/* Two Column Layout for Practice */
.grade-cards-row.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Full Width Presentation Card */
.grade-category-group.full-width {
    width: 100%;
}

.grade-card-modern.full-width-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-content-horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card-content-horizontal .card-details {
    flex: 1;
}

.card-content-horizontal .card-details p {
    max-width: 500px;
}

.card-icon.large {
    width: 64px;
    height: 64px;
}

.card-icon.large .material-icons {
    font-size: 32px;
}

/* Modern Grade Card */
.grade-card-modern {
    background: white;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grade-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Card Accent */
.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.card-accent.blue {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.card-accent.green {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.card-accent.featured {
    height: 6px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    animation: accent-shimmer 2s linear infinite;
}

@keyframes accent-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
    color: #f59e0b;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge.featured {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.card-badge .material-icons {
    font-size: 14px;
}

/* Card Icon */
.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-icon .material-icons {
    font-size: 24px;
    color: #f59e0b;
}

.card-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
}

.card-icon.blue .material-icons {
    color: #3b82f6;
}

.card-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
}

.card-icon.green .material-icons {
    color: #10b981;
}

.card-icon.featured {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.card-icon.featured .material-icons {
    color: white;
}

.grade-card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Card Details */
.card-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.card-details p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Card Weight */
.card-weight {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-top: auto;
}

.weight-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.weight-symbol {
    font-size: 16px;
    font-weight: 600;
    color: #f59e0b;
}

.card-weight.blue .weight-number {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-weight.blue .weight-symbol {
    color: #3b82f6;
}

.card-weight.green .weight-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-weight.green .weight-symbol {
    color: #10b981;
}

/* Card Progress */
.card-progress {
    width: 100%;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-progress.blue .progress-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.card-progress.green .progress-fill {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.card-progress.featured .progress-fill {
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
}

/* Featured Card Special */
.grade-card-modern.featured {
    border: 2px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 251, 235, 0.5) 100%);
}

.grade-card-modern.featured:hover {
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.25);
}

/* ============================================
   GRADING SECTION RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .grading-content {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }

    .grade-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .grading-content {
        grid-template-columns: 1fr;
    }

    .grading-visual {
        position: relative;
        top: 0;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .chart-legend {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .legend-item {
        flex: 1;
        min-width: 150px;
    }

    .grade-cards-secondary {
        grid-template-columns: 1fr;
    }

    .grade-cards-secondary .grade-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grading-section-new {
        padding: 60px 0;
    }

    .grading-visual {
        flex-direction: column;
    }

    .chart-legend {
        flex-direction: column;
    }

    .legend-item {
        min-width: 100%;
    }

    .grade-cards-row {
        grid-template-columns: 1fr;
    }

    .grade-cards-row.two-cols {
        grid-template-columns: 1fr;
    }

    .donut-container {
        width: 160px;
        height: 160px;
    }

    .total-value {
        font-size: 32px;
    }

    /* Full width card responsive */
    .card-content-horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-content-horizontal .card-details p {
        max-width: 100%;
    }

    .card-icon.large {
        width: 56px;
        height: 56px;
    }

    /* Code theme responsive */
    .code-lines {
        font-size: 10px;
    }

    .code-lines.left {
        top: 5%;
        left: 2%;
    }

    .code-lines.right {
        display: none;
    }

    .terminal-decoration {
        display: none;
    }

    .bracket {
        font-size: 32px !important;
    }

    .bracket-4,
    .bracket-5 {
        display: none;
    }

    /* Learning Path Theme Responsive */
    .float-num {
        font-size: 50px !important;
    }

    .num-2, .num-4 {
        display: none;
    }

    .milestone:nth-child(2) {
        display: none;
    }

    /* Calendar Theme Responsive */
    .calendar-icon {
        width: 45px;
        height: 55px;
    }

    .cal-day {
        font-size: 18px;
    }

    .cal-month {
        font-size: 8px;
    }

    .cal-2, .cal-3 {
        display: none;
    }

    .timeline-decoration {
        display: none;
    }

    .week-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .wb-2 {
        display: none;
    }

    /* Knowledge Theme Responsive */
    .float-icon {
        width: 40px;
        height: 40px;
    }

    .float-icon .material-icons {
        font-size: 18px;
    }

    .icon-3, .icon-4 {
        display: none;
    }

    .k-orb {
        width: 150px !important;
        height: 150px !important;
    }

    .connection-lines {
        display: none;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

/* Hero Section Dark Mode */
body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Dark mode backgrounds */
body.dark-mode .about-section,
body.dark-mode .objectives-section,
body.dark-mode .projects-section,
body.dark-mode .grading-section,
body.dark-mode .grading-section-new,
body.dark-mode .schedule-section,
body.dark-mode .resources-preview-section,
body.dark-mode .syllabus-section {
    background-color: #0f172a !important;
    background: #0f172a !important;
}

/* Dark mode cards */
body.dark-mode .feature-card,
body.dark-mode .project-card,
body.dark-mode .week-card,
body.dark-mode .resource-preview-card,
body.dark-mode .grade-component,
body.dark-mode .grade-card,
body.dark-mode .objective-card {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark mode special cards */
body.dark-mode .project-card.highlight {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

body.dark-mode .week-card.spring-break {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%) !important;
}

body.dark-mode .week-card.highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
}

/* Dark mode text */
body.dark-mode .feature-card h3,
body.dark-mode .project-card h3,
body.dark-mode .week-card h3,
body.dark-mode .objective-card h3,
body.dark-mode .grade-component h4,
body.dark-mode .grade-card h3,
body.dark-mode .grade-card h4 {
    color: white !important;
}

body.dark-mode .feature-card p,
body.dark-mode .project-card p,
body.dark-mode .week-card p,
body.dark-mode .objective-card p,
body.dark-mode .grade-component p,
body.dark-mode .grade-card p,
body.dark-mode .grade-card .percentage {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Dark mode icons */
body.dark-mode .feature-icon,
body.dark-mode .project-icon,
body.dark-mode .grade-icon {
    color: #60a5fa !important;
}

/* Dark mode badges */
body.dark-mode .hero-badge,
body.dark-mode .project-badge,
body.dark-mode .week-badge {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #93c5fd !important;
}

/* Dark mode links */
body.dark-mode .project-card a,
body.dark-mode .resource-preview-card a {
    color: #60a5fa !important;
}

body.dark-mode .project-card a:hover,
body.dark-mode .resource-preview-card a:hover {
    color: #93c5fd !important;
}

/* Dark mode decorative elements */
body.dark-mode .section-decoration {
    opacity: 0.3;
}

body.dark-mode .section-bg-decoration .animated-blob,
body.dark-mode .section-bg-decoration .floating-shape {
    opacity: 0.08;
}

body.dark-mode .grid-dots {
    background-image: radial-gradient(circle, rgba(96, 165, 250, 0.1) 1.5px, transparent 1.5px);
    opacity: 0.3;
}

body.dark-mode .code-lines {
    color: rgba(96, 165, 250, 0.15);
}

body.dark-mode .code-lines.left,
body.dark-mode .code-lines.right {
    color: rgba(96, 165, 250, 0.12);
}

body.dark-mode .bracket {
    color: rgba(96, 165, 250, 0.1);
    text-shadow: 0 4px 20px rgba(96, 165, 250, 0.15);
}

body.dark-mode .code-pattern-grid {
    background-image:
        linear-gradient(90deg, rgba(96, 165, 250, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(96, 165, 250, 0.02) 1px, transparent 1px);
}

body.dark-mode .terminal-decoration {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(96, 165, 250, 0.1);
}

body.dark-mode .terminal-text {
    color: rgba(96, 165, 250, 0.25);
}

body.dark-mode .terminal-dot {
    opacity: 0.4;
}

/* Dark mode - New Grading Section */
body.dark-mode .grading-section-new {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

body.dark-mode .grading-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

body.dark-mode .donut-chart circle[stroke="#e2e8f0"] {
    stroke: #334155;
}

body.dark-mode .donut-center .total-value {
    color: #f1f5f9;
}

body.dark-mode .donut-center .total-symbol,
body.dark-mode .donut-center .total-label {
    color: #94a3b8;
}

body.dark-mode .legend-item {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .legend-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .legend-label {
    color: #94a3b8;
}

body.dark-mode .legend-value {
    color: #f1f5f9;
}

body.dark-mode .grade-card-modern {
    background: #1e293b;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .grade-card-modern:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .grade-card-modern.featured {
    background: linear-gradient(135deg, #1e293b 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

body.dark-mode .card-details h4 {
    color: #f1f5f9;
}

body.dark-mode .card-details p {
    color: #94a3b8;
}

body.dark-mode .progress-track {
    background: #334155;
}

body.dark-mode .category-header-bar {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .gradient-orb {
    opacity: 0.15;
}

body.dark-mode .floating-shape {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
}

/* Dark Mode - Learning Path Theme */
body.dark-mode .section-bg-decoration.learning-path-theme {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
}

body.dark-mode .gradient-mesh {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
}

body.dark-mode .float-num {
    color: rgba(96, 165, 250, 0.06);
}

body.dark-mode .milestone {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    opacity: 0.1;
}

body.dark-mode .connecting-path {
    stroke: rgba(96, 165, 250, 0.1);
}

/* Dark Mode - Calendar Theme */
body.dark-mode .section-bg-decoration.calendar-theme {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
}

body.dark-mode .calendar-grid-pattern {
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.02) 1px, transparent 1px);
}

body.dark-mode .calendar-icon {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(96, 165, 250, 0.1);
}

body.dark-mode .cal-month {
    color: #60a5fa;
    opacity: 0.5;
}

body.dark-mode .cal-day {
    color: rgba(96, 165, 250, 0.15);
}

body.dark-mode .timeline-line {
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.08) 20%, rgba(96, 165, 250, 0.08) 80%, transparent 100%);
}

body.dark-mode .timeline-dot {
    background: rgba(96, 165, 250, 0.15);
}

body.dark-mode .week-badge {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.06) 0%, rgba(59, 130, 246, 0.06) 100%);
    border-color: rgba(96, 165, 250, 0.08);
    color: rgba(96, 165, 250, 0.25);
}

/* Dark Mode - Knowledge Theme */
body.dark-mode .section-bg-decoration.knowledge-theme {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
}

body.dark-mode .hexagon-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%2360a5fa' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

body.dark-mode .float-icon {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(96, 165, 250, 0.08);
}

body.dark-mode .float-icon .material-icons {
    color: rgba(96, 165, 250, 0.12);
}

body.dark-mode .connection-lines line {
    stroke: rgba(96, 165, 250, 0.06);
}

body.dark-mode .k-orb.orb-1 {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
}

body.dark-mode .k-orb.orb-2 {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
}
