.binary-zero, .binary-one {
    display: inline-block;
    width: 8px;
    height: 8px;
    line-height: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.binary-zero {
    color: rgba(0, 255, 65, 0.7);
}

.binary-one {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--shadow-color);
}

.flicker {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--shadow-color);
}

@keyframes binaryFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}.data-packet {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    box-shadow: 0 0 8px var(--shadow-color);
    transform: translate(-50%, -50%);
    z-index: 3;
}/* ===== BASE STYLES ===== */
:root {
    --primary-color: #00ff41;      /* Matrix green */
    --secondary-color: #0ff;      /* Cyan */
    --tertiary-color: #ff00ff;     /* Magenta */
    --accent-color: #ff0000;       /* Red */
    --bg-color: #000;              /* Black background */
    --bg-secondary: #111;          /* Slightly lighter black */
    --text-color: #00ff41;         /* Matrix green text */
    --text-secondary: #999;        /* Gray text */
    --border-color: #00ff41;       /* Matrix green borders */
    --shadow-color: rgba(0, 255, 65, 0.5); /* Green glow */
    --font-primary: 'VT323', monospace;
    --font-secondary: 'Press Start 2P', cursive;
    --grid-color: rgba(0, 255, 65, 0.1);   /* Grid lines */
    --warning-color: #ff0000;      /* Red for warnings */
    --success-color: #00ff41;      /* Green for success */
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    position: relative;
    overflow-x: hidden;
}

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

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 10, 5, 0.9),
        rgba(0, 20, 10, 0.7)
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 3;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: normal;
}

h1 {
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    letter-spacing: 2px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    text-shadow: 0 0 10px var(--shadow-color);
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tertiary-color);
    text-shadow: 0 0 8px var(--shadow-color);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tertiary-color);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 5px;
}

.hidden {
    display: none !important;
}

.active {
    display: block !important;
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 255, 0.75),
                -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
                0.025em 0.05em 0 rgba(0, 255, 65, 0.75);
    animation: glitch 1s infinite;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--tertiary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 255, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
                    0.025em 0.05em 0 rgba(0, 255, 65, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 255, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 255, 0.75),
                    0.025em 0.05em 0 rgba(0, 255, 65, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 255, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.05em -0.05em 0 rgba(0, 255, 65, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 255, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.05em -0.05em 0 rgba(0, 255, 65, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 255, 0.75),
                    0.05em 0 0 rgba(0, 255, 255, 0.75),
                    0 -0.05em 0 rgba(0, 255, 65, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 255, 0.75),
                    0.05em 0 0 rgba(0, 255, 255, 0.75),
                    0 -0.05em 0 rgba(0, 255, 65, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 255, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 255, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 65, 0.75);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 44px, 0);
    }
    5% {
        clip: rect(84px, 9999px, 59px, 0);
    }
    10% {
        clip: rect(67px, 9999px, 90px, 0);
    }
    15% {
        clip: rect(19px, 9999px, 23px, 0);
    }
    20% {
        clip: rect(85px, 9999px, 98px, 0);
    }
    25% {
        clip: rect(25px, 9999px, 50px, 0);
    }
    30% {
        clip: rect(77px, 9999px, 93px, 0);
    }
    35% {
        clip: rect(73px, 9999px, 19px, 0);
    }
    40% {
        clip: rect(1px, 9999px, 53px, 0);
    }
    45% {
        clip: rect(60px, 9999px, 63px, 0);
    }
    50% {
        clip: rect(40px, 9999px, 10px, 0);
    }
    55% {
        clip: rect(2px, 9999px, 33px, 0);
    }
    60% {
        clip: rect(35px, 9999px, 7px, 0);
    }
    65% {
        clip: rect(90px, 9999px, 92px, 0);
    }
    70% {
        clip: rect(58px, 9999px, 30px, 0);
    }
    75% {
        clip: rect(42px, 9999px, 25px, 0);
    }
    80% {
        clip: rect(28px, 9999px, 15px, 0);
    }
    85% {
        clip: rect(47px, 9999px, 25px, 0);
    }
    90% {
        clip: rect(83px, 9999px, 38px, 0);
    }
    95% {
        clip: rect(75px, 9999px, 72px, 0);
    }
    100% {
        clip: rect(10px, 9999px, 44px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
    }
    5% {
        clip: rect(93px, 9999px, 53px, 0);
    }
    10% {
        clip: rect(25px, 9999px, 31px, 0);
    }
    15% {
        clip: rect(67px, 9999px, 78px, 0);
    }
    20% {
        clip: rect(33px, 9999px, 82px, 0);
    }
    25% {
        clip: rect(8px, 9999px, 4px, 0);
    }
    30% {
        clip: rect(51px, 9999px, 33px, 0);
    }
    35% {
        clip: rect(95px, 9999px, 90px, 0);
    }
    40% {
        clip: rect(41px, 9999px, 85px, 0);
    }
    45% {
        clip: rect(28px, 9999px, 20px, 0);
    }
    50% {
        clip: rect(59px, 9999px, 31px, 0);
    }
    55% {
        clip: rect(37px, 9999px, 91px, 0);
    }
    60% {
        clip: rect(87px, 9999px, 62px, 0);
    }
    65% {
        clip: rect(23px, 9999px, 46px, 0);
    }
    70% {
        clip: rect(73px, 9999px, 36px, 0);
    }
    75% {
        clip: rect(81px, 9999px, 77px, 0);
    }
    80% {
        clip: rect(19px, 9999px, 45px, 0);
    }
    85% {
        clip: rect(56px, 9999px, 80px, 0);
    }
    90% {
        clip: rect(49px, 9999px, 52px, 0);
    }
    95% {
        clip: rect(32px, 9999px, 60px, 0);
    }
    100% {
        clip: rect(65px, 9999px, 119px, 0);
    }
}

