@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: black;
    color: rgb(255, 255, 255);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.548), #C0C0C0, rgba(0, 0, 0, 0.548));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    /* border-radius: 100px; */
}

.navbar {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    font-size: 25px;
    color: #C0C0C0;
    text-shadow: 5px 5px 10px black;
    text-decoration: none;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    animation: slideTop 1s ease forwards;

}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    /* margin-left: 35px; Removed in favor of gap */
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: black;
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.6s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

.home {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
    padding: 50px;
    /* margin-left: -30px; */
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.mu {
    margin-top: 50px;
}

.home-content h1,
h3 {
    text-shadow: 5px 4px 10px #C0C0C0;
}

.home-content h3 span {
    color: #C0C0C0;
}

.home-content p {
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: black;
    border: 2px solid #C0C0C0;
    border-radius: 50%;
    font-size: 20px;
    color: #C0C0C0;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;

}

.home-sci a:hover {
    background: #C0C0C0;
    color: black;
    box-shadow: 0 0 20px #C0C0C0;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #C0C0C0;
    border-radius: 40px;
    font-size: 16px;
    color: black;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
}

.btn-box:hover {
    box-shadow: 0 0 5px #C0C0C0,
        0 0 25px #C0C0C0, 0 0 50px #C0C0C0,
        0 0 100px #C0C0C0, 0 0 200px #C0C0C0;
}

.home-img {
    width: 410px;
    height: 410px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2.1s, 3.1s;
}

.home-img .glowing-circle {
    width: 100%;
    height: 100%;

    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background-color: black;
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(black, rgba(178, 190, 181, 0.411));
    border-radius: 50%;
    animation: circleRotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

.image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    max-width: 350px;
    object-fit: cover;
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
}

.navbar-1 a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 50px;
    text-align-last: center;
}

.navbar-1 a.active,
.navbar-1 a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

canvas {
    position: fixed;
    top: auto;
    left: auto;
    background-color: black;
    z-index: -1;
    background-size: cover;
    background-blend-mode: multiply;
    background-size: auto;
    scroll-behavior: smooth;
}


/* ---------------------------About----------------------- */

.about {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
    margin-top: 10%;
}

.about-img img {
    padding: auto;
}

.about-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.about-content p {
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

/* Animation */
@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Terminal Mode & Toggle Button */

.mode-toggle {
    background: transparent;
    color: #C0C0C0;
    border: 1px solid #C0C0C0;
    padding: 10px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 5px #C0C0C0;
    box-shadow: 0 0 5px #C0C0C0;
    transition: all 0.3s ease;
    /* margin-left: 20px; Removed in favor of gap */
    vertical-align: middle;
}

.mode-toggle:hover {
    background: #C0C0C0;
    color: black;
    box-shadow: 0 0 20px #C0C0C0;
}

.terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    z-index: 999;
    padding: 60px 20px 20px 20px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #C0C0C0;
    display: flex;
    flex-direction: column;
}

.terminal-container.hidden {
    display: none;
}

.terminal-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

#terminal-output p {
    margin: 5px 0;
    line-height: 1.4;
    white-space: pre-wrap;
}

.input-line {
    display: flex;
    align-items: flex-end;
    /* Align input with the bottom line of the prompt */
    margin-top: 10px;
}

.prompt {
    color: #C0C0C0;
    margin-right: 10px;
    white-space: nowrap;
    text-shadow: 0 0 5px #C0C0C0;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    flex-grow: 1;
    outline: none;
    caret-color: #C0C0C0;
}

/* Scrollbar for terminal */
.terminal-container::-webkit-scrollbar {
    width: 8px;
}

.terminal-container::-webkit-scrollbar-track {
    background: #000;
}

.terminal-container::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border-radius: 4px;
}
