/* Cyberpunk Portfolio - High-Tech Futuristic Theme */

:root {
    --cyber-dark: #0a0e1a;
    --cyber-slate: #1a1f2e;
    --cyber-blue: #00d4ff;
    --cyber-emerald: #00ff88;
    --cyber-purple: #8b5cf6;
    --cyber-red: #ff0040;
    --cyber-text: #e0e6ed;
    --cyber-text-dim: #8892b0;
    --cyber-glow: 0 0 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--cyber-dark);
    color: var(--cyber-text);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

/* Force themed finger pointer on ALL clickable elements - highest specificity */
a,
a *,
button,
button *,
.cyber-btn,
.cyber-btn *,
.nav-link,
.nav-link *,
.nav-menu,
.nav-menu *,
.nav-buttons,
.nav-buttons *,
.hamburger,
.hamburger *,
.status-indicator,
.status-indicator *,
.social-link,
.social-link *,
[role="button"],
[role="button"] *,
[onclick],
[onclick] *,
.clickable,
.clickable * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300ff88" stroke="%2300d4ff" stroke-width="0.5"/></svg>'), pointer !important;
}

/* Enhanced themed pointer on hover - even higher specificity */
a:hover,
a:hover *,
button:hover,
button:hover *,
.cyber-btn:hover,
.cyber-btn:hover *,
.nav-link:hover,
.nav-link:hover *,
.nav-menu:hover,
.nav-menu:hover *,
.nav-buttons:hover,
.nav-buttons:hover *,
.hamburger:hover,
.hamburger:hover *,
.social-link:hover,
.social-link:hover *,
[role="button"]:hover,
[role="button"]:hover *,
[onclick]:hover,
[onclick]:hover *,
.clickable:hover,
.clickable:hover * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300d4ff" stroke="%2300ff88" stroke-width="1" filter="drop-shadow(0 0 3px %2300ff88)"/></svg>'), pointer !important;
}

/* Hide custom cursor completely on clickable elements */
.clickable-element {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300ff88" stroke="%2300d4ff" stroke-width="0.5"/></svg>'), pointer !important;
}

/* Keep custom cursor for non-clickable interactive elements */
.project-card,
.info-card {
    cursor: none !important;
}

/* Use themed blue arrow cursor for entire contact section */
#contact,
#contact *,
.contact-content,
.contact-content *,
.contact-form-container,
.contact-form-container *,
.terminal-form,
.terminal-form * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300ff88" stroke="%2300d4ff" stroke-width="0.5"/></svg>'), pointer !important;
}

/* Use themed cursor on form elements */
input,
input *,
textarea,
textarea *,
select,
select *,
.cyber-input,
.cyber-input *,
.cyber-textarea,
.cyber-textarea *,
form,
form *,
.btn-submit,
.btn-submit * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300ff88" stroke="%2300d4ff" stroke-width="0.5"/></svg>'), pointer !important;
    caret-color: #ff0040;
}

/* Custom Cursor - Enhanced Visibility */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    filter: drop-shadow(0 0 15px var(--cyber-emerald));
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    /* Reset all custom cursor styles to default on touch devices */
    a,
    a *,
    button,
    button *,
    .cyber-btn,
    .cyber-btn *,
    .nav-link,
    .nav-link *,
    .nav-menu,
    .nav-menu *,
    .nav-buttons,
    .nav-buttons *,
    .hamburger,
    .hamburger *,
    .status-indicator,
    .status-indicator *,
    .social-link,
    .social-link *,
    [role="button"],
    [role="button"] *,
    [onclick],
    [onclick] *,
    .clickable,
    .clickable *,
    .clickable-element,
    input,
    input *,
    textarea,
    textarea *,
    select,
    select *,
    .cyber-input,
    .cyber-input *,
    .cyber-textarea,
    .cyber-textarea *,
    form,
    form *,
    .btn-submit,
    .btn-submit *,
    #contact,
    #contact *,
    .contact-content,
    .contact-content *,
    .contact-form-container,
    .contact-form-container *,
    .terminal-form,
    .terminal-form * {
        cursor: auto !important;
    }
}

