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

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #000 !important;
    color: #00ff88;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Force dark background in all color schemes */
@media (prefers-color-scheme: dark) {
    body {
        background: #000 !important;
    }
}

/* Enhanced animated background with more code */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.code-line {
    position: absolute;
    color: #00ff88;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0.3;
    font-weight: 300;
}

.code-line.bright { 
    opacity: 0.8; 
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.code-line.dim { 
    opacity: 0.15; 
    color: #004d2d;
}

/* Remove vertical matrix animation - only horizontal code */
.matrix-column {
    display: none;
}

@keyframes matrixFall {
    0% { transform: translateY(-100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Floating horizontal code */
@keyframes floatLeft {
    0% { transform: translateX(100vw) translateY(0px); }
    100% { transform: translateX(-100vw) translateY(-20px); }
}

@keyframes floatRight {
    0% { transform: translateX(-100vw) translateY(0px); }
    100% { transform: translateX(100vw) translateY(20px); }
}

/* Glowing grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

.container {
    max-width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Enhanced header with more visual impact */
header {
    padding: 80px 0 20px;
    text-align: center;
    position: relative;
}

.hero-container {
    position: relative;
    margin: 10px 0;
}

.glitch-effect {
    position: relative;
    display: inline-block;
}

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

.glitch-effect::before {
    color: #ff0080;
    animation: glitch1 2s infinite;
    z-index: -1;
}

.glitch-effect::after {
    color: #00ffff;
    animation: glitch2 2s infinite;
    z-index: -1;
}

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

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

.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    border: 3px solid #00ff88;
    border-style: double;
    margin: 10px 0;
    box-shadow: 
        0 0 0 2px rgba(0, 0, 0, 0.8),
        0 0 0 4px #00ff88,
        inset 0 0 30px rgba(0, 255, 136, 0.1);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}

.dot.red { 
    background: radial-gradient(circle, #ff6b6b, #ff5757);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}
.dot.yellow { 
    background: radial-gradient(circle, #ffd93d, #ffcd3c);
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}
.dot.green { 
    background: radial-gradient(circle, #6bcf7f, #51cf66);
    box-shadow: 0 0 10px rgba(107, 207, 127, 0.5);
}

.terminal-content {
    padding: 25px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0 0 10px 10px;
}

.typing-animation {
    border-right: 3px solid #00ff88;
    animation: blink 1s infinite;
    padding-right: 5px;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #00ff88; }
}

h1 {
    font-size: 3.5em;
    margin: 30px 0 15px;
    background: linear-gradient(45deg, #00ff88, #00ffff, #0099ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

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

.subtitle {
    font-size: 1.4em;
    color: #888;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* About section */
.about {
    margin: 60px 0;
    text-align: center;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.about-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #ccc;
    position: relative;
    z-index: 2;
}

/* Enhanced contact form */
.contact {
    margin: 60px 0;
}

.contact .terminal-window {
    max-width: 80%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #00ff88;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 
        0 0 0 3px rgba(0, 255, 136, 0.2),
        inset 0 0 10px rgba(0, 255, 136, 0.1),
        0 0 20px rgba(0, 255, 136, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.btn {
    background: linear-gradient(45deg, #00ff88, #00ffff, #0099ff);
    background-size: 300% 300%;
    color: #000;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: gradientShift 3s ease-in-out infinite alternate;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    color: #666;
    border-top: 1px solid #333;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-links a {
    color: #00ff88;
    text-decoration: none;
    padding: 12px 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.social-links a:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2.5em; }
    .subtitle { font-size: 1.1em; }
    .about-content { padding: 20px; }
    .terminal-content { padding: 20px; font-size: 14px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    .social-links { flex-wrap: wrap; gap: 10px; }
    .social-links a { padding: 10px 15px; font-size: 0.9em; }
}
