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

        body {
            background: #f8f9fa;
            color: #2c3e50;
            font-family: 'Courier New', monospace;
            overflow-x: hidden;
            cursor: none;
        }

        .neural-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.05;
        }

        .neural-bg canvas {
            width: 100%;
            height: 100%;
        }

        /* Landing Page */
        .landing-page {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            transition: opacity 1s ease-out, transform 1s ease-out;
        }

        .landing-page.fade-out {
            opacity: 0;
            transform: translateY(-50px);
        }

        .header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .title {
            font-size: 3rem;
            font-weight: 100;
            letter-spacing: 0.1em;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #00b359, #0066cc, #6600cc);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 3s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { filter: brightness(1); }
            to { filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 102, 204, 0.4)); }
        }

        .subtitle {
            font-size: 1rem;
            color: #6c757d;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .bio-section {
            max-width: 800px;
            width: 90%;
        }

        .bio-container {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 102, 204, 0.3);
            border-radius: 12px;
            padding: 2rem;
            position: relative;
            backdrop-filter: blur(15px);
            box-shadow: 0 8px 25px rgba(0, 102, 204, 0.1);
            overflow: hidden;
        }

        .bio-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #0066cc, #00b359, #0066cc);
            background-size: 200% 100%;
            animation: data-stream 3s linear infinite;
        }

        @keyframes data-stream {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .bio-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            gap: 0.8rem;
        }

        .status-indicator {
            width: 10px;
            height: 10px;
            background: #00b359;
            border-radius: 50%;
            animation: pulse 1.5s ease-in-out infinite;
            box-shadow: 0 0 10px rgba(0, 179, 89, 0.6);
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
        }

        .bio-label {
            font-size: 0.9rem;
            color: #0066cc;
            letter-spacing: 0.1em;
            font-weight: bold;
        }

        .bio-content {
            margin-bottom: 2rem;
        }

        .bio-text {
            color: #495057;
            line-height: 1.6;
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        .bio-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(0, 102, 204, 0.2);
        }

        .stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .stat-label {
            font-size: 0.7rem;
            color: #6c757d;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 1.2rem;
            color: #0066cc;
            font-weight: bold;
            letter-spacing: 0.05em;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            color: #0066cc;
            font-size: 0.8rem;
            letter-spacing: 0.1em;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
            40% { transform: translateX(-50%) translateY(-10px); }
            60% { transform: translateX(-50%) translateY(-5px); }
        }

        /* Projects Gallery */
        .projects-page {
            min-height: 100vh;
            padding: 2rem;
            opacity: 0;
            transform: translateY(100vh);
            transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .projects-page.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .projects-header {
            text-align: center;
            margin-bottom: 3rem;
            padding-top: 2rem;
        }

        .projects-title {
            font-size: 2.5rem;
            color: #0066cc;
            letter-spacing: 0.2em;
            margin-bottom: 1rem;
        }

        .projects-subtitle {
            color: #6c757d;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .project-card {
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 102, 204, 0.2);
            border-radius: 8px;
            padding: 1.5rem;
            position: relative;
            cursor: pointer;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .project-card.animate {
            animation: slideInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }

        @keyframes slideInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent, rgba(0, 102, 204, 0.08), transparent);
            border-radius: 8px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.05);
            border-color: rgba(0, 102, 204, 0.4);
            box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
        }

        .project-number {
            font-size: 0.8rem;
            color: #0066cc;
            margin-bottom: 0.5rem;
            letter-spacing: 0.1em;
        }

        .project-title {
            font-size: 1.2rem;
            margin-bottom: 0.8rem;
            color: #2c3e50;
            letter-spacing: 0.05em;
        }

        .project-description {
            color: #495057;
            font-size: 0.9rem;
            line-height: 1.4;
            margin-bottom: 1rem;
        }

        .project-status {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 8px;
            height: 8px;
            background: #00b359;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .tech-tag {
            background: rgba(0, 102, 204, 0.15);
            color: #0066cc;
            padding: 0.2rem 0.6rem;
            font-size: 0.7rem;
            border-radius: 12px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .loading-bar {
            position: fixed;
            top: 0; left: 0;
            height: 2px;
            width: 0;
            background: linear-gradient(90deg, #00b359, #0066cc);
            z-index: 1000;
            /* 1) fill, 2) fade out after it finishes */
            animation:
            loading 3s ease-out forwards,
            fadeout 0.3s ease 3s forwards;     /* starts at 3s, after loading ends */
        }       

        @keyframes loading {
            from { width: 0; }
            to   { width: 100%; }
        }

        @keyframes fadeout {
            to { opacity: 0; }
        }


        /* Dynamic Cursor */
        .cursor {
            position: fixed;
            width: 16px;
            height: 16px;
            background: #0066cc;
            pointer-events: none;
            z-index: 9999;
            transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
            clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
            box-shadow: 
                0 0 15px #0066cc,
                0 0 25px #0066cc,
                0 0 35px #0066cc,
                0 0 50px rgba(0, 102, 204, 0.6),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
            animation: star-dance 1.5s ease-in-out infinite alternate;
            transform: rotate(0deg);
        }

        @keyframes star-dance {
            0% { 
                filter: brightness(1) saturate(1) hue-rotate(0deg); 
                transform: rotate(0deg) scale(1);
            }
            50% { 
                filter: brightness(1.3) saturate(1.2) hue-rotate(10deg); 
                transform: rotate(22.5deg) scale(1.1);
            }
            100% { 
                filter: brightness(1.6) saturate(1.4) hue-rotate(20deg); 
                transform: rotate(45deg) scale(1.2);
            }
        }

        .cursor::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 40px;
            height: 40px;
            border: 2px solid rgba(0, 102, 204, 0.2);
            clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
            transform: translate(-50%, -50%);
            animation: cursor-sparkle 2s linear infinite;
        }

        .cursor::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 70px;
            height: 70px;
            border: 1px solid rgba(0, 102, 204, 0.1);
            clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
            transform: translate(-50%, -50%);
            animation: cursor-sparkle 3s linear infinite reverse;
        }

        @keyframes cursor-sparkle {
            0% { 
                transform: translate(-50%, -50%) scale(0.5) rotate(0deg); 
                opacity: 1;
                filter: hue-rotate(0deg);
            }
            50% { 
                transform: translate(-50%, -50%) scale(1) rotate(180deg); 
                opacity: 0.3;
                filter: hue-rotate(90deg);
            }
            100% { 
                transform: translate(-50%, -50%) scale(1.5) rotate(360deg); 
                opacity: 0;
                filter: hue-rotate(180deg);
            }
        }

        .cursor.hover {
            width: 20px;
            height: 20px;
            background: #0066cc;
            box-shadow: 
                0 0 20px #0066cc,
                0 0 40px #0066cc,
                0 0 60px rgba(0, 102, 204, 0.7),
                inset 0 0 15px rgba(255, 255, 255, 0.4);
            animation: star-hover 0.8s ease-in-out infinite alternate;
        }

        .cursor.hover::before {
            border-color: rgba(0, 102, 204, 0.8);
            animation: cursor-sparkle-hover 0.8s linear infinite;
        }

        .cursor.hover::after {
            border-color: rgba(0, 102, 204, 0.6);
            animation: cursor-sparkle-hover 1.2s linear infinite reverse;
        }

        @keyframes star-hover {
            0% { 
                transform: rotate(0deg) scale(1);
                filter: brightness(1.2) saturate(1.3);
            }
            100% { 
                transform: rotate(45deg) scale(1.2);
                filter: brightness(1.5) saturate(1.5);
            }
        }

        @keyframes cursor-sparkle-hover {
            0% { 
                transform: translate(-50%, -50%) scale(0.3) rotate(0deg); 
                opacity: 1;
                filter: hue-rotate(0deg) brightness(1.5);
            }
            100% { 
                transform: translate(-50%, -50%) scale(2.5) rotate(720deg); 
                opacity: 0;
                filter: hue-rotate(180deg) brightness(2);
            }
        }

        @media (max-width: 768px) {
            .title { font-size: 2rem; }
            .projects-grid { grid-template-columns: 1fr; }
            .bio-container { padding: 1.5rem; margin: 2rem 0; }
            .bio-stats { grid-template-columns: 1fr; }
            .projects-page { padding: 1rem; }
        }

        /* Project Card Links */
.project-card {
  text-decoration: none;   /* remove underline */
  color: inherit;          /* keep original text color */
  display: block;          /* make the whole card clickable */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: scale(1.02) translateY(-5px); /* lift effect */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* subtle shadow */
}
/* page + containers can grow */
html, body { height: 100%; }
.container { min-height: 0; display: flex; flex-direction: column; }

/* make the PDF section grow */
.section:has(.pdf-embed) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* let the content area grow, too */
.section:has(.pdf-embed) .section-content {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

/* PDF fills the space */
.pdf-embed {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* --- Keep ONLY the star cursor site-wide --- */
html, body {
  cursor: none !important;     /* hide OS cursor globally */
}

/* Make everything inherit the global 'none' */
*, *::before, *::after {
  cursor: inherit !important;
}

/* Explicitly neutralize common offenders (links/buttons/cards) */
a, a:hover, a:focus, a:active,
button, [role="button"],
.project-card, .project-card * {
  cursor: inherit !important;  /* prevents pointer/hand on cards */
}

/* Ensure the custom star is always on top and never blocks clicks */
#cursor {
  position: fixed;
  left: 0; top: 0;
  pointer-events: none;
  z-index: 2147483647;         /* above everything */
}

