html,
body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #f4f4f4;
    height: auto;
    overflow: auto;
}

body {
    padding: 20px;
}

.container {
    width: 90%;
    max-width: 800px;
    background: #333;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    border-radius: 10px;
    animation: fadeIn 2s ease-in-out;
    margin: 0 auto 50px auto;
    min-height: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    animation: moveShape 10s infinite alternate;
}

.shape1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.shape2 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: -50px;
}

@keyframes moveShape {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

header {
    padding-bottom: 20px;
    border-bottom: 1px solid #555;
}

header h1 {
    margin: 10px 0;
    font-size: 2.5em;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 2px rgb(30, 255, 0), 0 0 4px rgb(0, 255, 13), 0 0 6px rgb(0, 255, 13), 0 0 8px rgb(9, 255, 0);
    }

    to {
        text-shadow: 0 0 4px rgb(0, 255, 21), 0 0 6px rgb(51, 255, 0), 0 0 8px rgb(0, 255, 42), 0 0 10px rgb(0, 255, 13);
    }
}

header p {
    margin: 5px 0 0;
    color: #bbb;
}

.profile-picture {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #555;
    animation: rotate 10s infinite linear;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

section {
    margin: 20px 0;
}

section h2 {
    margin-bottom: 10px;
    color: rgb(74, 214, 45);
    font-size: 1.8em;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

section h3 {
    margin-bottom: 10px;
    color: rgb(74, 214, 45);
    font-size: 1.2em;
}

section ul {
    list-style-type: none;
    padding: 0;
}

section ul li {
    background: #252525;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #2b2b2b;
    transition: background 0.3s ease;
}

section ul li:hover {
    background: #181818;
}

footer {
    padding: 10px 0;
    margin-top: 20px;
    border-top: 1px solid #555;
    color: #bbb;
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #bbb;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* Enhanced Profile Picture */
.profile-picture-small {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #555;
    animation: pulse 2s infinite;
}

.profile-picture-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* Project Grid and Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.project-card.featured {
    grid-column: span 2;
    background: linear-gradient(145deg, #1a3a1a, #2a4a2a);
}

.project-image {
    text-align: center;
    margin-bottom: 15px;
}

.project-placeholder {
    font-size: 3em;
    background: linear-gradient(45deg, #00ff00, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

.project-content h3 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff00, #0080ff);
    color: white;
}

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

.btn-secondary {
    background: #444;
    color: #fff;
    border: 1px solid #666;
}

.btn-secondary:hover {
    background: #555;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
}

.btn-outline:hover {
    background: #00ff00;
    color: #1a1a1a;
}

/* Timeline Styles */
.achievement-timeline {
    position: relative;
    padding-left: 30px;
}

.achievement-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ff00, #0080ff);
}

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

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
}

.timeline-content h3 {
    color: #00ff00;
    margin-bottom: 5px;
}

.timeline-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Interactive Demo Styles */
.demo-container {
    text-align: center;
    padding: 20px;
}

.code-editor {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.editor-header {
    background: #2d2d30;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-dot.red {
    background: #ff5f56;
}

.editor-dot.yellow {
    background: #ffbd2e;
}

.editor-dot.green {
    background: #27ca3f;
}

.editor-title {
    margin-left: auto;
    color: #ccc;
    font-size: 0.9em;
}

.code-content {
    padding: 20px;
    text-align: left;
    font-family: 'Courier New', monospace;
    position: relative;
}

.code-content pre {
    color: #f8f8f2;
    margin: 0;
    white-space: pre-wrap;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
}

.contact-form button {
    background: linear-gradient(45deg, #00ff00, #0080ff);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

/* Skill Bars */
.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #252525;
    margin-bottom: 10px;
    border-radius: 8px;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: #444;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #0080ff);
    width: 0;
    transition: width 1s ease;
}

.skill-percent {
    font-size: 0.9em;
    color: #00ff00;
    min-width: 40px;
}

/* Contact CTA Section */
.contact-cta {
    text-align: center;
    background: linear-gradient(145deg, rgba(0, 255, 0, 0.1), rgba(0, 128, 255, 0.1));
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Additional shape for portfolio page */
.shape3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    background: rgba(0, 128, 255, 0.15);
    animation: moveShape 15s infinite alternate;
}

/* Theme toggle button */
.theme-toggle {
    transition: all 0.3s ease;
    font-weight: bold;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Particle animation */
.particle {
    animation: float 3s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

/* Enhanced responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    section h2 {
        font-size: 1.5em;
    }

    section h3 {
        font-size: 1em;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .navigation {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .achievement-timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -38px;
    }
}