/* Base Styles */


/* Base Styles */
body {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 14px;
    background-color: #121212;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(50, 109, 39, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 75% 75%, rgba(79, 192, 79, 0.05) 0%, transparent 20%);
    background-size: 400px 400px;
    color: #e0e0e0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1f1f1f;
    color: #e0e0e0;
    margin-bottom: 100px;
}

header .logo h1 {
    margin: 0;
    font-size: 20px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
}

header nav ul li a:hover {
    text-decoration: underline;
}

.header {
    font-size: 18px;
    font-weight: bold;
}

section {
    padding: 50px 20px;
}

/* Hero Section */
#hero-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 80%;
    height: 50vh;
    margin: 0 auto;
}

#hero-left {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin-right: 20px;
    margin-left: 10%;
}

#link-images {
    width: 395px;
    max-width: 100%;
    margin-left: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#link-images a {
    width: 30px;
    height: auto;
    max-width: 20%
}

#linkedin-icon, #github-icon, #resume-icon {
    max-width: 100%;
    height: auto;
}

#sr-pic {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    padding: 3px;
    border: 2px solid #326d27
}

#hero-right {
    width: 50%;
    margin-right: 10%;
    font-size: 16px;
}

#hero-right p {
    font-size: 16px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #4fc04f;
}

a:hover {
    opacity: 0.8;
    color: #4fc04f;
}

/* Section Titles */
.upper-section-title {
    border: 1px solid white;
    width: 15%;
    min-width: 200px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 2em;
}

.lower-section-title {
    font-size: 2.5em;
    text-align: left;
    margin: 40px 0;
    padding: 20px 40px;
    background: linear-gradient(135deg, #326d27, #4fc04f);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(50, 109, 39, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    width: fit-content;
    position: relative;
}


.lower-section-title::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #4fc04f, #326d27);
    border-radius: 20px;
    z-index: -1;
}

/* Timeline Styles */
#timeline {
    position: relative;
    width: 85%;
    margin: 0 auto;
}

#timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    background-color: #326d27;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-item {
    border: 3px solid #326d27;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 45%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 30px;
    overflow: visible;
}


.project-title {
    text-align: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 11.1%;
    height: 4px;
    background-color: #633b25;
    z-index: 1;
}

.left-item {
    float: left;
    text-align: center;
    clear: both;
}

.left-item::before {
    left: 100%;
    margin-left: 3px;
}

.right-item {
    float: right;
    text-align: center;
    clear: both;
}

.right-item::before {
    right: 100%;
    margin-right: 3px;
}

.project-video {
    width: 80%;
    height: auto;
    border-radius: 8px;
    border: 1px solid white;
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #1f1f1f;
    color: #4fc04f;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 1rem;
    color: white;
}

#timeline::after {
    content: '';
    display: table;
    clear: both;
}

/* Education and Experience */
.education-container, .exp-container {
    display: flex;
    margin-bottom: 0;
    position: relative;
}

.exp-container {
    min-height: 400px;
}

.vl {
    left: 5px;
    width: 0%;
    border-right: 5px solid #326d27;
    height: 140px;
}

.exp-vl {
    position: absolute;
    left: 0px;
    width: 0%;
    border-right: 5px solid #326d27;
    height: 100%;
    top: 0;
}

.education-text-stack, .exp-text-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#education-text, #exp-text {
    border-bottom: 3px solid #633b25;
    margin-bottom: 0;
    font-weight: bold;
}

#education-subtext-container, #exp-subtext-container {
    margin-left: 10%;
    border-left: 3px solid #633b25;
    border-bottom: 3px solid #633b25;
    padding: 10px 0 10px 15px;
    margin-bottom: 20px;
}

#education-subtext, #exp-subtext {
    margin: 0;
    line-height: 1.4;
}

/* Research Section */
#research {
    padding: 50px 20px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.research-card {
    background-color: #1f1f1f;
    border: 2px solid #326d27;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(50, 109, 39, 0.4);
    border-color: #4fc04f;
}

.research-card-image {
    width: 100%;
    height: 250px;
    position: relative;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.research-card-image img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.research-poster-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.research-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.research-card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #4fc04f;
}

.research-card-date {
    font-size: 0.9em;
    color: #999;
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.research-card-description {
    margin: 0;
    line-height: 1.6;
    color: #e0e0e0;
    flex-grow: 1;
}

.research-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.drive-link-btn {
    display: inline-block;
    color: white;
    border: none;
    padding: 0.1em 0.6em;
    outline: none;
    text-align: center;
    font-size: 1em;
    margin: 0 0.2em;
    background: #4fc04f;
    border-radius: 10%;
    margin-bottom: 20px;
}

.drive-link-btn:hover {
    color: white;
}

/* Blog Section */
#blog {
    padding: 50px 20px;
}

.blog-category {
    margin-bottom: 60px;
}

