﻿/* ===================================
   CYBERSECURITY PORTFOLIO - DARK THEME
   Neon Green + Electric Blue + Deep Black
   =================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #00ff41;
    --secondary-color: #00d9ff;
    --accent-color: #ff0080;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-glow: #00ff41;
    --shadow-glow: rgba(0, 255, 65, 0.5);
    --shadow-blue: rgba(0, 217, 255, 0.5);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== MATRIX BACKGROUND ===== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* ===== CURSOR GLOW EFFECT ===== */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-glow);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-glow);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-glow);
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--shadow-glow);
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

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

.glitch::before {
    left: 4px;
    text-shadow: -4px 0 var(--secondary-color);
    clip: rect(24px, 9999px, 90px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch::after {
    left: -4px;
    text-shadow: 4px 0 var(--accent-color);
    clip: rect(85px, 9999px, 140px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-3px, 3px); }
    20% { transform: translate(3px, -3px); }
    30% { transform: translate(-3px, -3px); }
    40% { transform: translate(3px, 3px); }
    50% { transform: translate(0); }
    60% { transform: translate(-3px, 3px); }
    70% { transform: translate(3px, -3px); }
    80% { transform: translate(-3px, -3px); }
    90% { transform: translate(3px, 3px); }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    10% { clip: rect(70px, 9999px, 71px, 0); }
    20% { clip: rect(30px, 9999px, 91px, 0); }
    30% { clip: rect(90px, 9999px, 20px, 0); }
    40% { clip: rect(50px, 9999px, 60px, 0); }
    50% { clip: rect(80px, 9999px, 40px, 0); }
    60% { clip: rect(20px, 9999px, 100px, 0); }
    70% { clip: rect(60px, 9999px, 50px, 0); }
    80% { clip: rect(40px, 9999px, 80px, 0); }
    90% { clip: rect(100px, 9999px, 30px, 0); }
    100% { clip: rect(15px, 9999px, 70px, 0); }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--shadow-glow), 0 0 40px var(--shadow-glow);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.typing-container {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.typing-text {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--shadow-blue);
}

.cursor-blink {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--primary-color);
    animation: blink 1s infinite;
    margin-left: 5px;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: var(--bg-dark);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 30px var(--shadow-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--shadow-blue);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px var(--shadow-glow);
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

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

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 2rem;
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.prompt {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--shadow-blue);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--shadow-glow);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--shadow-glow);
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.image-wrapper:hover .profile-img {
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.1;
    pointer-events: none;
}

.cyber-card {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 0 30px var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

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

.cyber-card:hover::before {
    opacity: 0.3;
}

.cyber-card h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--shadow-blue);
}

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

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 10px var(--shadow-glow);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    display: flex;
    flex-direction: column;
}

.skill-category {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 20px var(--shadow-glow);
}

/* Two-column layout for skills */
.skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-column {
    display: flex;
    flex-direction: column;
}

.skills-column:first-child {
    border-right: 1px solid rgba(0, 255, 65, 0.2);
    padding-right: 2rem;
}

.category-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.category-title .icon {
    font-size: 1.4rem;
}

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

.skill-box {
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
    transition: left 0.5s ease;
}

.skill-box:hover::before {
    left: 100%;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--shadow-glow);
    border-color: var(--secondary-color);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.skill-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: bold;
}

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

.project-card {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--shadow-glow);
}

/* Project Image (Optional) */
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.project-status {
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-darker);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-glow);
}

/* Load More Button Styling */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--shadow-glow);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 30px var(--shadow-glow);
}

.load-more-btn .prompt {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.load-more-btn:hover .prompt {
    color: var(--bg-dark);
}

/* Hidden class for cards */
.project-card.hidden,
.certificate-item.hidden {
    display: none;
}

/* ===== BUG HUNTING SECTION ===== */
.terminal-window {
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px var(--shadow-glow);
}

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

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

.terminal-button.red {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
}

.terminal-button.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.terminal-button.green {
    background: #27c93f;
    box-shadow: 0 0 5px #27c93f;
}

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

.terminal-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.bugs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
}

.bugs-table thead {
    background: var(--bg-card);
}

.bugs-table th {
    padding: 1rem;
    text-align: left;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}

.bugs-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-secondary);
}

.bug-row {
    transition: all 0.3s ease;
    animation: fadeInRow 0.5s ease forwards;
    opacity: 0;
}

.bug-row:nth-child(1) { animation-delay: 0.1s; }
.bug-row:nth-child(2) { animation-delay: 0.2s; }
.bug-row:nth-child(3) { animation-delay: 0.3s; }
.bug-row:nth-child(4) { animation-delay: 0.4s; }
.bug-row:nth-child(5) { animation-delay: 0.5s; }
.bug-row:nth-child(6) { animation-delay: 0.6s; }

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

