body {
    margin: 0;
    padding: 0;
    background-image: url('src/1-5fd5c1c2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    overflow-x: hidden;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000; /* Ensure the nav stays on top */
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.1em;
}

.section {
    padding: 50px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
}

.terminal-container {
    width: 800px;
    height: auto;
    background-color: #2d0922;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 20px auto;
}

.projects-terminal {
    margin-top: 40px;
}

.terminal-title-bar {
    background-color: #3c3c3c;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #2d2d2d;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
}

.terminal-button.minimize {
    background-color: #3c3c3c;
    border: 1px solid #555;
}

.terminal-button.minimize::before {
    content: "−";
    color: #fff;
}

.model-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

model-viewer {
    width: 80%;
    height: 80%;
    z-index: 10; /* Ensure model-viewer is not hidden behind other elements */
}

#about img {
    width: 50%;
    max-width: 200px;
    border-radius: 20px;
    display: block;
    margin: 20px auto;
}

.green-link {
    color: #FFFFFF !important;
    text-decoration: none;
    pointer-events: auto; /* Ensure links are clickable */
}

.green-link:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.terminal-button.maximize {
    background-color: #3c3c3c;
    border: 1px solid #555;
}

.terminal-button.maximize::before {
    content: "□";
    color: #fff;
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.close::before {
    content: "×";
    color: #000;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #f8f8f2;
    font-size: 14px;
}

.terminal-content {
    padding: 16px;
    color: #f8f8f2;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Prevent content from overflowing */
}

.terminal-content img {
    width: 50%;
    max-width: 100px;
    border-radius: 10px;
    margin: 10px 0;
}

.terminal-content p {
    margin: 0;
}

.terminal-content p::before {
    content: "nearhos@linux-desktop:/tmp/portfolio$ ";
    color: #50fa7b;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    pointer-events: auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    pointer-events: auto;
    
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #50fa7b !important;
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #50fa7b;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(80, 250, 123, 0.1);
}

.social-link:hover {
    background: rgba(80, 250, 123, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(80, 250, 123, 0.3);
}

.link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

/* Contact Form Styling */
.contact-form {
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #50fa7b;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #50fa7b;
    font-weight: bold;
    text-align: left;
}

.form-input, .form-textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #50fa7b;
    border-radius: 5px;
    padding: 10px;
    color: #f8f8f2;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #ff79c6;
    box-shadow: 0 0 10px rgba(255, 121, 198, 0.3);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background: #50fa7b;
    color: #000 !important;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #69ff94;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(80, 250, 123, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .terminal-container {
        width: 95%;
        margin: 20px auto;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

