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

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --primary-neon: #00ffff;
    --secondary-neon: #ff00ff;
    --accent-neon: #00ff00;
    --warning-neon: #ffff00;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(20, 20, 20, 0.8);
    --border-glow: rgba(0, 255, 255, 0.5);
}

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: crosshair;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-neon);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Parallax Container */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Stars Background */
.stars {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent);
    background-size: 200% 200%;
    animation: stars-move 200s linear infinite;
}

@keyframes stars-move {
    from { transform: translate(0, 0); }
    to { transform: translate(-100%, -100%); }
}

/* Floating Elements */
.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-formula,
.floating-code {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
    opacity: 0.3;
    font-size: 14px;
    text-shadow: 0 0 10px var(--primary-neon);
    animation: float 20s ease-in-out infinite;
}

.floating-formula:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-formula:nth-child(2) { top: 30%; left: 70%; animation-delay: 3s; }
.floating-formula:nth-child(3) { top: 60%; left: 20%; animation-delay: 6s; }
.floating-code:nth-child(4) { top: 20%; left: 50%; animation-delay: 9s; color: var(--secondary-neon); }
.floating-code:nth-child(5) { top: 80%; left: 60%; animation-delay: 12s; color: var(--accent-neon); }
.floating-code:nth-child(6) { top: 50%; left: 80%; animation-delay: 15s; color: var(--warning-neon); }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-30px) translateX(20px) rotate(5deg); }
    66% { transform: translateY(20px) translateX(-20px) rotate(-5deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-neon);
    text-shadow: 0 0 20px var(--primary-neon);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--secondary-neon);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-neon);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(0 100% 0 0); transform: translate(-2px); }
    40% { clip-path: inset(0 0 0 100%); transform: translate(2px); }
    60% { clip-path: inset(100% 0 0 0); transform: translate(-1px); }
    80% { clip-path: inset(0 0 100% 0); transform: translate(1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(100% 0 0 0); transform: translate(1px); }
    40% { clip-path: inset(0 0 100% 0); transform: translate(-1px); }
    60% { clip-path: inset(0 100% 0 0); transform: translate(2px); }
    80% { clip-path: inset(0 0 0 100%); transform: translate(-2px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.cyber-text {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
    font-weight: 500;
}

.cyber-text:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

.cyber-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    transition: width 0.3s;
}

.cyber-text:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-neon);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--primary-neon);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 160px 0 80px 0;
    margin-top: 80px;
}

.terminal-window {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--primary-neon);
    border-radius: 10px;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 3rem;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--primary-neon);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-body {
    padding: 20px;
}

.terminal-text {
    color: var(--accent-neon);
    margin: 10px 0;
    font-size: 14px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: var(--primary-neon);
    margin: 10px 0;
    text-shadow: 0 0 30px var(--primary-neon);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-neon);
    margin: 10px 0;
}

.hero-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 20px 0;
}

/* Typing Effect */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-neon);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

.typing-effect-delayed {
    overflow: hidden;
    border-right: 3px solid var(--secondary-neon);
    white-space: nowrap;
    animation: typing 3s steps(40, end) 3s forwards, blink 0.75s step-end infinite 3s;
    opacity: 0;
}

@keyframes typing {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-neon); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-neon);
    border-radius: 10px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon), var(--accent-neon));
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.stat-box:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-neon);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 3D Social Links */
.social-links-3d {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-cube {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.social-cube:hover {
    transform: rotateY(180deg);
}

.social-cube i {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-dark);
    background: var(--primary-neon);
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon);
}

.social-cube:nth-child(2) i { background: var(--secondary-neon); border-color: var(--secondary-neon); box-shadow: 0 0 20px var(--secondary-neon); }
.social-cube:nth-child(3) i { background: #ff0000; border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
.social-cube:nth-child(4) i { background: var(--warning-neon); border-color: var(--warning-neon); box-shadow: 0 0 20px var(--warning-neon); }


/* Section Styles */
.parallax-section {
    min-height: auto;
    position: relative;
    z-index: 10;
    padding: 60px 0;
}

/* Media section specific padding */
.media.parallax-section {
    padding-bottom: 100px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-neon);
    text-shadow: 0 0 30px var(--primary-neon);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.holographic-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid var(--primary-neon);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, var(--primary-neon), transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s;
}

