@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
    margin: 0px;
    font-family: 'Poppins', sans-serif;
    /* background-color: #000316; */
    background: rgb(0, 0, 0);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    justify-content: space-between;
}
html {
    scroll-behavior: smooth;
}
.colorWhite {
    background-color: #00000000;
    color: #fff;
}


.contact-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #00020c;
    color: #ffffff;
}

.contact-section h2{
    font-family: "Press Start 2P", system-ui;
}


.contact-buttons {
    margin-top: 20px;
}

.contact-button {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.contact-button i {
    margin-right: 8px; /* Space between icon and text */
}

.linkedin-button:hover {
    background-color: #0056b3; /* LinkedIn brand color for hover */
}

.email-button:hover {
    background-color: #c82333; /* A darker shade for hover */
}


header {
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-navbar {
    display: flex;
    justify-content: center; /* Center the navbar contents */
    align-items: center; /* Align items vertically */
    background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Acrylic effect */
    border-radius: 25px; /* Rounded edges */
    padding: 10px 15px; /* Padding around navbar */
    margin: 20px auto; /* Center with margin */
    width: 30%; /* Set width to make it look less wide */
    max-width: 600px; /* Limit maximum width */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    position: relative; /* Position relative for dropdowns */
    transform: scale(0); /* Start scaled down */
    opacity: 0; /* Start invisible */
    animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
}

/* Animation to expand the navbar and fade in */
@keyframes expandAndFadeIn {
    0% {
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
    }
    50% {
        transform: scale(1); /* Full size */
        opacity: 1; /* Fully visible */
    }
    100% {
        transform: scale(1); /* Full size */
        opacity: 1; /* Fully visible */
    }
}

/* Expand the navbar on hover */
.widget-navbar:hover {
    transform: scale(1.05); /* Slightly enlarge the navbar */
}

/* Navbar links */
.nav-links {
    list-style: none; /* Remove bullet points */
    display: flex; /* Horizontal layout for links */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

/* Individual nav links */
.nav-links li {
    margin: 0 25px; /* Space between navbar items */
    opacity: 0; /* Start items as transparent */
    animation: fadeIn 0.5s ease forwards; /* Fade in animation */
}

/* Link styling */
.nav-links li a {
    color: #ffffff; /* White color for text */
    text-decoration: none; /* No underline */
    font-size: 24px; /* Increased font size for icons */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Fade in animation for navbar items */
@keyframes fadeIn {
    0% {
        opacity: 0; /* Start as transparent */
    }
    100% {
        opacity: 1; /* Fully visible */
    }
}

/* Apply staggered fade-in effect */
.nav-links li:nth-child(1) { animation-delay: 0.1s; } /* Delay for the first item */
.nav-links li:nth-child(2) { animation-delay: 0.2s; } /* Delay for the second item */
.nav-links li:nth-child(3) { animation-delay: 0.3s; } /* Delay for the third item */
.nav-links li:nth-child(4) { animation-delay: 0.4s; } /* Delay for the fourth item */
.nav-links li:nth-child(5) { animation-delay: 0.5s; } /* Delay for the fifth item */
.nav-links li:nth-child(6) { animation-delay: 0.6s; } /* Delay for the sixth item */
.nav-links li:nth-child(7) { animation-delay: 0.6s; } /* Delay for the sixth item */

/* Hover effect for links */
.nav-links li a:hover {
    color: #00aaff; /* Change color on hover */
}


.social-widget {
    position: fixed; /* Fixed positioning */
    bottom: 20px; /* Distance from the bottom of the viewport */
    left: 50%; /* Centering horizontally */
    transform: translateX(-50%) scaleX(0); /* Start with width scaled down to zero */
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(26, 26, 26, 0.301); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect for the background */
    border-radius: 35px; /* Rounded edges */
    width: 300px; /* Actual width */
    z-index: 1000; /* Ensure it appears above other elements */
    animation: expandWidget 1s ease forwards; /* Expand animation */
}

@keyframes expandWidget {
    0% {
        transform: translateX(-50%) scaleX(0); /* Start at zero width */
    }
    100% {
        transform: translateX(-50%) scaleX(1); /* Full width after animation */
    }
}

/* Start icons with opacity 0 */
.social-icon {
    color: #ffffff; /* Icon color */
    font-size: 30px; /* Icon size */
    opacity: 0; /* Initially invisible */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth color and shadow transition */
    animation: fadeInIcons 1s ease forwards; /* Fade in animation for icons */
    animation-delay: 1s; /* Delay icon animation until widget is fully expanded */
}

@keyframes fadeInIcons {
    0% {
        opacity: 0; /* Invisible at the start */
    }
    100% {
        opacity: 1; /* Fully visible after animation */
    }
}

.social-icon:hover {
    color: #007bff; /* Change color on hover */
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.7); /* Glowing effect on the icons */
}



/* Specific adjustments for the home section */
.home-section {
    min-height: 100vh; /* Makes the home section full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-text {
    font-family: "Press Start 2P", system-ui;
    font-size: 2rem; /* Larger font for "Hello, I'm Felix" */
    line-height: 1.2;
    margin-bottom: 20px; /* Add spacing below the intro text */
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.082), 0 0 20px rgba(80, 80, 80, 0.6), 0 0 30px rgba(66, 66, 66, 0.4);
    animation: glowingText 1s ease-in-out infinite alternate;
}

@keyframes glowingText {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.082), 0 0 10px rgba(114, 114, 114, 0.4), 0 0 15px rgba(51, 51, 51, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.082), 0 0 40px rgba(104, 104, 104, 0.9), 0 0 60px rgba(39, 39, 39, 0.8);
    }
}

