/* public/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    overflow-x: hidden; /* Hide horizontal overflow */
    overflow-y: auto; /* Allow vertical scrolling */
    cursor: url('/images/Screenshot%202025-03-31%202323430.png'), 16 16, auto;
}

/* Navbar Container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: none;  /* Remove the box shadow */
    border-bottom: 1px solid #00AEEF;  /* Add a thin border (light gray) */
}

/* Navbar Header (Profile Pic & Name) */
.navbar-header {
    display: flex;
    align-items: center;
    position: relative; /* Ensures the scaling doesn't affect the layout */
    z-index: 1; /* Prevents scaling overlap */
}

/* Profile Pic */
.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: transform 0.3s ease; /* Smooth transition for transform only */
    transform-origin: center center; /* Ensures it scales from the center */
}

/* Scaling the profile pic on hover */
.profile-pic:hover {
    transform: scale(3.5) translate(-15px, 15px); /* Scales and shifts without affecting the container */
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.7); /* Add box-shadow with color and blur */
}

/* Name */
.name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
}

.name:hover {
    color: #00AEEF; /* Change text color to the original blue */  
    text-shadow: 5px 5px 15px white; /* Larger and more pronounced shadow */

}

/* Navbar Links Container */
.navbar {
    display: flex;
    list-style: none;
    margin: 0;
}

/* Individual Navbar Links */
.navbar li {
    margin: 0 20px; /* Add more space between links */
}

.navbar a {
    color: white;
    text-shadow: 5px 5px 15px #00AEEF; /* Larger and more pronounced shadow */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 8px 16px;
    transition: all 0.25s ease-in-out;
    border-radius: 4px;
}

.navbar a:hover {
    color: #00AEEF; /* Change text color to the original blue */
    text-shadow: 5px 5px 15px white; /* Larger and more pronounced shadow */
    transform: scale(1.05); /* Slight scaling effect for more interactivity */
}

/* Hamburger Menu Icon (Hidden by default on large screens) */
.hamburger {
    display: none; /* Hide by default */
    font-size: 30px;
    cursor: pointer;
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    padding: 10px;
}
.hamburger:hover{
    text-shadow: 0 0 15px white, 0 0 20px white, 0 0 40px white, 0 0 50px white;
}
/* Checkbox Hack for Showing and Hiding Menu */
.menu-toggle {
    display: none; /* Hide the checkbox */
}
/* Styling for the "X" icon */
.close-menu {
    display: none;
    font-size: 25px;
    color: black;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}
/* Show close icon when menu is active */
.menu-toggle:checked + .hamburger + .navbar .close-menu {
    display: block; /* Display the close (X) icon when menu is active */
}
/* Media Query for Responsiveness */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Hide navbar links by default on small screens */
        flex-direction: column;
        align-items: center;
        width: 40%;
        height: 60vh;
        background-color: rgba(0, 174, 239, 0.9); /* Set background with transparency */
        position: absolute;
        top: 60px; /* Position it below the navbar */
        right: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for dropdown */
        z-index: 2;
    }
    .navbar a {
        font-size: 1.5rem;
        font-weight: 450;
        color: black;
        text-shadow: none;
    }
    .navbar a:hover {
        color: white;
        text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    }
    .menu-toggle:checked + .hamburger + .navbar {
        display: flex; /* Show the navbar when the checkbox is checked */
        flex-direction: column;
        align-items: center;
    }
    .navbar-header {
        margin-bottom: 10px; /* Space between profile and navbar links */
    }
    /* Show navbar when active */
    .navbar.active {
        display: flex;
    }
    .name{
        font-size: 0.9rem;
        margin-top: 10%;
    }
    .profile-pic {
        display: none;
    }
    /* Show hamburger menu */
    .hamburger {
        display: block; /* Show hamburger icon on small screens */
        font-size: 18px;
    }
    .navbar li {
        margin: 30px 0; /* Add space between stacked links */
    }
    .close-menu{
        display: block;
    }
    .close-menu:hover{
        color: white;
    }
}
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: transparent;
    overflow: hidden;
  }
  
  .typing-container {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    overflow: hidden;
  }
  
  #typing {
    display: inline-block;
    font-weight: 500;
    white-space: nowrap;
    border-right: 0.1em solid white; /* Cursor effect */
    margin-top: 0px;
  }
  .typing-container span{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #0f0;
    padding-right: 4px;
    animation: blink 0.7s steps(1) infinite;
  }
  .typing-container span:hover{
    color: #00AEEF; /* Change text color to the original blue */
    text-shadow: none;
  }
  @keyframes blink {
    from, to {
      border-color: transparent;
    }
    50% {
      border-color: #0f0;
    }
  }
  .scroll-down-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 1;  /* Make it visible */
    background-color: rgba(0, 174, 239, 0.8);
    height: 35px;
    width: 150px; /* Set a width for the button shape */
    border-radius: 25px; /* Rounded corners like a button */
    padding-left: 10px;
    padding-right: 10px;
    
    /* 1s vibration + 4s wait = 5s total cycle */
    animation: vibration 1s ease-in-out, pause 5s ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: 7.7s;
}