.cursor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, var(--cyber-emerald) 0%, rgba(0, 255, 136, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    border: 2px solid var(--cyber-emerald);
    transform: translate(-50%, -50%);
    animation: cursor-pulse 1.5s ease-in-out infinite alternate;
    box-shadow:
        0 0 8px rgba(0, 255, 136, 0.6),
        0 0 15px rgba(0, 255, 136, 0.3),
        inset 0 0 8px rgba(0, 255, 136, 0.2);
}

.cursor-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    text-shadow:
        0 0 8px var(--cyber-emerald),
        0 0 16px var(--cyber-emerald),
        0 0 24px var(--cyber-emerald),
        0 0 32px var(--cyber-blue);
    font-family: 'JetBrains Mono', monospace;
    z-index: 2;
    animation: symbol-glow 2s ease-in-out infinite alternate;
}

/* Animated Background Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--cyber-emerald);
    opacity: 0.3;
    animation: particle 20s linear infinite;
}

.particle:nth-child(odd) {
    color: var(--cyber-blue);
    animation-duration: 25s;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
}

.particle:nth-child(9) {
    left: 15%;
    animation-delay: 16s;
}

.particle:nth-child(10) {
    left: 25%;
    animation-delay: 18s;
}

.particle:nth-child(11) {
    left: 35%;
    animation-delay: 20s;
}

.particle:nth-child(12) {
    left: 45%;
    animation-delay: 22s;
}

.particle:nth-child(13) {
    left: 55%;
    animation-delay: 24s;
}

.particle:nth-child(14) {
    left: 65%;
    animation-delay: 26s;
}

.particle:nth-child(15) {
    left: 75%;
    animation-delay: 28s;
}

.particle:nth-child(16) {
    left: 85%;
    animation-delay: 30s;
}

/* Navigation */
.cyber-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 31, 46, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cyber-emerald);
    z-index: 1000;
    padding: 0.25rem 0;
    height: auto;
    min-height: auto;
}

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

@media (min-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cyber-text);
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 1rem;
}

.logo-bracket {
    color: var(--cyber-emerald);
    text-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.logo-text {
    color: var(--cyber-blue);
    text-shadow: var(--cyber-glow) var(--cyber-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300ff88" stroke="%2300d4ff" stroke-width="0.5"/></svg>'), pointer !important;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: var(--cyber-text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
}

.nav-bracket {
    color: var(--cyber-emerald);
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--cyber-emerald);
    text-shadow: var(--cyber-glow) var(--cyber-emerald);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.nav-link:hover .nav-bracket {
    opacity: 1;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 2px dashed var(--cyber-emerald);
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.1);
    margin-left: 2rem;
    transition: all 0.3s ease;
}

.status-indicator:hover {
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--cyber-emerald);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--cyber-emerald);
}

.status-text {
    color: var(--cyber-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    position: relative;
}

/* Create invisible clickable area between buttons */
.nav-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 100%;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M13.64 21.97C13.14 22.21 12.54 22 12.31 21.5L10.13 16.76L7.62 18.78C7.45 18.92 7.24 19 7.01 19C6.2 19 5.66 18.18 6.06 17.5L8.5 13L7.5 12.5C6.93 12.21 6.93 11.29 7.5 11L18.6 5.88C19.37 5.19 20.5 6.32 19.81 7.09L13.64 21.97Z" fill="%2300ff88" stroke="%2300d4ff" stroke-width="0.5"/></svg>'), pointer !important;
    pointer-events: auto;
    z-index: 1;
}

