
:root {
    --primary-blue: #007bff;
    --dark-blue: #0056b3;
    --bg-light: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --card-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-light: #121212;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --card-bg: #1e1e1e;
    --primary-blue: #4da3ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    line-height: 1.6;
}

.sticky-socials {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
    border-radius: 0 5px 5px 0;
    margin-bottom: 5px;
}

.social-btn:hover {
    width: 55px;
    padding-left: 10px;
}

.youtube { background: #FF0000; }
.facebook { background: #1877F2; }
.instagram { background: #E4405F; }
.telegram { background: #0088cc; }

.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-dark);
}

.logo span { color: var(--primary-blue); }

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.4s;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links li a:hover { color: var(--primary-blue); }


.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,123,255,0.05), rgba(0,123,255,0.05));
    padding: 0 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { max-width: 600px; margin: 0 auto 30px; color: var(--text-light); }

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
    margin: 10px;
}

.btn-primary { background: var(--primary-blue); color: white; }
.btn-primary:hover { background: var(--dark-blue); transform: translateY(-3px); }


#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-right: 15px;
}


.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        align-items: center;
        font-size: 1.12rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: all 0.4s;
    }
    .nav-links.active { display: flex;}
    .nav-links li{
        padding: 8px 0;
        
    }
    .nav-links li:hover{
        width: 100%;
        text-align: center;
        background: #b6d6f8;
        color: #ffffff;
    }
    .hero h1 { font-size: 2rem; }
    .social-btn { width: 35px; height: 35px; font-size: 16px; }
}





.about {
    padding: 100px 0;
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    position: relative;
}

.blob-shape {
    position: absolute;
    width: 110%;
    height: 110%;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0.1;
    top: -5%;
    left: -5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.sub-title {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.main-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.main-title span {
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 25px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
    background: var(--primary);
}

/* Change text to white on hover */
.stat-card:hover h4, 
.stat-card:hover p, 
.stat-card:hover .stat-icon i {
   
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 2.2rem;
    }
}



.main-footer {
    background: var(--secondary); 
    position: relative;
    padding-top: 80px;
    margin-top: 100px;
    transition: var(--transition);
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.footer-wave .shape-fill {
    fill: rgba(0, 56, 255, 0.8); 
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-socials a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: var(--bg);
    color: var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 5px 0 0 5px;
    border: 1px solid rgba(0,0,0,0.1);
    outline: none;
    background: var(--bg);
    color: var(--text);
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--dark-blue);
}


.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-muted);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}





.contact {
    padding: 100px 0;
    background: var(--bg);
}

.contact-box {
    display: flex;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.contact-info {
    flex: 1;
    background: var(--primary);
    padding: 60px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info p {
    opacity: 0.9;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.info-item p {
    margin: 0;
    font-weight: 600;
    opacity: 1;
}

.contact-form-wrapper {
    flex: 1.5;
    padding: 60px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid var(--secondary);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: 0.3s;
    border: #0056b3 0.8px solid;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}


#result {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}


@media (max-width: 992px) {
    .contact-box {
        flex-direction: column;
    }
    .contact-info, .contact-form-wrapper {
        padding: 40px;
    }
}




.notes-page-wrapper {
    padding: 60px 20px;
    min-height: 80vh;
}

.notes-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.notes-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.notes-header h1 span { color: var(--primary); }


.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 30px auto 0;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

#noteSearch {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border-radius: 50px;
    border: 2px solid var(--secondary);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

#noteSearch:focus {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* --- Note Cards --- */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

.note-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,123,255,0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: fadeInUp 0.5s ease backwards;
}

.note-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.card-tag {
    background: var(--secondary);
    color: var(--primary);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.note-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.note-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.card-footer span { font-size: 0.85rem; color: var(--text-muted); }

.view-btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.view-btn:hover { letter-spacing: 0.5px; }

.not-found {
    display: none;
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease;
}

.not-found i {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.not-found h2 { margin-bottom: 10px; }
.not-found p { color: var(--text-muted); max-width: 400px; margin: 0 auto 25px; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Staggered loading for cards */
.note-card:nth-child(1) { animation-delay: 0.1s; }
.note-card:nth-child(2) { animation-delay: 0.2s; }
.note-card:nth-child(3) { animation-delay: 0.3s; }
.note-card:nth-child(4) { animation-delay: 0.4s; }

