@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0f1d; /* Deep space blue */
    --surface-color: rgba(22, 30, 50, 0.6); /* Glass surface */
    --primary-color: #00f0ff; /* Neon cyan */
    --secondary-color: #ff003c; /* Cyberpunk pink/red */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global Typography & Background */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* Scroll Progress Bar */
#scrollPath {
    position: fixed;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

#progressBar {
    position: fixed;
    top: 0;
    right: 0;
    width: 10px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    z-index: 1001;
    border-radius: 5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    z-index: 9999;
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 240, 255, 0.2);
    border-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar.glass-nav {
    background: rgba(10, 15, 29, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 15px;
    transition: all 0.3s ease;
}

/* Hero Section Enhancements */
.hero {
    position: relative;
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.text h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.text h1 span {
    color: var(--primary-color);
}

.subheading {
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
}

#typing-animation {
    color: var(--primary-color);
    font-family: 'Source Code Pro', monospace;
    font-size: 1.2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #007bb5);
    border: none;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 30px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
    background: linear-gradient(45deg, #007bb5, var(--primary-color));
}

/* Project Cards Enhancements */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--glass-border);
    background: var(--surface-color) !important;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2);
    border-color: var(--primary-color);
}

.project-card pre {
    overflow-x: auto;
    font-size: 0.9rem;
}

.project-card pre::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.project-card pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Headings Override */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.big {
    color: rgba(255, 255, 255, 0.05) !important;
}

.heading-section h2 {
    color: var(--primary-color) !important;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* Mobile Responsiveness Overrides */
@media (max-width: 768px) {
    .project-card {
        padding: 15px !important;
    }
    
    .project-card pre {
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #scrollPath, #progressBar {
        width: 5px;
    }

    .custom-cursor {
        display: none; /* Disable custom cursor on mobile */
    }
}
