@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--dark-bg) 100%);
}

.intro-animation {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    z-index: 2;
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards;
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease forwards 0.5s;
    color: #888;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav {
    position: relative;
    margin-top: 2rem;
    width: 100%;
    padding: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
    background: transparent;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--cyber-gradient);
    box-shadow: 0 0 10px var(--neon-blue);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Portfolio Section Styles */
#portfolio {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(10, 10, 10, 0.8)
    );
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--neon-blue);
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portfolio-overlay p {
    color: #888;
    font-size: 1rem;
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px var(--neon-pink),
                0 0 40px var(--neon-pink);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Add responsive styles */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: flex;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.close-lightbox {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: #ff3366;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    max-width: 600px;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lightbox-caption p {
    color: #888;
}

/* About Section Styles */
#about {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    color: white;
    text-shadow: 0 0 10px var(--neon-blue),
                 0 0 20px var(--neon-blue),
                 0 0 40px var(--neon-blue);
    animation: titlePulse 2s infinite;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--neon-blue),
                    0 0 20px var(--neon-blue),
                    0 0 40px var(--neon-blue);
    }
    50% {
        text-shadow: 0 0 15px var(--neon-blue),
                    0 0 30px var(--neon-blue),
                    0 0 60px var(--neon-blue);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px var(--neon-blue);
    border: 2px solid var(--neon-blue);
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(255, 51, 102, 0.3);
}

.profile-image-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
}

.profile-image-container:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-blue),
                0 0 50px var(--neon-blue);
}

.about-text {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 1s ease forwards 0.5s;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    list-style: none;
}

.skills-list li {
    background: rgba(255, 51, 102, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
    font-size: 0.9rem;
    color: #ff3366;
    transition: all 0.3s ease;
}

.skills-list li:hover {
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-2px);
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px var(--neon-pink);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--cyber-gradient);
    color: white;
    box-shadow: 0 0 20px var(--neon-pink),
                0 0 40px var(--neon-pink);
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contact Info Styles */
.contact-info {
    margin-top: 1rem;
    padding: 2rem;
    background: rgba(255, 51, 102, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 102, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #ff3366;
    font-size: 1.2rem;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff3366;
}

/* Update responsive styles */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-image-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-info {
        max-width: 300px;
        margin: 2rem auto;
    }
}

/* Remove the main padding-top */
main {
    padding-top: 0;
}

.back-to-top {
    text-align: center;
    margin-top: 3rem;
}

.back-to-top a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--neon-pink);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px var(--neon-pink);
    position: relative;
    overflow: hidden;
}

.back-to-top a:hover {
    background: var(--cyber-gradient);
    color: white;
    box-shadow: 0 0 20px var(--neon-pink),
                0 0 40px var(--neon-pink);
}

.glitch-text {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 #ff3366,
                -0.025em -0.05em 0 #ff6b6b,
                0.025em 0.05em 0 #0ff;
    color: white;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInGlitch 2s ease forwards;
}

.glitch-text.visible {
    opacity: 1;
    transform: translateY(0);
    animation: glitch 725ms infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text.visible::before {
    animation: glitch 500ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-0.04em, -0.03em);
    opacity: 0.75;
}

.glitch-text.visible::after {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
    opacity: 0.75;
}

@keyframes fadeInGlitch {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #ff3366,
                    -0.05em -0.025em 0 #ff6b6b,
                    -0.025em 0.05em 0 #0ff;
    }
    14% {
        text-shadow: 0.05em 0 0 #ff3366,
                    -0.05em -0.025em 0 #ff6b6b,
                    -0.025em 0.05em 0 #0ff;
    }
    15% {
        text-shadow: -0.05em -0.025em 0 #ff3366,
                    0.025em 0.025em 0 #ff6b6b,
                    -0.05em -0.05em 0 #0ff;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #ff3366,
                    0.025em 0.025em 0 #ff6b6b,
                    -0.05em -0.05em 0 #0ff;
    }
    50% {
        text-shadow: 0.025em 0.05em 0 #ff3366,
                    0.05em 0 0 #ff6b6b,
                    0 -0.05em 0 #0ff;
    }
    99% {
        text-shadow: 0.025em 0.05em 0 #ff3366,
                    0.05em 0 0 #ff6b6b,
                    0 -0.05em 0 #0ff;
    }
    100% {
        text-shadow: -0.025em 0 0 #ff3366,
                    -0.025em -0.025em 0 #ff6b6b,
                    -0.025em -0.05em 0 #0ff;
    }
}

/* Update color scheme */
:root {
    --neon-pink: #ff3366;
    --neon-blue: #0ff;
    --neon-purple: #b829ff;
    --dark-bg: #0a0a0a;
    --cyber-gradient: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
}

/* Add scanlines effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.15;
}

/* Update about section */
.about-content {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.skills-list li {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
}

.skills-list li:hover {
    box-shadow: 0 0 20px var(--neon-pink);
    transform: translateY(-2px);
}

/* Update profile image */
.profile-image-container {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

.profile-image-container:hover {
    box-shadow: 0 0 30px var(--neon-blue),
                0 0 50px var(--neon-blue);
} 