.holographic-card:hover::before {
    opacity: 0.3;
    animation: holographic 2s linear infinite;
}

@keyframes holographic {
    from { transform: rotate(45deg) translateY(-100%); }
    to { transform: rotate(45deg) translateY(100%); }
}

.about-text h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Tech Stack */
.tech-stack {
    margin-top: 3rem;
}

.tech-stack h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
    margin-bottom: 2rem;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.tech-item span {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
    width: 0;
    transition: width 1s ease;
}

.tech-item:hover .progress-bar::after {
    width: var(--progress, 0%);
}

/* 3D Project Cards */
.projects-3d-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.project-card-3d {
    position: relative;
    width: 100%;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.project-card-3d:hover {
    transform: rotateY(180deg);
}

.project-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-face.front {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 2px solid var(--primary-neon);
}

.project-face.back {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 0, 0.1));
    border: 2px solid var(--secondary-neon);
    transform: rotateY(180deg);
}

.project-icon {
    font-size: 3rem;
    color: var(--primary-neon);
    margin-bottom: 1rem;
}

.project-face h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
    margin-bottom: 1rem;
}

.project-face h4 {
    color: var(--secondary-neon);
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-stats span {
    background: rgba(0, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-neon);
}

.project-face ul {
    list-style: none;
    color: var(--text-secondary);
}

.project-face ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    color: var(--primary-neon);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.project-links a:hover {
    color: var(--secondary-neon);
    transform: scale(1.2);
}

/* Research Section */
.research-grid {
    display: grid;
    gap: 2rem;
}

.research-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 255, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.research-card:hover::before {
    left: 100%;
}

.research-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-neon);
}

