:root {
    --primary-color: #00ddeb;
    --secondary-color: #1a1a3d;
    --light-color: #e0f7ff;
    --dark-color: #0d0d2b;
    --accent-color: #ff007a;
    --neon-glow: #00ddeb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--dark-color);
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.neon-btn {
    background: transparent;
    color: var(--neon-glow);
    border: 2px solid var(--neon-glow);
    box-shadow: 0 0 10px var(--neon-glow), 0 0 20px var(--neon-glow);
    text-transform: uppercase;
}

.neon-btn:hover {
    background: var(--neon-glow);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--neon-glow), 0 0 30px var(--neon-glow);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--light-color);
    position: relative;
    text-shadow: 0 0 10px var(--neon-glow);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--neon-glow);
    margin: 15px auto;
    box-shadow: 0 0 10px var(--neon-glow);
}

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--dark-color);
}

/* Navigation */
nav {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 221, 235, 0.2), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-glow);
    box-shadow: 0 0 20px var(--neon-glow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    animation: gradientShift 10s ease infinite, navPulse 4s infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes navPulse {
    0% { box-shadow: 0 0 15px var(--neon-glow); }
    50% { box-shadow: 0 0 30px var(--neon-glow); }
    100% { box-shadow: 0 0 15px var(--neon-glow); }
}

nav.scrolled {
    box-shadow: 0 0 30px var(--neon-glow);
}

#particles-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #00ddeb, #ff007a) border-box;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    box-shadow: 0 0 15px var(--neon-glow);
    animation: neonPulse 2s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-profile-img:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 25px var(--neon-glow), 0 0 40px var(--accent-color);
}

.logo-text {
    margin-left: 15px; /* Space between image and name */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-glow);
    text-shadow: 0 0 15px var(--neon-glow), 0 0 30px var(--accent-color);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.1) rotate(-5deg);
    text-shadow: 0 0 20px var(--neon-glow), 0 0 50px var(--accent-color);
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 10px var(--neon-glow); }
    50% { box-shadow: 0 0 20px var(--neon-glow); }
    100% { box-shadow: 0 0 10px var(--neon-glow); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 5px 0;
    color: var(--light-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--neon-glow);
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    transform: scale(1.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-glow);
    transition: width 0.5s ease;
    box-shadow: 0 0 5px var(--neon-glow);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger:hover {
    filter: brightness(1.5);
    box-shadow: 0 0 15px var(--neon-glow);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neon-glow);
    margin: 5px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-glow);
}

.hamburger.active {
    transform: rotate(90deg);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--light-color);
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in;
}

.glitch {
    position: relative;
    color: var(--neon-glow);
    text-shadow: 0 0 15px var(--neon-glow);
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-color);
    animation: glitch 0.3s infinite;
}

.glitch:hover::after {
    left: -4px;
    color: #ff00ff;
    animation: glitch 0.3s infinite reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-4px, 4px); }
    40% { transform: translate(-4px, -4px); }
    60% { transform: translate(4px, 4px); }
    80% { transform: translate(4px, -4px); }
    100% { transform: translate(0); }
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 0 5px var(--neon-glow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.5);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
}

.about-profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--neon-glow);
    box-shadow: 0 0 20px var(--neon-glow);
    animation: neonPulse 2s infinite;
    transition: transform 0.3s ease;
}

.about-profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-glow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 0 0 5px var(--neon-glow);
}

.skills {
    margin: 30px 0;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    list-style: none;
}

.skills li {
    background: rgba(0, 221, 235, 0.1);
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--neon-glow);
    color: var(--light-color);
}

.skills li:hover {
    background: var(--neon-glow);
    color: var(--dark-color);
    box-shadow: 0 0 10px var(--neon-glow);
}

/* Work Section */
.work {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.5);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--neon-glow);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(80%);
    transition: filter 0.3s ease;
}

.project-card:hover img {
    filter: brightness(100%);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--light-color);
    text-shadow: 0 0 5px var(--neon-glow);
}

.project-info p {
    margin-bottom: 15px;
    color: var(--light-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.5);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 0 0 5px var(--neon-glow);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.neon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--neon-glow);
    border: 2px solid var(--neon-glow);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-glow);
}

.neon-icon:hover {
    background: var(--neon-glow);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--neon-glow);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--neon-glow);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 -2px 10px var(--neon-glow);
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--neon-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 0 10px var(--neon-glow);
    transition: transform 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.5s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger.active {
        transform: rotate(90deg);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .nav-profile-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
        margin-left: 10px; /* Adjusted spacing for mobile */
    }

    .about-profile-img {
        width: 200px;
        height: 200px;
    }
}
/* Add this to your existing CSS */
.form-feedback {
    margin-top: 10px;
    color: var(--light-color);
    text-align: center;
    font-size: 1rem;
}

.form-feedback.success {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.form-feedback.error {
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}
