/* ============================================
   GUARINA0x0 - Index Page Styles
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 3rem 4rem;
    overflow: hidden;
}

/* Portal animation */
.portal-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 4rem;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: portalSpin 3s linear infinite;
}

.portal-ring:nth-child(1) {
    inset: 0;
    border-color: var(--portal-green);
    box-shadow: 0 0 30px var(--portal-green-dim), inset 0 0 30px var(--portal-green-dim);
    animation-duration: 8s;
}

.portal-ring:nth-child(2) {
    inset: 20px;
    border-color: var(--rick-blue);
    box-shadow: 0 0 20px #00d4ff33, inset 0 0 20px #00d4ff33;
    animation-duration: 6s;
    animation-direction: reverse;
}

.portal-ring:nth-child(3) {
    inset: 40px;
    border-color: var(--dimension-purple);
    box-shadow: 0 0 20px #8b5cf633, inset 0 0 20px #8b5cf633;
    animation-duration: 4s;
}

.portal-ring:nth-child(4) {
    inset: 60px;
    border-color: var(--toxic-green);
    box-shadow: 0 0 15px #00ff8833, inset 0 0 15px #00ff8833;
    animation-duration: 3s;
    animation-direction: reverse;
}

.portal-core {
    position: absolute;
    inset: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
        var(--portal-green) 0%,
        #00ff8888 20%,
        var(--rick-blue) 40%,
        var(--dimension-purple) 60%,
        transparent 80%
    );
    filter: blur(8px);
    animation: portalPulse 3s ease-in-out infinite alternate;
}

.portal-core::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff44 0%, transparent 70%);
    animation: portalSpin 2s linear infinite reverse;
}

@keyframes portalPulse {
    0% { opacity: 0.6; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Floating particles around portal */
.portal-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--portal-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--portal-green);
    animation: floatParticle 3s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { opacity: 0; transform: translate(0, 0) scale(0); }
    50% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
}

/* Hero text */
.hero-dimension {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--dimension-purple);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-title .text-portal {
    background: linear-gradient(135deg, var(--portal-green), var(--toxic-green), var(--rick-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
}

.hero-title .text-white {
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 2;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-certs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.cert-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border: 1px solid var(--portal-green)44;
    background: var(--portal-green)0a;
    color: var(--portal-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: var(--portal-green)1a;
    border-color: var(--portal-green)88;
    box-shadow: 0 0 12px var(--portal-green-dim);
    transform: translateY(-2px);
}
a.cert-badge { text-decoration: none; cursor: pointer; }

.hero-subtitle .highlight {
    color: var(--portal-green);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.1s;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--portal-green);
    color: var(--void-black);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
    background: var(--toxic-green);
    box-shadow: 0 0 30px var(--portal-green-dim);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--portal-green);
    border: 1px solid var(--portal-green);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-outline:hover {
    background: var(--portal-green)11;
    box-shadow: 0 0 30px var(--portal-green-dim);
    transform: translateY(-2px);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.5s;
}

.scroll-indicator span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--portal-green), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 8rem 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

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

.section-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--dimension-purple);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
}

.section-title .accent {
    color: var(--portal-green);
}

.section-desc {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--portal-green), var(--dimension-purple));
    margin: 2rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--portal-green-dim);
}

/* ============================================
   SEARCH BAR (Categories filter)
   ============================================ */
.search-container {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: -1rem auto 2rem;
    padding: 0 3rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--panel-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--portal-green);
    box-shadow: 0 0 20px var(--portal-green-dim);
}

.search-icon {
    padding: 0 1.2rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

.search-container .search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    padding: 18px 0;
    outline: none;
}

.search-container .search-input::placeholder {
    color: var(--text-dim);
}

.search-count {
    padding: 0 1.2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.search-count span {
    color: var(--portal-green);
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 2.2rem 2.5rem 3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--portal-green), var(--rick-blue), var(--dimension-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--portal-green)08 0%, transparent 50%);
    pointer-events: none;
}

.category-card:hover {
    border-color: var(--portal-green)44;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px var(--portal-green-dim);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
}

