/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0a0a0a;
    --primary-neon: #00f3ff; /* Cyan */
    --secondary-neon: #bc13fe; /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --font-main: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none; /* Hiding default cursor */
}

/* --- ANIMATED MISTY BACKGROUND --- */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-neon);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-neon);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: blue;
    top: 40%;
    left: 30%;
    animation-duration: 15s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- CUSTOM CURSOR --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-neon);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-neon);
    transition: all 0.15s ease-out; /* Trail effect */
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .dot { color: var(--primary-neon); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

/* --- SOCIAL SIDEBAR --- */
.social-sidebar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-sidebar a {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-sidebar a:hover {
    color: var(--primary-neon);
    transform: translateY(-5px);
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h3 { font-size: 1.5rem; color: var(--primary-neon); margin-bottom: 10px; }
.hero-content h1 { font-size: 4rem; font-weight: 700; margin-bottom: 10px; }
.hero-content p { color: var(--text-gray); max-width: 600px; margin: 20px auto; }

.typewriter { font-size: 1.5rem; font-weight: 600; min-height: 1.5rem; }
.typing-text { color: var(--secondary-neon); border-right: 2px solid white; padding-right: 5px; animation: blink 0.7s infinite; }

@keyframes blink { 50% { border-color: transparent; } }

/* --- BUTTONS --- */
.btn-neon {
    display: inline-block;
    padding: 12px 30px;
    color: var(--primary-neon);
    border: 2px solid var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn-neon:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon);
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 100px 50px;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-neon);
    margin: 10px auto 0;
}

/* --- GLASS CARDS --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.glass-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}

/* --- SKILLS GRID --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-neon);
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 5px 10px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-neon);
    border-radius: 20px;
    margin: 10px 0;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-text:hover { color: var(--primary-neon); gap: 5px; }

/* --- CONTACT FORM --- */
.contact-form-wrapper { max-width: 600px; margin: 0 auto; }
.input-group { position: relative; margin-bottom: 30px; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-gray);
    color: white;
    outline: none;
}
.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-gray);
    pointer-events: none;
    transition: 0.3s;
}
.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    color: var(--primary-neon);
    font-size: 0.8rem;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal-content { max-width: 500px; position: relative; }
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

/* --- SCROLL ANIMATION CLASS --- */
.hidden-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}
.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE --- */
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .section { padding: 50px 20px; }
}
/* --- UPDATED HERO SECTION LAYOUT --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers everything */
    gap: 50px; /* Space between text and image */
    padding: 0 10%;
}

.hero-content {
    flex: 1;
    text-align: left; /* Aligns text to left */
    z-index: 2;
}

/* --- HERO IMAGE STYLING --- */
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-img {
    width: 350px;       /* Adjust size as needed */
    height: 350px;
    object-fit: cover;  /* Ensures image doesn't stretch */
    border-radius: 50%; /* Makes it circular */
    border: 3px solid var(--glass-border);
    position: relative;
    z-index: 2;
    /* The Neon Glow */
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3), 
                inset 0 0 20px rgba(0, 243, 255, 0.3);
    animation: floatingImg 4s ease-in-out infinite;
}

/* Optional: Rotating glow ring behind image */
.image-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    animation: spin 10s linear infinite;
}

@keyframes floatingImg {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- MOBILE RESPONSIVENESS UPDATE --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column-reverse; /* Puts image on top for mobile */
        text-align: center;
        justify-content: center;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-img {
        width: 180px;
        height: 180px;
    }

    .image-glow {
        width: 260px;
        height: 260px;
    }
}
/* --- GAMING PARTICLE TRAIL EFFECT --- */
.magic-particle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* Allows clicking through particles */
    border-radius: 50%;
    z-index: 9999;
    /* Neon Glow */
    box-shadow: 0 0 10px var(--primary-neon), 
                0 0 20px var(--secondary-neon);
    animation: particleFade 0.8s linear forwards;
}

/* Animation: Shrink and Fade */
@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -100%) scale(0); /* Moves up slightly like smoke */
        opacity: 0;
    }
}
/* --- GLOWING BORDER CONTAINER --- */
.glow-border-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 3px; /* This defines the border thickness */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    overflow: hidden; /* Keeps the glow inside the rounded corners */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Animated Rotating Light */
.glow-border-box::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    /* The colors of your neon laser */
    background: conic-gradient(
        transparent, 
        var(--primary-neon), 
        transparent, 
        var(--secondary-neon), 
        transparent
    );
    animation: rotateGlow 4s linear infinite;
}

/* The Card itself (Must have a solid-ish background to hide the center of the glow) */
.contact-form-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #0a0a0a !important; /* Solid dark background is key */
    border-radius: 15px !important;
    padding: 40px;
    border: none !important; /* Remove old border */
}

/* Animation for the rotating border */
/* --- SUMMON BUTTON --- */
.anime-btn {
    background: transparent;
    color: var(--secondary-neon);
    border: 1px solid var(--secondary-neon);
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.anime-btn:hover {
    background: var(--secondary-neon);
    color: white;
    box-shadow: 0 0 20px var(--secondary-neon);
    transform: scale(1.05);
}

/* --- FULL SCREEN OVERLAY --- */
.anime-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000; /* Stays on top of everything */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.anime-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

#summoned-img {
    max-width: 100%;
    max-height: 70vh;
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.5);
    border-radius: 10px;
    animation: animeGlitch 0.5s ease-in-out;
}

.anime-title {
    margin-top: 20px;
    letter-spacing: 5px;
    color: var(--primary-neon);
    text-shadow: 2px 2px var(--secondary-neon);
}

.overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Glitch Animation for the Image */
@keyframes animeGlitch {
    0% { transform: scale(0.8) skew(10deg); opacity: 0; }
    50% { transform: scale(1.1) skew(-5deg); opacity: 0.8; }
    100% { transform: scale(1) skew(0deg); opacity: 1; }
}