body {
    background-color: #0A0606;
    color: #00ff00;
    font-family: "Courier New", Courier, monospace;
}

nav {
    background-color: rgba(109, 255, 11, 0.8);
    padding: 10px 0px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav ul {
    width: 100%;
    list-style-type: none;
    margin: 0%;
    padding: 0%;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-right: 50px;
    -webkit-text-stroke: 1px #000000;
}

nav ul li a {
    text-decoration: dashed underline;
    font-weight: bold;
    font-size: x-large;
    color: #00ff00;
}

nav ul li a:visited {
    color: #9401b1;
}

nav ul li a:hover {
    color: #000000;
}

iframe {
    color: #00ff00;
    background-color: #009e00;
}

/* Typing effect for title */
.typing-effect {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00ff00;
    animation: 
        typeFull 3.5s steps(30, end),
        blinkCursor 0.75s step-end infinite;
    max-width: 100%;
}

@keyframes typeFull {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blinkCursor {
    0%, 50% { border-color: #00ff00; }
    51%, 100% { border-color: transparent; }
}

/* Tab navigation */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(0, 40, 0, 0.1);
    border-radius: 5px;
    border: 1px solid #006400;
}

.tab-button {
    background-color: #0a3d0a;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    font-family: "Courier New", Courier, monospace;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-heading {
    color: #fff;
    -webkit-text-stroke: #000000 0.6px;
    font-size: 1.5em;
    background-color: rgba(0, 30, 0, 0.6);
}

.tab-button:hover {
    background-color: #00ff00;
    color: #0a3d0a;
}

.tab-button.active {
    background-color: #00ff00;
    color: #0a3d0a;
}

/* Tab content */
.tab-content {
    padding: 15px;
    background-color: rgba(0, 30, 0, 0.05);
    border-radius: 5px;
    border: 1px solid #006400;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    max-height: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.tab-content[style*="display: block"] {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
}

.tab-content[style*="display: block"] h3,
.tab-content[style*="display: block"] p,
.tab-content[style*="display: block"] li {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    margin-top: 0;
    animation-delay: 0.2s;
}

.tab-section {
    background-color: rgba(0, 40, 0, 0.8);
    border-left: 3px solid #ff9500;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.tab-section h4 {
    color: #ff9500;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.tab-section p {
    color: #ffffff;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.5;
    font-size: 0.9em;
    margin: 0 0 8px 0;
}

.tab-section p strong {
    font-size: 0.95em;
    color: #ff9500;
}

.tab-section ul {
    margin: 0;
    padding-left: 20px;
}

.tab-section li {
    color: #fff;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 0.85em;
}

.tab-section li strong {
    font-size: 0.95em;
    color: #ff9500;
}

/* About body layout */
#about-body {
    background-color: hsl(120 100% 50%);
    padding: 5px;
    border: #d3d3d3 5px solid;
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top row: Image + Bio */
.about-top-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-top-row #about-body-left {
    flex: 0 0 30%;
}

.about-top-row #about-body-right {
    flex: 1;
}

.about-top-row #about-body-left img {
    max-height: 800px;
    max-width: 100%;
    border: 5px solid rgb(84, 174, 253);
    border-radius: 10px;
}

.about-top-row #about-body-right p {
    color: #000000;
    font-weight: bolder;
    line-height: 1.6;
}

/* Bottom row: Full-width section */
.about-bottom-row {
    background-color: #0A0606;
    padding: 20px;
    border: 2px solid #006400;
    border-radius: 5px;
    margin-top: 15px;
}

.full-width-section {
    width: 100%;
}

/* Contact section */
.contact-section {
    margin-bottom: 0;
    padding: 15px;
    background-color: rgba(0, 30, 0, 0.05);
    border-radius: 5px;
    border-left: 3px solid #00ff00;
}

.contact-section p {
    color: #008b00;
    font-size: 0.9em;
    line-height: 1.8;
    margin: 8px 0;
}

.contact-section a {
    color: #ff9500;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Headings in about-bottom-row */
.full-width-section h3 {
    color: #ff9500;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ff9500;
}

/* Resume tab content */

.resume-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

#resume {
    background-color: rgba(0, 30, 0, 0.05);
    border: 1px solid #006400;
    border-radius: 5px;
    padding: 15px;
}

#resume iframe {
    border: none;
    background-color: #fff;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Increase base font size for mobile */
    body {
        font-size: 16px;
    }

    /* Smaller navbar padding */
    nav {
        padding: 8px 0px;
    }

    /* Adjust nav link spacing */
    nav ul li {
        margin-right: 30px;
        font-size: 1.1em;
    }

    /* About section layout */
    #about-body {
        width: 100%;
        max-width: 100%;
    }

    .about-top-row {
        gap: 10px;
    }

    .about-top-row #about-body-left {
        flex: 0 0 25%;
    }

    .about-top-row #about-body-right {
        font-size: 0.95em;
        line-height: 1.5;
    }

    /* Smaller contact section */
    .contact-section {
        padding: 12px;
    }

    .contact-section p {
        font-size: 0.85em;
        line-height: 1.6;
        margin: 6px 0;
    }

    .contact-section a {
        font-size: 0.9em;
    }

    /* Tab navigation */
    .tab-navigation {
        gap: 8px;
        padding: 12px;
    }

    .tab-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* Tab content */
    .tab-content {
        padding: 12px;
    }

    /* Resume iframe */
    #resume {
        padding: 12px;
    }

    #resume iframe {
        width: 100%;
        height: 800px;
    }

    /* About image */
    .about-top-row #about-body-left img {
        max-height: 400px;
    }

    /* General text */
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.2em;
    }
}