/* ===== BLINKING CURSOR ===== */
.blinking-cursor {
    font-weight: 100;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

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

/* ===== LOGIN SCREEN STYLES ===== */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: auto;
}

.terminal {
    width: 90%;
    max-width: 800px;
    height: auto;
    min-height: 80vh;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 0 20px var(--shadow-color), 
                inset 0 0 10px var(--shadow-color);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
                              var(--tertiary-color), 
                              var(--secondary-color), 
                              var(--primary-color));
    z-index: 3;
}

.terminal-header {
    background-color: var(--bg-secondary);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
}

.terminal-header h1 {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-color);
    animation: blink 2s infinite;
}

.terminal-content {
    padding: 20px;
    position: relative;
    min-height: 400px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 255, 65, 0.1);
    z-index: 2;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.ascii-art {
    margin: 20px 0;
    text-align: center;
    line-height: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    min-height: 220px;
}

.ascii-art pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: var(--primary-color);
    margin: 0;
    white-space: pre;
    text-align: left;
    display: inline-block;
}

#ascii-cube {
    letter-spacing: 0;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 0 5px var(--shadow-color);
}

.login-container {
    padding: 20px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 15, 5, 0.5);
    margin-top: 20px;
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

.input-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.input-container label {
    width: 120px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.terminal-input {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.terminal-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--shadow-color);
    border-color: var(--secondary-color);
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.terminal-btn {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    font-family: var(--font-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.terminal-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
                               var(--primary-color), 
                               transparent, 
                               var(--secondary-color), 
                               transparent, 
                               var(--tertiary-color));
    z-index: -1;
    animation: glowing 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-btn:hover::before {
    opacity: 1;
}

.terminal-btn:hover {
    background-color: var(--bg-color);
    box-shadow: 0 0 10px var(--shadow-color);
    transform: translateY(-2px);
}

.terminal-btn.small {
    font-size: 0.8rem;
    padding: 6px 10px;
}

@keyframes glowing {
    0% { background-position: 0% 0%; }
    50% { background-position: 400% 0%; }
    100% { background-position: 0% 0%; }
}

#login-message {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--warning-color);
    text-align: center;
}

.login-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.6;
}

/* ===== MAIN CONTENT STYLES ===== */
header {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 5px 0;
}

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

.nav-links li:hover::after,
.nav-links li.active::after {
    width: 100%;
}

