body{
    background-color: darkgray; 
    margin: 0;
    padding: 30px 20px; 
}

.page-container{
    background: white;
    border-top: 5px solid #500000;
    border-radius: 20px;
    width: 760px; 
    padding-right: 60px; 
    padding-left: 60px;
    padding-top: 60px;
    padding-bottom: 50px;
    position: relative;
    margin: 0 auto;
}


.heading-container{
    text-align: center;
    margin-bottom: 20px;
}

.heading-name{
    display: inline-block;
    font-size: 2em;
    border: 3px solid #500000; 
    border-radius: 15px;
    padding: 15px 25px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-bottom: 20px;
}

.closing-container{
    text-align: center;
}

.closing-name{
    display: inline-block;
    font-size: 2em;
    border: 3px solid #500000; 
    border-radius: 15px;
    padding: 15px 25px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-top: 20px;
}

.heading-desc{
    font-size: 20px;
    font-family: 'Courier New', monospace;  
    text-align: center;
    font-weight: bold; 
}

.resume-heading-desc{
    font-size: 0.8em;
    font-family: 'Courier New', monospace;  
    text-align: center;
    font-weight: bold; 
}

.name-description{
    margin-top: 20px;
    font-weight: 100;
    font-size: 16px; 
}

.name-description-details{
    font-weight: 100;
    font-size: 14px; 
}

.body-text{
    font-family: 'Courier New', monospace;  
    font-size: 16px;
}

.stats-container{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
}

.small-stats-container{
    border: 1px solid #cccccc;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(80, 0, 0, 0.1); 
    flex: 1;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    margin-bottom: 10px;
    background: #fafafa; 
}

.small-stats-container-top{
    border: 1px solid #cccccc;
    border-radius: 15px;
    border-top: 3px solid #500000; 
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(80, 0, 0, 0.1);
    flex: 1;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    margin-bottom: 10px;
    background: #fafafa;
}

.small-stats-container:hover{
    transform: translateY(-1px);   
    box-shadow: 0 8px 25px rgba(80, 0, 0, 0.15);
}

.small-stats-container-top:hover{
    transform: translateY(-1px);   
    box-shadow: 0 8px 25px rgba(80, 0, 0, 0.15);
}

.stat-val{
    font-size: 1.5rem;              
    font-weight: bold;             
    color: #500000; 
    font-family: 'Courier New', monospace;
}

.stat-lab{
    font-size: 0.9rem;              
    color: #4a4a4a; 
    margin-top: 5px;               
    font-family: 'Courier New', monospace;
}

.stat-head{
    padding-top: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #500000; 
    font-family: 'Courier New', monospace;
}

.stat-body{
    font-size: 1rem; 
    color: #4a4a4a; 
    margin-bottom: 15px; 
}

.paragraph-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.project-container{
    background: #fafafa; 
    border: 1px solid #cccccc;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(80, 0, 0, 0.1);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.project-container:hover {
    transform: translateY(-5px);   
    box-shadow: 0 8px 25px rgba(80, 0, 0, 0.15); 
}

