:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --accent-green: #00ff9d;
    --accent-green-dim: #00ff9d40;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-red: #ff3e3e;
    --accent-orange: #ff9500;
    --accent-pink: #ff6b9d;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-dim: #52525b;
    --border-color: #27272a;
    --glow-green: 0 0 20px rgba(0, 255, 157, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
    z-index: 9999;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 9998;
}

::selection { background: var(--accent-green); color: var(--bg-primary); }

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before { content: '>'; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent-green); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-green);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-text h1 .name {
    color: var(--accent-green);
    text-shadow: var(--glow-green);
}

.hero-text .role {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-text .role span { color: var(--accent-cyan); }

.hero-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--accent-green);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
}

.btn-secondary:hover { background: var(--accent-green-dim); }

.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-btn { width: 12px; height: 12px; border-radius: 50%; }
.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 1.5rem;
    font-size: 0.85rem;
    min-height: 300px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.1s; }
.terminal-line:nth-child(2) { animation-delay: 0.2s; }
.terminal-line:nth-child(3) { animation-delay: 0.3s; }
.terminal-line:nth-child(4) { animation-delay: 0.4s; }
.terminal-line:nth-child(5) { animation-delay: 0.5s; }
.terminal-line:nth-child(6) { animation-delay: 0.6s; }
.terminal-line:nth-child(7) { animation-delay: 0.7s; }
.terminal-line:nth-child(8) { animation-delay: 0.8s; }
.terminal-line:nth-child(9) { animation-delay: 0.9s; }
.terminal-line:nth-child(10) { animation-delay: 1s; }
.terminal-line:nth-child(11) { animation-delay: 1.1s; }
.terminal-line:nth-child(12) { animation-delay: 1.2s; }
.terminal-line:nth-child(13) { animation-delay: 1.3s; }
.terminal-line:nth-child(14) { animation-delay: 1.4s; }
.terminal-line:nth-child(15) { animation-delay: 1.5s; }
.terminal-line:nth-child(16) { animation-delay: 1.6s; }
.terminal-line:nth-child(17) { animation-delay: 1.7s; }
.terminal-line:nth-child(18) { animation-delay: 1.8s; }
.terminal-line:nth-child(19) { animation-delay: 1.9s; }
.terminal-line:nth-child(20) { animation-delay: 2s; }
.terminal-line:nth-child(21) { animation-delay: 2.1s; }
.terminal-line:nth-child(22) { animation-delay: 2.2s; }
.terminal-line:nth-child(23) { animation-delay: 2.3s; }
.terminal-line:nth-child(24) { animation-delay: 2.4s; }
.terminal-line:nth-child(25) { animation-delay: 2.5s; }

@keyframes fadeIn { to { opacity: 1; } }

.prompt { color: var(--accent-green); }
.command { color: var(--accent-cyan); }
.output { color: var(--text-secondary); padding-left: 1rem; }
.highlight { color: var(--accent-purple); }
.highlight-orange { color: var(--accent-orange); }

/* Evil-WinRM Red Team Terminal Styles */
.prompt-red { color: var(--accent-red); font-weight: 600; }
.command-red { color: var(--accent-red); }
.output-red { color: var(--accent-red); padding-left: 1rem; font-weight: 500; }
.output-cert { color: var(--accent-cyan); padding-left: 1rem; font-size: 0.8rem; }
.output-success { color: var(--accent-green); padding-left: 1rem; font-weight: 500; }

section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
}

.section-header::before {
    content: '#';
    color: var(--accent-green);
    font-size: 1.5rem;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats { display: grid; gap: 1.5rem; }

.stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-green);
    transform: translateX(-5px);
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    text-shadow: var(--glow-green);
}

.stat-item .label {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-category:hover { border-color: var(--accent-cyan); }

.skill-category h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3::before { content: '▸'; }

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

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.writeups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.writeup-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.writeup-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.writeup-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.writeup-platform {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.platform-thm { background: #1db954; color: #000; }
.platform-htb { background: #9fef00; color: #000; }
.platform-pwned { background: #ff6b35; color: #000; }
.platform-mobile { background: #a855f7; color: #fff; }

.writeup-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.writeup-body { padding: 1.5rem; }

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

.writeup-tag {
    background: var(--bg-tertiary);
    color: var(--text-dim);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 3px;
}

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

.resource-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.resource-section h3 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-section h3::before { content: '📂'; }

.resource-list { list-style: none; }

.resource-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.resource-list li:last-child { border-bottom: none; }
.resource-list li::before { content: '→ '; color: var(--accent-green); }

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.cert-card:hover::before { transform: scaleY(1); }

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

.cert-card h4 {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cert-card .issuer {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.cert-card .description {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cert-personal-link, .cert-issuer-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.85em;
    opacity: 0.7;
}
.cert-personal-link:hover, .cert-issuer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.cert-buttons {
    display: flex;
    gap: 8px;
    margin: 4px 0;
    flex-wrap: wrap;
}
.cert-btn {
    padding: 2px 8px;
    font-size: 0.75em;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background: #333;
    transition: all 0.2s;
}
.cert-personal { background: #007acc; }
.cert-official { background: #28a745; }
.cert-btn:hover { opacity: 0.8; transform: translateY(-1px); }



.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-green), var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-item:hover::before {
    background: var(--accent-green);
    box-shadow: var(--glow-green);
}

.timeline-date {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateX(10px);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

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

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.85rem;
}

footer span { color: var(--accent-green); }
footer a { color: var(--accent-cyan); }

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Links Section Styles */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

.link-icon {
    font-size: 2.5rem;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.1);
}

.link-content {
    flex: 1;
}

.link-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.link-card:hover .link-title {
    color: var(--accent-green);
}

.link-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}


@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .terminal { margin-top: 2rem; }
    .about-content, .contact-content { grid-template-columns: 1fr; }
    section { padding: 4rem 1.5rem; }
    .writeups-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr; }
}
