/* Reset and Enhanced Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a1a1a 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 255, 255, 0.02) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(255, 0, 255, 0.02) 100px
        );
    pointer-events: none;
    z-index: -1;
}





/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

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

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.95) 0%, 
            rgba(10, 0, 10, 0.9) 50%, 
            rgba(0, 10, 10, 0.95) 100%
        );
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, #00ffff, #ff00ff, #ffff00, transparent) 1;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.05) 25%, 
        rgba(255, 0, 255, 0.05) 50%, 
        rgba(255, 255, 0, 0.05) 75%, 
        transparent 100%
    );
    animation: navShimmer 4s ease-in-out infinite;
}

@keyframes navShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
}

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

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    display: block;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

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

.nav-link:hover {
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(255, 0, 255, 0.6);
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2), 
        rgba(255, 0, 255, 0.2)
    );
    border: 1px solid rgba(0, 255, 255, 0.5);
    text-shadow: 0 0 15px rgba(0, 255, 255, 1);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        order: 3;
    }
    
    .search-container {
        display: none;
    }
}

.neon-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.neon-text-alt {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
}

.search-container {
    position: relative;
}

.search-bar {
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.1), 
            rgba(255, 0, 255, 0.1)
        );
    border: 2px solid;
    border-image: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.5), 
        rgba(255, 0, 255, 0.5)
    ) 1;
    border-radius: 25px;
    padding: 12px 45px 12px 20px;
    color: #ffffff;
    font-size: 14px;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-bar:focus {
    outline: none;
    border-image: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00) 1;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(255, 0, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.2), 
            rgba(255, 0, 255, 0.2)
        );
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
}

/* Enhanced Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: 
        radial-gradient(ellipse at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 255, 0, 0.06) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 255, 0.02) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.02) 50%, transparent 52%);
    animation: heroPattern 8s ease-in-out infinite;
}

@keyframes heroPattern {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
}

.neon-glow {
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
    }
    to {
        text-shadow: 0 0 30px #ff00ff, 0 0 40px #ff00ff, 0 0 50px #ff00ff;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Neon Buttons */
.neon-btn {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(255, 0, 255, 0.1)
    );
    border: 2px solid;
    border-image: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff) 1;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.neon-btn::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.6s ease;
}

.neon-btn:hover {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.3), 
        rgba(255, 0, 255, 0.3), 
        rgba(255, 255, 0, 0.2)
    );
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(0, 255, 255, 0.8);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 80px rgba(255, 0, 255, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px) scale(1.05);
    border-image: linear-gradient(45deg, #ffff00, #00ff00, #00ffff, #ff00ff) 1;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.neon-btn.secondary {
    border-color: #ff00ff;
    color: #ff00ff;
}

.neon-btn.secondary:hover {
    background: #ff00ff;
    box-shadow: 0 0 30px #ff00ff;
}

/* Interactive Button Effects */
.interactive-btn {
    position: relative;
    overflow: hidden;
}

.interactive-btn:hover {
    transform: translateY(-5px) scale(1.05);
    animation: buttonPulse 0.6s ease-in-out;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.btn-particles::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.interactive-btn:hover .btn-particles::before {
    width: 200px;
    height: 200px;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 60px rgba(0, 255, 255, 0.8); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.5); }
}

/* Floating Interactive Elements */
.interactive-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(0, 255, 255, 0.3);
    animation: floatAround 20s infinite linear;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.floating-icon:hover {
    color: #00ffff;
    transform: scale(1.5);
    text-shadow: 0 0 20px #00ffff;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: -3s;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: -6s;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Mouse Follow Effect */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: screen;
}



.search-container:hover .search-icon {
    animation: searchPulse 1s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

/* Announcements Section */
.announcements-section {
    padding: 60px 0;
    margin: 20px auto;
    background: transparent;
    border-radius: 20px;
}

.announcements-container {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    display: block;
    gap: 16px;
    box-sizing: border-box;
    padding: 12px;
    max-height: 420px;           /* enables vertical scrolling for previews */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
}

.announcement-card {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0,255,255,0.06);
    box-sizing: border-box;
    transition: transform .18s ease, box-shadow .18s ease;
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.announcement-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #eaf6ff;
}

