* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-text: #f1f5f9;
    --text-gray: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: default;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    display: none;
}

@media (min-width: 1024px) {
    .custom-cursor {
        display: block;
    }
    
    body {
        cursor: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0; /* Added for stability */
    width: 100%;
    /* Initial Background: Purple/Violet */
    /* background: rgb(127, 18, 228);  */
    background: rgb(99, 102, 241, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar .container {
    max-width: 1200px; /* Adjust based on your layout */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between; /* Logo left, Menu right */
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white; 
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white; 
    text-decoration: none;
    font-weight: 600; 
    transition: 0.3s ease;
    position: relative;
}

/* The Hover Line */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white; 
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger for Mobile - Still aligned right */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white; 
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
/* 1. Ensure the particle container is truly fixed and covers everything */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keep it behind everything */
    background-color: #000; /* Move the black background here */
}

/* 2. Make your sections transparent so the background is visible */
body, html {
    background-color: transparent !important;
}

.hero, .about, .skills, .projects, .contact {
    background: transparent !important;
}

/* 3. Remove or hide the old floating shapes in the hero if they block the view */
.hero-background {
    display: none; 
}

/* 4. Ensure content is readable */
.container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
    transition: all 0.5s ease;
    cursor: pointer;
}

.name:hover {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
    animation: nameHoverGlow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

@keyframes nameHoverGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.6));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.9));
    }
}

.title-text {
    display: block;
    font-size: 1.5rem;
    color: var(--text-gray);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--dark-card);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* .about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
} */
.about-text p {
  margin: 8px 0;   /* reduces vertical gap */
  line-height: 1.6; /* keeps readability strong */
  color:var(--text-gray);
}
.intro-text {
    font-size: 1.3rem !important;
    color: var(--light-text) !important;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    padding: 4px;
    animation: rotate 10s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.image-container {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border-radius: 50%;
    overflow: hidden;
    background: var(--dark-card);
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    object-position: center;
}

.image-container:hover .profile-image {
    transform: scale(1.05);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
}

.skill-card.learning .skill-progress {
    background: var(--gradient-2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.skill-percentage {
    color: var(--text-gray);
    font-weight: 600;
}

/* Projects Section */
.projects {
    background: var(--dark-card);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--dark-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-card);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer p {
    color: var(--text-gray);
    margin: 0.5rem 0;
}

.footer i {
    color: var(--accent-color);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--dark-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 60px;
        min-height: 90vh;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .name {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .title-text {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        margin-top: 1rem;
    }

    .scroll-indicator span {
        font-size: 0.85rem;
    }

    /* Sections Mobile */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* About Section Mobile */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        text-align: justify;
    }

    .intro-text {
        font-size: 1.1rem !important;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    /* Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.3rem;
    }

    /* Projects Section Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    /* Contact Section Mobile */
    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-item {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .contact-item span {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.9rem;
    }

    /* Shapes Mobile - Smaller */
    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 100px;
        height: 100px;
    }

    .shape-3 {
        width: 80px;
        height: 80px;
    }

    .shape-4 {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .title-text {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}
