* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

body {
    background-color: #000;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb {
    background: #0f0;
    border-radius: 5px;
    box-shadow: 0 0 10px #0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    box-shadow: 0 0 15px #0f0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #0f0 rgba(0, 0, 0, 0.8);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typing-container {
    text-align: center;
}

#typing-text {
    color: #0f0;
    font-size: 2.5rem;
    text-shadow: 0 0 15px #0f0, 0 0 30px #0f0;
    min-height: 100px;
    font-weight: bold;
}

.about-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 50vh;
}

.about-left {
    flex: 1;
    padding: 2rem;
}

.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-box {
    background: rgba(0, 255, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.info-box h2 {
    color: #0f0;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px #0f0;
}

.info-item {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    color: #0f0;
    font-weight: bold;
    margin-right: 1rem;
}

.value {
    color: #fff;
}

.avatar-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.social-media {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.social-media h3 {
    color: #0f0;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px #0f0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    color: #0f0;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: #0f0;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.footer {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer p {
    color: #0f0;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #0f0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 0 0 10px #0f0;
}

@media screen and (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 1rem;
        margin-top: 30vh;
    }

    .about-left, .about-right {
        flex: none;
        width: 100%;
        padding: 1rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .avatar-container {
        width: 200px;
        height: 200px;
        margin: 2rem auto;
    }

    #typing-text {
        font-size: 1.8rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    #typing-text {
        font-size: 1.5rem;
    }

    .info-box h2 {
        font-size: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .label {
        margin-right: 0;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
    .about-section {
        margin-top: 20vh;
    }

    .avatar-container {
        width: 150px;
        height: 150px;
    }

    #typing-text {
        font-size: 1.5rem;
    }
}

.projects-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
}

.projects-section h2 {
    color: #0f0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px #0f0;
}

.coming-soon {
    color: #0f0;
    font-size: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    text-shadow: 0 0 10px #0f0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.hourglass-container {
    width: 200px;
    height: 200px;
    position: relative;
    perspective: 1000px;
}

.hourglass {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
}

.top-sand, .bottom-sand {
    position: absolute;
    width: 100%;
    height: 50%;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.top-sand {
    top: 0;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.bottom-sand {
    bottom: 0;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 20px #0f0;
}

.matrix-sand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 100px;
    background: linear-gradient(to bottom, #0f0, transparent);
    animation: sand-fall 2s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes sand-fall {
    0% {
        height: 100px;
        opacity: 1;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .hourglass-container {
        width: 150px;
        height: 150px;
    }

    .projects-section h2 {
        font-size: 2rem;
    }
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #0f0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px #0f0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #0f0;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    color: #0f0;
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }
}

html {
    scroll-behavior: smooth;
}

.nav-links a.active {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.nav-links a.active::after {
    width: 100%;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #0f0;
    border-radius: 50%;
    color: #0f0;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: #0f0;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.contact-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.8);
}

.contact-section h2 {
    color: #0f0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px #0f0;
    position: relative;
    display: inline-block;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 255, 0, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.05);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 255, 0, 0.7);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group textarea ~ label {
    top: 1.5rem;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    background: rgba(0, 255, 0, 0.05);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #0f0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0 0.5rem;
    text-shadow: 0 0 5px #0f0;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: 2px solid #0f0;
    border-radius: 10px;
    color: #0f0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-3px);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-container {
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 12px;
    }

    .submit-btn {
        padding: 1rem 2rem;
    }

}
