* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    -webkit-tap-highlight-color: transparent;

    /* Hide scrollbar for Firefox and IE/Edge */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

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;
}

/* Homepage Container */
.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 100px;
    flex-direction: column;
}

/* 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;
    scroll-margin-top: 25vh;
}

/* Socials Grid */
.socials-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

.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;
    }
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #64b5f6, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.hero-tagline .highlight {
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #a0a0a0;
    line-height: 1.6;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #2d3748, #1a202c);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #3d4a5c, #2d3748);
}

/* ============================================
   CATEGORY CARDS SECTION
   ============================================ */

.category-cards-section {
    padding: 2rem 0;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    color: #e0e6ed;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-content p {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.card-arrow {
    color: #a0a0a0;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================
   FEATURED PROJECTS MARQUEE
   ============================================ */

.featured-section {
    padding: 3rem 0;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    margin-top: 1.5rem;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    min-width: 180px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.marquee-item img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.marquee-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(45deg, #64b5f6, #81c784);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.marquee-item span {
    color: #e0e6ed;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* ============================================
   CATEGORY PAGE STYLES
   ============================================ */

.category-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #64b5f6;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.category-info h1 {
    color: #e0e6ed;
    font-size: 1.8rem;
    font-weight: 600;
}

.category-info p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.add-link-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e6ed;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.add-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-number {
    color: #64b5f6;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 30px;
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.project-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-info h3 {
    color: #e0e6ed;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-info p {
    color: #707070;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.visit-btn:hover {
    background: rgba(100, 181, 246, 0.25);
}

.copy-btn {
    background: transparent;
    border: none;
    color: #707070;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   COURSE DROPDOWN STYLES
   ============================================ */

.course-dropdown {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.course-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #e0e6ed;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.course-header i {
    transition: transform 0.3s ease;
}

.course-dropdown.active .course-header i {
    transform: rotate(180deg);
}

.course-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.course-dropdown.active .course-content {
    display: block;
}

.repo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.repo-item:last-child {
    border-bottom: none;
}

.repo-item i {
    color: #a0a0a0;
    font-size: 1.2rem;
}

.repo-info {
    flex: 1;
}

.repo-info a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.repo-info a:hover {
    text-decoration: underline;
}

.repo-info p {
    color: #707070;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet breakpoint */
@media (max-width: 992px) {
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {

    /* Container & Layout Mobile */
    .homepage-container {
        margin-bottom: 50px;
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    .mobile-menu-button {
        display: block;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        margin-top: 0.8rem;
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Category Cards Mobile */
    .category-cards-section {
        padding: 1.5rem 0;
    }

    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }

    .card-arrow {
        opacity: 1;
    }

    /* Featured Marquee Mobile */
    .featured-section {
        padding: 2rem 0;
    }

    .featured-section .category-title {
        font-size: 1.4rem;
        padding-left: 1rem;
    }

    .marquee-container {
        margin-top: 1rem;
    }

    .marquee-item {
        padding: 1rem 1.5rem;
        min-width: 150px;
    }

    .marquee-item img,
    .marquee-placeholder {
        width: 60px;
        height: 60px;
    }

    .marquee-placeholder {
        font-size: 1.5rem;
    }

    .marquee-item span {
        font-size: 0.8rem;
    }

    /* Category Page Mobile */
    .category-page {
        padding: 1rem;
    }

    .category-header {
        flex-wrap: wrap;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .back-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .category-info h1 {
        font-size: 1.4rem;
    }

    .category-info p {
        font-size: 0.8rem;
    }

    .add-link-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Project List Mobile */
    .project-list {
        gap: 0.75rem;
    }

    .project-item {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }

    .project-number {
        font-size: 0.8rem;
        min-width: 25px;
    }

    .project-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .project-info {
        flex: 1;
        min-width: calc(100% - 80px);
    }

    .project-info h3 {
        font-size: 0.95rem;
    }

    .project-info p {
        font-size: 0.75rem;
    }

    .project-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-top: 0.25rem;
    }

    .visit-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    /* Course Dropdowns Mobile */
    .course-dropdown {
        margin-bottom: 0.75rem;
    }

    .course-header {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .course-header span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .course-content {
        padding: 0 1rem 1rem;
    }

    .repo-item {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .repo-item i {
        font-size: 1rem;
    }

    .repo-info a {
        font-size: 0.9rem;
    }

    .repo-info p {
        font-size: 0.75rem;
    }

    /* About & Socials Mobile */
    .category-section {
        margin-bottom: 2rem;
    }

    .category-title {
        font-size: 1.4rem;
        padding-left: 0.75rem;
    }

    .category-title::before {
        width: 3px;
    }

    .resources-grid {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .resource-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .resource-card h3 {
        font-size: 1.2rem;
    }

    .resource-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Socials Grid Mobile */
    .socials-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .socials-grid .resource-card {
        padding: 1rem;
    }

    .socials-grid .resource-card i {
        font-size: 1.5rem;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .category-card {
        padding: 1rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .project-info {
        min-width: calc(100% - 70px);
    }

    .marquee-item {
        padding: 0.875rem 1.25rem;
        min-width: 130px;
    }

    .marquee-item img,
    .marquee-placeholder {
        width: 50px;
        height: 50px;
    }

    /* Socials Grid Small Mobile */
    .socials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .socials-grid .resource-card {
        padding: 0.75rem;
    }

    .socials-grid .resource-card i {
        font-size: 1.25rem;
    }
}

/* ========================================
   AUTHENTICATION STYLES
   ======================================== */

/* Top Auth Bar */
.top-auth-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.user-id {
    font-weight: 600;
    color: #64b5f6;
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.75rem;
    color: #a0a0a0;
}

.logout-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: scale(1.05);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e6ed;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.auth-modal-content h2 {
    color: #64b5f6;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e6ed;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: #666;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-secondary-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.auth-secondary-btn:hover {
    background: rgba(244, 67, 54, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.2);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.auth-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Google OAuth Button */
.google-login-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.google-login-btn i {
    font-size: 1.25rem;
    color: #4285f4;
}

.google-login-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.google-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1rem;
    /* } */
    font-size: 0.9rem;
    display: none;
}

/* ========================================
   STAR BUTTON STYLES
   ======================================== */

.star-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.star-btn:hover:not(.disabled) {
    background: rgba(255, 193, 7, 0.2);
    transform: scale(1.05);
}

.star-btn.starred {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}

.star-btn.starred i {
    color: #ffc107;
}

.star-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.star-btn i {
    font-size: 0.9rem;
}

.star-count {
    font-weight: 600;
    min-width: 1rem;
    text-align: center;
}

/* Star button in project actions */
.project-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Mobile Auth Styles */
@media (max-width: 768px) {
    .top-auth-bar {
        padding: 0.75rem 0;
    }

    .auth-btn span {
        display: none;
    }

    .auth-btn {
        padding: 0.75rem;
    }

    .user-info {
        padding: 0.4rem 0.75rem;
    }

    .user-details {
        max-width: 120px;
    }

    .user-id {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-email {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .auth-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .star-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Header Actions (for category pages) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.header-actions .auth-btn {
    padding: 0.6rem 0.8rem;
}

.header-actions .user-info {
    padding: 0.4rem 0.6rem;
}

/* Repo item star button alignment */
.repo-item {
    display: flex;
    align-items: center;
}

.repo-item .star-btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Mobile header actions */
@media (max-width: 768px) {
    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .add-link-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .header-actions .add-link-btn i {
        margin-right: 0;
    }

    .header-actions .add-link-btn span {
        display: none;
    }
}

/* Base Expertise Tags Styles */
.expertise-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.expertise-tag {
    background: rgba(100, 181, 246, 0.1);
    color: #90caf9;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(100, 181, 246, 0.2);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.expertise-tag:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: rgba(100, 181, 246, 0.4);
    transform: translateY(-1px);
}