:root {
    --bg-color: #050a0e;
    --matrix-green: #0f0;
    --neon-cyan: #00f3ff;
    --neon-emerald: #00ff66;
    --glass-bg: rgba(10, 15, 20, 0.65);
    --glass-border: rgba(0, 255, 102, 0.2);
    --glass-highlight: rgba(0, 243, 255, 0.1);
    --text-primary: #e0f2f1;
    --text-muted: rgba(224, 242, 241, 0.6);
    --font-ui: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    background-image: url('temple_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow: hidden;
    min-height: 100vh;
}

/* Canvas Background (now confined and faded) */
#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
    /* Soft radial mask so the matrix rain fades seamlessly into the jungle */
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
}

/* UI Overlay */
.overlay {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
    overflow-y: auto;
    background: radial-gradient(circle at center, rgba(5, 10, 14, 0.95) 15%, rgba(5, 10, 14, 0.6) 50%, transparent 100%);
}

/* Glassmorphism Panels */
.glass-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 2.5rem;
}

.main-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease-out forwards;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.profile-icon {
    position: relative;
    width: 90vw;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    background: transparent;
    margin: 0 auto;
    /* Removed rigid borders and box-shadows to integrate smoothly */
}

.profile-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    /* Strong neon glow to blend with the cyberpunk jungle lighting */
    filter: drop-shadow(0 0 30px rgba(0, 255, 102, 0.7)) drop-shadow(0 0 60px rgba(0, 243, 255, 0.4)) contrast(1.15);
    /* Soft bottom mask so they don't look cut off */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
    mask-image: linear-gradient(to top, transparent 0%, black 15%);
}

.titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

h1 {
    font-family: var(--font-code);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-emerald);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
    letter-spacing: -0.5px;
}

.subtitle {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Navigation */
.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    pointer-events: none;
}

.nav-item:hover::before {
    transform: translateX(100%);
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 255, 102, 0.1);
    border-color: var(--neon-emerald);
    color: var(--neon-emerald);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Content Area for Subpages */
.content-area {
    margin-top: 1rem;
}

.inner-panel {
    padding: 2rem;
    background: rgba(10, 15, 20, 0.5);
    border: 1px solid rgba(0, 255, 102, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.inner-panel h2 {
    font-family: var(--font-code);
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

.inner-panel p {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1rem;
}

.inner-panel ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.inner-panel ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.inner-panel ul li::before {
    content: '▹ ';
    color: var(--neon-emerald);
    font-weight: bold;
}

.inner-panel a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.inner-panel a:hover {
    color: var(--neon-emerald);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

/* Back Button */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.85rem;
    transition: all 0.3s;
    z-index: 10;
    position: relative;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    color: var(--neon-emerald);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 255, 102, 0.15);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon-emerald);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: rgba(0, 255, 102, 0.15);
    border: 1px solid var(--neon-emerald);
    border-radius: 8px;
    padding: 0.8rem 2rem;
    color: var(--neon-emerald);
    font-family: var(--font-code);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.contact-form button:hover {
    background: rgba(0, 255, 102, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
    transform: translateY(-2px);
}

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

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

/* Glitch Effect on Hover for H1 */
.glitch-text {
    position: relative;
}
.glitch-text:hover::before, .glitch-text:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}
.glitch-text:hover::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch-text:hover::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 83px, 0); }
    5% { clip: rect(61px, 9999px, 20px, 0); }
    10% { clip: rect(32px, 9999px, 66px, 0); }
    /* simplified for brevity */
    100% { clip: rect(44px, 9999px, 88px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    100% { clip: rect(12px, 9999px, 55px, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    h1 { font-size: 1.5rem; }
    .profile-icon { width: 100vw; max-width: 500px; }
    .navigation { flex-direction: column; width: 100%; }
    .nav-item { justify-content: center; width: 100%; }
    .inner-panel { padding: 1.5rem; }
}





    50% { filter: drop-shadow(0 0 30px rgba(0, 255, 102, 0.8)) drop-shadow(0 0 60px rgba(0, 243, 255, 0.6)) sepia(1) hue-rotate(100deg) saturate(3) brightness(0.9) contrast(1.5); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.6)) drop-shadow(0 0 40px rgba(0, 243, 255, 0.4)) sepia(1) hue-rotate(100deg) saturate(2.5) brightness(0.8) contrast(1.4); }
}