/* General styling for each section */
.section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: white;
    overflow: hidden; /* Ensure gradient doesn't overflow */
}



.section::before,
.section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 50px; /* Height of the gradient blend */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.section::before {
    top: -50px; /* Offset to ensure it overlaps with the previous section */
    background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.5)); /* Gradient fades from transparent to the section color */
}

.section::after {
    bottom: -50px; /* Offset to ensure it overlaps with the next section */
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5)); /* Gradient fades from transparent to the section color */
}
.section h2 {
    font-size: 2.5rem; /* Larger font size for section headings */
    margin-bottom: 20px; /* Spacing below the heading */
}


.typing-effect-container {
    display: inline-block;
    top: 20px; /* Adjusted for tighter spacing */
}


.typing-effect1 {
    font-family: "Press Start 2P", system-ui;
    font-size: 1.5rem;
    animation: typewriter 4s steps(40) 1s 1 normal both;
}

.cursor1 {
    display: inline-block;
    width: 5px;
    height: 37px;
    background-color: #ffffff;
    animation: smoothBlink 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes smoothBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}
.fade-in {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.colorBlue {
    background-color: #00000000;
    color: #00b7ff;
}
.prompt {
    display: flex;
    align-items: center;
}
.output {
    display: none;
    text-align: left;
}
.prompt code, .output code {
    font-family: 'Courier New', Courier, monospace;
}
.terminal-section {
    padding: 80px 0;
    background: #00060fd2;
    backdrop-filter: blur(5px) saturate(180%) contrast(120%);
    color: #ffffff;
    text-align: center;
    z-index: 2;
    position: relative;
    
}

.terminal-controls {
    text-align: center;
    margin-top: 20px;
    display: none; /* Hide by default */
}

#run-command {
    background-color: #00aaff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#input {
    display: inline;
    outline: none;
    white-space: pre-wrap; /* Preserve formatting */
    overflow: hidden;
    word-wrap: break-word; /* Ensure long text wraps */
    color: #ffffff; /* Text color */
}

#run-command:hover {
    background-color: #0088cc;
}

.cursor {
    display: inline-block;
    background-color: #ffffff;
    color: #ffffff;
    width: 10px;
    margin-left: 5px;
    animation: blink 1s steps(2, start) infinite;
}
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.terminal {
    width: 80%;
    max-width: 800px;
    background-color: #000000;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease; /* Add transition for smooth effect */
}

.terminal:hover {
    transform: scale(1.2); /* Slightly scale up on hover */
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #333;
    color: #fff;
    position: relative;
}

.terminal-header .buttons {
    display: flex;
}

.terminal-header .button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-header .button.red {
    background-color: #ff605c;
}

.terminal-header .button.yellow {
    background-color: #ffbd44;
}

.terminal-header .button.green {
    background-color: #00ca56;
}


.terminal-body {
    padding: 20px;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    background-color: #000000;
    height: 400px;
    overflow-y: auto;
    resize: vertical;
    
}

.terminal-content {
    white-space: pre-wrap;
}


