:root {
    --primary: #7F5AF0;
    --secondary: #2CB67D;
    --dark: #16161A;
    --light: #FFFFFE;
    --nav-bg: rgba(22, 22, 26, 0.95);
    --card-bg: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    transition: all 0.5s ease;
}


.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

/* Profile Image Fix */
.profile-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

 

/* Ensure skills grid doesn't overlap */
.skills-container {
    margin-top: 2rem;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}


/* Programming Skills Section */
#skills {
    padding: 5rem 0;
    background: rgba(255,255,255,0.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card:nth-child(1) { animation-delay: 0.2s; }
.skill-card:nth-child(2) { animation-delay: 0.4s; }
.skill-card:nth-child(3) { animation-delay: 0.6s; }
.skill-card:nth-child(4) { animation-delay: 0.8s; }
.skill-card:nth-child(5) { animation-delay: 1.0s; }
.skill-card:nth-child(6) { animation-delay: 1.2s; }

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light);
    transition: all 0.3s ease;
}

.skill-card h3 {
    color: var(--light);
    margin-bottom: 1rem;
}

.skill-description {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Hover Effects */
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(127,90,240,0.3);
}

.skill-card:hover .skill-icon {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Light Mode Adjustments */
body.light-mode #skills {
    background: rgba(22,22,26,0.05);
}

body.light-mode .skill-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(22,22,26,0.1);
}

body.light-mode .skill-card h3 {
    color: var(--dark);
}

body.light-mode .skill-description {
    color: rgba(22,22,26,0.8);
}
/* Remove any conflicting transforms */
.profile-section {
    position: relative;
    z-index: 2;
}

/* Profile Section Enhancements */
.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-bio {
    color: var(--light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem auto;
    max-width: 600px;
    transition: color 0.3s ease;
}

body.light-mode .profile-bio {
    color: rgba(var(--dark-rgb), 0.9);
}
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

 
.social-text {
    color: var(--light);
    font-weight: 500;
    transition: transform 0.3s ease;
 
}

/* Platform-specific colors */
.social-link.linkedin:hover .social-icon { background: #0A66C2; }
.social-link.github:hover .social-icon { background: #333; }
.social-link.youtube:hover .social-icon { background: #FF0000; }

/* Hover Effects */
.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127, 90, 240, 0.2);
    background: rgba(127, 90, 240, 0.05);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-link:hover .social-text {
    transform: translateX(5px);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .social-links {
        grid-template-columns: 1fr;
        max-width: 150px;
        gap: 1rem;
    }
    
    .social-link {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .social-icon {
        width: 145px;
        height: 145px;
    }
    
    .social-icon i {
        font-size: 1.6rem;
    }
    
    .social-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        padding: 0;
    }
    
    .social-link {
        padding: 1rem;
        gap: 1.2rem;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-icon i {
        font-size: 1.4rem;
    }
    
    .social-text {
        font-size: 1rem;
    }
}

/* For light mode */
body.light-mode .social-link {
    background: rgba(221, 7, 7, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark);
    -webkit-text-fill-color: #020247;
}

body.light-mode .social-link:hover {
    background: rgba(255, 0, 0, 0.1);
}

body.light-mode {
    --dark: #FFFFFE;
    --light: #020247;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(22, 22, 26, 0.05);
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navigation */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light) !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto; /* This pushes nav links to the right */
}

.nav-link {
    color: var(--light) !important;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.theme-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Profile Section */
.profile-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px var(--primary);
    margin-bottom: 1rem;
    margin-top: 115px;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.profile-subtitle {
    font-size: 1.1rem;
    
}


/* Experience Section Enhancements */
.experience-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(127, 90, 240, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1.5rem;
    width: 50px;
    text-align: center;
}

.company-meta h3 {
    margin-bottom: 0.25rem;
    color: var(--light);
}

.company {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.experience-list {
    list-style: none;
    padding-left: 1.5rem;
}

.experience-list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Hover effect for list items */
.experience-list li:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}
/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary);
}

/* Cards */
.experience-card,
.education-card,
.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover,
.education-card:hover,
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(127, 90, 240, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.company,
.institute,
.project-tech {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}


/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.05);
}

.skills-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.category-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(127, 90, 240, 0.3);
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card i {
    font-size: 1.2rem;
    color: var(--primary);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay animations */
.skill-category:nth-child(1) { animation-delay: 0.2s; }
.skill-category:nth-child(2) { animation-delay: 0.4s; }
.skill-category:nth-child(3) { animation-delay: 0.6s; }

/* Contact Form */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    color: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: var(--light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
        color: var(--light);
        border: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: var(--nav-bg);
        border-radius: 10px;
        margin-top: 1rem;
        margin-left: 0;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .profile-title {
        font-size: 2rem;
    }

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

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .profile-title {
        font-size: 1.8rem;
    }

    .profile-subtitle {
        font-size: 1rem;
    }

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

    .card-icon {
        font-size: 1.5rem;
    }
}

/* CV Download Section Styles */
.cv-section {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.cv-download-wrapper {
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    padding: 0 1.5rem;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    border: none;
    cursor: pointer;
}

.cv-download-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.cv-download-btn span {
    position: relative;
    z-index: 1;
}

.hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: 0.5s;
}

/* Hover Effects */
.cv-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(127, 90, 240, 0.4);
}

.cv-download-btn:hover .hover-effect {
    left: 100%;
}

.cv-download-btn:hover i {
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cv-download-btn {
        width: 100%;
        justify-content: center;
        padding: 1.5rem 2rem;
    }
    
    .cv-download-btn span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cv-download-btn {
        padding: 1.2rem 1.5rem;
        gap: 0.8rem;
    }
    
    .cv-download-btn i {
        font-size: 1.2rem;
    }
    
    .cv-download-btn span {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes buttonEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-download-wrapper {
    animation: buttonEntrance 0.8s ease both;
    animation-delay: 0.3s;
}



/* Project Card Styles */
.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(127, 90, 240, 0.2);
}

.project-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.project-content {
    padding: 2rem;
}

.project-title {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-meta {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-pill {
    background: rgba(127, 90, 240, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-features {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.project-features li {
    position: relative;
    margin-bottom: 0.5rem;
}

.project-features li::before {
    content: "▹";
    position: absolute;
    left: -1.5rem;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background: rgba(127, 90, 240, 0.1);
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.project-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-thumbnail img {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        justify-content: center;
    }
}