﻿/*----------About me----------*/
.abt-me-div {
    margin: 80px auto 0;
    font-size: 1.25rem;
    font-weight: 500;
    width: 1300px;
}

.abt-me-h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

.abt-me-profile-pic {
    height: 350px;
    width: 250px;
    object-fit: cover;
    border-radius: 15px;
}

.abt-me-resume-link {
    text-decoration: none;
    font-weight: 500;
    color: white;
    text-align: center;
    padding: 10px;
    border: solid 1px white;
    border-radius: 8px;
    margin-top: 20px;
    background-color: rgba(127,127,127,0.2);
    transition: all 200ms ease;
}

.abt-me-resume-link:hover {
    background-color: rgba(127,127,127,0.4);
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: all 200ms ease;
}

.profile-pic-div {
    margin-right: 40px;
}

.abt-me-skill-div {
    flex: 1;
}

.skill-img-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border: solid 1px rgba(255,255,255,0.1);
    border-radius: 10px;
    opacity: 0;
}

.skill-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.skill-straigt-line {
    width: 3px;
    background-image: linear-gradient( 135deg, var(--color-gradient4) 0%, var(--color-gradient5) 40%, var(--color-gradient6) 100% );
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    height: 50px;
}

/*Skill tooltip*/
.skill-img-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(.98);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 2000;
}

/* small arrow */
.skill-img-wrapper::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) rotate(45deg) scale(.98);
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 2000;
}

/* visible states: hover, focus-within, or explicit class from JS */
.skill-img-wrapper:hover::after,
.skill-img-wrapper:focus-within::after,
.skill-img-wrapper.tooltip-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.skill-img-wrapper:hover::before,
.skill-img-wrapper:focus-within::before,
.skill-img-wrapper.tooltip-visible::before {
    opacity: 1;
    transform: translateX(-50%) rotate(45deg) scale(1);
}

/*----------Timeline----------*/
.abt-me-edu-div {
    margin-top: 70px;
}

.edu-timeline-node {
    flex: 1;
    text-align: center;
    max-width: 400px;
    height: 300px;
}

.edu-timeline-content {
    margin: 0 50px;
    height: 220px;
}

.edu-timeline-detail {
    font-size: 1rem;
    font-weight: 400;
}

.edu-timeline-horizontal-line {
    display: inline-block;
    width: 90%;
    height: 6px;
    position: relative;
    top: 85px;
    left: 5%;
    border-radius: 100px;
    background-image: linear-gradient(135deg, var(--color-gradient4, #00c6ff) 0%, var(--color-gradient5, #0072ff) 40%, var(--color-gradient6, #0000ff) 100%);
    z-index: 3;
}

.edu-timeline-circle {
    position: relative;
    display: block; /* Changed from inline-block to block */
    width: 30px;
    height: 30px;
    min-width: 30px; /* Ensure minimum size */
    min-height: 30px; /* Ensure minimum size */
    box-sizing: content-box; /* Changed from border-box to content-box */
    border-radius: 50%;
    background-image: linear-gradient(135deg, var(--color-gradient4, #00c6ff) 0%, var(--color-gradient5, #0072ff) 40%, var(--color-gradient6, #0000ff) 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    margin: 0 auto 45px; /* Changed to center it with auto margins */
    padding: 0; /* Explicitly set padding to 0 */
    z-index: 3;
}

/* Circle halo - Fixed to be circular */
.edu-timeline-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; /* Fixed value: 180% of 30px */
    height: 54px; /* Fixed value: 180% of 30px */
    border-radius: 50%;
    background: inherit;
    filter: blur(10px);
    opacity: 0.7;
    z-index: -1;
}

/* Spotlight / triangular lamp under the node (soft fade from strong → weak) */
.edu-timeline-circle::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 500px; /* cone base width (adjust) */
    height: 250px; /* cone length (adjust) */
    pointer-events: none;
    z-index: 1; /* behind the circle but above page bg */
    /* triangle shape + vertical gradient from strong to weak */
    background: linear-gradient( to bottom, rgba(72,191,227,0.40) 0%, /* strong at top */
    rgba(72,191,227,0.13) 15%, rgba(72,191,227,0.08) 25%, rgba(72,191,227,0.04) 35%, rgba(72,191,227,0.01) 55%, transparent 100% /* fade to transparent at base */
    );
    /* cut to triangle */
    clip-path: polygon(50% 0%, 0% 60%, 100% 60%);
    /* soften edges */
    filter: blur(18px);
    opacity: 1;
}

.abt-me-link-div {
    margin: 100px 0;
}

/*----------Contact Section----------*/
.abt-me-contact-div {
    margin-top: 100px;
}

.abt-me-contact-div h2 {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    flex-direction: column;
    text-align: center;
}

.contact-item i {
    font-size: 36px;
    transition: all 300ms ease;
    will-change: transform;
}

.contact-item i:hover {
    transform: translateY(-5px);
    transition: all 300ms ease;
}

.contact-link,
.contact-link:hover {
    color: var(--color-gradient6);
    text-decoration: none;
}