/* Global Styles & Variables */
:root {
    --bg-color: #050510;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-color: #bf00ff;
    /* Neon Purple */
    --secondary-color: #00f3ff;
    /* Neon Cyan */
    --accent-color: #ff0055;
    /* Neon Pink/Red */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: #0f1020;
    --nav-bg: rgba(5, 5, 16, 0.85);
    --gradient-text: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 0 20px rgba(191, 0, 255, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-text);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section - UPDATED CYBERPUNK STYLE */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.greeting {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
    animation: fadeInDown 1s ease;
}

.name {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 0px var(--primary-color), -2px -2px 0px var(--secondary-color);
    animation: fadeInUp 1s ease 0.2s backwards, glitch 3s infinite;
    position: relative;
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    21% {
        transform: skew(2deg);
    }

    22% {
        transform: skew(0deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.hero .title {
    font-size: 2rem;
    background: linear-gradient(to right, #ccc, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.description {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease 0.6s backwards;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    /* More techy, less rounded */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(191, 0, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 0, 255, 0.5), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(191, 0, 255, 0.6);
    background: rgba(191, 0, 255, 0.1);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    transform: translateY(-3px);
}

/* 3D Profile Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.profile-container-3d {
    position: relative;
    width: 350px;
    height: 450px;
    /* Adjust based on image aspect ratio */
    transform-style: preserve-3d;
    animation: floatImage 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(1.1) contrast(1.1);
    /* 3D Transform & Glow */
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow:
        -20px 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(191, 0, 255, 0.4),
        /* Inner glow purple */
        0 0 60px rgba(0, 243, 255, 0.2);
    /* Outer glow cyan */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.profile-container-3d:hover .profile-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(191, 0, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Floating Tech Holograms */
.floating-tech {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.html-tech {
    top: -20px;
    right: -20px;
    color: #e34c26;
    box-shadow: 0 0 15px #e34c26;
    animation: orbit 8s infinite linear reverse;
}

.css-tech {
    bottom: 50px;
    left: -30px;
    color: #264de4;
    box-shadow: 0 0 15px #264de4;
    animation: orbit 10s infinite linear;
}

.js-tech {
    top: 40%;
    right: -50px;
    color: #f7df1e;
    box-shadow: 0 0 15px #f7df1e;
    animation: orbit 12s infinite linear reverse;
}

.react-tech {
    bottom: -20px;
    right: 20px;
    color: #61dafb;
    box-shadow: 0 0 15px #61dafb;
    animation: orbit 9s infinite linear;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes orbit {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(10px, 10px) scale(1.1);
    }

    50% {
        transform: translate(0, 20px) scale(1);
    }

    75% {
        transform: translate(-10px, 10px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Sections Common */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* Updated Section Backgrounds for depth */
.about,
.skills,
.contact {
    background: #080915;
}

.projects {
    background: #050510;
}

/* About Section */
.about-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-skills h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
    display: inline-block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tag {
    background: rgba(5, 5, 16, 0.6);
    color: var(--secondary-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 243, 255, 0.3);
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.tag:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    transform: scale(1.05);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 0 20px transparent;
    transition: var(--transition);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(191, 0, 255, 0.2);
}

.project-image {
    height: 220px;
    background: #151525;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.placeholder-img {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 1;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #fff;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Skills Section - Animated Bars */
.skills-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.skill-bar {
    margin-bottom: 25px;
}

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.skill-bar .bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar .bar span {
    display: block;
    height: 100%;
    background: var(--gradient-text);
    border-radius: 10px;
    width: 0;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 0 20px var(--primary-color);
}

.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #020205;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Media Queries */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 30px;
    }

    .description {
        border-left: none;
        padding-left: 0;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 25px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        z-index: -1;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .profile-container-3d {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .profile-container-3d {
        width: 240px;
        height: 320px;
    }

    /* Pull logos closer to prevent overflow */
    .html-tech {
        right: -10px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .css-tech {
        left: -10px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .js-tech {
        right: -20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .react-tech {
        right: 0px;
        bottom: -10px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .hero-visual {
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