.announcement-date {
    font-size: 0.85rem;
    color: rgba(234,246,255,0.7);
}

.announcement-message {
    margin: 8px 0 0;
    color: rgba(234,246,255,0.9);
    line-height: 1.5;
    word-break: break-word;
}

/* Homepage preview clamp (one-line) */
.announcement-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge */
.new-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #021827;
    background: linear-gradient(90deg,#eaf6ff,#ffffff);
    box-shadow: 0 6px 20px rgba(11,121,208,0.08);
    margin-left: 8px;
}

/* clickable behavior */
.clickable-card {
    cursor: pointer;
    display: block;
    width: 100%;
}

/* ensure full content displays correctly on announcements page */
.announcement-full-card .announcement-message,
.announcements-container .announcement-message {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Notes Sections */
.notes-section {
    padding: 100px 0;
    position: relative;
    border-radius: 30px;
    margin: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    font-weight: bold;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    border-radius: 25px;
}

/* Enhanced Note Cards */
.note-card {
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.05) 0%, 
            rgba(255, 0, 255, 0.05) 50%, 
            rgba(255, 255, 0, 0.03) 100%
        );
    border: 2px solid;
    border-image: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.3), 
        rgba(255, 0, 255, 0.3), 
        rgba(255, 255, 0, 0.2)
    ) 1;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

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

.note-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-image: linear-gradient(135deg, 
        #00ffff, 
        #ff00ff, 
        #ffff00, 
        #00ff00
    ) 1;
    box-shadow: 
        0 25px 50px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(255, 0, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    background: 
        linear-gradient(135deg, 
            rgba(0, 255, 255, 0.15) 0%, 
            rgba(255, 0, 255, 0.15) 50%, 
            rgba(255, 255, 0, 0.1) 100%
        );
}

.card-icon {
    font-size: 3rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
    transition: all 0.3s ease;
}

.note-card:hover .card-icon {
    transform: scale(1.2) rotateY(15deg);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
}

.note-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.note-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

/* Announcements Page Styles */
.announcements-page-section {
    padding: 100px 0;
    min-height: 80vh;
}

.announcements-full-list {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.announcement-full-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.announcement-full-card:hover {
    border-color: #00ffff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.announcement-full-card .announcement-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.announcement-full-card .announcement-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.announcement-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.page-header {
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.card-btn {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.card-btn::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;
}

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

.card-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.card-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    margin: 20px;
}

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

.about-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.creator-info {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    line-height: 1.6;
    font-style: italic;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    border-radius: 25px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
}

.stat-item {
    text-align: center;
    border-radius: 15px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 30px 30px 0 0;
    margin: 20px 20px 0 20px;
}

.footer a {
    color: #00ffff;
    text-decoration: none;
    margin-left: 10px;
    transition: all 0.3s ease;
    z-index: 1000;
    position: relative;
    display: inline-block;
    padding: 5px 10px;
}

.footer a:hover {
    text-shadow: 0 0 10px #00ffff;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 5px;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: transparent;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    animation: float 12s ease-in-out infinite;
}

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

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

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

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

/* Parallax Image Container */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    z-index: -1;
    overflow: hidden;
    will-change: opacity;
}

.hero-image-parallax {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-parallax {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2) saturate(1.1);
    will-change: transform;
    transform-origin: center center;
}

