/* CSS Variables for Hacking Theme */

:root {
    --primary-green: #00ff41;
    --secondary-green: #008f11;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --terminal-bg: #1a1a1a;
    --text-primary: #00ff41;
    --text-secondary: #ffffff;
    --text-muted: #888888;
    --border-color: #333333;
    --danger-red: #ff0000;
    --warning-yellow: #ffff00;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', monospace;
}


/* Reset and Base Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}


/* For Webkit-based browsers (Chrome, Edge, Safari) */

::-webkit-scrollbar {
    width: 12px;
    background-color: #111;
    /* Dark track background */
    border-left: 1px solid #222;
    /* subtle border for depth */
}

::-webkit-scrollbar-track {
    background: #111;
    box-shadow: inset 0 0 10px #00ff88;
    /* faint neon green glow inside track */
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ff88, #009955);
    border-radius: 8px;
    border: 2px solid #111;
    /* contrast border */
    box-shadow: 0 0 5px #00ff88, 0 0 10px #00ff88, 0 0 15px #00ff88;
    /* strong neon glow around thumb */
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}


/* Hover effect on thumb */

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00ffcc, #00bb77);
    box-shadow: 0 0 8px #00ffcc, 0 0 14px #00ffcc, 0 0 20px #00ffcc;
}


/* For Firefox */

* {
    scrollbar-width: thin;
    scrollbar-color: #00ff88 #111;
}


/* Matrix Background */

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a1a 100%);
}

#matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(0, 255, 65, 0.05) 0%, transparent 50%);
    animation: matrixGlow 4s ease-in-out infinite alternate;
}

@keyframes matrixGlow {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}


/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-bracket {
    color: var(--primary-green);
}

.logo-text {
    color: var(--text-secondary);
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}


/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

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

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

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

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27ca3f;
}

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

.terminal-body {
    padding: 1rem;
    font-family: var(--font-mono);
}

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

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

.command {
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.cursor {
    color: var(--primary-green);
    animation: blink 1s infinite;
}

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

.terminal-output p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

.status-online {
    color: var(--primary-green);
    font-weight: bold;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin: 2rem 0 1rem;
    font-weight: 900;
}

.glitch {
    position: relative;
    color: var(--primary-green);
    animation: glitch 2s infinite;
}

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

.glitch::before {
    color: #ff0000;
    animation: glitch-1 0.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: #0000ff;
    animation: glitch-2 0.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%,
    100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-1 {
    0%,
    100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, -2px);
    }
    40% {
        transform: translate(-2px, 2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%,
    100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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


/* Buttons */

.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

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

.btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}


/* Sections */

.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.section-number {
    color: var(--primary-green);
    margin-right: 1rem;
}


/* About Section */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hacker-avatar {
    display: flex;
    justify-content: center;
}

.avatar-frame {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 65, 0.1) 70%);
}

.avatar-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-green), transparent, var(--primary-green));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.avatar-content {
    width: 180px;
    height: 180px;
    background: var(--terminal-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 4rem;
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    /* Ensures the image stays inside the circle */
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keeps aspect ratio while filling the circle */
    display: block;
}

.flip-card-back {
    transform: rotateY(180deg);
}


/* Certifications Section */

.certifications-section {
    margin-top: 4rem;
}

.certifications h3 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.2);
}

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

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

.cert-title {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(0, 255, 65, 0.1), transparent);
}

.cert-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background: #fff;
    padding: 10px;
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-green), #00cc33);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--terminal-bg);
    position: relative;
}

.cert-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.cert-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--terminal-bg);
    z-index: 2;
}


/* Responsive Design */

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 1rem;
    }
}


/* Skills Section */

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

.skill-category {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
}

.skill-category h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

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

.skill-tag {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}


/* Override icon colors with specific brand hues */

.skill-tag.python i {
    color: #ffe873;
    /* Soft yellow for Python icon */
}

.skill-tag.bash i {
    color: #a6d785;
    /* Light green for Bash icon */
}

.skill-tag.powershell i {
    color: #66aaff;
    /* Light blue for PowerShell icon */
}

