#TopRobot {
    position: relative;
}
#navigation{
    position: fixed;
    z-index: 1;
}
/*
.computer_exp {
    display: inline-block;
    animation: fade-in 0.5s ease-in-out, scale-up 0.5s ease-in-out;
  }
  @keyframes fade-in {
    0% { opacity: 0; transform: scale(0.5) rotateY(180deg); }
    100% { opacity: 1; transform: scale(1) rotateY(0deg); }
  }
  @keyframes scale-up {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
  }
  .screen { animation: screen-flicker 1s infinite alternate; }
  @keyframes screen-flicker {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
  }
  .keyboard { animation: typing-keyboard 0.3s infinite alternate; }
  @keyframes typing-keyboard {
    from { transform: translateY(0px); }
    to { transform: translateY(-5px); }
  }
  .mouse { animation: mouse-move 1s infinite alternate ease-in-out; }
  @keyframes mouse-move {
    from { transform: translateX(0px); }
    to { transform: translateX(10px); }
  }
  .coder { animation: typing-hands 6s infinite alternate; }
  @keyframes typing-hands {
    from { opacity: 0; transform: scale(0);  }
    to {  opacity: 1; transform: scale(1);}
  }
*/
@media (max-width: 768px) {
    #TopRobot {
        display: none;  /* Hide container on mobile */
    }
   
}

@media (min-width: 769px) and (max-width: 1024px) {
    #TopRobot canvas {
        transform: scale(0.8);  /* Slightly smaller on tablets */
    }
}

#deviceAnimation {
    visibility: hidden;
}
/*
.smile::after {
    content: '😀';
    animation: smile 5s infinite;
    /* Shorthand animation 
    display: inline-block;
}

@keyframes smile {
    25% {
        content: '😃';
        transform: rotate(-20deg)scale(1.2);
    }
    50% {
        content: '😄';
        transform: rotate(20deg) scale(1.2);
    }
    75% {
        content: '😁';
        transform: rotate(-20deg) scale(1.2);
    }
    100% {
        content: '😀';
        transform: rotate(0deg) scale(1);
    }
}
*/
.wave {
    animation-name: wave-animation;
    /* Refers to the name of your @keyframes element below */
    animation-duration: 2.5s;
    /* Change to speed up or slow down */
    animation-iteration-count: infinite;
    /* Never stop waving :) */
    transform-origin: 70% 70%;
    /* Pivot around the bottom-left palm */
    display: inline-block;
}

@keyframes wave-animation {
    0% {
        transform: rotate( 0.0deg)
    }
    10% {
        transform: rotate(14.0deg)
    }
    /* The following five values can be played with to make the waving more or less extreme */
    20% {
        transform: rotate(-8.0deg)
    }
    30% {
        transform: rotate(14.0deg)
    }
    40% {
        transform: rotate(-4.0deg)
    }
    50% {
        transform: rotate(10.0deg)
    }
    60% {
        transform: rotate( 0.0deg)
    }
    /* Reset for the last half to pause */
    100% {
        transform: rotate( 0.0deg)
    }
}

.logo img,
.logo object {
    width: 150px;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover,
.logo object:hover {
    transform: scale(1.1);
}

.about-info svg {
    font-family:  sans-serif;
}

.about-info svg text {
    text-transform: uppercase;
    animation: stroke 5s infinite alternate;
    stroke-width: 2;
    stroke: #365fa0;
    font-size: 110px;
}

@keyframes stroke {
    0% {
        fill: rgba(72, 138, 20, 0);
        stroke: rgba(54, 95, 160, 1);
        stroke-dashoffset: 25%;
        stroke-dasharray: 0 50%;
        stroke-width: 2;
    }
    70% {
        fill: rgba(72, 138, 20, 0);
        stroke: rgba(54, 95, 160, 1);
    }
    80% {
        fill: rgba(72, 138, 20, 0);
        stroke: rgba(54, 95, 160, 1);
        stroke-width: 3;
    }
    100% {
        fill: rgba(72, 138, 204, 1);
        stroke: rgba(54, 95, 160, 0);
        stroke-dashoffset: -25%;
        stroke-dasharray: 50% 0;
        stroke-width: 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



#greeting1,
#greeting2 {
    position: absolute;
    display: inline-block;
}

.greeting-container {
    filter: url(#threshold) blur(0.6px);
}
h1 picture{
    display: inline-block;
}
h1 picture img{
    margin-bottom: 15px;
}
h1.name-text {
    color: rgba(45, 45, 45, 1);
}

.name-text {
    font-family: "Fira Mono", monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2ch;
    font-size: 14vw;
    line-height: 1;
    margin: 0;
}


* {
    margin: 0px;
    padding: 0px;
}

#home-banner {
    background: #4e54c8;
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

@media screen and (max-width: 1023px) {
    #banner .title {
        font-size: 5em;
    }
    #intro .content-fit {
        flex-direction: column;
    }
}

@media screen and (max-width: 767px) {
    #banner .title {
        font-size: 3em;
    }
    #intro .content-fit {
        flex-direction: column;
    }
    .section .number {
        font-size: 5em;
    }
    .section .content-fit .title {
        font-size: 2em;
    }
    #description .content-fit {
        padding-right: 0;
    }
    #contact table {
        font-size: 1em;
    }
    #contact .sign {
        font-size: 2em;
    }
    #container3D {
        position: absolute;
    }
}

