/* styles.css */
:root {
    --primary-color: #0ff;
    --secondary-color: #f0f;
    --accent-color: #ff0;
    --background-color: #000;
    --card-bg: rgba(0, 0, 0, 0.8);
    --text-color: #fff;
    --border-color: #0ff;
    --glow-color: 0 0 10px #0ff, 0 0 20px #0ff;
}

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

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 20%);
    z-index: -2;
}

/* Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 255, 255, 0) 0%,
        rgba(0, 255, 255, 0.05) 10%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 255, 255, 0.05) 90%,
        rgba(0, 255, 255, 0) 100%
    );
    background-size: 100% 10px;
    animation: scanline 10s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

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

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

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

/* Terminal navigation */
.terminal-nav {
    margin-bottom: 40px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.terminal-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.terminal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.terminal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    transform: scale(1.1);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.terminal-link:hover {
    text-shadow: var(--glow-color);
}

.terminal-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 40px 0;
}

.neon-text-container {
    margin-bottom: 30px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: var(--glow-color);
    position: relative;
    display: inline-block;
}

/* Glitch effect for the title */
.glitch {
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.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(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

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

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(1px, 9999px, 83px, 0); }
    90% { clip: rect(71px, 9999px, 14px, 0); }
    95% { clip: rect(2px, 9999px, 35px, 0); }
    100% { clip: rect(37px, 9999px, 20px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(2deg); }
    20% { transform: skew(0deg); }
    30% { transform: skew(-2deg); }
    40% { transform: skew(0deg); }
    50% { transform: skew(1deg); }
    60% { transform: skew(0deg); }
    70% { transform: skew(-1deg); }
    80% { transform: skew(0deg); }
    90% { transform: skew(2deg); }
    100% { transform: skew(0deg); }
}

/* Typewriter effect */
.typewriter {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
    overflow: hidden;
    border-right: .15em solid var(--accent-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    width: 0;
}

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

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

/* Matrix rain effect */
.matrix-rain {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(0, 255, 0, 0.7);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    overflow: hidden;
    white-space: nowrap;
    animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Terminal styles */
.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 10px;
}

.terminal-command {
    color: var(--accent-color);
}

.terminal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.terminal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.terminal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--primary-color);
    position: relative;
    display: inline-block;
}

.terminal-content h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.profile-card {
    text-align: center;
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-color);
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.profile-icon {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: var(--glow-color);
}

.developer-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 10px;
}

.bio-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: var(--glow-color);
}

.skill-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-card p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

.project-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%);
    animation: slide 3s infinite;
}

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

.preview-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: var(--glow-color);
    z-index: 1;
}

.project-info {
    padding: 20px;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-description {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

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

.project-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.contact-card:hover::before {
    transform: translateX(100%);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: var(--glow-color);
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.contact-card p {
    color: #ccc;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-card:hover .card-footer {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.card-footer i {
    transition: transform 0.3s ease;
}

.contact-card:hover .card-footer i {
    transform: translateX(5px);
}

/* Terminal input */
.terminal-input {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.terminal-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    padding: 5px 10px;
    outline: none;
}

.terminal-input-field::placeholder {
    color: #666;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
}

.footer-logo {
    text-align: center;
}

.glitch-inline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-color);
    position: relative;
    display: inline-block;
    margin: 0 10px;
}

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

.glitch-inline::before {
    left: 1px;
    text-shadow: -1px 0 var(--secondary-color);
    clip: rect(10px, 100px, 20px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-inline::after {
    left: -1px;
    text-shadow: -1px 0 var(--primary-color);
    clip: rect(10px, 100px, 20px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

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

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-shadow: var(--glow-color);
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: #999;
    margin-bottom: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 10px #0f0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

/* Responsive design */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card {
        margin-bottom: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .terminal-nav ul {
        gap: 10px;
        justify-content: space-around;
    }
    
    .terminal-link {
        font-size: 0.9rem;
        padding: 3px 5px;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}