#skills {
    background-color: #00020c;
}
.prompt {
    color: #ffffff;
    margin-right: 5px;
}
#experience {
    background: linear-gradient(to bottom left, #10003ba4, #0f0f0f8a);
    background-size: 200% 200%;
    animation: waveGradient 6s ease infinite; /* Creates the waving effect */
    backdrop-filter: blur(10px) saturate(180%) contrast(120%);
    color: white;
    padding: 80px 20px; /* Adjust padding as needed */
    border-radius: 15px; /* Smoothen corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
    position: relative;
}

/* Gradient waving animation */
@keyframes waveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


#projects {
    
    background: #00000fd2;
    backdrop-filter: blur(5px) saturate(180%) contrast(120%);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 900px; /* Limit the width of the entire grid */
    margin: 0 auto; /* Center the grid within the section */
}

.project-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 90%;
    margin: 0 auto;
    height: 250px; /* Uniform height for all boxes */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.project-box.loaded {
    transform: scaleX(1);
    opacity: 1;
}

.fade-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.project-box.loaded .fade-content {
    opacity: 1;
}
.project-box:hover {
    transform: scale(1.05);
    
}

.project-box i {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #525252;
    font-size: 1.5rem;
}

.project-box h3 {
    margin-top: 35px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff9d;
}

.project-box p {
    font-size: 1rem;
    color: #cccccc;
    margin-top: 5px;
    flex-grow: 1; /* Allows text content to expand within the box */
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto; /* Pushes tags to the bottom */
    padding-top: 10px; /* Adds a bit of space between content and tags */
}

.tags span {
    background-color: rgba(51, 51, 51, 0); /* Adjusted for acrylic look */
    color: #474747;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.achievement-title{
    position: relative;
    top: -50px;
    font-size: 2rem;
    font-family: "Press Start 2P", system-ui;
}

.projectsp {
    position: relative;
    font-size: 2rem;
    top: -50px;
    font-family: "Press Start 2P", system-ui;
}
.achievement-tree {
    position: relative;
    background: rgba(0, 21, 36, 0.377);
    backdrop-filter: blur(0px);
    padding: 50px;
    border-radius: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 1000px;
    height: 500px; /* Increased height for layout */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden; /* Ensure no elements overflow */
}

/* Glowing effect around the background */

/* Glow pulsing animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 170, 255, 0.5), 0 0 60px rgba(0, 170, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 170, 255, 0.7), 0 0 80px rgba(0, 170, 255, 0.5);
    }
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevent tooltip from interfering with hover */
}

.tree-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #cccccc;
    border-radius: 50%;
    z-index: 1; /* Keep dots above lines */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tree-dot .explanation-box {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    top: -35px; /* Position above the dot */
    left: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 100; /* Ensure it stays above other elements */
}


.tree-dot.active {
    background-color: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.7);
    transform: scale(1.2);
}

.tree-label {
    position: absolute;
    font-size: 14px;
    color: #525252;
    background-color: rgba(0, 0, 0, 0);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    margin-left: 20px; /* Adjust space next to dot */
}

.tree-connector {
    position: absolute;
    height: 2px;
    background-color: #cccccc8e;
    transform-origin: 0 0; /* Start the line from the left */
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(0, 170, 255, 0.7); }
    50% { box-shadow: 0 0 20px rgba(0, 170, 255, 1); }
    100% { box-shadow: 0 0 10px rgba(0, 170, 255, 0.7); }
}

.tree-dot.active {
    animation: glow 1.5s infinite;
}
.skillsp
{
    font-family: "Press Start 2P", system-ui;
    position: relative;
    font-size: 2rem;
    top: -40px;
}


.skills-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 800px; /* Adjustable width */
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    position: relative; /* Position relative for line adjustment */
    background-color: #000208;
}

.skills-tabs-vertical {
    display: flex;
    flex-direction: column;
    margin-right: 60px;
    position: relative;
}

.skills-container::before {
    content: "";
    position: absolute;
    left: 10px; /* Adjust to control line position */
    top: 0;
    width: 2px; /* Line thickness */
    height: 95%; /* Full height of container */
    background-color: #00aaff; /* Line color */
    border-radius: 10px;
}


.tab-button {
    background: none; /* Remove background */
    color: #b3b3b3;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    margin-bottom: 5px;
    text-align: left;
    width: 180px;
}

.tab-button.active, .tab-button:hover {
    color: #00aaff;
}



.skills-content {
    flex-grow: 1;
    display: block; /* Changed to prevent alignment shifts */
    max-width: 70%; /* Ensure content doesn’t stretch too far */
}

