:root{
    --neon-red: #ff003c;
    --neon-pink: #ff2a6d;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-light: #ffffff;
    --text-dim: #aaaaaa;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: "Exo 2", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid rgba(255, 0, 60, 0.1);
}

.logo {
    font-family: "Orbitron", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color:  var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.7);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-red);
    transition: var(--transition);
}

.nav-link:hover{
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 100%;
}

#hero {
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
}

h1,h2 {
    font-family: "Orbitron", sans-serif;
    font-weight: 200;
    line-height: 1.2;
    text-transform: uppercase;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-weight: 300;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(
        90deg,
        #ffffff,
        var(--neon-red),
        var(--neon-pink)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: var(--text-dim);
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    background: transparent;
    color: var(--neon-red);
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 50px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--neon-red);
    transition: width 0.5s ease;
    z-index: -1;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 40px var(--neon-red);
    transform: translateY(-5px);
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--neon-red);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    background: transparent;
    color: var(--neon-red);
}

.btn-primary::before {
    background: #000;
}

.profile-container {
    position: relative;
    display: flex;
    justify-content: center ;
    align-items: center;
    perspective: 1000px;
}

.profile-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    75% {
        transform: translateY(-20px) rotateX(-5deg) rotateY(-5deg);
    }
}

.profile-img  {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    border: 6px solid transparent;
    box-shadow: 0 0 50px var(--neon-red), 0 0 100px rgba(255, 0, 60, 0.5), 0 0 150px rgba(255, 0, 60, 0.3);
    animation: glow 3s infinite alternate, morph 12s ease-in-out infinite;
    position: relative;
    z-index: 10;
    background: linear-gradient(45deg, var(--dark-bg), var(--darker-bg));
}

@keyframes glow {
    0% {
        box-shadow: 0 0 40px var(--neon-red), 0 0 80px rgba(255, 0, 60, 0.5), 0 0 120px rgba(255, 0, 60, 0.3);
        border-color: var(--neon-red);
    }
    100% {
        box-shadow: 0 0 60px var(--neon-red), 0 0 120px rgba(255, 0, 60, 0.7), 0 0 120px rgba(255, 0, 60, 0.5);
        border-color: var(--neon-pink);
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    33% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    66% {
        border-radius: 18% 82% 41% 59% / 59% 54% 46% 41%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.glow-effect {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    background: var(--neon-red);
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

footer {
    background: var(--darker-bg);
    padding: 50px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 0, 60, 0.1);
    width: 100vw;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: "Orbitron", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-logo span {
    color: var(--neon-red);
}

.footer-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--neon-red);
    color: #000;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(255, 0, 60, 0.4);
    border-color: var(--neon-red);
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#projects .project {
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: var(--dark-bg);
    box-shadow: var(--neon-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects .project:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-pink);
}

/* Project title */
#projects .project h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--text-dim);
}

/* Thumbnail */
.project-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.project-thumb img.thumb {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-thumb img.thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.5);
}

/* Project description */
#projects .project p {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Project links */
#projects .project a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.3s ease;
}

#projects .project a:hover {
    color: #0056b3;
    transform: translateY(-3px);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    object-fit: contain;
    margin-bottom: 20px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.lightbox .close:hover {
    transform: scale(1.2);
}

/* Lightbox navigation */
.nav-btns {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    pointer-events: none; /* only arrows clickable */
}

.nav-btns span {
    color: white;
    font-size: 50px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    pointer-events: all;
    transition: transform 0.2s ease;
}

.nav-btns span:hover {
    transform: scale(1.2);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-text h1 {
        font-size: 2.7rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .profile-wrapper {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 60px;
    }

    .btn-group {
        justify-content: center;
    }

    .profile-wrapper {
        width:  350px;
        height: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 25px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .profile-wrapper {
        width: 320px;
        height: 320px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    #projects .project {
        width: 95%;
        margin: 15px auto;
        padding: 15px;
    }

    #projects .project h3 {
        font-size: 1.3em;
    }

    .lightbox-img {
        max-width: 95%;
        max-height: 70vh;
    }

    .nav-btns span {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .hero-text h1{
        font-size: 2.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .profile-wrapper {
        width:  280px;
        height: 280px;
    }

    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 400px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .profile-wrapper {
        width: 240px;
        height: 240px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .lightbox .close {
        font-size: 30px;
        right: 15px;
    }

    .nav-btns span {
        font-size: 30px;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--neon-red);
    pointer-events: none;
    z-index: 5;
}