/* ==========================================
   SYSTEM :: MAYURA_PATKAR
   THEME :: CYBERPUNK_TERMINAL_V2
   ========================================== */

:root {
    --bg-color: #050505;
    --bg-panel: #0a0a0a;
    --neon-green: #00ff41;
    --neon-cyan: #00f3ff;
    --neon-pink: #ff003c;
    --neon-yellow: #ffee00;
    --text-main: #e0e0e0;
    --text-dim: #666;
    --grid-line: rgba(0, 255, 65, 0.05);
    --border-color: #1a1a1a;
    
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    --scan-line-color: rgba(0, 0, 0, 0.5);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow: hidden; /* Prevent scroll, app-like feel */
    height: 100vh;
    width: 100vw;
}

/* === BACKGROUND EFFECTS === */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.6;
}

/* === BOOT SCREEN === */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: var(--neon-green);
}

.boot-content {
    width: 400px;
}

.boot-text {
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-shadow: 0 0 5px var(--neon-green);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #111;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.progress-fill {
    height: 100%;
    background: var(--neon-green);
    width: 0%;
    box-shadow: 0 0 10px var(--neon-green);
    transition: width 0.1s linear;
}

.sys-log p {
    font-size: 0.8rem;
    opacity: 0;
    margin-bottom: 2px;
    color: var(--neon-cyan);
}

/* === INTERFACE LAYOUT === */
#interface {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 10px;
    opacity: 0; /* Hidden initially */
    transition: opacity 1s ease;
}

/* HUD HEADER */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.8);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    position: relative;
}

.hud-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--neon-green);
    border-left: 2px solid var(--neon-green);
}

.hud-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--neon-green);
    border-right: 2px solid var(--neon-green);
}

.hud-left, .hud-right {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    display: flex;
    gap: 20px;
}

.hud-center h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.blink {
    animation: blink 1s infinite;
}

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

/* MAIN GRID */
.main-grid {
    display: flex;
    flex: 1;
    gap: 10px;
    overflow: hidden;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.nav-header {
    font-family: var(--font-display);
    color: var(--neon-pink);
    border-bottom: 1px solid var(--neon-pink);
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 12px 15px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--neon-green);
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--neon-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-btn.active::before {
    transform: scaleY(1);
}

.sys-stats {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
}

.stat-bar {
    width: 100px;
    height: 4px;
    background: #222;
}

.stat-bar .fill {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* CONTENT AREA */
.content-area {
    flex: 1;
    position: relative;
    border: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.7);
    overflow: hidden;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.section.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 1px solid var(--neon-green);
}

/* === HOME SECTION === */
.hero-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.glitch-wrapper {
    margin-bottom: 40px;
}

.glitch {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-main);
    position: relative;
    letter-spacing: 5px;
}

.glitch.sub {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-top: 10px;
}

/* Glitch Effect */
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(14px, 9999px, 121px, 0); }
    20% { clip: rect(89px, 9999px, 96px, 0); }
    40% { clip: rect(22px, 9999px, 4px, 0); }
    60% { clip: rect(67px, 9999px, 12px, 0); }
    80% { clip: rect(34px, 9999px, 88px, 0); }
    100% { clip: rect(12px, 9999px, 67px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 34px, 0); }
    40% { clip: rect(87px, 9999px, 12px, 0); }
    60% { clip: rect(3px, 9999px, 65px, 0); }
    80% { clip: rect(45px, 9999px, 87px, 0); }
    100% { clip: rect(23px, 9999px, 12px, 0); }
}

/* TERMINAL WINDOW */
.terminal-window {
    width: 600px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--text-dim);
    border-radius: 5px;
    margin-bottom: 40px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.term-header {
    background: #1a1a1a;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.term-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

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

.term-title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #888;
}

.term-body {
    padding: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #ccc;
}

.prompt { color: var(--neon-green); }
.output { color: #aaa; margin-bottom: 10px; padding-left: 10px; border-left: 2px solid #333; }
.cursor { animation: blink 1s infinite; }

.cta-group {
    display: flex;
    gap: 20px;
}

.cyber-btn {
    padding: 15px 30px;
    background: var(--neon-green);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-display);
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.cyber-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--neon-green);
}

.cyber-btn.outline {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.cyber-btn.outline:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px var(--neon-green);
    color: #fff;
}

/* === PANELS === */
.panel {
    max-width: 1000px;
    margin: 0 auto;
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.panel-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-right: 20px;
}

.dec-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

/* === ABOUT === */
.split-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.img-frame {
    position: relative;
    border: 1px solid var(--neon-green);
    padding: 5px;
    margin-bottom: 20px;
}

.img-frame img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
}

.img-frame:hover img {
    filter: grayscale(0%) contrast(1);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    opacity: 0.5;
    animation: scan 3s infinite linear;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

.bio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    text-align: center;
    border: 1px solid #333;
}