.nav-links li:hover {
    color: var(--secondary-color);
}

.nav-links li.active {
    color: var(--primary-color);
}

#logout-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

main {
    padding: 20px 0;
}

.section {
    display: none;
    min-height: 100vh;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.status-indicator {
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.status {
    margin-right: 5px;
}

/* ===== GRID LAYOUTS ===== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    border: 1px solid var(--border-color);
    background-color: rgba(0, 15, 5, 0.3);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
                              var(--tertiary-color), 
                              var(--secondary-color), 
                              var(--primary-color));
}

/* ===== PROFILE SECTION ===== */
/* Matrix Text Rain Animation Styles */
.profile-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-intro {
    flex: 3;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 15, 5, 0.3);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--shadow-color);
}

.profile-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
                              var(--tertiary-color), 
                              var(--secondary-color), 
                              var(--primary-color));
}

.matrix-animation {
    flex: 2;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px var(--shadow-color);
}

.matrix-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
                              var(--tertiary-color), 
                              var(--secondary-color), 
                              var(--primary-color));
    z-index: 2;
}

.matrix-rain {
    color: var(--primary-color);
    font-family: "Courier New", monospace;
    font-size: 1.2em;
    position: absolute;
    user-select: none;
    pointer-events: none;
    text-shadow: 0 0 5px var(--shadow-color);
    white-space: pre;
}

.matrix-rain-head {
    color: white;
    text-shadow: 0 0 8px white, 0 0 5px var(--shadow-color);
}

/* Add scanning effect to matrix */
.matrix-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 255, 65, 0.1);
    animation: matrix-scan 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes matrix-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Add pulsing glow effect */
@keyframes matrix-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.5); }
}

.matrix-animation {
    animation: matrix-pulse 4s infinite;
}

/* ===== TECHNICAL PROFICIENCY SECTION ===== */
.skill-hexagon-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

.skill-hexagon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 15px;
    position: relative;
    z-index: 3;
}

.hexagon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-shape {
    width: 120px;
    height: 140px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(145deg, 
                rgba(0, 255, 65, 0.05), 
                rgba(0, 255, 255, 0.05), 
                rgba(255, 0, 255, 0.05));
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.5);
    opacity: 0.5;
}

.hexagon-shape.active {
    transform: scale(1);
    opacity: 1;
}

.hexagon-shape:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, 
                rgba(0, 255, 65, 0.2), 
                rgba(0, 255, 255, 0.2), 
                rgba(255, 0, 255, 0.2));
    box-shadow: 0 0 15px var(--shadow-color);
}

.hexagon-shape:before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    clip-path: polygon(50% 2%, 98% 26%, 98% 74%, 50% 98%, 2% 74%, 2% 26%);
    background-color: var(--bg-color);
    z-index: -1;
}

.hexagon-content {
    text-align: center;
    z-index: 2;
}

.hexagon-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.hexagon-level {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.tech-node-graph {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.graph-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--shadow-color);
}

.central-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 15px var(--shadow-color);
    animation: pulse 2s infinite;
}

.node-1 { top: 20%; left: 30%; }
.node-2 { top: 20%; left: 70%; }
.node-3 { top: 50%; left: 85%; }
.node-4 { top: 80%; left: 70%; }
.node-5 { top: 80%; left: 30%; }
.node-6 { top: 50%; left: 15%; }

.graph-line {
    position: absolute;
    background-color: var(--border-color);
    opacity: 0.3;
    z-index: 0;
    transform-origin: 0 0;
}

.line-1, .line-2, .line-3, .line-4, .line-5, .line-6 {
    height: 1px;
    top: 50%;
    left: 50%;
    animation: linePulse 4s infinite alternate;
}

.line-1 {
    width: calc(sqrt(pow(30% - 50%, 2) + pow(20% - 50%, 2)));
    transform: rotate(calc(atan2(20% - 50%, 30% - 50%) * 180 / 3.14159deg));
    animation-delay: 0.2s;
}

