@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #ff8383;
    --secondary-color: #79bcff;
    --background-color: #0a0a1a;
    --text-color: #e0e0e0;
    --card-bg-color: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem 5%;
    background: rgba(117, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        width: 20%;
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-radius: 0 0 15px 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1rem;
        display: block;
        font-size: 1.1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
}

main {
    width: 90vw;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 5%;
    text-align: center;
}

#hero {
    text-align: center;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    -webkit-text-stroke: 1px black;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    color: #0a0a1a;
    -webkit-text-stroke:1px rgb(255, 255, 255); 
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 127, 80, 0.4);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.profile-pic {
    width: 161px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: linear-gradient(135deg, rgb(90 90 90), rgba(255, 255, 255, 0.1));
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

#contact a:hover {
    text-decoration: underline;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}


.form-group {
    display: flex;
    gap: 1rem;
    
}

.contact-form input,
.contact-form textarea {
    width: 95%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 129, 129, 0.336);
    color: var(--text-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form .btn {
    align-self: flex-start;
}

.timeline-tree {
    list-style: none;
    padding-left: 0;
    position: relative;
    margin: 2rem 0 0 0;
}
.timeline-tree ul {
    list-style: none;
    padding-left: 2.5rem;
    margin: 0;
    position: relative;
}
.timeline-tree > li {
    position: relative;
}
.timeline-node {
    display: flex;
    align-items: flex-start;
    position: relative;
}
.timeline-circle {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px var(--card-bg-color);
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.timeline-content {
    background: var(--card-bg-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 220px;
}
.timeline-tree ul:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    z-index: 1;
    animation: fill-line 2s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes fill-line {
    from { height: 0; }
    to { height: 100%; }
}
@media (max-width: 900px) {
    #skills {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
    }
    .skills-group {
        max-width: 100%;
    }
    .skills-cards {
        gap: 1.5rem;
    }
    .skill-card {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }
}

@media (max-width: 600px) {
    .skills-cards {
        gap: 1rem;
        margin-top: 1.2rem;
        padding: 0 1rem 1rem 1rem;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
    }
    .skills-cards::-webkit-scrollbar {
        height: 8px;
        display: block;
    }
    .skills-cards::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }
    .skills-cards::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 6px;
        min-width: 30px;
    }
    .skill-card {
        flex: 0 0 140px;
        min-width: 140px;
        max-width: 140px;
        padding: 1rem 0.6rem 0.8rem 0.6rem;
    }
    .circle-progress {
        width: 60px;
        height: 60px;
    }
    .circle-progress svg {
        width: 60px;
        height: 60px;
    }
    .circle-label {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }
    .skill-meta {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 3rem auto 0 auto;
    padding: 0 1rem;
}
.timeline-list {
    list-style: none;
    margin: 2rem 0 0 0;
    padding: 0;
    position: relative;
}
.timeline-list::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    z-index: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: fill-timeline 1.5s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes fill-timeline {
    to {
        transform: scaleY(1);
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes waveSlide {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    20% {
        opacity: 0.6;
    }
    50% {
        left: 0%;
        opacity: 1;
    }
    80% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}
.timeline-event {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 2.5rem;
    min-height: 80px;
}
.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 2px solid #b3b2b2;
    box-shadow: 0 0 0 4px var(--card-bg-color);
    position: absolute;
    left: 41px;
    top: 0.5rem;
    z-index: 2;
    transition: transform 0.2s;
}
.timeline-event:hover .timeline-dot {
    transform: scale(1.15);
}
.timeline-info {
    background: rgba(255, 255, 255, 0.233);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    /* box-shadow: 0 2px 8px rgba(104, 0, 0, 0.719); */
    min-width: 220px;
    width: 100%;
    text-align: left;
    margin-left: 90px;
}
.timeline-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .timeline {
        padding: 0;
    }
    .timeline-list::before {
        left: 16px;
    }
    .timeline-dot {
        left: 7px;
    }
    .timeline-info {
        margin-left: 40px;
        padding: 1rem;
        min-width: 0;
    }
}

/* Qualifications Grid */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 2fr));
    gap: 2rem;
    margin-top: 2rem;
}

.qualification-card {
    background: rgb(0, 0, 0);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(121,188,255,0.08), 0 1.5px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1.5px solid rgba(255, 255, 255, 0.473);
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.qualification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(30deg, 
        transparent, 
        rgba(255, 84, 84, 0.342) 25%, 
        rgba(255, 198, 198, 0.877) 50%, 
        rgba(255, 65, 65, 0.342) 75%, 
        transparent);
    animation: waveSlide 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.qualification-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 131, 131, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(121, 188, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.qualification-card > * {
    position: relative;
    z-index: 1;
}
/* Removed invalid CSS block that was outside of a selector */
.qualification-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 32px rgba(121,188,255,0.18);
}
.qualification-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.qualification-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.qualification-content h3 {
    margin: 0 0 0.5rem 0;
    color:red;
}
.qualification-content p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}
.tech-used {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.qualification-actions {
    display: flex;
    gap: 1rem;
}

/* Projects Grid - Similar to qualifications but with distinct styling */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 2fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 4, 4, 0.26);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(121,188,255,0.08), 0 1.5px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1.5px solid rgba(255, 255, 255, 0.473);
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    animation: waveSlide 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: pulseGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 32px rgba(121,188,255,0.18);
}

.project-thumb {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

.project-content p {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.project-actions {
    display: flex;
    gap: 1rem;
}
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Skills Progress Bars */
#skills {
    margin: 3rem 0 2rem 0;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}
.skills-group {
    flex: 1 1 280px;
    min-width: 260px;
    max-width: 340px;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 24px rgba(121,188,255,0.08), 0 1.5px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1.5px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(2px);
}
.skills-group:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(121,188,255,0.18);
}
.skills-group h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.18rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.progress-bar {
    background: rgba(255,255,255,0.13);
    border-radius: 10px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    height: 34px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
}
.progress-bar span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #222;
    font-weight: 600;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    line-height: 34px;
    border-radius: 10px 0 0 10px;
    font-size: 1.05rem;
    width: 0;
    opacity: 0.97;
    transition: width 1.2s cubic-bezier(.77,0,.18,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    letter-spacing: 0.5px;
}
.bar-label {
    flex: 1;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.bar-percent {
    flex: 0 0 auto;
    margin-left: 1rem;
    font-size: 1rem;
    color: #222;
    font-weight: 700;
    background: rgba(255,255,255,0.22);
    border-radius: 7px;
    padding: 2px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.progress-bar span.show {
    width: var(--bar-width, 80%);
}
@media (max-width: 900px) {
    #skills {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
    }
    .skills-group {
        max-width: 100%;
    }
}

/* New Skills Grid Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.308);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skill-tag {
    background-color: #ff6565b6;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Achievements Section */
#achievements {
    margin-top: 4rem;
    padding: 2rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(255, 15, 15, 0.411), rgba(255, 112, 112, 0.212));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.achievement-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.achievement-date {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .achievement-icon {
        font-size: 2.5rem;
    }
}
