/* Global Styles */
:root {
    --primary-bg: #000000;
    --secondary-bg: #0f0f0f;
    --card-bg: #141414;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #00e5ff; /* Cyan */
    --accent-hover: #00b8cc;
    --container-width: 1200px;
    --border-color: #333;
}

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

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

::-webkit-scrollbar-track {
    background: var(--primary-bg); 
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 2px solid var(--primary-bg); /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) var(--primary-bg);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    overflow-x: hidden; /* Double ensure for mobile browsers */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* Add padding to body to prevent content from being hidden behind fixed navbar */
body {
    padding-top: 70px;
}

/* Ensure login page doesn't get the padding if it doesn't have the navbar */
.login-page-body {
    padding-top: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.btn-login {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

/* Login Page Styles */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.login-container {
    background: #1a1a1a;
    width: 90%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section .logo {
    justify-content: center;
    margin-bottom: 15px;
}

.form-title {
    color: var(--text-muted);
    font-size: 16px;
    position: relative;
    display: inline-block;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.auth-form {
    display: none; /* Hidden by default, shown via JS */
}

/* Default show first form (handled by JS, but for safety) */
#loginPasswordForm {
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px 12px 45px;
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.input-group-row {
    display: flex;
    gap: 10px;
}

.captcha-img {
    width: 100px;
    height: 42px; /* Match input height roughly */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-code {
    width: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

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

.btn-code:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit {
    width: 100%;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

.btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
}

.form-footer a {
    color: var(--text-muted);
}

.form-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* User Menu Dropdown */
.user-menu-container {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.user-profile-trigger i {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.user-menu-container.active .user-profile-trigger i {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 200px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 10000;
}

.user-menu-container.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu a.active {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-color);
}

.user-dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.user-dropdown-menu a:hover i,
.user-dropdown-menu a.active i {
    color: var(--accent-color);
}

.user-dropdown-menu .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.text-danger:hover {
    background: rgba(255, 68, 68, 0.1) !important;
    color: #ff4444 !important;
}

.text-danger:hover i {
    color: #ff4444 !important;
}

/* Hero Section Redesign */
.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: #050505;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 50px;
}

.tagline {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 24px;
    border-radius: 50px;
    font-weight: 500;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: transparent;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
}

.description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Visual (Right Side) */
.hero-visual {
    flex: 1;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: absolute;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.main-card {
    width: 400px;
    height: 280px;
    z-index: 10;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.vc-header {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.vc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 120px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bar {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar.active {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.income-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.income-badge i {
    color: var(--accent-color);
}

.float-card {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
    z-index: 11;
    animation: float 6s ease-in-out infinite;
}

.float-card i {
    font-size: 20px;
}

.float-card.card-1 {
    top: 50px;
    right: 20px;
    animation-delay: 0s;
}
.float-card.card-1 i { color: #fff; }

.float-card.card-2 {
    bottom: 80px;
    left: -20px;
    animation-delay: 3s;
}
.float-card.card-2 i { color: #07c160; }

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

/* Responsive adjust for hero */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 60px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        height: 400px;
    }

}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    color: var(--accent-color);
    font-weight: 900;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 30px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding-bottom: 20px;
    position: relative;
    margin-bottom: -21px; /* Overlap border */
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-grid.active {
    display: grid; /* Override inline style if necessary via class switch */
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color);
    border-radius: 8px;
}

.card-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Mentors Section */
.mentors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns as per reference image style roughly */
    gap: 20px;
}

.mentor-card {
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-between;
    height: 200px; /* Fixed height for layout */
    overflow: hidden;
    position: relative;
}

.mentor-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.mentor-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.mentor-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.mentor-img {
    width: 50%;
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

/* Materials Grid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.material-item {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.material-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.material-item:hover img {
    transform: scale(1.1);
}

.material-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--text-color);
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
    background-color: var(--secondary-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 12px;
}

/* Mobile Menu Elements */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-header {
    display: none;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop adjustments for mobile menu structure */
@media (min-width: 769px) {
    .mobile-menu-header,
    .mobile-user-menu,
    .group-title {
        display: none !important;
    }

    .mobile-nav-group {
        display: contents;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .menu-toggle {
        display: block;
    }

    .desktop-auth {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0; /* Slide from right */
        width: 85%; /* Wider drawer */
        max-width: 400px;
        height: 100vh;
        background-color: #050505;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
        overscroll-behavior: contain; /* Prevent scroll chaining */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Mobile Menu Header (Login Profile) */
    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 40px 30px 30px;
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 0, 0, 0));
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 180px;
        position: relative;
        overflow: hidden;
    }

    .mobile-menu-header::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 70%);
        border-radius: 50%;
        filter: blur(20px);
    }

    .user-avatar {
        width: 64px;
        height: 64px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        color: var(--accent-color);
        font-size: 24px;
        border: 2px solid rgba(0, 229, 255, 0.3);
    }
}

/* Mobile Menu Content Styles */
@media (max-width: 768px) {
    .mobile-login-text {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 5px;
        text-decoration: none;
        display: block;
    }

    .mobile-welcome-text {
        color: var(--text-muted);
        font-size: 12px;
        margin: 0;
    }

    .mobile-nav-group {
        display: flex;
        flex-direction: column;
        padding: 20px 30px;
    }

    .group-title {
        color: var(--text-muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
        font-weight: 700;
        display: block;
    }

    .nav-links a {
        font-size: 16px;
        color: var(--text-color);
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: block;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-user-menu {
        padding: 20px 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-grid-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }

    .grid-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.03);
        padding: 15px 5px;
        border-radius: 10px;
        font-size: 12px !important;
        border: none !important;
        color: var(--text-color);
        text-decoration: none;
    }

    .grid-item .icon-box {
        font-size: 20px;
        color: var(--accent-color);
        margin-bottom: 5px;
    }

    .mobile-logout-btn {
        display: block;
        text-align: center;
        background: rgba(255, 68, 68, 0.1);
        color: #ff4444 !important;
        padding: 12px;
        border-radius: 8px;
        margin-top: 20px;
        border: none !important;
        text-decoration: none;
    }
}

/* Responsive Content Grids */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mentors-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .login-container {
        width: 95%;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-num {
        font-size: 20px;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}


/* Floating Sidebar Styles */
.floating-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none;
    color: var(--text-color);
}

.sidebar-item:hover {
    background: var(--accent-color);
    color: #000;
    width: 70px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.sidebar-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.sidebar-item span {
    font-size: 10px;
    transform: scale(0.9);
}

.qr-popup {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    width: 150px;
    text-align: center;
}

.qr-popup::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #fff;
}

.sidebar-item:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(15px);
    pointer-events: auto;
}

.qr-popup img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.qr-popup p {
    color: #333;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .floating-sidebar {
        display: none;
    }
}