.card-icon.pentesting {
    background: linear-gradient(135deg, #39ff1420, #39ff1408);
    border: 1px solid #39ff1430;
    color: var(--portal-green);
}

.card-icon.redteam {
    background: linear-gradient(135deg, #ff6b9d20, #ff6b9d08);
    border: 1px solid #ff6b9d30;
    color: var(--flesh-pink);
}

.card-icon.vulns {
    background: linear-gradient(135deg, #ffdd0020, #ffdd0008);
    border: 1px solid #ffdd0030;
    color: var(--morty-yellow);
}

.card-icon.certs {
    background: linear-gradient(135deg, #8b5cf620, #8b5cf608);
    border: 1px solid #8b5cf630;
    color: var(--dimension-purple);
}

.card-icon.tools {
    background: linear-gradient(135deg, #00d4ff20, #00d4ff08);
    border: 1px solid #00d4ff30;
    color: var(--rick-blue);
}

.card-icon.writeups {
    background: linear-gradient(135deg, #c8ff0020, #c8ff0008);
    border: 1px solid #c8ff0030;
    color: var(--acid-lime);
}

.card-info {
    flex: 1;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.card-count {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 2px;
    background: var(--panel-mid);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.category-card:hover .tag {
    border-color: var(--portal-green)33;
}

.card-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.category-card:hover .card-arrow {
    color: var(--portal-green);
    transform: translateX(4px);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-strip {
    position: relative;
    z-index: 1;
    padding: 5rem 3rem;
    background: linear-gradient(180deg, transparent 0%, var(--panel-dark)88 50%, transparent 100%);
    border-top: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--portal-green), var(--rick-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   TERMINAL / ABOUT SECTION
   ============================================ */
.terminal-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.terminal {
    background: var(--panel-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: var(--space-dark);
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 2rem 2.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.88rem;
    line-height: 2;
}

.terminal-line {
    margin-bottom: 0.6rem;
}

.terminal-prompt {
    color: var(--portal-green);
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 1rem;
}

.terminal-comment {
    color: var(--text-dim);
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--portal-green);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

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

/* ============================================
   DRIP EFFECT (Rick & Morty Slime)
   ============================================ */
.drip-divider {
    position: relative;
    height: 40px;
    z-index: 2;
    overflow: visible;
}

.drip-divider svg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 40px;
}

/* ============================================
   GLITCH EFFECT
   ============================================ */
.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--flesh-pink);
    clip-path: inset(0 0 0 0);
    animation: glitchTop 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--rick-blue);
    clip-path: inset(0 0 0 0);
    animation: glitchBottom 2.5s infinite linear alternate-reverse;
}

@keyframes glitchTop {
    0%, 95% { clip-path: inset(0 0 100% 0); }
    96% { clip-path: inset(20% 0 60% 0); }
    97% { clip-path: inset(60% 0 10% 0); }
    98% { clip-path: inset(40% 0 30% 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

@keyframes glitchBottom {
    0%, 95% { clip-path: inset(100% 0 0 0); }
    96% { clip-path: inset(70% 0 5% 0); }
    97% { clip-path: inset(10% 0 70% 0); }
    98% { clip-path: inset(50% 0 20% 0); }
    100% { clip-path: inset(100% 0 0 0); }
}

/* ============================================
   NAV OVERLAY & NO RESULTS
   ============================================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-dim);
}

.no-results.visible {
    display: block;
}

.no-results .portal-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* ============================================
   INTERACTIVE TERMINAL (Hero)
   ============================================ */
.hero-terminal {
    margin-top: 2rem;
    max-width: 600px;
    width: 100%;
    background: var(--panel-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px var(--portal-green-dim);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
    overflow: hidden;
}
.hero-terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-subtle);
}
.hero-terminal-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}
.hero-terminal-body {
    padding: 1rem 1.2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
}
.hero-terminal-body::-webkit-scrollbar { width: 4px; }
.hero-terminal-body::-webkit-scrollbar-thumb { background: var(--portal-green); border-radius: 2px; }
.term-prompt { color: var(--portal-green); font-weight: 700; margin-right: 0.5rem; }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-secondary); }
.term-success { color: var(--toxic-green); }
.term-error { color: var(--flesh-pink); }
.hero-terminal-input-line {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.2rem 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
}
.hero-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    outline: none;
    caret-color: transparent;
}
.hero-terminal-input::placeholder { color: var(--text-dim); }
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--portal-green);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

/* ============================================
   RICK QUOTES BANNER
   ============================================ */
.rick-quote {
    position: relative;
    z-index: 1;
    padding: 2rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--panel-dark)44, transparent);
    border-top: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
}

.rick-quote-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.rick-quote-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--portal-green-dim));
}

.rick-quote-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.rick-quote-text span {
    color: var(--portal-green);
    font-style: normal;
}

/* ============================================
   TIMELINE DE CERTIFICACIONES
   ============================================ */
.timeline-section {
    position: relative;
    z-index: 1;
    padding: 8rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--portal-green), var(--dimension-purple), var(--rick-blue), var(--portal-green));
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--portal-green-dim);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 4rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3.5rem;
    padding-left: 1rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 3.5rem;
    padding-right: 1rem;
}

