* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: #fff;
    height: 100vh;
    width: 100vw;
    position: fixed;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #0a0a1a 0%, #000000 100%);
    padding: 2rem 10% 2rem 10%;
    overflow: hidden;
}

.neon-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(0.5px) brightness(1.2);
    z-index: 1;
    /* Hardware acceleration hints */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    padding: 40px 50px;
    pointer-events: auto;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(17px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    animation: float 10s ease-in-out infinite;

    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(5px);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Header */
.header {
    text-align: left;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.header h1 {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(30px, 4vw, 100px);
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 0 25px rgba(81, 19, 139, 0.8);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header .social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(20px, 3vw, 30px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.header .social-links a:hover {
    color: #ff4081;
    text-shadow: 0 0 15px rgba(255, 64, 129, 0.6);
    transform: translateY(-2px);
}

.header .title {
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
}

.header .description {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 1.6vw, 16px);
    line-height: 1.6;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.header .description strong {
    font-weight: 600;
    color: rgb(203, 231, 255);
}

/* Sections */
.section {
    margin-bottom: 2.5rem;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    transition: all 0.3s ease;
}

.section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.section h2 {
    font-family: Poppins, Inter, sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
    color: #fff;
    text-shadow: 0 0 15px rgba(81, 19, 139, 0.5);
}

/* Experience & Projects */
.experience-item,
.project-item {
    margin-bottom: 2rem;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid rgba(129, 19, 200, 0.5);
    transition: all 0.3s ease;
}

.experience-item:hover,
.project-item:hover {
    border-left-color: rgba(129, 19, 200, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.experience-item:last-child,
.project-item:last-child {
    margin-bottom: 0;
}

.experience-title,
.project-title {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-images .project-title,
.has-images .experience-title {
    cursor: pointer;
}

.has-images .project-title:hover,
.has-images .experience-title:hover {
    color: #ff4081;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-icon.open {
    transform: rotate(45deg);
}

.experience-company,
.project-date {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.experience-date {
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: clamp(12px, 1.3vw, 14px);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.experience-description,
.project-description {
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: clamp(12px, 1.4vw, 15px);
    line-height: 1.6;
    opacity: 0.9;
}

.experience-description ul,
.project-description ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.experience-description li,
.project-description li {
    margin-bottom: 0.5rem;
}

.experience-description strong,
.project-description strong {
    font-weight: 500;
    color: rgb(189, 252, 231);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.skill-category h3 {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.8vw, 18px);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(129, 19, 200, 0.2);
    border: 1px solid rgba(129, 19, 200, 0.3);
    border-radius: 20px;
    font-family: Inter, sans-serif;
    font-size: clamp(10px, 1.2vw, 13px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(129, 19, 200, 0.3);
    border-color: rgba(129, 19, 200, 0.5);
    transform: translateY(-1px);
}

.skill-tags.logo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    /* Increased gap for logos */
    align-items: center;
}

.skill-logo {
    height: 30px;
    /* Adjust size as needed */
    width: auto;
    transition: transform 0.2s ease-in-out;
    filter: grayscale(100%) brightness(150%);
    /* Make logos fit the theme */
}

.skill-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(100%);
    /* Color on hover */
}



/* Education & Achievements */
.education-item,
.achievement-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.education-item:hover,
.achievement-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.education-item:last-child,
.achievement-item:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Inter, sans-serif;
    font-size: clamp(12px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: rgba(129, 19, 200, 0.8);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #ff4081;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.4);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .container {
        padding: 2rem 5% 2rem 5%;
    }

    .content {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .header h1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 10% 3% 10% 3%;
    }

    .content {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .section {
        padding: 20px 15px;
    }

    .project-image-container img,
    .gallery-image {
        width: 90%;
    }
}

/* Project Image Container */
.project-image-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    margin-top: 1rem;
    border-radius: 10px;
}

.project-image-container.visible {
    max-height: 1000px; /* Increase max-height to fit potentially taller containers */
    overflow-y: auto;
}

.project-image-container img,
.gallery-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Enforce a 16:9 aspect ratio on the container */
    object-fit: contain; /* Fit the whole image within the container */
    background-color: rgba(0, 0, 0, 0.5); /* Add a background for letterboxing */
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    cursor: pointer;
}

.gallery-image {
    margin-bottom: 1rem;
}

.project-title.active-project-title {
    color: #ff4081;
    text-shadow: 0 0 15px rgba(255, 64, 129, 0.6);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
}

#lightboxImg {
    width: 100%;
    height: auto;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-lightbox,
.next-lightbox {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next-lightbox {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-lightbox:hover,
.next-lightbox:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

h4 {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 16px);
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-links {
    margin-top: 1rem;
}

.live-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, rgba(129, 19, 200, 0.3), rgba(255, 64, 129, 0.3));
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 16px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(129, 19, 200, 0.2);
    backdrop-filter: blur(6px);
    /* adds glass effect */
}

.live-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(129, 19, 200, 0.2);
    background: linear-gradient(45deg, rgba(255, 64, 129, 0.3), rgba(129, 19, 200, 0.3));
}


.live-link i {
    margin-right: 0.5rem;
}