.sub-container{
    background: #fafafa;
    border: 1px solid #cccccc;
    border-left: 3px solid #500000; 
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(80, 0, 0, 0.1);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.sub-container:hover {
    transform: translateY(-1px);   
    box-shadow: 0 8px 25px rgba(80, 0, 0, 0.15);
}

.project-header {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    background: linear-gradient(135deg, #500000 0%, #700000 100%); /* Maroon gradient */
    padding: 20px;             
    margin: -15px -15px 15px -15px; 
    position: relative;              
}

.project-status {
    position: absolute;            
    top: 15px;                   
    right: 15px;                    
    color: white;                 
    padding: 6px 12px;              
    border-radius: 15px;            
    font-size: 0.75rem;           
    font-weight: 600;             
    font-family: 'Courier New', monospace;
}

.project-icon {
    text-align: center;
    font-size: 3rem;
    margin-top: 10px;                
    margin-bottom: 10px;            
}

.p-title{
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #500000;
    font-family: 'Courier New', monospace;
}

.p-title .project-status {
    display: none;
}

.service-p-title{
    display: none;
}

.p-title-middle{
    padding-top: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #500000;
    font-family: 'Courier New', monospace;
}

.p-desc{
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
}

.p-desc ul {
    margin-top: 4px;
}

.p-sub{
    background: #4a4a4a;
    color: white;                
    padding: 4px 8px;               
    border-radius: 4px;             
    font-size: 0.8rem;            
    display: inline-block;        
    margin: 2px;                    
    font-family: 'Courier New', monospace;
}

.p-gallery {
    margin-top: 20px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 15px;
    background: lightgray;
    box-shadow: 0 2px 5px rgba(80, 0, 0, 0.05);
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slider{
    display: flex;
    width: 100%; 
    height: 100%;
    transition: transform 0.5s ease; 
    transform: translateX(0);
}

.gallery-slider .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.gallery-image {
    display: none;
}

.gallery-placeholder {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    position: absolute;        
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;  
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.gallery-btn {
    background: #500000; 
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.gallery-btn:hover {
    background: #700000; 
    transform: translateY(-1px);
}

.gallery-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.gallery-counter {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #4a4a4a; 
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
}

.coding-block{
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.coding-text{
    display: inline-block;
    text-align: left;
    background: #2d2d2d;
    color: #f8f8f2; 
    padding: 10px 30px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem; 
    white-space: pre;
    max-width: calc(100% - 40px); 
    width: auto;                    
    overflow-x: auto;               
    box-sizing: border-box;         
    margin: 0;                      
    word-wrap: break-word;  
}

.coding-text-center{
    display: inline-block;
    text-align: center;
    background: #2d2d2d;
    color: #f8f8f2; 
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 5px 30px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem; 
    max-width: calc(100% - 40px); 
    width: auto;                    
    overflow-x: auto;               
    box-sizing: border-box;                               
    word-wrap: break-word;  
}

.coding-text-left{
    display: inline-block;
    text-align: left;
    background: #2d2d2d;
    color: #f8f8f2; 
    padding: 5px 30px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem; 
    max-width: calc(100% - 40px); 
    width: auto;                    
    overflow-x: auto;               
    box-sizing: border-box;         
    margin: 0;                      
    word-wrap: break-word;  
}

.archive-heading{
    display: none; 
}

.nav-buttons {
    text-align: center;
    display: flex;                       
    gap: 0;                        
    margin-bottom: 30px;          
    justify-content: stretch;      
    flex-wrap: nowrap;             
    width: 100%;                   
}

.nav-button {
    background: white;
    color: black;              
    padding: 12px 10px;                   
    font-size: 0.9rem;         
    font-family: 'Courier New', monospace;
    text-decoration: none;          
    display: inline-block;         
    transition: background 0.3s ease; 
    box-shadow: none;              
    flex: 1;                       
    text-align: center;
    border: 1px solid #400000;                  
}

.cur-nav-button{
    background: #700000;
    color: white;              
    padding: 12px 10px;            
    border-radius: 0;              
    font-size: 0.9rem;         
    font-family: 'Courier New', monospace;
    text-decoration: none;          
    display: inline-block;         
    transition: background 0.3s ease; 
    box-shadow: none;              
    flex: 1;                       
    text-align: center;
    border: 1px solid #400000;     
    border-left: none;  
}

.current-page{
    background: darkgray;
}


.nav-button:hover {
    background: #700000;
    color: white;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.keyword{
    color: #ff79c6;
}

.string { 
    color: #f1fa8c;              
}

.property { 
    color: #50fa7b;               
}

.comment{
    color: #6272a4;
}

.quotes{
    color: darkcyan;
}

.status-done{
    background: green;
}

.status-ongoing{
    background: orange;
}

.status-planned{
    background: grey;
}


.theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #500000 0%, #800000 100%);
    border: 2px solid #400000;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-toggle.active {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    border-color: #666666;
}

.theme-toggle.active::before {
    transform: translateX(30px);
}

.tamu-logo{
    display: none;
}

a {
    color: #500000;
}

a:hover {
    color: #800000;
}

a:visited {
    color: #400000;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 16px 0;
    flex-wrap: wrap;
}

.contact-link,
.contact-link:visited {
    display: inline-block;
    flex: 0.2;
    text-align: center;
    border: 1px solid #500000;
    border-radius: 20px;
    padding: 8px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #500000;
    text-decoration: none;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(80, 0, 0, 0.1);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    background: #500000;
    color: white;
    box-shadow: 0 4px 12px rgba(80, 0, 0, 0.25);
    transform: translateY(-2px);
}
/* ---------- Responsive layout (phones / narrow windows) ---------- */
@media (max-width: 900px) {
    body{
        padding: 16px 10px;
    }
    .page-container{
        width: auto;
        padding: 60px 18px 40px;
    }
    .nav-buttons{
        flex-wrap: wrap;
    }
    .nav-button,
    .cur-nav-button{
        flex: 1 1 30%;
        border-left: 1px solid #400000;
    }
    .heading-name,
    .closing-name{
        font-size: 1.4em;
        overflow-wrap: anywhere;
    }
    .stats-container{
        flex-wrap: wrap;
    }
    .small-stats-container,
    .small-stats-container-top{
        flex: 1 1 40%;
    }
    img{
        max-width: 100%;
        height: auto;
    }
    table{
        display: block;
        overflow-x: auto;
    }
}