.line-2 {
    width: calc(sqrt(pow(70% - 50%, 2) + pow(20% - 50%, 2)));
    transform: rotate(calc(atan2(20% - 50%, 70% - 50%) * 180 / 3.14159deg));
    animation-delay: 0.4s;
}

.line-3 {
    width: 35%;
    transform: rotate(0deg);
    animation-delay: 0.6s;
}

.line-4 {
    width: calc(sqrt(pow(70% - 50%, 2) + pow(80% - 50%, 2)));
    transform: rotate(calc(atan2(80% - 50%, 70% - 50%) * 180 / 3.14159deg));
    animation-delay: 0.8s;
}

.line-5 {
    width: calc(sqrt(pow(30% - 50%, 2) + pow(80% - 50%, 2)));
    transform: rotate(calc(atan2(80% - 50%, 30% - 50%) * 180 / 3.14159deg));
    animation-delay: 1s;
}

.line-6 {
    width: 35%;
    transform: rotate(180deg);
    animation-delay: 1.2s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.6; }
}

@keyframes linePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -40px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    top: 5px;
    left: -200px;
    width: 140px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.timeline-content {
    border: 1px solid var(--border-color);
    padding: 20px;
    background-color: rgba(0, 15, 5, 0.3);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--border-color);
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--secondary-color);
}

/* ===== EDUCATION SECTION ===== */
.education-item {
    margin-bottom: 30px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.education-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.education-tech {
    margin-top: 15px;
}

.education-tech h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

.tags span {
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-category h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-item {
    border: 1px solid var(--border-color);
    padding: 15px;
    background-color: rgba(0, 15, 5, 0.3);
    position: relative;
    overflow: hidden;
}

.skill-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, var(--primary-color) 50%);
}

.skill-header {
    margin-bottom: 15px;
}

.skill-header h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.skill-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    background-color: rgba(0, 15, 5, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
                              var(--tertiary-color), 
                              var(--secondary-color), 
                              var(--primary-color));
}

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

.project-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.project-status {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.project-tech h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .timeline-date {
        position: relative;
        left: 0;
        top: 0;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-indicator {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links {
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin-bottom: 10px;
    }
    
    .grid-container, 
    .skill-grid, 
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline-item::before {
        left: -30px;
        width: 15px;
        height: 15px;
    }
    
    .profile-content {
        flex-direction: column;
    }
    
    .matrix-animation {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .input-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-container label {
        margin-bottom: 5px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
    
    .ascii-art pre {
        font-size: 8px;
    }
}

/* ===== THEME TOGGLE ===== */
body.dark-theme {
    --primary-color: #00ff41;      /* Matrix green */
    --secondary-color: #0ff;      /* Cyan */
    --tertiary-color: #ff00ff;     /* Magenta */
    --bg-color: #000;              /* Black background */
    --bg-secondary: #111;          /* Slightly lighter black */
    --text-color: #00ff41;         /* Matrix green text */
    --text-secondary: #999;        /* Gray text */
    --border-color: #00ff41;       /* Matrix green borders */
    --shadow-color: rgba(0, 255, 65, 0.5); /* Green glow */
}

body.light-theme {
    --primary-color: #008f11;       /* Darker green */
    --secondary-color: #0088a3;     /* Darker cyan */
    --tertiary-color: #b100b1;      /* Darker magenta */
    --bg-color: #f0f0f0;            /* Light gray background */
    --bg-secondary: #e0e0e0;        /* Slightly darker gray */
    --text-color: #008f11;          /* Dark green text */
    --text-secondary: #666;         /* Dark gray text */
    --border-color: #008f11;        /* Dark green borders */
    --shadow-color: rgba(0, 143, 17, 0.3); /* Subtle green glow */
}

/* Additional Cybersecurity themed elements */
.encrypted-text {
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--primary-color);
    user-select: none;
}

.encrypted-text:hover {
    text-shadow: 0 0 5px var(--shadow-color);
}

.binary-decoration {
    position: absolute;
    font-family: monospace;
    color: rgba(0, 255, 65, 0.1);
    z-index: 0;
    pointer-events: none;
    font-size: 0.8rem;
    overflow: hidden;
    user-select: none;
}