.timeline-node {
    position: absolute;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--portal-green);
    background: var(--void-black);
    z-index: 2;
    box-shadow: 0 0 12px var(--portal-green-dim);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-node {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-node {
    left: -9px;
}

.timeline-item:hover .timeline-node {
    background: var(--portal-green);
    box-shadow: 0 0 20px var(--portal-green-dim), 0 0 40px var(--portal-green-dim);
    transform: scale(1.3);
}

.timeline-portal {
    position: absolute;
    top: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--portal-green)33;
    animation: portalPulse 2s ease-in-out infinite alternate;
    pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-portal {
    right: -11px;
}

.timeline-item:nth-child(even) .timeline-portal {
    left: -11px;
}

.timeline-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--dimension-purple);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline-cert {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--portal-green);
    margin-bottom: 0.3rem;
}

.timeline-full {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-dimension {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.timeline-credential {
    display: inline-block;
    margin-top: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--portal-green);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.timeline-credential:hover { opacity: 1; text-decoration: underline; }

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    max-width: 360px;
}

.timeline-item:nth-child(odd) .timeline-card {
    border-radius: 8px 0 8px 8px;
}

.timeline-item:nth-child(even) .timeline-card {
    border-radius: 0 8px 8px 8px;
}

.timeline-item:hover .timeline-card {
    border-color: var(--portal-green)44;
    box-shadow: 0 10px 40px -15px var(--portal-green-dim);
    transform: translateY(-2px);
}

/* ============================================
   EXPERIENCE / CAREER SECTION
   ============================================ */
.experience-section {
    position: relative;
    z-index: 1;
    padding: 8rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.experience-card {
    background: var(--card-bg, var(--panel-dark));
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--portal-green), var(--dimension-purple));
    opacity: 0.5;
    transition: opacity 0.3s;
}
.experience-card:hover {
    border-color: var(--portal-green)44;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px -15px rgba(57, 255, 20, 0.15);
}
.experience-card:hover::before {
    opacity: 1;
}
.experience-card.current {
    border-color: var(--portal-green)44;
}
.experience-card.current::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--portal-green), var(--toxic-green));
}
.experience-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--portal-green);
    border-radius: 50%;
}
.status-dot.pulse {
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--portal-green);
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--portal-green); }
    50% { opacity: 0.5; box-shadow: 0 0 12px var(--portal-green); }
}
.status-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--portal-green);
    text-transform: uppercase;
}
.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.experience-company {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.experience-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-dim);
}
.experience-role {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    color: var(--portal-green);
    margin-bottom: 1rem;
    font-weight: 500;
}
.experience-tasks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}
.experience-tasks li {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.4rem;
}
.experience-tasks li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--portal-green);
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
}
.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.exp-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    border-radius: 2px;
}
.experience-card.current .exp-tag {
    border-color: var(--portal-green)33;
    color: var(--portal-green);
}

/* ============================================
   RESPONSIVE (Index-specific)
   ============================================ */
@media (max-width: 768px) {
    .portal-container {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }

    .hero {
        padding-top: 110px;
    }

    .terminal-section {
        padding: 5rem 1.5rem;
    }

    .hero-terminal { max-width: 95%; }
    .hero-terminal-body { font-size: 0.7rem; min-height: 100px; max-height: 200px; }
    .hero-terminal-input { font-size: 0.7rem; }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 3.5rem;
        padding-right: 1rem;
    }

    .timeline-item:nth-child(odd) .timeline-node,
    .timeline-item:nth-child(even) .timeline-node {
        left: 11px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-portal,
    .timeline-item:nth-child(even) .timeline-portal {
        left: 9px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card {
        border-radius: 0 8px 8px 8px;
    }

    .timeline-card {
        max-width: 100%;
    }

    .timeline-section,
    .experience-section {
        padding: 5rem 1.5rem;
    }
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .portal-container {
        width: 180px;
        height: 180px;
    }

    .hero-terminal { max-width: 100%; border-radius: 8px; }
}

/* ============================================
   PARALLAX EFFECT (Hero)
   ============================================ */
.hero {
    perspective: 1000px;
}

.portal-container {
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-title,
.hero-dimension,
.hero-subtitle,
.hero-certs,
.hero-cta {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .portal-container,
    .hero-title,
    .hero-dimension,
    .hero-subtitle,
    .hero-certs,
    .hero-cta {
        will-change: auto !important;
        transform: none !important;
    }
}