.cyber-btn {
    padding: 8px 16px;
    border: 1px solid;
    background: transparent;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

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

.btn-secondary:hover {
    background: var(--cyber-blue);
    color: var(--cyber-dark);
    box-shadow: var(--cyber-glow) var(--cyber-blue);
}

.btn-primary {
    border-color: var(--cyber-emerald);
    color: var(--cyber-emerald);
}

.btn-primary:hover {
    background: var(--cyber-emerald);
    color: var(--cyber-dark);
    box-shadow: var(--cyber-glow) var(--cyber-emerald);
}

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

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

/* Hero Section */
.cyber-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cyber-dark) 0%, var(--cyber-slate) 100%);
    padding-top: 80px;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.terminal-window {
    background: rgba(26, 31, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--cyber-emerald);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.terminal-header {
    background: var(--cyber-slate);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--cyber-emerald);
}

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

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

.btn-close {
    background: var(--cyber-red);
}

.btn-minimize {
    background: #ffaa00;
}

.btn-maximize {
    background: var(--cyber-emerald);
}

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

.terminal-body {
    padding: 2rem;
}

.terminal-line {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--cyber-emerald);
    font-weight: bold;
}

.terminal-output {
    margin: 1rem 0 2rem 1.5rem;
}

.cyber-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.name-highlight {
    color: var(--cyber-emerald);
    text-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.location-text {
    color: var(--cyber-blue);
    font-size: 1.8rem;
}

/* Typing Animation Container */
.typing-line {
    display: inline-block;
    white-space: nowrap; /* Prevents line breaks */
    min-height: 3rem; /* Reserve height to prevent shifting */
    vertical-align: top;
}

/* Typing Animation */
.typing-text {
    color: var(--cyber-text);
    font-size: 2.5rem;
    min-height: 1.2em;
    display: inline;
    vertical-align: top;
}

.typing-cursor {
    color: var(--cyber-emerald);
    font-size: 2.5rem;
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
    display: inline-block;
    vertical-align: top;
    line-height: 1.2; /* Match the text line height */
}

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

.cyber-subtitle {
    font-size: 1.1rem;
    color: var(--cyber-text-dim);
    line-height: 1.6;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.hero-buttons .cyber-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: 140px;
}

.cursor-blink {
    animation: cursor-blink 1s infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--cyber-text-dim);
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
}

/* Section Styles */
.cyber-about {
    padding: 4.5rem 0 3rem 0;
    position: relative;
}

.cyber-work,
.cyber-contact {
    padding: 3rem 0;
    position: relative;
}

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

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.title-bracket {
    color: var(--cyber-emerald);
    text-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--cyber-text-dim);
}

/* Glass Panel */
.glass-panel {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--cyber-emerald);
    box-shadow: var(--cyber-glow) rgba(0, 255, 136, 0.3);
}

.panel-header {
    background: rgba(26, 31, 46, 0.8);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title {
    color: var(--cyber-blue);
    font-weight: bold;
}

.panel-content {
    padding: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.tech-highlight {
    color: var(--cyber-emerald);
    font-weight: bold;
}

.cyber-link {
    color: var(--cyber-blue);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.cyber-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 255, 136, 0.2) 100%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cyber-link:hover {
    color: #0ea5e9;
    border-color: #0ea5e9;
    text-shadow: 0 0 5px rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.cyber-link:hover::before {
    opacity: 1;
}

.cyber-link:active {
    transform: translateY(0);
}

/* Animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
    }
}

@keyframes particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cursor-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        border-color: var(--cyber-emerald);
        box-shadow:
            0 0 8px rgba(0, 255, 136, 0.6),
            0 0 15px rgba(0, 255, 136, 0.3),
            inset 0 0 8px rgba(0, 255, 136, 0.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        border-color: var(--cyber-blue);
        box-shadow:
            0 0 12px rgba(0, 212, 255, 0.7),
            0 0 20px rgba(0, 212, 255, 0.4),
            inset 0 0 10px rgba(0, 212, 255, 0.3);
    }
}

@keyframes symbol-glow {
    0% {
        text-shadow:
            0 0 10px var(--cyber-emerald),
            0 0 20px var(--cyber-emerald),
            0 0 30px var(--cyber-emerald),
            0 0 40px var(--cyber-blue);
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        text-shadow:
            0 0 15px var(--cyber-emerald),
            0 0 30px var(--cyber-emerald),
            0 0 45px var(--cyber-emerald),
            0 0 60px var(--cyber-blue),
            0 0 80px rgba(0, 255, 136, 0.8);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* High-Class Work Grid Design */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive grid layout */
@media (min-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.work-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 31, 46, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

.work-item:hover {
    transform: translateY(-8px);
    border-color: var(--cyber-emerald);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 136, 0.2);
}

.work-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.1) 0%, rgba(10, 14, 26, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
    filter: brightness(0.8) contrast(1.2);
}

/* Professional Work Overlay */
.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 26, 0.95) 0%,
        rgba(26, 31, 46, 0.9) 50%,
        rgba(0, 255, 136, 0.1) 100%
    );
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 350px;
}

