@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: "Montserrat";
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #000;
}

body::selection{
    background-color: #a2d2ff;
    color: #000;
}

.cursor {
    pointer-events: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    position: absolute;
    background-color: #a2d2ff;
    z-index: 1000;
    mix-blend-mode: difference;
    background-position: center;
    background-size: cover;
}

#purple {
    height: 100vh;
    width: 100vw;
    z-index: 100;
    top: 0;
    position: fixed;
    background-color: #a2d2ff;
    opacity: 0;
    display: none;
}

#nav {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 30px;
    position: fixed;
    mix-blend-mode: difference;
    z-index: 102;
}

#nav a {
    text-decoration: none;
    margin: 0 10px;
    transition: color ease 0.3s;
}

#nav a:hover {
    color: #a2d2ff;
}

.main {
    background-color: black;
    overflow: hidden;
}

.skills-hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 10vw;
    background: radial-gradient(circle at 50% 50%, rgba(162, 210, 255, 0.1), transparent);
}

.skills-hero h1 {
    font-size: 12vw;
    font-weight: 600;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    /* transition-duration: 0.5s; */
}

.skills-hero h1:hover{
    color: #a2d2ff;
}

.skills-hero p {
    font-size: 1.5rem;
    text-align: center;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
}

.tech-stack {
    min-height: 100vh;
    width: 100%;
    padding: 100px 5vw;
    background-color: #fff;
}

.tech-stack h2 {
    font-size: 5vw;
    color: #000;
    margin-bottom: 3rem;
    text-align: center;
}

.skills-category {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 2rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100px;
    height: 3px;
    background: #a2d2ff;
}

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

.skill-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    /* transition: all ease 0.5s; */
    /* transition-duration: 0.5s; */
    border: 2px solid transparent;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #a2d2ff, #4fc3f7, #a2d2ff);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.skill-icon img{
    width: 25%;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #a2d2ff;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: rgba(162, 210, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a2d2ff, #4fc3f7);
    border-radius: 4px;
    transition: width 2s ease-in-out;
    width: 0%;
}

.skill-level {
    font-size: 0.9rem;
    opacity: 0.8;
}

.experience-section {
    height: 100vh;
    /* overflow: auto; */
    width: 100%;
    background: #000;
    padding: 100px 5vw;
    position: relative;
}

.experience-section h2 {
    font-size: 5vw;
    margin-bottom: 3rem;
    text-align: center;
}
.timeline-scroller{
    height: 110vh;
    width: 100%;
    overflow-y: hidden;


}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #a2d2ff;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #a2d2ff;
    position: relative;
    transition: all ease 0.5s;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(162, 210, 255, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #a2d2ff;
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -3.5rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -3.5rem;
}

.timeline-year {
    font-size: 1.2rem;
    color: #a2d2ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-description {
    opacity: 0.8;
    line-height: 1.6;
}

.certifications {
    min-height: 80vh;
    width: 100%;
    background: #fff;
    padding: 100px 5vw;
}

.certifications h2 {
    font-size: 5vw;
    color: #000;
    margin-bottom: 3rem;
    text-align: center;
}

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

.cert-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    /* transition: all ease 0.5s; */
    /* transition-duration: 0.3s; */
    border: 2px solid #a2d2ff;
}

.cert-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(162, 210, 255, 0.3);
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #a2d2ff, #4fc3f7);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cert-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #a2d2ff;
}

.cert-issuer {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.cert-date {
    font-size: 0.9rem;
    opacity: 0.6;
}
#rcert{
    transition-duration: 0.5s;
}

#rcert:hover{
    color: #a2d2ff;

}

.interactive-skill {
    position: absolute;
    max-width: 500px;
    min-width: 200px;

    top: 50%;
    right: 5%;
    background: rgba(162, 210, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #a2d2ff;
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    /* transition: all ease 0.5s; */
    color: #000;
}

.interactive-skill.active {
    opacity: 1;
    pointer-events: none;
    color: black;
}

.skill-radar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    color: black;
}

@media (max-width: 768px) {
    .skills-hero h1 { font-size: 15vw; }
    .tech-stack h2, .experience-section h2, .certifications h2 { font-size: 8vw; }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 3rem !important; padding-right: 0 !important; text-align: left !important; }
    .timeline-item .timeline-content::before { left: -3.5rem !important; }
    .cert-grid { grid-template-columns: 1fr; }
    .interactive-skill { display: none; }
}