.stat-box .val {
    display: block;
    font-size: 1.2rem;
    color: var(--neon-yellow);
    font-weight: bold;
}

.stat-box .lbl {
    font-size: 0.7rem;
    color: #888;
}

.bio-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.typing-text {
    border-left: 3px solid var(--neon-green);
    padding-left: 15px;
    color: #ddd;
}

/* === PROJECTS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cyber-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.cyber-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
}

.card-img {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.cyber-card:hover .card-img img {
    filter: grayscale(0%);
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tag {
    font-size: 0.7rem;
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    padding: 2px 6px;
}

.cyber-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.cyber-card p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.4;
}

.link-btn {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: letter-spacing 0.3s ease;
}

.link-btn:hover {
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* === SKILLS (HONEYCOMB) === */
.skills-honeycomb {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}

.skill-category-group {
    text-align: center;
}

.skill-category-group h4 {
    color: var(--neon-cyan);
    margin-bottom: 30px;
    font-family: var(--font-display);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 1px solid var(--neon-pink);
    padding-bottom: 5px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.honeycomb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.hex-item {
    width: 100px;
    height: 110px;
    position: relative;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hex-item:hover {
    transform: scale(1.1);
    z-index: 10;
}

.hex-content {
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hex-border {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--neon-green);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hex-item:hover .hex-border {
    opacity: 1;
    box-shadow: 0 0 15px var(--neon-green);
}

.hex-icon {
    font-size: 1.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.hex-name {
    font-size: 0.7rem;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: bold;
}

.hex-val {
    font-size: 0.6rem;
    color: var(--neon-pink);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.hex-item:hover .hex-icon {
    color: var(--neon-green);
    transform: translateY(-5px);
    text-shadow: 0 0 10px var(--neon-green);
}

.hex-item:hover .hex-val {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for Hexagons */
.hex-item {
    animation: floatHex 3s ease-in-out infinite;
}

.hex-item:nth-child(odd) {
    animation-duration: 3.5s;
    animation-delay: 0.5s;
}

.hex-item:nth-child(even) {
    animation-duration: 4s;
    animation-delay: 1s;
}

@keyframes floatHex {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hex-item:hover {
    animation: none; /* Stop floating on hover */
}

/* === CONTACT === */
.center-panel {
    text-align: center;
    max-width: 600px;
}

.contact-body {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
}

.contact-body::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--neon-pink);
    border-left: 2px solid var(--neon-pink);
}

.contact-body::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--neon-pink);
    border-right: 2px solid var(--neon-pink);
}

.transmission {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.8;
}

.cyber-btn.large {
    display: inline-block;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-box {
    border: 1px solid #333;
    padding: 15px;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.social-box:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(0, 255, 65, 0.05);
}

/* === EXPERIENCE TIMELINE === */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #333;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.time-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--neon-green);
    transition: all 0.3s ease;
}

.timeline-item:hover .time-marker {
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

.time-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover .time-content {
    border-color: var(--neon-green);
    transform: translateX(10px);
    background: rgba(0, 255, 65, 0.05);
}

.time-date {
    font-size: 0.8rem;
    color: var(--neon-pink);
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.time-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.time-org {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.time-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

/* === CERTIFICATIONS === */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cert-chip {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    padding: 15px;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-chip:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(255, 238, 0, 0.2);
}

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

.cert-chip:hover::before {
    left: 100%;
}

.chip-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

.chip-info h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 3px;
}

.chip-info span {
    font-size: 0.7rem;
    color: #666;
}

.chip-status {
    margin-left: auto;
    font-size: 0.6rem;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 2px 4px;
    border-radius: 2px;
}

/* === ANIMATIONS & EXTRAS === */
body {
    cursor: crosshair; /* Global crosshair cursor */
}

a, button, .cyber-card, .timeline-item, .cert-chip {
    cursor: pointer; /* Keep pointer for interactive elements */
}

/* Scroll Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Pulse Animation */
@keyframes pulse-border {
    0% { border-color: #333; }
    50% { border-color: var(--neon-green); }
    100% { border-color: #333; }
}

.active .nav-btn {
    animation: pulse-border 2s infinite;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #interface {
        flex-direction: column;
        overflow: auto;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        flex: none;
    }

    .nav-menu {
        flex-direction: row;
    }

    .nav-btn span {
        display: none;
    }

    .sys-stats {
        display: none;
    }

    .main-grid {
        flex-direction: column;
        overflow: visible;
    }

    .content-area {
        overflow: visible;
        height: auto;
        min-height: 80vh;
    }

    .section {
        position: relative;
        opacity: 1;
        transform: none;
        display: none;
        overflow: visible;
    }

    .section.active {
        display: block;
    }

    .glitch {
        font-size: 2.5rem;
    }
}