.skills-content p {
    word-wrap: break-word; /* Ensures text breaks to the next line if too long */
    overflow-wrap: break-word; /* Alternative for wrapping in older browsers */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Optional: slight slide-in effect */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.tab-content {
    display: none;
    font-size: 1rem;
    padding: 10px;
    color: #929292;
    min-height: 300px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    white-space: normal; /* Allows text to wrap within the container */
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}


.cert-terminal {
    width: 80%;
    max-width: 800px;
    background-color: #7e7e7e;
    color: #303030; /* Classic green on black */
    font-family: 'Lucida Console', monospace;
    border: 4px solid #CCCCCC;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.cert-title {
    font-size: 0.8rem;
    font-family: "Press Start 2P", system-ui;
    color: rgb(161, 161, 161);
}

.cert-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #000080;/* Light grey */
}

.cert-buttons {
    display: flex;
}

.cert-button {
    width: 24px;
    height: 24px;
    background-color: #a7a7a7; /* Gray buttons */
    margin-right: 5px; /* Space between buttons */
    border: 3px solid #bebebe; /* White border */
    position: relative; /* Needed for pseudo-elements */
}

.cert-button::before,
.cert-button::after {
    content: '';
    position: absolute;
    height: 14px;
    width: 2px;
    background-color: #000; /* Black lines for 'X' and '_' */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.cert-button.cert-red::before {
    /* Create 'X' for close button */
    transform: translate(-50%, -50%) rotate(45deg);
}

.cert-button.cert-red::after {
    /* Complete 'X' for close button */
    transform: translate(-50%, -50%) rotate(-45deg);
}

.cert-terminal-body {
    font-size: 1rem;
    padding: 20px;
    color: #000000;
    font-family: 'Lucida Console', monospace;
    background-color: #7a7a7a;
    height: 400px;
    overflow-y: auto;
    resize: vertical;
}

.cert-prompt {
    display: block;
    text-align: left;
}

.cert-output {
    display: block; /* Ensure it's visible */
    text-align: left;
}

.cert-link {
    color: #181818; /* Bright green to stand out */
    text-decoration: none; /* No underline */
}

.cert-link:hover {
    text-decoration: underline; /* Underline on hover for better UX */
}


.foot {
    position: relative;
    background-color: #000;
}
/* Display the first tab by default */



#cosmos-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Places canvas behind all other content */
    background-color: black; /* Fallback color if canvas doesn't load */
    pointer-events: none; /* Prevents interaction with canvas */
}

@media (max-width: 1800px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 37%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}

@media (max-width: 1600px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: #1a1a1a60; /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 40%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}
@media (max-width: 1400px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 50%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}

@media (max-width: 1200px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 55%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}

@media (max-width: 1000px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 60%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}
@media (max-width: 800px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 65%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}
@media (max-width: 600px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 70%; /* Set width to make it look less wide */
        max-width: 600px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}

@media (max-width: 500px) {
    .widget-navbar {
        display: flex;
        justify-content: center; /* Center the navbar contents */
        align-items: center; /* Align items vertically */
        background: rgba(26, 26, 26, 0.377); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Acrylic effect */
        border-radius: 25px; /* Rounded edges */
        padding: 10px 15px; /* Padding around navbar */
        margin: 20px auto; /* Center with margin */
        width: 100%; /* Set width to make it look less wide */
        max-width: 1300px; /* Limit maximum width */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
        position: relative; /* Position relative for dropdowns */
        transform: scale(0); /* Start scaled down */
        opacity: 0; /* Start invisible */
        animation: expandAndFadeIn 0.5s ease forwards; /* Expand and fade-in animation */
    }
    
}

@media (max-width: 578px) {
    /* Your CSS styles for screens 478px or smaller */

    .intro-text {
        font-size: 1.2rem;
    }

    .typing-effect1 {
        font-size: 1rem;
    }

    .cursor1 {
        display: inline-block;
        width: 5px;
        height: 30px;
        background-color: #ffffff;
        animation: smoothBlink 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    }
    /* Example: Adjusting dot size */
    .achievement-tree {
        position: relative;
        background: rgba(0, 21, 36, 0.377);
        backdrop-filter: blur(0px);
        padding: 50px;
        border-radius: 20px;
        margin: 20px auto;
        width: 90%;
        max-width: 250px;
        height: 400px; /* Increased height for layout */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        overflow: hidden; /* Ensure no elements overflow */
    }
    
}
