* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a2e;
    --tertiary-bg: #16213e;
    --neon-green: #00ff41;
    --electric-blue: #00d4ff;
    --accent-purple: #8b5cf6;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1a9;
    --border-color: #3f3f46;
    --glow-color: rgba(0, 255, 65, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--neon-green), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--glow-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--tertiary-bg) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-animation {
    display: inline-block;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--glow-color);
    border-right: 3px solid var(--neon-green);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 4s steps(50, end), blink 0.7s infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 49% {
        border-right-color: var(--neon-green);
    }
    50%, 100% {
        border-right-color: transparent;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--neon-green), var(--electric-blue));
    color: var(--primary-bg);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.cta-button:active::before {
    width: 300px;
    height: 300px;
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--glow-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--electric-blue));
    border-radius: 2px;
}

/* About Section */
#about {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.profile-picture-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
}

.profile-picture:hover {
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.profile-border {
    position: absolute;
    width: 270px;
    height: 270px;
    border: 2px solid var(--electric-blue);
    border-radius: 10px;
    animation: rotateBorder 6s linear infinite;
}

@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--electric-blue);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    padding: 1rem;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--neon-green);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateX(10px);
}

.highlight-item strong {
    color: var(--neon-green);
}

/* Skills Section */
#skills {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--tertiary-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05);
    transform: translateY(-5px);
}

.skill-card:hover::before {
    left: 100%;
}

.skill-name {
    font-size: 1.2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--electric-blue));
    border-radius: 4px;
    animation: fillProgress 2s ease-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width, 70%);
    }
}

.skill-level {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Projects Section */
#projects {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--tertiary-bg) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--tertiary-bg), var(--secondary-bg));
    border-bottom: 1px solid var(--border-color);
}

.project-title {
    font-size: 1.3rem;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--tertiary-bg);
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: var(--electric-blue);
    color: var(--primary-bg);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.project-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-10px);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.contact-container {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-green);
    font-weight: bold;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    background: var(--primary-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--neon-green), var(--electric-blue));
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    color: var(--electric-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: invert(1) brightness(1.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    transform: scale(1.1);
}

.social-link:hover .social-icon {
    filter: invert(1) brightness(1.5) drop-shadow(0 0 8px var(--neon-green));
}

/* Footer */
footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-text span {
    color: var(--neon-green);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .hero {
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
        min-height: 60px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
    }

    .profile-border {
        width: 220px;
        height: 220px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 769px) {
    .hero-content {
        max-width: 1200px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 1rem;
        min-height: 40px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .skill-card {
        padding: 1rem;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .profile-border {
        width: 170px;
        height: 170px;
    }
}
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.form-status.error {
    display: block;
    background: rgba(255, 65, 65, 0.2);
    border: 1px solid #ff4141;
    color: #ff4141;
}

.form-status.loading {
    display: block;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
}