.skill-tag.javascript i {
    color: #f0db4f;
    /* Classic JS yellow icon */
}

.skill-tag.angular i {
    color: #e03c4e;
    /* Angular red icon */
}

.skill-tag.css i {
    color: #3a8ccf;
    /* CSS blue icon */
}

.skill-tag.html i {
    color: #f16529;
    /* HTML orange icon */
}

.skill-tag.sql i {
    color: #55aaff;
    /* Light blue for SQL icon */
}

.skill-tag i {
    font-size: 1.2em;
}


/* Override icon colors for each skill */

.skill-tag.metasploit i {
    color: #d7523d;
    /* Metasploit reddish */
}

.skill-tag.burpsuite i {
    color: #f15a22;
    /* Burp Suite orange */
}

.skill-tag.nmap i {
    color: #4dbfcd;
    /* Nmap teal */
}

.skill-tag.wireshark i {
    color: #0077be;
    /* Wireshark blue */
}

.skill-tag.hydra i {
    color: #9e8f00;
    /* Golden yellow for Hydra */
}

.skill-tag.aircrack i {
    color: #ff6f61;
    /* Aircrack bright coral */
}

.skill-tag.johntheripper i {
    color: #666666;
    /* Dark grey for John the Ripper */
}

.skill-tag i {
    font-size: 1.2em;
}


/* Icon colors matching each OS branding */

.skill-tag.kali-linux i {
    color: #557C94;
    /* Approximate Kali Linux blue */
}

.skill-tag.parrot-os i {
    color: #3FCC5A;
    /* Parrot OS green */
}

.skill-tag.windows i {
    color: #0078D6;
    /* Windows blue */
}

.skill-tag.macos i {
    color: #000000;
    /* Black for Apple logo */
}

.skill-tag.ubuntu i {
    color: #E95420;
    /* Ubuntu orange */
}

.skill-tag.linux i {
    color: #FCC624;
    /* Linux yellow */
}

.skill-tag i {
    font-size: 1.2em;
}


/* Icon colors reflecting forensic tool branding or thematic hints */

.skill-tag.autopsy i {
    color: #6a5acd;
    /* Slate blue for Autopsy */
}

.skill-tag.volatility i {
    color: #ff8c00;
    /* Dark orange for Volatility */
}

.skill-tag.ftk i {
    color: #008080;
    /* Teal for FTK Imager */
}

.skill-tag.xways i {
    color: #4b0082;
    /* Indigo for X-Ways Forensics */
}

.skill-tag i {
    font-size: 1.2em;
}


/* Icon colors reflecting typical or thematic color hints */

.skill-tag.ping i {
    color: #4caf50;
    /* Green for network alive */
}

.skill-tag.traceroute i {
    color: #2196f3;
    /* Blue for network path */
}

.skill-tag.netstat i {
    color: #ff9800;
    /* Orange for connection stats */
}

.skill-tag.wget i {
    color: #607d8b;
    /* Blue-gray for download tool */
}

.skill-tag.telnet i {
    color: #9c27b0;
    /* Purple for terminal */
}

.skill-tag.nikto i {
    color: #f44336;
    /* Red for security scanner */
}

.skill-tag.hashcat i {
    color: #ff5722;
    /* Deep orange for cracking tool */
}

.skill-tag i {
    font-size: 1.2em;
}


/* icon colors */

.skill-tag.virtualbox i {
    color: #183A61;
    /* Oracle VB blue */
}

.skill-tag.vmware i {
    color: #607078;
    /* VMware grey-blue */
}

.skill-tag.docker i {
    color: #0db7ed;
    /* Docker cyan-blue */
}

.skill-tag.vscode i {
    color: #007ACC;
    /* VS Code blue */
}

.skill-tag.pycharm i {
    color: #21D789;
    /* PyCharm green */
}

.skill-tag.postman i {
    color: #FF6C37;
    /* Postman orange */
}


/* Projects Section */

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

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

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
    border-color: var(--primary-green);
}