.bug-row:hover {
    background: rgba(0, 255, 65, 0.1);
}

.target-name {
    color: var(--secondary-color);
    font-weight: bold;
}

.bug-type {
    color: var(--primary-color);
    font-weight: bold;
}

.severity {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
}

.severity.critical {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.severity.high {
    background: rgba(255, 165, 0, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

.severity.medium {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid #ffff00;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-item {
    width: 350px;
    text-align: center;
}

.cert-wrapper {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.1);
}

.cert-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.2);
}

.cert-wrapper a {
    display: block;
}

.cert-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cert-wrapper:hover img {
    opacity: 0.9;
}

.cert-info {
    padding: 0 10px;
}

.cert-info h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.cert-info p {
    color: var(--primary-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 50px var(--shadow-glow);
}

.achievement-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.15);
    filter: brightness(1);
}

.achievement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.achievement-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.achievement-badge {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.achievement-card h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px var(--shadow-blue);
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
    flex: 1;
}

.achievement-date {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    margin-top: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--shadow-glow);
    transform: translateY(-5px);
}

.footer-text p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.footer-tagline {
    color: var(--primary-color);
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 10px 30px var(--shadow-glow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-column:first-child {
        border-right: none;
        padding-right: 0;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-body {
        overflow-x: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .bugs-table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .bugs-table th,
    .bugs-table td {
        padding: 0.75rem 0.5rem;
        word-wrap: break-word;
    }
    
    .bugs-table th {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .terminal-window {
        margin: 0 -1rem;
    }
    
    .terminal-header {
        padding: 0.6rem 1rem;
    }
    
    .terminal-title {
        font-size: 0.8rem;
    }
    
    .certificates-container {
        gap: 2rem;
    }
    
    .certificate-item {
        width: 100%;
        max-width: 350px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .cyber-card {
        padding: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    /* Enhanced Bug Reports Mobile Responsiveness */
    .terminal-body {
        padding: 0.75rem;
    }
    
    .bugs-table {
        font-size: 0.75rem;
        min-width: 550px;
    }
    
    .bugs-table th,
    .bugs-table td {
        padding: 0.5rem 0.35rem;
    }
    
    .bugs-table th {
        font-size: 0.7rem;
    }
    
    .severity {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .terminal-header {
        padding: 0.5rem 0.75rem;
    }
    
    .terminal-button {
        width: 10px;
        height: 10px;
    }
}

/* Progressive enhancements keep the original palette and layout. */
[hidden] { display: none !important; }
main { display: block; }
section { scroll-margin-top: 90px; }
.hamburger { border: 0; background: transparent; padding: 6px; }
:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 5px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 12000; padding: 12px; background: #050505; color: #00ff41; }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1002; background: linear-gradient(90deg, #00ff41, #00d9ff); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.navbar.scrolled { background: rgba(10,10,10,.98); box-shadow: 0 0 30px rgba(0,255,65,.35); }
#matrix-intro { position: fixed; inset: 0; z-index: 11000; background: #000; display: grid; place-items: center; pointer-events: none; animation: intro-failsafe 0s 2.5s forwards; }
#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.intro-terminal { position: relative; width: min(90vw, 540px); padding: 32px; background: rgba(0,0,0,.88); border: 1px solid #00ff4166; box-shadow: 0 0 70px #00ff411c; color: #00ff41; }
.intro-terminal strong { display: block; color: white; font-size: clamp(2rem, 8vw, 3.6rem); letter-spacing: .15em; margin: 20px 0; }
.intro-terminal p { font-size: .85rem; }
.intro-terminal button { pointer-events: auto; margin-top: 24px; padding: 10px 14px; background: transparent; border: 1px solid #00ff41; color: #00ff41; font: inherit; cursor: pointer; }
.intro-progress { height: 2px; background: #00ff41; margin-top: 22px; transform-origin: left; animation: boot-progress 1.7s ease-out both; }
@keyframes boot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-failsafe { to { visibility: hidden; } }
@media (hover: hover) and (pointer: fine) {
    .project-card:hover, .cyber-card:hover, .certificate-item:hover { background-image: radial-gradient(320px circle at var(--light-x, 50%) var(--light-y, 50%), #00ff4114, transparent 80%); }
    .certificate-item { transition: transform .3s ease, box-shadow .3s ease; }
    .certificate-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px #00ff4120; }
}
@media (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    #matrix-intro, #matrix-canvas, .cursor-glow, .cursor-blink { display: none !important; }
}
