/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background: #ffffff;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: rgb(0, 0, 0);
}

/* Glass Background with Colored Spots */
.glass-floor {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 99, 132, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 70% 30%, rgba(54, 162, 235, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(255, 206, 86, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(75, 192, 192, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 20% 90%, rgba(153, 102, 255, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 60% 10%, rgba(255, 159, 64, 0.18) 0%, transparent 20%),
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 80px),
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 80px);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Logo Top Left */
.logo-bar {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 2;
}

.logo {
    font-size: 1.5rem;
    color: #000000;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Section Blocks */
section {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    margin: 4rem auto 2rem auto;
    padding: 2rem;
}

.glass-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Typography */
.intro-section h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #000000;
}

/* Timeline style */

.timeline-section {
    padding: 4rem 1rem;
    position: relative;
    z-index: 1;
}

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

/* Vertical timeline line */
.timeline-wrapper::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #23d5ab, #0e79b2);
    box-shadow: 0 0 10px #23d5ab, 0 0 20px #23d5ab;
}

/* Individual block */
.timeline-block {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 140px;
}

/* Year label */
.timeline-left {
    position: absolute;
    left: 0;
    top: 1;
    width: 70px;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
    color: #23d5ab;
    text-shadow: 0 0 6px rgba(35, 213, 171, 0.5);
}

/* Dot on timeline */
.timeline-dot {
    position: absolute;
    top: 6px;
    left: 10px;
    width: 14px;
    height: 14px;
    background: #23d5ab;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 10px #23d5ab, 0 0 25px #23d5ab;
    animation: pulse 2s infinite;
}

/* Content card */
.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 4rem 2rem;
    color: #000000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease both;
    transform: translateY(30px);
    opacity: 0;
}

/* Show animation when visible */
.timeline-block.visible .timeline-content {
    transform: translateY(0);
    opacity: 1;
}

/* Title */
.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

/* Sub-event container */
.sub-events {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sub-event box */
.sub-event {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.2rem;
    border-left: 3px solid #23d5ab;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease both;
    transform: translateY(20px);
    opacity: 0;
}

.timeline-block.visible .sub-event {
    transform: translateY(0);
    opacity: 1;
}

/* Sub-event heading */
.sub-event h4 {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 0.4rem;
}

/* Sub-event details */
.sub-event p,
.sub-event li {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.5;
}

.sub-event ul {
    padding-left: 1rem;
}

.sub-event ul li::before {
    content: "— ";
    color: #23d5ab;
}

/* Section title */
.section-title {
    font-size: 2rem;
    text-align: center;
    color: #000000;
    margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(35, 213, 171, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(35, 213, 171, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(35, 213, 171, 0);
    }
}


/* badges */

/* Badge Styling */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    background: rgba(35, 213, 171, 0.08);
    color: #23d5ab;
    border: 1px solid #23d5ab44;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    text-decoration: none;
}

.badge:hover {
    background: #23d5ab33;
    color: #000000;
    box-shadow: 0 0 10px #23d5ab66;
}

/* Certificate link */
.certificate-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #00c4a7;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.certificate-link:hover {
    color: #000000;
}

.certificate-preview {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(35, 213, 171, 0.1);
}

