* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

-webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e6ed;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    color: #64b5f6;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-header p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #e0e6ed;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: #fff;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #64b5f6;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.open-app-btn {
    width: 40vw;
    text-align: center;
    margin: auto;
    display: block;
    background: linear-gradient(45deg, #81c784, #66bb6a);
    color: white;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(129, 199, 132, 0.3);
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.open-app-btn:hover {
    background: linear-gradient(45deg, #66bb6a, #4caf50);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.4);
}

.open-app-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4caf50;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.open-app-btn:hover::before {
    transform: scaleY(1);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.menu-toggle {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #64b5f6, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #e0e6ed;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.search-box::placeholder {
    color: #a0a0a0;
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.resource-card p {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-link {
    display: inline-block;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.category-section {
    margin-bottom: 3rem;
    margin-bottom: 3rem;
    scroll-margin-top: 25vh;
}

.category-title {
    color: #81c784;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #81c784, #66bb6a);
    border-radius: 2px;
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    border: none;
    color: white;
    padding: 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    width: 60px;
    height: 60px;
}

.mobile-menu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(100, 181, 246, 0.5);
}

.mobile-menu-button:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .open-app-btn {
        padding: .8rem;
        margin: 0;
    }

    .sidebar {
        width: 100%;
        bottom: 0;
        top: auto;
        transform: translateY(100%);
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 20px 20px 0 0;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-header {
        margin: -20px;
        padding-top: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        padding-left: 10%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* margin-bottom: 1rem; */
    }

    /* .sidebar-header h2 {
        color: #64b5f6;
        font-size: 1.3rem;
        font-weight: 600;
    } */

    /* .sidebar-header p {
        color: #a0a0a0;
        font-size: 0.7rem;
        margin-top: 0.5rem;
    } */

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .nav-link {
        display: block;
        padding: .5rem 1.5rem;
        color: #e0e6ed;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-menu {
        list-style: none;
        padding: 0;
        padding-left: 5%;
    }

    .sidebar.active {
        transform: translateY(0);
    }

    .main-content {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        /* margin-bottom: .1rem; */
        margin-top: -1rem;
        padding: 1rem 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
        /* display: none; */
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }
}

@media (min-width: 769px) {
    .sidebar.active+.main-content {
        margin-left: 280px;
    }
}