.study-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.study-text {
    font-size: 3rem;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.study-desc {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-spacer {
    height: 150vh;
}



/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

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

/* Enhanced Scroll Animations */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger Animation for Multiple Elements */
.notes-grid .note-card:nth-child(1) { transition-delay: 0.1s; }
.notes-grid .note-card:nth-child(2) { transition-delay: 0.2s; }
.notes-grid .note-card:nth-child(3) { transition-delay: 0.3s; }
.notes-grid .note-card:nth-child(4) { transition-delay: 0.4s; }

.stats .stat-item:nth-child(1) { transition-delay: 0.1s; }
.stats .stat-item:nth-child(2) { transition-delay: 0.2s; }
.stats .stat-item:nth-child(3) { transition-delay: 0.3s; }

/* Performance Optimizations */
.note-card,
.stat-item {
    will-change: transform;
}

.hero-img-parallax {
    will-change: transform, opacity;
}

.paint-layer {
    will-change: opacity;
}

/* Preload Critical Resources */
.preload {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-trail {
        display: none;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        transform: none;
        color: #00ffff;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 255, 255, 0.8); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.5); }
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 3px solid #00ffff;
    white-space: nowrap;
    animation: typing 3s steps(11, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ffff; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #00ffff;
    border-bottom: 2px solid #00ffff;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* AI Chat Section */
.ai-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    margin: 20px;
}

.ai-preview-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ai-preview-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 30px;
    padding: 60px 40px;
}

.ai-preview-icon {
    font-size: 4rem;
    color: #00ffff;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.ai-preview-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00ffff;
}

.ai-preview-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* AI Chat Page */
.ai-chat-page {
    min-height: 100vh;
    padding-top: 100px;
}

.ai-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-full-chat-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 250px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 30px;
    overflow: hidden;
}

.chat-sidebar {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px;
    overflow-y: auto;
}

.new-chat-btn {
    width: 100%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    color: #000;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.new-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px;
    transition: all 0.3s ease;
    display: flex;
    gap: 10px;
    align-items: center;
}

.history-item i.fa-comment,
.history-info {
    cursor: pointer;
}

.history-item:hover,
.history-item.active {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

.history-info {
    flex: 1;
}

.history-title {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.history-actions {
    display: flex;
    gap: 5px;
}

.history-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #00ffff;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.history-actions button:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.1);
}

.history-actions button:last-child {
    color: #ff00ff;
}

.history-actions button:last-child:hover {
    background: rgba(255, 0, 255, 0.2);
}

.no-history {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

.chat-main {
    display: flex;
    flex-direction: column;
}

.chat-messages-full {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(100vh - 350px);
    min-height: 400px;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    animation: welcomeFadeIn 0.6s ease;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-message i {
    font-size: 4rem;
    color: #00ffff;
    margin-bottom: 20px;
    animation: iconBounce 0.6s ease 0.2s;
}

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

.welcome-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00ffff;
}

.welcome-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.chat-input-full {
    display: flex;
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    gap: 10px;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-full textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: none;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.chat-input-full textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.chat-input-full textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input-full textarea::-webkit-scrollbar {
    width: 4px;
}

.chat-input-full textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

.chat-input-full button {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 50px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-bottom: 2px;
}

.chat-input-full button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.chat-input-full button:active {
    transform: scale(0.95) rotate(90deg);
}

.chat-input-full button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#stopBtn {
    background: linear-gradient(45deg, #ff0000, #ff4444) !important;
    margin-left: 5px;
}

#stopBtn:hover {
    background: linear-gradient(45deg, #ff4444, #ff0000) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5) !important;
}

.ai-message span {
    color: #00ffff !important;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff !important;
}

.neon-ai-text {
    color: #00ffff !important;
    text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff, 0 0 24px #00ffff !important;
}

.neon-ai-text strong {
    color: #00ff88 !important;
    text-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88 !important;
}

.neon-ai-text em {
    color: #88ffff !important;
    text-shadow: 0 0 8px #88ffff, 0 0 16px #88ffff !important;
}

/* Edit Modal */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.edit-modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

.edit-modal-content h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.edit-modal-content input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.edit-modal-content input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.edit-modal-buttons {
    display: flex;
    gap: 10px;
}

.edit-modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(45deg, #00ffff, #00cc99);
    color: #000;
}

.save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.delete-modal {
    text-align: center;
}

.warning-icon {
    font-size: 3rem;
    color: #ff00ff;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.delete-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

.delete-btn {
    background: linear-gradient(45deg, #ff00ff, #ff0080);
    color: #fff;
}

.delete-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
}

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

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

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

.sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .ai-full-chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 200px);
    }
    
    .chat-sidebar {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        z-index: 1001;
        background: rgba(10, 10, 10, 0.98);
        transition: left 0.3s ease;
        border-right: 2px solid #00ffff;
    }
    
    .chat-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        bottom: 80px;
        left: 10px;
        background: linear-gradient(45deg, #00ffff, #ff00ff);
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        color: #000;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 1000;
        box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
        transition: transform 0.3s ease;
    }
    
    .sidebar-toggle:active {
        transform: scale(0.9);
    }
    
    .chat-messages-full {
        max-height: calc(100vh - 280px);
        min-height: 300px;
    }
    
    .chat-input-full {
        padding: 15px;
    }
    
    .chat-input-full textarea {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .chat-input-full button {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .message span {
        max-width: 85%;
        font-size: 0.95rem;
    }
    
    .welcome-message {
        padding: 40px 15px;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .welcome-message i {
        font-size: 3rem;
    }
    
    .ai-page-header {
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.chat-header i {
    color: #00ffff;
    margin-right: 10px;
    font-size: 1.2rem;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    animation: messageSlideIn 0.4s ease forwards;
    border-radius: 20px;
}

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

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.message i {
    color: #00ffff;
    margin-top: 5px;
    animation: iconPop 0.3s ease 0.1s forwards;
    opacity: 0;
    transform: scale(0.5);
}

@keyframes iconPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message span {
    background: rgba(0, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    line-height: 1.4;
    animation: textFadeIn 0.3s ease 0.2s forwards;
    opacity: 0;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

.user-message span {
    background: rgba(255, 0, 255, 0.1);
}

.ai-message span {
    border-left: 3px solid #00ffff;
}

.user-message span {
    border-left: 3px solid #ff00ff;
}

/* Typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 3px solid #00ffff;
    animation: typingFadeIn 0.3s ease;
}

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

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffff;
    animation: typing 1.4s infinite ease-in-out;
    border: none;
    padding: 0;
    margin: 0;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-container {
    display: flex;
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: #ffffff;
    margin-right: 10px;
}

.chat-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.send-btn {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.send-btn:active {
    transform: scale(0.95);
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
}

.notes-page-section {
    padding: 50px 0 100px;
}

/* Counter Animation */
.counter {
    display: inline-block;
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 20px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    

    
    .search-bar {
        width: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-img {
        width: 200px;
        height: 200px;
    }
    
    .floating-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .neon-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .note-card {
        padding: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .message span {
        max-width: 90%;
        font-size: 0.9rem;
    }
    
    .chat-input-full textarea {
        font-size: 16px;
        border-radius: 20px;
    }
    
    .chat-input-full button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .edit-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .sidebar-toggle {
        bottom: 70px;
        width: 45px;
        height: 45px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

.nav-link:focus,
.neon-btn:focus,
.card-btn:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}



/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
}



/* Enhanced styling for full announcements page */
.announcement-full-card {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.03) 0%, 
        rgba(255, 0, 255, 0.03) 50%, 
        rgba(255, 255, 0, 0.02) 100%
    ) !important;
    border: 1px solid rgba(0, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.announcement-full-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(0, 255, 255, 0.3) !important;
    box-shadow: 
        0 15px 40px rgba(0, 255, 255, 0.2),
        0 0 30px rgba(255, 0, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05) !important;
}

.announcement-full-card .announcement-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 15px !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.announcement-full-card .announcement-content {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.announcement-full-card .announcement-content p {
    margin-bottom: 15px !important;
}

.announcement-full-card .announcement-content ul {
    margin: 15px 0 !important;
    padding-left: 20px !important;
}

.announcement-full-card .announcement-content li {
    margin-bottom: 10px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.announcement-full-card .announcement-content strong {
    color: #00ffff !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.announcement-full-card .new-badge {
    background: linear-gradient(90deg, #00ffff, #ff00ff) !important;
    color: #000 !important;
    font-weight: 900 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

/* Announcements page - remove scrolling and styling */
body:not(.homepage) .announcements-section .announcements-container {
    max-height: none !important;
    overflow-y: visible !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Compact Chat Interface */
.compact-chat-container {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.compact-chat-container:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.compact-chat-input {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.compact-chat-input textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.compact-chat-input textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.compact-chat-input textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.compact-chat-input button {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.compact-chat-input button:hover:not(:disabled) {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.compact-chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-suggestions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.secondary-btn {
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 10px 20px;
    opacity: 0.8;
}

.secondary-btn:hover {
    opacity: 1;
}

/* Full Page Chat Overlay */
.fullpage-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(10, 0, 10, 0.95) 50%, 
        rgba(0, 10, 10, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fullpage-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
}

.chat-title i {
    font-size: 1.8rem;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        text-shadow: 0 0 10px #00ffff;
    }
    to {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

.close-fullpage-chat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-fullpage-chat:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
    transform: scale(1.1);
}

.fullpage-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    max-height: calc(100vh - 200px);
}

.fullpage-chat-messages .welcome-message {
    text-align: center;
    padding: 80px 20px;
    animation: welcomeFadeIn 0.6s ease;
}

.fullpage-chat-messages .welcome-message i {
    font-size: 5rem;
    color: #00ffff;
    margin-bottom: 30px;
    animation: iconBounce 0.6s ease 0.2s;
}

.fullpage-chat-messages .welcome-message h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.fullpage-chat-messages .welcome-message p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.fullpage-chat-input {
    display: flex;
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    gap: 15px;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.3);
}

.fullpage-chat-input textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 15px 20px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: none;
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.fullpage-chat-input textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.fullpage-chat-input textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fullpage-chat-input button {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    min-width: 55px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    font-size: 1.2rem;
}

.fullpage-chat-input button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.fullpage-chat-input button:active {
    transform: scale(0.95) rotate(90deg);
}

/* Message styles for fullpage chat */
.fullpage-chat-messages .message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    animation: messageSlideIn 0.4s ease forwards;
}

.fullpage-chat-messages .ai-message {
    justify-content: flex-start;
}

.fullpage-chat-messages .user-message {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.fullpage-chat-messages .message i {
    color: #00ffff;
    margin-top: 8px;
    font-size: 1.2rem;
    animation: iconPop 0.3s ease 0.1s forwards;
    opacity: 0;
    transform: scale(0.5);
}

.fullpage-chat-messages .message span {
    background: rgba(0, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 1.1rem;
    animation: textFadeIn 0.3s ease 0.2s forwards;
    opacity: 0;
}

.fullpage-chat-messages .user-message span {
    background: rgba(255, 0, 255, 0.1);
}

.fullpage-chat-messages .ai-message span {
    border-left: 3px solid #00ffff;
}

.fullpage-chat-messages .user-message span {
    border-left: 3px solid #ff00ff;
}

/* Typing indicator for fullpage */
.fullpage-chat-messages .typing-dots {
    display: inline-flex;
    gap: 6px;
    padding: 15px 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    border-left: 3px solid #00ffff;
    animation: typingFadeIn 0.3s ease;
}

.fullpage-chat-messages .typing-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ffff;
    animation: typing 1.4s infinite ease-in-out;
    border: none;
    padding: 0;
    margin: 0;
}

/* Mobile responsiveness for fullpage chat */
@media (max-width: 768px) {
    .fullpage-chat-header {
        padding: 15px 20px;
    }
    
    .chat-title {
        font-size: 1.3rem;
    }
    
    .chat-title i {
        font-size: 1.5rem;
    }
    
    .fullpage-chat-messages {
        padding: 20px;
        max-height: calc(100vh - 180px);
    }
    
    .fullpage-chat-messages .welcome-message {
        padding: 60px 15px;
    }
    
    .fullpage-chat-messages .welcome-message i {
        font-size: 4rem;
    }
    
    .fullpage-chat-messages .welcome-message h3 {
        font-size: 2rem;
    }
    
    .fullpage-chat-messages .welcome-message p {
        font-size: 1.1rem;
    }
    
    .fullpage-chat-input {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .fullpage-chat-input textarea {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .fullpage-chat-input button {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.1rem;
    }
    
    .fullpage-chat-messages .message span {
        max-width: 85%;
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    .compact-chat-input {
        flex-direction: column;
        gap: 15px;
    }
    
    .compact-chat-input button {
        align-self: center;
        width: 50px;
        height: 50px;
    }
    
    .chat-suggestions {
        gap: 8px;
    }
    
    .suggestion-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}