.work-item:hover .work-info {
    transform: translateY(0);
}

.work-info h3 {
    color: var(--cyber-emerald);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    line-height: 1.3;
}

.work-info p {
    color: var(--cyber-text);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* Professional Work Links */
.work-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.work-link {
    flex: 1;
    max-width: 140px;
    padding: 0.8rem 1.2rem;
    border: 2px solid;
    background: rgba(26, 31, 46, 0.3);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.work-link:hover::before {
    left: 100%;
}

.work-link:first-child {
    border-color: var(--cyber-emerald);
    color: var(--cyber-emerald);
}

.work-link:first-child:hover {
    background: var(--cyber-emerald);
    color: var(--cyber-dark);
    box-shadow:
        0 8px 25px rgba(0, 255, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.work-link:last-child {
    border-color: var(--cyber-blue);
    color: var(--cyber-blue);
}

.work-link:last-child:hover {
    background: var(--cyber-blue);
    color: var(--cyber-dark);
    box-shadow:
        0 8px 25px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes glow {
    0% {
        text-shadow:
            0 0 20px var(--cyber-emerald),
            0 0 40px rgba(0, 255, 136, 0.6);
        transform: scale(1);
    }

    100% {
        text-shadow:
            0 0 30px var(--cyber-emerald),
            0 0 60px rgba(0, 255, 136, 0.9);
        transform: scale(1.05);
    }
}

/* Enhanced entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Work Grid Responsive Design Complete */

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.info-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--cyber-emerald);
    box-shadow: var(--cyber-glow) rgba(0, 255, 136, 0.3);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    font-size: 1.5rem;
}

.info-title {
    color: var(--cyber-text);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.info-link {
    color: var(--cyber-emerald);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-link:hover {
    text-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.info-text {
    color: var(--cyber-text-dim);
}

/* Contact Form */
.terminal-form {
    background: rgba(26, 31, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--cyber-emerald);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--cyber-emerald);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cyber-input,
.cyber-textarea {
    width: 100%;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    padding: 0.75rem;
    color: var(--cyber-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    caret-color: #ff0040;
}

.cyber-input:focus,
.cyber-textarea:focus {
    outline: none;
    border-color: var(--cyber-emerald);
    box-shadow: var(--cyber-glow) rgba(0, 255, 136, 0.3);
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--cyber-emerald);
    color: var(--cyber-emerald);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--cyber-emerald);
    color: var(--cyber-dark);
    box-shadow: var(--cyber-glow) var(--cyber-emerald);
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.status-message.success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--cyber-emerald);
    color: var(--cyber-emerald);
}

.status-message.error {
    background: rgba(255, 0, 64, 0.2);
    border: 1px solid var(--cyber-red);
    color: var(--cyber-red);
}

.hidden {
    display: none;
}

/* Footer */
.cyber-footer {
    background: var(--cyber-slate);
    border-top: 1px solid var(--cyber-emerald);
    padding: 2rem 0;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--cyber-text-dim);
    font-size: 0.9rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--cyber-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--cyber-blue);
    color: var(--cyber-dark);
    box-shadow: var(--cyber-glow) var(--cyber-blue);
}

/* Mobile Navigation Styles */
.nav-menu.active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 400px;
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 0 2rem 0;
    gap: 1.5rem;
    z-index: 1001;
    border-top: 1px solid var(--cyber-emerald);
    border-bottom: 1px solid var(--cyber-emerald);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.nav-menu.active .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    width: 180px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    /* Perfect centering */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.nav-menu.active .nav-link:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--cyber-emerald);
    transform: translateY(-2px);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--cyber-blue);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--cyber-blue);
}



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