.research-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.research-type {
    background: var(--primary-neon);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.research-date {
    color: var(--text-secondary);
}

.research-card h3 {
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.research-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.research-tags {
    display: flex;
    gap: 0.5rem;
}

.research-tags span {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-neon);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Media Section */
.media-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.media-heading {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-grid {
    display: grid;
    gap: 1.5rem;
}

.video-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.video-preview {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.video-preview i {
    font-size: 3rem;
    color: var(--primary-neon);
    transition: all 0.3s;
}

.video-item:hover .video-preview i {
    transform: scale(1.2);
    color: var(--secondary-neon);
}

.video-item h4 {
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.video-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.podcast-visualizer {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

#audioVisualizer {
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
}

.podcast-info h4 {
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.podcast-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.podcast-platforms {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.podcast-platforms i {
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: pointer;
}

.podcast-platforms i:hover {
    color: var(--primary-neon);
    transform: scale(1.2);
}

/* Contact Section */
.contact-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-neon);
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-neon);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cyber-input {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    transition: all 0.3s;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.cyber-button {
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    border: none;
    border-radius: 5px;
    padding: 1rem 2rem;
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-neon);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glow);
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.crypto-address {
    color: var(--primary-neon);
    font-family: 'Space Mono', monospace;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Canvas Styles */
#networkCanvas,
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Matrix Rain specific */
.matrix-rain {
    position: fixed !important;
    z-index: 1;
    opacity: 0.8;
}

/* Clickable Project Cards */
.project-card-3d.clickable {
    cursor: pointer;
}

.project-card-3d.clickable:hover {
    transform: scale(1.05);
}

.click-hint {
    font-size: 0.8rem;
    color: var(--primary-neon);
    margin-top: 10px;
    opacity: 0.7;
}

.view-media-hint {
    color: var(--secondary-neon);
    font-size: 0.9rem;
    display: block;
    margin-top: 10px;
}

/* Project Modal Styles */
.project-details {
    padding: 20px 0;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-content {
    margin: 30px 0;
    line-height: 1.8;
    font-size: 1rem;
}

.project-content h1,
.project-content h2,
.project-content h3,
.project-content h4 {
    color: var(--primary-neon);
    margin: 20px 0 10px 0;
}

.project-content p {
    margin-bottom: 15px;
}

.project-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-neon);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.project-content code {
    font-family: 'Space Mono', monospace;
}

.project-content .katex-display {
    margin: 20px 0;
    overflow-x: auto;
}

.project-media {
    margin: 30px 0;
    text-align: center;
}

.project-media img,
.project-media video {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.tech-stack-section,
.features-section {
    margin: 30px 0;
}

.tech-stack-section h4,
.features-section h4 {
    color: var(--primary-neon);
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-neon);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.features-list li:before {
    content: "▸";
    color: var(--primary-neon);
    position: absolute;
    left: 0;
}

.project-links-section {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-neon);
    border-radius: 25px;
    color: var(--primary-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

/* Media Items */
.video-item.clickable,
.podcast-item.clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-item.clickable:hover,
.podcast-item.clickable:hover {
    transform: scale(1.05);
}

/* Video Preview with Thumbnail */
.video-preview {
    position: relative;
    overflow: hidden;
}

.video-preview img {
    transition: transform 0.3s ease;
}

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay i {
    font-size: 2rem;
    color: var(--primary-neon);
    margin-left: 5px; /* Slight offset to center play icon */
}

.video-item:hover .play-overlay {
    background: rgba(0, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

.podcast-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary-neon);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.podcast-item:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Media Modal */
.media-modal-content {
    max-width: 900px;
    width: 90%;
}

.media-embed-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.media-embed-container iframe {
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* Twitter embed dark theme fix */
.twitter-tweet {
    margin: 0 auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid var(--border-glow);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-grid,
    .media-showcase,
    .contact-matrix {
        grid-template-columns: 1fr;
    }

    .projects-3d-container {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation classes for JavaScript */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State */
body.loading {
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-neon);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Research Modal Styles */
.research-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

.research-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid var(--primary-neon);
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 255, 0.05);
}

.modal-title {
    color: var(--primary-neon);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    margin: 0;
}

.modal-close {
    background: none;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    transform: rotate(90deg);
    box-shadow: 0 0 20px var(--primary-neon);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.research-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Research content typography */
.research-content h1,
.research-content h2,
.research-content h3,
.research-content h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
    margin: 2rem 0 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.research-content h1 { font-size: 2.2rem; }
.research-content h2 { font-size: 1.8rem; }
.research-content h3 { font-size: 1.5rem; }
.research-content h4 { font-size: 1.2rem; }

.research-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.research-content .abstract {
    background: rgba(0, 255, 255, 0.1);
    border-left: 4px solid var(--primary-neon);
    padding: 20px;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 5px;
}

/* LaTeX equations styling */
.research-content .katex-display {
    margin: 2rem 0;
    overflow-x: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.research-content .katex {
    font-size: 1.2em;
    color: var(--accent-neon);
}

/* Code blocks styling */
.research-content pre {
    background: #1e1e1e !important;
    border: 1px solid var(--primary-neon);
    border-radius: 8px;
    padding: 1.5rem !important;
    margin: 2rem 0;
    overflow-x: auto;
    position: relative;
}

.research-content pre::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-neon);
    color: var(--bg-dark);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-bottom-left-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.research-content code {
    font-family: 'Space Mono', monospace;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--primary-neon);
}

.research-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Research paper metadata */
.research-metadata {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 2rem;
}

.research-metadata .authors {
    color: var(--secondary-neon);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.research-metadata .publication {
    color: var(--text-secondary);
    font-style: italic;
}

.research-metadata .tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.research-metadata .tag {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary-neon);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-neon);
}

/* Scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 4px;
}

/* Make research cards clickable */
.research-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    border-color: var(--secondary-neon);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 90vh;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .research-content {
        font-size: 1rem;
    }
}