.project-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

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

.project-header h3 {
    color: var(--text-secondary);
    font-family: var(--font-display);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.2);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111;
    /* dark greyish-black */
    color: #00ff88;
    /* hacker green */
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    /* Smooth Minimal Animation */
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.project-tech span:hover {
    transform: translateY(-3px) scale(1.05);
    background: #00ff88;
    color: #111;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}


/* Icons match text color */

.project-tech span i {
    color: inherit;
    font-size: 1.1em;
}


/* Tools Section */

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

.tool-card {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
}

.tool-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.tool-card h3 i {
    color: #00ff88;
    /* bright green hacker color */
    margin-right: 8px;
}

.tool-content input,
.tool-content select,
.tool-content textarea {
    width: 100%;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.tool-content input:focus,
.tool-content select:focus,
.tool-content textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.tool-btn {
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
}

.strength-meter {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scan-results,
.hash-output,
.wifi-results,
.encrypt-output {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    max-height: 200px;
    overflow-y: auto;
}


/* Hacking Game Styles */

.hacking-game {
    width: 100%;
}

.game-terminal {
    background: var(--dark-bg);
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.game-header {
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.game-title {
    font-family: var(--font-display);
    font-size: 1rem;
}

.game-timer {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.game-content {
    padding: 1rem;
    min-height: 150px;
    background: var(--terminal-bg);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.4;
}

.game-instructions {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
}

.code-matrix {
    white-space: pre-wrap;
    color: var(--text-muted);
    animation: codeScroll 2s ease-in-out;
}

.hidden-sequence {
    background: var(--primary-green);
    color: var(--dark-bg);
    padding: 0 2px;
    border-radius: 2px;
    animation: highlight 1s ease-in-out infinite alternate;
}

@keyframes codeScroll {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 65, 0.8);
    }
}

.game-input-area {
    background: var(--dark-bg);
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.game-input-area input {
    flex: 1;
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.game-input-area input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.game-status {
    background: var(--terminal-bg);
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}


/* Resume Terminal Styles */

.resume-terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.resume-header {
    background: var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resume-body {
    padding: 2rem;
}

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

.file-tree {
    font-family: var(--font-mono);
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.file-item {
    color: var(--text-muted);
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
    word-break: break-all;
}

.file-item:hover {
    color: var(--primary-green);
}

.download-interface {
    text-align: center;
}

.hack-prompt {
    font-family: var(--font-mono);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    word-break: break-word;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.download-btn {
    background: var(--terminal-bg);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    text-align: center;
}

.download-btn:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.download-btn.secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.download-btn.secondary:hover {
    background: var(--text-secondary);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.download-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.download-text {
    font-family: var(--font-mono);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-green);
    width: 0%;
    transition: width 0.1s ease;
}

.downloading {
    pointer-events: none;
    opacity: 0.7;
}


/* Mobile Responsive Styles */

@media (max-width: 768px) {
    .resume-terminal {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    .resume-body {
        padding: 1rem;
    }
    .resume-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .file-tree {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .hack-prompt {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
    .download-btn {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        min-height: 50px;
    }
    .download-text {
        font-size: 0.9rem;
    }
    .download-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .resume-terminal {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        border-radius: 6px;
    }
    .resume-header {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .resume-body {
        padding: 0.75rem;
    }
    .file-tree {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    .hack-prompt {
        padding: 0.5rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    .download-buttons {
        gap: 0.75rem;
    }
    .download-btn {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
        min-height: 48px;
        border-radius: 6px;
    }
    .download-text {
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
    }
    .download-icon {
        font-size: 0.9rem;
    }
}


/* Pulse animation for interactive elements */

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

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


/* Enhanced skill tags with hover effects */

.skill-tag {
    cursor: pointer;
    position: relative;
}

.skill-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag:hover::after {
    opacity: 1;
}


/* Floating animations */

.floating {
    animation: floating 3s ease-in-out infinite;
}

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


/* Glowing border effect */

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-green), transparent, var(--primary-green));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}


/* Contact Section */

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

.contact-info h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

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

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
}

.contact-icon {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--primary-green);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-green);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 0;
    font-family: var(--font-mono);
    transition: border-color 0.3s ease;
}

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

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

.form-group label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: var(--primary-green);
}


/* Footer */

.footer {
    background: var(--terminal-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}


/* 3D Hacking Preloader */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* 3D Cube */

.cube-container {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    animation: cube-float 3s ease-in-out infinite;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 4s linear infinite;
}

.cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(42, 255, 106, 0.1);
    border: 2px solid #2aff6a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #2aff6a;
    box-shadow: 0 0 20px rgba(42, 255, 106, 0.3);
    backdrop-filter: blur(10px);
}

.front {
    transform: rotateY(0deg) translateZ(60px);
}

.back {
    transform: rotateY(180deg) translateZ(60px);
}

.left {
    transform: rotateY(-90deg) translateZ(60px);
}

.right {
    transform: rotateY(90deg) translateZ(60px);
}

.top {
    transform: rotateX(90deg) translateZ(60px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(60px);
}

@keyframes cube-rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

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


/* Matrix Canvas */

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}


/* Terminal Output */

.terminal-output {
    z-index: 2;
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: center;
}

.terminal-line {
    margin: 0.5rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    opacity: 0;
    animation: terminal-type 0.5s ease-out forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1s;
}

.terminal-line:nth-child(3) {
    animation-delay: 1.5s;
}

.terminal-line:nth-child(4) {
    animation-delay: 2s;
}

.prompt {
    color: #ff6b6b;
    margin-right: 0.5rem;
}

.message {
    color: #2aff6a;
}

@keyframes terminal-type {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Progress Bar */

.progress-container {
    z-index: 2;
    width: 300px;
    margin-bottom: 2rem;
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(42, 255, 106, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2aff6a, #00d4ff);
    border-radius: 4px;
    animation: progress-load 5s ease-out forwards;
    position: relative;
}

.progress-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: particle-flow 1.5s ease-in-out infinite;
}

@keyframes progress-load {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes particle-flow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: #2aff6a;
}

.loading-dots {
    animation: dots-blink 1.5s infinite;
}

@keyframes dots-blink {
    0%,
    20% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    80%,
    100% {
        opacity: 0;
    }
}


/* Floating Icons */

.interactive-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.5) rotate(360deg);
}

.icon-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.icon-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1.5s;
}

.icon-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 3s;
}

.icon-4 {
    bottom: 35%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}


/* Skip Hint */

.skip-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(42, 255, 106, 0.6);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 3;
}

.skip-hint:hover {
    color: #2aff6a;
}


/* Responsive */

@media (max-width: 768px) {
    .cube-container {
        width: 80px;
        height: 80px;
        display: none;
    }
    .cube-face {
        width: 80px;
        height: 80px;
        font-size: 12px;
    }
    .front,
    .back,
    .left,
    .right,
    .top,
    .bottom {
        transform: rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg)) translateZ(40px);
    }
}


/* Responsive Design */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .skills-grid,
    .projects-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.hacker-email {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    text-shadow: 0 0 5px #00ff88, 0 0 8px #00ff88, 0 0 12px #00ff88;
    user-select: none;
}


/* Email icon - remove glow and animations */

.hacker-email .contact-icon {
    font-size: 1.4rem;
    /* static hacker green */
    animation: none;
    text-shadow: none;
}


/* Email link styling */

.hacker-email .email-text {
    color: #00ff88;
    text-decoration: none;
    position: relative;
    animation: flickerText 3s infinite;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}


/* Hover glow for email text */

.hacker-email .email-text:hover {
    color: #33ffaa;
    text-shadow: 0 0 10px #33ffaa, 0 0 20px #33ffaa;
}


/* Flicker effect for text */

@keyframes flickerText {
    0%,
    18%,
    20%,
    22%,
    25%,
    53%,
    58%,
    100% {
        opacity: 1;
    }
    19%,
    21%,
    23%,
    55% {
        opacity: 0.6;
    }
}