/* About section styling */
.about-bio {
    padding: 1rem 0;
}

.section-subtitle {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-subtitle:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: #f7941d;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #4e54c8;
    color: white;
    box-shadow: 0 4px 6px rgba(247, 148, 29, 0.2);
}

.btn-primary:hover {
    background: #e58617;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(247, 148, 29, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #f7941d;
}

.btn-secondary:hover {
    background: rgba(247, 148, 29, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Animation for cute-robot when hire-me is clicked */
#cute-robot {
    transition: all 0.5s ease;
}

#cute-robot.animated {
    animation: highlight-robot 3s ease-in-out;
}

@keyframes highlight-robot {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }
    15% {
        filter: brightness(1.3);
        transform: scale(1.05);
    }
    30% {
        filter: brightness(1.1);
        transform: scale(1.02);
    }
    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

/* Enhance button click effect */
.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(247, 148, 29, 0.2);
}

#education-message{
    position: absolute;
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%) translate(0.214px, -20px); 
    font-size: 24px; color: rgb(247, 148, 29); 
    text-align: center; 
    z-index: 2; 
    opacity: 0; 
    font-weight: bold; 
    text-shadow: rgba(0, 0, 0, 0.2) 2px 2px 4px; 
    translate: none; rotate: none; 
    scale: none;
}
#education-robot{
    position: absolute;
    top: 70%;
    left: 50%;
            transform: translate(-50%, -50%);
           
            z-index: 3;
            opacity: 0;
}
#education-robot img{
    width: 200px;
    height: 200px;
}
    
.timeline-dot.teaching svg,
.timeline-dot.teaching .lottie-animation {
    width: 250px !important;
    height: 250px !important;
    position: absolute;
    left: -15%;
  
    z-index: 2;
}

/* Education & Certificates Section */
.education-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.subsection-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.subsection-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #f7941d;
    border-radius: 2px;
}

/* Timeline Styles */
.education-timeline {
    position: relative;
    padding: 20px 0;
}

.certificate-card {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    padding: 20px 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.certificate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



.education-timeline-item {
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
   
    margin-bottom: 30px;
    border-radius: 10px;
  
}

.education-timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.education-timeline-item.falling {
    pointer-events: none;
}


.timeline-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.institution-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-title h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 5px 0;
}

.timeline-title h4 {
    font-size: 16px;
    color: #666;
    margin: 0 0 5px 0;
}

.timeline-period {
    font-size: 14px;
    color: #f7941d;
    font-weight: 500;
}

.timeline-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Certificates Styles */
.certificates-section {
    padding: 20px 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.certificate-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.certificate-icon {
    width: 50px;
    height: 50px;
    background: rgba(247, 148, 29, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.certificate-icon i {
    font-size: 24px;
    color: #f7941d;
}

.certificate-content h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
}

.certificate-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px 0;
}

.certificate-date {
    font-size: 12px;
    color: #f7941d;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .education-timeline-item {
        padding: 15px 20px;
    }
    
    .institution-logo {
        width: 50px;
        height: 50px;
    }
    
    .timeline-title h3 {
        font-size: 16px;
    }
    
    .timeline-title h4 {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .education-section {
        padding: 40px 0;
    }
    
    .subsection-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .certificate-card {
        padding: 15px;
    }
    
    .certificate-icon {
        width: 40px;
        height: 40px;
    }
    
    .certificate-icon i {
        font-size: 20px;
    }
}

/* Animation for falling elements */
@keyframes fallDown {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Physics canvas container */
#education canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.wheel {
	position: absolute;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 300vw;
	height: 300vw;
	max-width: 2000px;
	max-height: 2000px;
	left: 50%;
	transform: translateX(-50%);
}

.wheel__card {
	position: absolute;
	top: 0;
	left: 0;
	width: 6%;
	max-width: 200px;
	aspect-ratio: 1 / 1;
	cursor: pointer;
}