/* Responsive Design */
@media (max-width: 768px) {

    html {
        scroll-padding-top: 90px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile status indicator positioning */
    .status-indicator {
        margin-left: auto;
        margin-right: 1.5rem;
        padding: 0.4rem 0.6rem;
        order: 2;
        border: none;
        background: transparent;
    }

    .hamburger {
        order: 3;
        margin-right: 1rem; /* Consistent right margin */
        margin-left: auto; /* Push to right side */
    }

    .nav-container {
        display: flex;
        align-items: center;
    }

    .nav-logo {
        order: 1;
    }

    .status-indicator .status-text {
        font-size: 0.75rem;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .cyber-title {
        font-size: 1.6rem;
    }

    .location-text {
        font-size: 1.3rem;
        margin-top: -1.2rem; /* Much less space above location text */
    }

    .section-title {
        font-size: 1.8rem; /* Reduced from 2rem */
    }

    .section-subtitle {
        font-size: 1rem; /* Reduced from 1.2rem */
    }

    .about-text {
        font-size: 0.9rem; /* Smaller body text */
    }

    .panel-title {
        font-size: 0.9rem; /* Smaller panel titles */
    }

    .nav-logo {
        font-size: 1.3rem; /* Smaller navigation logo */
    }

    .info-card h3 {
        font-size: 1rem; /* Smaller contact card titles */
    }

    .info-card p {
        font-size: 0.9rem; /* Smaller contact card text */
    }

    .cyber-subtitle {
        font-size: 0.95rem; /* Smaller description text */
        line-height: 1.5;
    }

    .hero-buttons .cyber-btn {
        padding: 0.7rem 1.2rem; /* Smaller button padding */
        font-size: 0.9rem; /* Smaller button text */
    }

    /* Contact page mobile optimization */
    .info-title {
        font-size: 0.9rem; /* Smaller contact card titles */
    }

    .info-link {
        font-size: 0.85rem; /* Smaller contact links */
    }

    .info-text {
        font-size: 0.85rem; /* Smaller contact text */
    }

    .form-label {
        font-size: 0.9rem; /* Smaller form labels */
    }

    .cyber-input, .cyber-textarea {
        font-size: 0.85rem; /* Smaller input text */
        padding: 0.6rem; /* Smaller input padding */
    }

    .btn-submit {
        font-size: 0.85rem; /* Smaller submit button */
        padding: 0.7rem 1.2rem;
    }

    /* Footer mobile optimization */
    .footer-text {
        font-size: 0.8rem; /* Smaller footer text */
    }

    .social-link {
        width: 40px; /* Smaller social icons */
        height: 40px;
        font-size: 1rem; /* Smaller icon size */
        padding: 6px;
    }

    .cyber-footer {
        padding: 1.5rem 0; /* Less footer padding */
    }

    .terminal-body {
        padding: 1rem;
    }

    .hero-content {
        padding: 0 1.8rem; /* Closer to original - less width increase */
    }

    .cyber-hero {
        padding-top: 60px; /* Less space between navbar and home container */
    }

    /* Mobile typing animation adjustments */
    .typing-line {
        white-space: nowrap; /* Keep text on one line */
        max-width: 100%; /* Prevent overflow */
        overflow: hidden; /* Hide overflow */
    }

    .typing-text {
        font-size: 1.4rem; /* Much smaller font for mobile */
        white-space: nowrap; /* Keep on one line */
    }

    .typing-cursor {
        font-size: 1.4rem; /* Match text size */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-buttons .cyber-btn {
        width: 100%;
        min-width: auto;
        padding: 1rem;
        font-size: 0.9rem;
        position: relative;
        z-index: 10;
    }

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

    .work-item {
        height: 350px;
    }

    .work-overlay {
        padding: 1.5rem;
    }

    .work-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .work-info p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .work-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .work-link {
        max-width: none;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Tablet responsive design */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-link {
        white-space: nowrap;
        min-width: 90px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }
}

@media (max-width: 1024px) {
    .work-grid {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .work-item {
        height: 380px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Even smaller text for very small screens */
    .hero-content {
        padding: 0 1.3rem; /* Less width increase for small screens */
    }

    .cyber-title {
        font-size: 1.3rem;
    }

    .location-text {
        font-size: 1rem;
        margin-top: -1.5rem; /* Very tight spacing for small screens */
    }

    .typing-text {
        font-size: 1.3rem; /* Good size for profession text */
    }

    .typing-cursor {
        font-size: 1.3rem; /* Match profession text */
    }

    .section-title {
        font-size: 1.5rem; /* Smaller section titles */
    }

    .section-subtitle {
        font-size: 0.9rem; /* Smaller subtitles */
    }

    .about-text {
        font-size: 0.85rem; /* Even smaller body text */
    }

    .panel-title {
        font-size: 0.8rem; /* Compact panel titles */
    }

    .work-info h3 {
        font-size: 1rem; /* Reduced from 1.1rem */
    }

    .work-info p {
        font-size: 0.8rem; /* Reduced from 0.85rem */
    }

    .cyber-subtitle {
        font-size: 0.85rem; /* Even smaller description for small screens */
        line-height: 1.4;
    }

    .hero-buttons .cyber-btn {
        padding: 0.6rem 1rem; /* Compact button padding */
        font-size: 0.8rem; /* Smaller button text */
    }

    /* Contact page small mobile optimization */
    .info-title {
        font-size: 0.8rem; /* Even smaller contact titles */
    }

    .info-link {
        font-size: 0.75rem; /* Compact contact links */
    }

    .info-text {
        font-size: 0.75rem; /* Compact contact text */
    }

    .form-label {
        font-size: 0.8rem; /* Compact form labels */
    }

    .cyber-input, .cyber-textarea {
        font-size: 0.75rem; /* Compact input text */
        padding: 0.5rem; /* Compact input padding */
    }

    .btn-submit {
        font-size: 0.75rem; /* Compact submit button */
        padding: 0.6rem 1rem;
    }

    /* Footer small mobile optimization */
    .footer-text {
        font-size: 0.7rem; /* Very compact footer text */
    }

    .social-link {
        width: 35px; /* Even smaller social icons */
        height: 35px;
        font-size: 0.9rem; /* Compact icon size */
        padding: 5px;
    }

    .social-links {
        gap: 0.7rem; /* Less gap between social icons */
    }

    .cyber-footer {
        padding: 1rem 0; /* Minimal footer padding */
    }

    .work-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .work-item {
        height: 320px;
        margin-bottom: 0.5rem;
    }

    .work-overlay {
        padding: 1rem;
    }

    .work-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .work-info p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .work-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Consistent hamburger positioning for all mobile devices */
@media (max-width: 768px) {
    .hamburger {
        position: relative;
        margin-right: 1rem !important;
        margin-left: 0 !important;
        transform: none !important;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .hamburger {
        margin-right: 0.8rem !important;
    }

    .cyber-hero {
        padding-top: 50px; /* Even less space for small screens */
    }

    .nav-menu.active .nav-link {
        font-size: 1rem; /* Smaller text for small screens */
        padding: 0.7rem 0.8rem;
        width: 160px; /* Slightly smaller button width */
    }
}

/* Very small screens - 386px and below */
@media (max-width: 386px) {
    .hero-content {
        padding: 0 0.7rem; /* Much wider box for very small screens */
    }

    .hamburger {
        margin-right: 0.5rem !important;
    }

    .nav-menu.active .nav-link {
        font-size: 0.9rem; /* Even smaller text for very small screens */
        padding: 0.6rem 0.7rem;
        width: 150px; /* Compact button width */
    }
}