.certificate-preview img {
    width: 100%;
    height: 500px;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.certificate-preview img:hover {
    transform: scale(1.02);
}

/* badge */

.badges {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.badge-icon {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 4px;
}


/* Amazon logo beside text */
.icon-logo {
    height: 20px;
    vertical-align: middle;
    margin-right: 0.4rem;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}


/* Responsive Fix */
@media (max-width: 600px) {
    .intro-section h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 1.5rem;
    }

    .timeline-wrapper {
        padding-left: 20px;
    }

    .timeline-block {
        padding-left: 60px;
    }

    .timeline-left {
        font-size: 0.8rem;
        left: -10px;
        text-align: left;
    }

    .timeline-dot {
        left: 10px;
    }
}


/* final */

.refs_parent {
    width: 590px;
    height: 300px;
    perspective: 1000px;
}

.refs_card {
    height: 100%;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    /* light glassy effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 255, 214, 0.15),
        0 0 18px rgba(0, 255, 170, 0.25) inset,
        0 0 2px rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
    background-image: radial-gradient(circle at 30% 30%,
            rgba(0, 255, 214, 0.1),
            rgba(8, 226, 96, 0.05),
            transparent 60%);
    position: relative;
    overflow: hidden;
}


.refs_glass {
    transform-style: preserve-3d;
    position: absolute;
    inset: 8px;
    border-radius: 55px;
    border-top-right-radius: 100%;
    /* background: linear-gradient(0deg, rgba(255, 255, 255, 0.349) 0%, rgba(255, 255, 255, 0.815) 100%);
     */
    /* -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px); */
    transform: translate3d(0px, 0px, 25px);
    border-left: 8px solid rgb(12, 11, 11);
    border-bottom: 8px solid rgb(0, 0, 0);
    transition: all 0.5s ease-in-out;
}

.refs_content {
    padding: 100px 60px 0px 30px;
    transform: translate3d(0, 0, 26px);
}

.refs_content .refs_title {
    display: block;
    color: rgb(3, 3, 3);
    font-weight: 900;
    font-size: 20px;
}

.refs_content .refs_text {
    display: block;
    color: rgba(0, 137, 78, 0.7647058824);
    font-size: 15px;
    margin-top: 20px;
}

.refs_bottom {
    padding: 10px 12px;
    transform-style: preserve-3d;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translate3d(0, 0, 26px);
}

.refs_bottom .refs_view-more {
    display: flex;
    align-items: center;
    width: 40%;
    justify-content: flex-end;
    transition: all 0.2s ease-in-out;
}

.refs_bottom .refs_view-more:hover {
    transform: translate3d(0, 0, 10px);
}

.refs_bottom .refs_view-more .refs_view-more-button {
    background: none;
    border: none;
    color: #bf0f0f;
    font-weight: bolder;
    font-size: 12px;
}

.refs_bottom .refs_view-more .refs_svg {
    fill: none;
    stroke: #e60e0e;
    stroke-width: 3px;
    max-height: 15px;
}

.refs_bottom .refs_social-buttons-container {
    display: flex;
    gap: 10px;
    transform-style: preserve-3d;
}

.refs_bottom .refs_social-buttons-container .refs_social-button {
    width: 30px;
    aspect-ratio: 1;
    padding: 5px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    border: none;
    display: grid;
    place-content: center;
    box-shadow: rgba(5, 71, 17, 0.5) 0px 7px 5px -5px;
}

.refs_bottom .refs_social-buttons-container .refs_social-button:first-child {
    transition: transform 0.2s ease-in-out 0.4s, box-shadow 0.2s ease-in-out 0.4s;
}

.refs_bottom .refs_social-buttons-container .refs_social-button:nth-child(2) {
    transition: transform 0.2s ease-in-out 0.6s, box-shadow 0.2s ease-in-out 0.6s;
}

.refs_bottom .refs_social-buttons-container .refs_social-button:nth-child(3) {
    transition: transform 0.2s ease-in-out 0.8s, box-shadow 0.2s ease-in-out 0.8s;
}

.refs_bottom .refs_social-buttons-container .refs_social-button .svg {
    width: 15px;
    fill: #00894d;
}

.refs_bottom .refs_social-buttons-container .refs_social-button:hover {
    background: black;
}

.refs_bottom .refs_social-buttons-container .refs_social-button:hover .refs_svg {
    fill: rgb(0, 0, 0);
}

.refs_bottom .refs_social-buttons-container .refs_social-button:active {
    background: rgb(255, 234, 0);
}

.refs_bottom .refs_social-buttons-container .refs_social-button:active .refs_svg {
    fill: black;
}

.refs_logo {
    position: absolute;
    right: 0;
    top: 0;
    transform-style: preserve-3d;
}

.refs_logo .refs_circle {
    display: block;
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    right: 0;
    box-shadow: rgba(100, 100, 111, 0.2) -10px 10px 20px 0px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(13, 209, 68, 0.15);
    transition: all 0.5s ease-in-out;
}

.refs_logo .circle1 {
    width: 170px;
    transform: translate3d(0, 0, 20px);
    top: 8px;
    right: 8px;
}

.refs_logo .circle2 {
    width: 140px;
    transform: translate3d(0, 0, 40px);
    top: 10px;
    right: 10px;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    transition-delay: 0.4s;
}

.refs_logo .circle3 {
    width: 110px;
    transform: translate3d(0, 0, 60px);
    top: 17px;
    right: 17px;
    transition-delay: 0.8s;
}

.refs_logo .circle4 {
    width: 80px;
    transform: translate3d(0, 0, 80px);
    top: 23px;
    right: 23px;
    transition-delay: 1.2s;
}

.refs_logo .circle5 {
    width: 50px;
    transform: translate3d(0, 0, 100px);
    top: 30px;
    right: 30px;
    display: grid;
    place-content: center;
    transition-delay: 1.6s;
}


.refs_logo .circle5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.refs_social-button .refs_icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter 0.3s ease-in-out;
}

.refs_parent:hover .refs_card {
    transform: rotate3d(1, 1, 0, 30deg);
    box-shadow: rgba(5, 71, 17, 0.3) 30px 50px 25px -40px, rgba(5, 71, 17, 0.1) 0px 25px 30px 0px;
}

.refs_parent:hover .refs_card .refs_bottom .refs_social-buttons-container .refs_social-button {
    transform: translate3d(0, 0, 50px);
    box-shadow: rgb(255, 255, 255) -5px 20px 10px 0px;
}

.refs_parent:hover .refs_card .refs_logo .circle2 {
    transform: translate3d(0, 0, 60px);
}

.refs_parent:hover .refs_card .refs_logo .circle3 {
    transform: translate3d(0, 0, 80px);
}

.refs_parent:hover .refs_card .refs_logo .circle4 {
    transform: translate3d(0, 0, 100px);
}

.refs_parent:hover .refs_card .refs_logo .circle5 {
    transform: translate3d(0, 0, 120px);
}


/* Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.8rem;
    color: #fff;
    background: #00c37b;
    padding: 6px 12px;
    border-radius: 5px;
    z-index: 1100;
    cursor: pointer;
}

/* Sidebar */
.smart-sidebar {
    position: fixed;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100%;
    background-color: #111;
    color: #fff;
    z-index: 1000;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
}

.smart-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smart-sidebar nav ul li {
    margin: 20px 0;
    padding-left: 20px;
}

.smart-sidebar nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    display: block;
    transition: color 0.2s;
}

.smart-sidebar nav ul li a:hover {
    color: #00c37b;
}

.smart-sidebar.active {
    left: 0;
}
