/* Global Styles */
:root {
    --neon-green: #39ff14;
    --neon-blue: #4d4dff;
    --neon-pink: #ff00ff;
    --light-gray: #cccccc;
    --dark-gray: #121212;
    --terminal-border: #333333;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');
}

body {
    font-family: 'Courier New', monospace;
    background-color: black;
    color: var(--light-gray);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
    object-fit: cover;
    animation: logoPulse 2s infinite alternate;
}

@keyframes logoPulse {
    0% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(57, 255, 20, 0.7), 0 0 30px rgba(57, 255, 20, 0.5);
    }
}

/* Text gradient and glow effects */
.neon-text {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green), 
                0 0 10px var(--neon-green), 
                0 0 20px var(--neon-green);
    animation: pulse 2s infinite alternate;
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

/* Animation keyframes */
@keyframes pulse {
    0% {
        text-shadow: 0 0 5px var(--neon-green), 
                    0 0 10px var(--neon-green);
    }
    100% {
        text-shadow: 0 0 5px var(--neon-green), 
                    0 0 10px var(--neon-green), 
                    0 0 15px var(--neon-green), 
                    0 0 20px var(--neon-green);
    }
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0px var(--neon-green);
        border-color: rgba(57, 255, 20, 0.5);
    }
    100% {
        box-shadow: 0 0 10px var(--neon-green);
        border-color: var(--neon-green);
    }
}

@keyframes rotatingBorder {
    0% {
        border-image: linear-gradient(0deg, var(--neon-green), var(--neon-blue)) 1;
    }
    25% {
        border-image: linear-gradient(90deg, var(--neon-green), var(--neon-blue)) 1;
    }
    50% {
        border-image: linear-gradient(180deg, var(--neon-green), var(--neon-blue)) 1;
    }
    75% {
        border-image: linear-gradient(270deg, var(--neon-green), var(--neon-blue)) 1;
    }
    100% {
        border-image: linear-gradient(360deg, var(--neon-green), var(--neon-blue)) 1;
    }
}

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

/* Terminal-like boxes */
.terminal-box {
    border: 1px solid var(--terminal-border);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.terminal-box:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    animation: borderPulse 1.5s infinite alternate;
}

.terminal-box::before {
    content: ">";
    position: absolute;
    left: 10px;
    top: -12px;
    background-color: black;
    padding: 0 5px;
    color: var(--neon-green);
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-green);
}

.terminal-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0px,
        rgba(0, 0, 0, 0.2) 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0.1;
    animation: scanLine 8s linear infinite;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--neon-green);
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite alternate;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--neon-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--neon-green);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 3px var(--neon-green);
}

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

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

a:hover {
    color: white;
    text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
}

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

/* Navigation */
nav {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--neon-green);
    box-shadow: 0 2px 10px rgba(57, 255, 20, 0.2);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
    position: relative;
    overflow: hidden;
}

nav a {
    padding: 5px 10px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    transform: translateY(-2px);
}

nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 5px var(--neon-green);
}

nav a:hover::before {
    transform: scaleX(1);
}

/* Home Section */
#home {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, black 70%);
    z-index: -1;
}

.title {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 20px;
    text-shadow: 0 0 3px var(--light-gray);
}

/* Typing animation */
.typing-container {
    display: inline-block;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-green);
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
    margin: 0 auto;
}

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

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

/* About Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(57, 255, 20, 0.1);
    transform: translateX(5px);
}

.contact-item::before {
    content: "■";
    color: var(--neon-green);
    margin-right: 10px;
    font-size: 0.8rem;
    text-shadow: 0 0 5px var(--neon-green);
}

/* Work Experience */
.job {
    margin-bottom: 35px;
    padding: 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-image: linear-gradient(to bottom, var(--neon-green), transparent) 1;
}

.job:hover {
    background-color: rgba(57, 255, 20, 0.05);
    border-image: linear-gradient(to bottom, var(--neon-green), var(--neon-blue)) 1;
    animation: rotatingBorder 3s linear infinite;
}

.job-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.job-title {
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--neon-green);
}

.job-date {
    color: var(--light-gray);
    font-family: monospace;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: rgba(57, 255, 20, 0.1);
}

.job-company {
    font-style: italic;
    margin-bottom: 5px;
}

.job-description {
    margin-left: 20px;
}

.job-description li {
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.job-description li:hover {
    transform: translateX(5px);
    color: white;
}

.job-description li::before {
    content: "▹";
    position: absolute;
    left: -20px;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-category {
    margin-bottom: 20px;
}

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

.skill-item {
    background-color: rgba(57, 255, 20, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    border-left: 3px solid var(--neon-green);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(57, 255, 20, 0.2);
    top: 0;
    left: -100%;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(57, 255, 20, 0.3);
    color: white;
    text-shadow: 0 0 2px white;
}

.skill-item:hover::before {
    left: 0;
}

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

.project-card {
    border: 1px solid var(--terminal-border);
    padding: 20px;
    border-radius: 5px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(57, 255, 20, 0.05));
    transition: all 0.5s ease;
    z-index: -1;
}

.project-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
    transform: translateY(-5px);
}

.project-card:hover::before {
    top: 0;
}

.project-tech {
    font-style: italic;
    color: var(--light-gray);
    margin: 10px 0;
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(57, 255, 20, 0.1);
    border-radius: 3px;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    padding: 20px;
    border-left: 3px solid var(--neon-green);
    background-color: rgba(57, 255, 20, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(57, 255, 20, 0.5), transparent);
    transform: skewX(-30deg);
    animation: shine 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.2);
    background-color: rgba(57, 255, 20, 0.1);
}

.cert-card:hover::after {
    opacity: 1;
}

@keyframes shine {
    0% {
        left: -150px;
    }
    100% {
        left: 100%;
    }
}

.cert-issuer {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--neon-green);
}

.cert-date {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--neon-green);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--neon-green), transparent);
    animation: borderPulse 2s infinite alternate;
}

/* Matrix rain effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

/* Loading bar animation */
.loading-bar {
    height: 3px;
    width: 0;
    background: linear-gradient(to right, var(--neon-green), var(--neon-blue));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

.glitch-effect {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }
    2% {
        transform: translate(-3px, 2px);
        text-shadow: 2px 0 var(--neon-green);
    }
    3% {
        transform: translate(3px, -2px);
        text-shadow: -2px 0 var(--neon-blue);
    }
    5% {
        transform: translate(0);
        text-shadow: none;
    }
    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .project-card,
    .cert-card {
        padding: 15px;
    }

    .logo-img {
        width: 120px;
        height: 120px;
    }
}