.blog-category-header {
    font-size: 2em;
    color: #4fc04f;
    margin: 0 auto 30px auto;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-card {
    background-color: #1f1f1f;
    border: 2px solid #326d27;
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(50, 109, 39, 0.4);
    border-color: #4fc04f;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #4fc04f;
}

.blog-card-preview {
    flex-grow: 1;
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #e0e0e0;
}

.blog-card-date {
    font-size: 0.9em;
    color: #999;
    font-style: italic;
}

/* Blog Post Article Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #326d27;
    padding-bottom: 20px;
}

.blog-post-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #4fc04f;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.9em;
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.blog-post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #4fc04f;
    font-size: 1.8em;
}

.blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #4fc04f;
    font-size: 1.4em;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content code {
    background-color: #1f1f1f;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #4fc04f;
}

.blog-post-content pre {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #326d27;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 30px;
    color: #4fc04f;
    text-decoration: none;
    font-size: 1.1em;
}

.back-to-blog:hover {
    opacity: 0.8;
}

/* Semester Dropdown Styles */
.semester-dropdown {
    margin: 30px 0;
    border: 2px solid #326d27;
    border-radius: 10px;
    background-color: transparent;
    overflow: hidden;
}

.semester-dropdown[open] {
    border-color: #4fc04f;
}

.semester-header {
    cursor: pointer;
    padding: 15px 20px;
    background: transparent;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 2px solid #326d27;
}

.semester-dropdown[open] .semester-header {
    border-bottom-color: #4fc04f;
}

.semester-header:hover {
    background-color: rgba(79, 192, 79, 0.1);
}

.semester-header::marker,
.semester-header::-webkit-details-marker {
    display: none;
}

.semester-header::before {
    content: '▶';
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #4fc04f;
    font-size: 0.8em;
}

.semester-dropdown[open] .semester-header::before {
    transform: rotate(90deg);
}

.semester-header h2 {
    margin: 0;
    color: #4fc04f;
    font-size: 1.8em;
    display: inline;
}

.semester-content {
    padding: 20px 30px;
}

.semester-content h3:first-child {
    margin-top: 10px;
}

/* Tablet Styles */
@media (max-width: 1250px) {
    #hero-container {
        flex-direction: column;
        height: auto;
        width: 90%;
    }
    
    #hero-left {
        margin: 0;
        align-items: center;
        width: 70%;
    }

    #sr-pic {
        max-width: 80%;
    }

    #hero-right {
        margin: 0;
        width: 70%;
        text-align: center;
    }

    #timeline {
        width: 100%;
    }
    
    .upper-section-title {
        width: 25%;
        min-width: 150px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 50px;
        padding: 15px;
    }
    
    header nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header nav ul li a {
        font-size: 16px;
    }
    
    /* Section padding */
    section {
        padding: 30px 15px;
    }
    
    /* Hero section mobile */
    #hero-container {
        width: 95%;
        margin: 0 auto;
        height: auto;
        flex-direction: column;
        gap: 30px;
    }
    
    #hero-left, #hero-right {
        width: 100%;
        margin: 0;
    }
    
    #hero-left {
        align-items: center;
    }
    
    #hero-right {
        text-align: center;
    }
    
    #sr-pic {
        width: 300px;
        max-width: 90%;
    }
    
    #link-images {
        width: 300px;
        max-width: 90%;
        margin-left: 0;
    }
    
    .header {
        font-size: 20px;
    }
    
    /* Section titles */
    .upper-section-title {
        width: 60%;
        min-width: 120px;
        font-size: 1.8em;
    }
    
    .lower-section-title {
        font-size: 1.8em;
        padding: 15px 25px;
        letter-spacing: 1px;
    }
    
    /* Timeline mobile - single column */
    #timeline {
        width: 100%;
    }
    
    #timeline::before {
        left: 20px;
        transform: none;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 50px;
        float: none !important;
        clear: none !important;
        margin-bottom: 40px;
    }
    
    .timeline-item::before {
        left: -47px !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 30px;
    }
    
    .project-video {
        width: 90%;
    }
    
    .timeline-item h3 {
        font-size: 1.3rem;
    }
    
    .project-desc {
        font-size: 0.9rem;
    }
    
    /* Education and Experience mobile */
    .education-container, .exp-container {
        flex-direction: column;
    }
    
    .vl, .exp-vl {
        display: none;
    }
    
    #education-subtext-container, #exp-subtext-container {
        margin-left: 0;
        border-left: none;
        border-top: 3px solid #633b25;
        height: auto;
        padding-top: 10px;
    }
    
    #education-subtext, #exp-subtext {
        position: static;
        margin-top: 0;
    }
    
    /* Research mobile */
    .research-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 20px;
    }

    .research-card-title {
        font-size: 1.2em;
    }

    .research-card-description {
        font-size: 0.9rem;
    }

    /* Blog mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 20px;
    }

    .blog-post-title {
        font-size: 2em;
    }

    .blog-post-content {
        font-size: 1em;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    header .logo h1 {
        font-size: 20px;
    }
    
    header nav ul li a {
        font-size: 14px;
    }
    
    .header {
        font-size: 18px;
    }
    
    .upper-section-title {
        font-size: 1.5em;
        width: 80%;
    }
    
    .lower-section-title {
        font-size: 1.5em;
        padding: 12px 20px;
        letter-spacing: 1px;
    }
    
    #sr-pic {
        width: 250px;
    }
    
    #link-images {
        width: 250px;
    }
    
    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 35px;
        padding: 8px;
    }
    
    .timeline-item::before {
        left: -32px !important;
        width: 20px;
    }
    
    .timeline-item h3 {
        font-size: 1.1rem;
    }
    
    .project-desc {
        font-size: 0.8rem;
    }
    
    .research-title {
        font-size: 1.1em;
    }
    
    .research-description {
        font-size: 0.8rem;
    }

    /* Blog small mobile */
    .blog-post-title {
        font-size: 1.6em;
    }

    .blog-post-content {
        font-size: 0.95em;
    }
}