/* Vibration animation */
@keyframes vibration {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    10% {
        transform: translateX(-50%) translateY(0) rotate(3deg);
    }
    20% {
        transform: translateX(-50%) translateY(0) rotate(-3deg);
    }
    30% {
        transform: translateX(-50%) translateY(0) rotate(3deg);
    }
    40% {
        transform: translateX(-50%) translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateX(-50%) translateY(0) rotate(2deg);
    }
    60% {
        transform: translateX(-50%) translateY(0) rotate(-2deg);
    }
    70% {
        transform: translateX(-50%) translateY(0) rotate(1deg);
    }
    80% {
        transform: translateX(-50%) translateY(0) rotate(-1deg);
    }
    90% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Pause animation to create the gap */
@keyframes pause {
    0%, 20% { /* First second includes the vibration */
        opacity: 1;
    }
    21%, 100% { /* Remaining 4 seconds is the gap */
        opacity: 1;
    }
}
.scroll-down-container:hover{
    background-color: white;
    box-shadow: 0px 4px 10px #00AEEF; /* Adds a box shadow with color #00AEEF */
}
.scroll-down-container:hover .typing-container span{
    color: #00AEEF;
    text-shadow: none;
}
/* Control the appearance of the "scroll down" text */
.scroll-text {
    font-size: 1.3rem;   /* Adjust the font size */
    font-weight: 500;    /* Adjust the font weight */
    color: black;      /* Set text color */
    letter-spacing: 2px; /* Optional for some style */
    text-decoration: none;
}
/* When typing is done, show the scroll down text and arrow */
.scroll-down-container.visible {
    opacity: 1;
}
/* Section Styling */
section {
    padding: 5px 20px;
    text-align: center;
    margin: 20px 0;
}

/* General Styling for the About Me Section */
.about-me {
    display: flex;
    flex-direction: row;
    text-align: center;
    color: #00AEEF;
    position: relative;
    overflow: hidden;
    height: 70vh;
    width: 85%;
    margin-bottom: 5%;
}

/* Profile Picture Container */
.about-me-profile-pic-container {
    position: relative;
    display: inline-block;
    width: 50%;
    margin-left: 7%;
    margin-top: 0%;
    z-index: 1000;
}

/* Profile Picture Style */
.about-me-profile-pic {
    left: 0;
    position: absolute;
    height: 60vh;
    width: 17vw;
    object-fit: cover;
    transition: all 0.3s ease;
    animation: fadeInText 2s ease-out;
    z-index: 1000;
}
.my-name{
    background-color: transparent;
    color: white;
    box-shadow: none;
    border-radius: 0;
}


/* Speech Bubble Styling */
.speech-bubble {
    position: absolute;
    top: 18%; 
    left: 35%;
    transform: translateX(10px);
    background-color: white;
    border: 2px solid #000;
    border-radius: 30% / 35%;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00AEEF;
    width: max-content;
    max-width: 200px;
    text-align: center;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Speech Bubble Tip */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: -12%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 35px 35px 0 15px;
    border-color: white transparent transparent;
    transform: rotate(40deg);
    transition: all 0.3s ease;
}

/* Hover effect for the speech bubble and its tip */
.speech-bubble:hover {
    color: black;
    background-color: white;
}

.speech-bubble:hover::after {
    border-color: white transparent transparent transparent;
}

/* Tags Container - Positioned relative */
.tags {
    position: absolute; /* Position tags absolutely within the container */
    top: 0; /* Default to the top of the container */
    left: 0; /* Align them within the container */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Each individual tag */
.tag {
    position: absolute;
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    background-color: #00AEEF;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 8px;
    text-align: center;
    opacity: 0; /* Tags are invisible by default */
    transition: all 0.3s ease;
}

/* Positioning for tags */
.tag-1 {
    top: 15%;
    left: 40%;
}

.tag-2 {
    top: 33%;
    left: 46%;
}

.tag-3 {
    top: 49%;
    left: 55%;
}

.tag-4 {
    top: 85%;
    left: 45%;
}

.tag-5 {
    top: 67%;
    left: 50%;
}

.tags .tag:hover {
    background-color: white;
    color: black;
    transform: translateX(3%);
    box-shadow: 0px 4px 10px #00AEEF; /* Adds a box shadow with color #00AEEF */
}

/* Show tags when profile picture container is hovered */
.about-me-profile-pic-container:hover .tags {
    opacity: 1; /* Make tags visible */
    transform: scale(1.05); /* Optional scaling effect */
    z-index: 1000; /* Ensure tags are above other content */
}

/* Make the individual tags visible */
.about-me-profile-pic-container:hover .tag {
    opacity: 1; /* Tags become visible */
    transform: translateY(0); /* Ensure they are in their final position */
    z-index: 1000;
}
.about-me-profile-pic-container:hover .tag:hover{
    transform: translateX(10%);
}
/* Hide the speech bubble when the profile picture container is hovered */
.about-me-profile-pic-container:hover .speech-bubble {
    display: none; /* Hide the speech bubble */
}

.about-me-h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeIn 2s ease-out;
    text-align: center;
}

/* Highlighted Elements for emphasis */
.highlight {
    color: white;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.about-me-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    animation: fadeInText 2s ease-out;
    margin-top: 150px;
}

/* Text Reveal Animation */
@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hover Effects for Interactive Text */
.highlight:hover {
    color: #00AEEF;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Typewriter effect for the dynamic "AI" term */
@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Particle effect background (light touch) */
@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

.about-me::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path_to_particle_effect.gif') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    animation: moveBackground 30s linear infinite;
}
/* Media Query for Screens Under 768px */
@media (max-width: 768px) {
    .typing-container span{
        font-size: 1.05rem;
    }
    /* About Me Section */
    .about-me {
        flex-direction: column; /* Stack the elements vertically */
        height: 90vh; /* Adjust height for better layout */
        padding: 10px; /* Add padding for smaller screens */
    }

    /* Profile Picture Container */
    .about-me-profile-pic-container {
        width: 100%; /* Increase width for smaller screens */
        margin-left: 0; /* Remove margin-left */
        margin-top: 10px; /* Add space at the top */
        z-index: 0;
        height: 50%;
        z-index: 1000;
    }

    /* Profile Picture Style */
    .about-me-profile-pic {
        height: 40vh; /* Reduce height of the image */
        width: 50vw; /* Adjust width to fit the screen */
        margin-left: 16%;
        z-index: 1000;
    }
    .about-me-content{
        height: 50%;
    }
    /* Speech Bubble */
    .speech-bubble {
        top: 20%; /* Adjust position for smaller screens */
        left: 75%; /* Center horizontally */
        transform: translateX(-50%); /* Center horizontally */
        font-size: 1rem; /* Reduce font size */
        padding: 15px 20px; /* Adjust padding for small screens */
    }

    /* Tags Container */
    .tags {
        position: relative; /* Allow tags to be positioned normally */
        opacity: 1; /* Keep tags visible on smaller screens */
        transform: none; /* Remove scaling effect */
        align-items: center; /* Center align tags */
    }

    /* Individual Tags */
    .tag {
        font-size: 0.7rem; /* Adjust font size */
        padding: 6px 12px; /* Adjust padding */
        margin: 4px; /* Reduce margin */
    }
    /* Positioning for tags */
    .tag-1 {
        top: 15%;
        left: 5%;
    }

    .tag-2 {
        top: 33%;
        left: 65%;
    }

    .tag-3 {
        top: 15%;
        left: 60%;
    }

    .tag-4 {
        top: 51%;
        left: 75%;
    }

    .tag-5 {
        top: 33%;
        left: 0%;
    }
    /* About Me Header */
    .about-me-h2 {
        font-size: 1.8rem; /* Reduce font size for smaller screens */
        margin-bottom: 10px; /* Reduce bottom margin */
    }

    /* Paragraph */
    .about-me-content p {
        font-size: 1rem; /* Adjust paragraph font size */
        line-height: 1.5; /* Adjust line height */
        margin-top: 20px; /* Add top margin */
        z-index: 0;
    }
    .scroll-down-container{
        width: auto;
    }
    .scroll-text{
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Smooth Button Styling */
button {
    padding: 15px 30px;
    background-color: #00AEEF;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #00AEEF;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
}
.skills-h2{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.9rem;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
}
.skills-h2:hover{
    color: #00AEEF;
    text-shadow: none;
}
/* Skills container */
.skills {
    background-color: black;
    color: white;
    height: 80vh;
    width: 80%;
    overflow: hidden;  /* Prevent overflow */
    margin-left: 8%;
    position: relative;
}

/* Container for the skills stage */
.skills-stage {
    position: relative;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}

/* The individual skill logos */
.skill-logo {
    position: absolute;
    opacity: 0;
    transform: translateX(-100vw);  /* Start outside the screen */
    transition: transform 1s ease, opacity 0.5s ease;
}

/* The images within the logos (size in the skills stage) */
.skill-logo img {
    width: 16vw; /* Logos retain their original size */
    height: 16vh;
    object-fit: contain;
}

/* Lower deck for the logos after they are knocked */
.lower-deck {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 20%;
    width: 100%;
    animation: bubbleAnimation 1s ease-out 3; /* Bubble effect for 3 iterations */
    overflow: hidden;
    border-top: 3px solid #00AEEF;  /* Add a visible top border */
    opacity: 1;  /* Keep the lower deck always visible */
}

/* Add smaller size for logos when in the lower-deck */
.lower-deck .skill-logo img {
    width: 8vw; /* Reduced size for logos in lower deck */
    height: 8vh;
}
/* Add this animation */
@keyframes moveShadow {
    0% {
        box-shadow: none;
    }
    14% {
        box-shadow: 0px 4px 0px #00AEEF; /* Box-shadow applied */
    }
    100% {
        box-shadow: none; /* No shadow at the end */
    }
}

/* Apply the animation to all logos */
.lower-deck .skill-logo img {
    animation: moveShadow 10s linear infinite; /* 7s duration, continuous loop */
    animation-delay: calc(1s * var(--logo-index)); /* Delay each logo by 1s incrementally */
}
.lower-deck .skill-logo img:hover{
    transform: scale(1.3);
}
/* Define the index for each logo using CSS variables */
.lower-deck .skill-logo.logo-1 img {
    --logo-index: 0;
}

.lower-deck .skill-logo.logo-2 img {
    --logo-index: 1;
}

.lower-deck .skill-logo.logo-3 img {
    --logo-index: 2;
}

.lower-deck .skill-logo.logo-4 img {
    --logo-index: 3;
}

.lower-deck .skill-logo.logo-5 img {
    --logo-index: 4;
}

.lower-deck .skill-logo.logo-6 img {
    --logo-index: 5;
}

.lower-deck .skill-logo.logo-7 img {
    --logo-index: 6;
}

/* Burst effect animation */
@keyframes burstEffect {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Show the lower deck when active */
.lower-deck.active {
    animation: burstEffect 2s ease-out forwards 3;  /* Add burst effect */
}

/* Text reveal animation after the burst effect completes */
.end-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: bold;
    color: #00AEEF;
    opacity: 0;  /* Initially hidden */
    transition: opacity 1s ease-in-out;  /* Smooth transition for visibility */
    animation: textReveal 1s ease-in-out 17s forwards; /* Delay until after burst */
}
/* Make an invisible area of influence around the end-text */
/* Make an invisible area of influence around the end-text */
.end-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150vw;
    height: 150vh;
    background: transparent;
    pointer-events: all; /* Ensure the area responds to cursor interactions */
}

/* Text reveal animation */
@keyframes textReveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.end-text:hover{
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
}
.end-text:hover.skills-h2{
    color: #00AEEF;
}
/* Hide logos when the lower deck is active */
.lower-deck.active .skill-logo {
    opacity: 1; /* Hide logos in the lower deck */
    transform: translateY(0); /* Reset any transforms */
}
.lower-deck.active .skill-logo:hover{
    transform: translateX(300px) translateY(300px);
}
/* Bubble animation */
@keyframes bubbleAnimation {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjustments to handle the end-text reveal after burst effect */
.lower-deck.active .end-text {
    animation: textReveal 1s ease-in-out 6s forwards; /* Ensure the text appears after 3 burst animations */
}

/* Typing animation */
@keyframes typing {
    0% {
        width: 0;
    }
    25% {
        width: 25%;
    }
    50% {
        width: 50%;
    }
    75% {
        width: 75%;
    }
    100% {
        width: 100%;
    }
}

/* Slide-in animation for text */
@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(10%);
        opacity: 0.7;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Blinking cursor effect */
@keyframes blink {
    0% {
        border-right: 0.1em solid transparent;
    }
    50% {
        border-right: 0.1em solid white;
    }
    100% {
        border-right: 0.1em solid transparent;
    }
}
/* Media Query for smaller screens (like tablets and phones) */
@media (max-width: 768px) {
    
}
/* Style for the heading */
.projects-h2 {
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.9rem;
    margin-bottom: 10px; /* Space between the heading and the horizontal line */
    z-index: 1;  /* Ensure the heading stays above other elements */
    text-align: center;
    margin-top: 5%;
}
.projects-h2:hover{
    color:#00AEEF;
    text-shadow: none;
}
/* Ensure the timeline has its own space */
.timeline-container {
    position: relative;
    height: 80vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; /* Ensures everything is vertically centered */
    padding: 5vh 0;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

/* Middle timeline line */
.timeline {
    position: relative;
    width: 80%;
    height: 0.5vh; /* Thin horizontal line */
    background-color: #00AEEF;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.timeline::after {
    content: "";
    position: absolute;
    width: 1.5vw;
    height: 1.5vw;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    top: 50%; /* Fixed vertically */
    left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.timeline.hovering::after {
    opacity: 1;
}

/* Ensures project elements stay centered in the timeline */
.project {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Vertical lines */
.vertical-line {
    width: 0.3vw;
    height: 20vh; /* Adjusted height for responsiveness */
    background-color: #00AEEF;
    position: absolute;
}
/* Show a floating ball on hover using :after */
.vertical-line:hover::after {
    content: "";
    position: absolute;
    width: 1.5vw;
    height: 1.5vw;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    left: 50%;
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
/* Project boxes ABOVE the middle line */
.project.top .vertical-line {
    bottom: 0;
}

.project.top .project-box {
    position: absolute;
    bottom: 18vh; /* Ensures space between the box and the middle line */
}

/* Project boxes BELOW the middle line */
.project.bottom .vertical-line {
    top: 0;
}

.project.bottom .project-box {
    position: absolute;
    top: 18vh; /* Ensures space between the box and the middle line */
}

/* Styling for the project boxes */
.project-box {
    position: relative;
    font-family:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 12vw;
    padding: 1vh;
    background: #fff;
    border: 0.2vw solid #333;
    border-radius: 1vw;
    text-align: center;
    font-size: 1.0em;
    font-weight: bold;
    color: black;
    /* overflow: hidden; */
}
.project-box img{
    position: absolute;
    display: none;
    height: 70%;
    width: 90%;
    margin-top: 5%;
    margin-left: 2%;
}
.project-box:hover{
    height: 23vh;
    background: #00AEEF;
}
.project-box:hover img{
    display: block;
}
/* Responsiveness for smaller screens */
@media (max-width: 768px) {
    .project-box:hover{
        width: 25vw;
        height: 25vh;
    }
    .project-box img{
        height: 60%;
        width: 95%;
        margin-left: 0%;
        margin-right: 5px;
    }
}
/* Ball animation */
.ball {
    position: absolute;
    width: 1.5vw; /* Responsive size */
    height: 1.5vw;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    transition: transform 1s linear;
}


.contact{
    position: relative;
    height: 38vh;
    margin-bottom: 3%;
}
.contact h2{
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.9rem;
}
.contact h2:hover{
    color: #00AEEF;
    text-shadow: none;
}
/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 2.5rem;
}

section {
    margin: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 0.7rem;
    font-size: 1rem;
    background-color: #00AEEF;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: white;
    box-shadow: 0px 4px 10px #00AEEF; /* Adds a box shadow with color #00AEEF */
    color: black;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10%;
    margin-top: 2%;
    margin-bottom: 2%;
}

.social-icons a {
    color: white; /* Change to your desired hover color */
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons a:hover {
    color: #00AEEF;
    text-shadow: none;
}

.social-icons i {
    font-size: 24px; /* Icon size */
}

/* Footer Section Styling */
footer {
    position: relative;
    background-color: transparent;
    color: white;
    padding: 20px;
    text-align: center;
    height: auto;
    border-top: 1px solid #00AEEF; 
    margin-top: 3%;
}

.copyright{
    color: white;
    text-shadow: 2px 2px 5px #00AEEF; /* Adds a text shadow with color #00AEEF */
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.copyright:hover{
    color: #00AEEF;
    text-shadow: none;
}