
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/********* navbar scrolling *******/

html {
    scroll-behavior: smooth;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #020b2b;
    color: #fff;
    padding-top: 100px;
    
}

/* Navbar */
.navbar {
    position: fixed;   /* Keeps navbar visible */
    top: 0;
    left: 0;
    width: 100%;

    background:  rgba(2, 11, 43, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid #222;

    z-index: 9999;   /* Keeps navbar above everything */

    padding: 10px 0;
}



/* Container */
.navbar-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}



/* Logo */
.logo-img {
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
     width: 90px;
    filter: 
        drop-shadow(0 0 10px rgba(9, 37, 61, 0.5))
        drop-shadow(0 0 20px rgba(31, 9, 90, 0.4));
    
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Nav Links */
.navbar-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

/* Remove underline from links */
.navbar-links a {
    text-decoration: none;
    color: inherit;
}

/* Link Items */
.navbar-links li {
    position: relative;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #e5e5e5;
    transition: color 0.3s ease;
}


/* Underline Animation */
.navbar-links li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.navbar-links li:hover {
    color: #fff;
}

.navbar-links li:hover::after {
    width: 100%;
}


/* Active Link */
.navbar-links a.active li,
.navbar-links .active {
    color: #fff;
}

.navbar-links .active::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* NOTES SECTION */

.notes-section{
    padding:40px 8%;
    background:  rgba(2, 11, 43, 0.5);
    border-bottom:2px solid #ccc ;
}

.section-title{
    text-align:center;
    font-family: 'Inter', sans-serif;
    font-size:3rem;
    color:#fff;
    margin-bottom:50px;
    font-weight:700;
    letter-spacing:2px;
}

.notes-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.note-card{
    
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    padding:30px 20px;
    text-align:center;
    transition:0.4s ease;

    
    background: linear-gradient(355deg, rgba(238, 231, 174, 1) 21%, rgba(183, 201, 213, 1) 88%); 
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
}

.note-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.note-card img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:20px;
    border:4px solid rgba(255,255,255,0.08);
}


.download-btn{
    display:block;
    width:100%;
    padding:12px;
    background:#EDC001;
    color:#000;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.3s ease;
}

.download-btn:hover{
    background:#020b2b;
    color: #ccc;
}

.notes-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}



.note-card img{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
}

.note-card h3{
    color:#000;
    font-size:1.5rem;
    font-weight:400;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

    min-height:20px; /* reserves space for 2 lines */
    
    display:flex;
    align-items:center;
    justify-content:center;

    margin:15px 0 20px;
}

.download-btn{
    margin-top:auto;
    width:100%;
}

/* Tablet & Mobile Navigation */
@media screen and (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .burger {
        display: block;
    }

    .navbar-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 250px;
        background: #020b2b;
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        display: none;
        border-radius: 10px;
        border: 1px solid #222;
    }

    .navbar-links.show,
    .navbar-links.active {
        display: flex;
    }
}

/* Tablet */
@media(max-width:992px){

    .notes-container{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Mobile */
@media(max-width:576px){

    .section-title{
        font-size:2.2rem;
    }

    .notes-container{
        grid-template-columns:1fr;
    }

    .note-card img{
        width:100px;
        height:100px;
    }
}