/* Modern Egyptian Pyramid Theme - Onyx & Gold */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   /* This text is in Garamond */
	font-family: Garamond,Baskerville,Baskerville Old Face,Hoefler Text,Times New Roman,serif; 
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0f0f0f 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.1em; /* Increase base font size by 10% */
}

/* Top Header Bar - Fixed for all pages */
.top-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.98) 50%, rgba(0,0,0,0.95) 100%);
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-logo-area {
    flex-shrink: 0;
}

.site-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    object-fit: cover;
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.site-title-header {
    flex-grow: 1;
    text-align: center;
    margin-left: 6.5%;
}

.site-title-header h1 {
    font-size: 2.5rem;
    font-weight: 777;
    color: #b39d25;
    text-shadow: 0 0 10px rgba(146, 134, 63, 0.5);
    letter-spacing: 3px;
    margin: 0;
}
.site-title-header a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
 }

.donation-button-container {
    flex-shrink: 0;
}

.donate-button-fixed {
    background: linear-gradient(45deg, #1127e9, #25e9e9);
    color: #1a1a1a;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.donate-button-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(45deg, #dfce3c, #dbd812);
}

/* Navigation Tabs - Shows on all pages */
.tabs {
    position: fixed;
    top: 91px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 999;
    display: flex;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.tabs button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tabs button:last-child {
    border-right: none;
}

.tabs button:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.tabs button.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 600;
}

.tabs button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

/* Main Content - Account for fixed header and tabs */
.main-content {
    flex: 1;
    max-width: 1000px;
    margin: 2rem auto;
    margin-top: 180px; /* Space for fixed header + tabs */
    padding: 3rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 90%;
}

.main-content h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.main-content h3 {
    color: #ffed4a;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.main-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 1.1em; /* Slightly larger paragraph text */
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #ffd700;
    color: #e0e0e0;
    margin-top: auto;
}

/* About Page Specific Styles */
.about-headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    object-fit: cover;
    margin: 2rem auto;
    display: block;
    transition: all 0.3s ease;
}

.about-headshot:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h2 {
    margin-bottom: 1rem;
}

.about-intro .subtitle {
    font-size: 1.2rem;
    color: #ffed4a;
    font-style: italic;
    margin-bottom: 2rem;
}
/* Unified Blog Content Styling for Physics & AI Pages */
.content-section {
    margin-bottom: 50px;
}

.content-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
    font-weight: 600;
}

.ising-container h2, .ai-content h2 {
    color: #ffd700;
    margin-bottom: 40px;
    font-size: 2.4em;
    text-align: center;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* About Me Page Specific Components */
.personal-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    transition: all 0.3s ease;
}

.personal-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

.links {
    margin: 30px 0 40px 0;
    text-align: center;
}

.social-link {
    display: inline-block;
    margin: 0 15px;
    padding: 10px 20px;
    background-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
    font-weight: bold;
}

.social-link:hover {
    background-color: #ffd700;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.portfolio {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.video-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.video-wrapper .video-frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-text {
    font-size: 1.15em;
    font-weight: 500;
    color: #e0e0e0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 15px;
}

.content-section ul {
    margin: 0;
    padding-left: 35px;
    font-size: 1.1em;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-section ul ul {
    margin-top: 15px;
    padding-left: 40px;
    font-size: 1.05em;
}

.content-section ul ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-section li ul {
    margin-top: 10px;
    font-size: 0.95em;
}

.content-section li ul li {
    font-size: 1em;
    line-height: 1.5;
}

.content-section p {
    font-size: 1.3em;
    line-height: 1.9;
    margin-bottom: 25px;
}

.media-placeholder {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin: 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 0, 0.6);
    font-style: italic;
    font-size: 1.1em;
}

/* Empty placeholder keeps original size */
.media-placeholder:empty {
    height: 150px;
    width: 250px;
}

.media-placeholder:empty::before {
    content: "Insert media here";
}

/* With content, it sizes to fit the content with 2x minimum dimensions */
.media-placeholder:not(:empty) {
    min-width: 500px;
    min-height: 300px;
    width: fit-content;
    height: fit-content;
}

.media-placeholder img,
.media-placeholder video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.tech-link {
    color: #ffed4a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.tech-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.coming-soon {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    font-size: 1.1em;
}

.ai-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
    line-height: 1.8;
}

.social-links {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.social-links a {
    margin: 0 20px;
    padding: 12px 25px;
    display: inline-block;
}

.social-link {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 25px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
}

.social-link:hover {
    color: #1a1a1a;
    background-color: #ffd700;
    border-color: #ffd700;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

em {
    color: #dc2626;
    font-style: italic;
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }
    
    .site-title-header h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: row; /* Keep horizontal layout on mobile */
    }
    
    .tabs button {
        padding: 0.8rem 0.5rem; /* Reduce padding to fit better on small screens */
        font-size: 0.9rem; /* Slightly smaller text to fit */
        border-right: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .main-content {
        margin: 1rem;
        margin-top: 180px; /* Same as desktop to account for fixed header + tabs */
        padding: 2rem;
        width: calc(100% - 2rem);
    }
    
    .content-section h3 {
        font-size: 1.5em;
    }
    
    .ising-container h2, .ai-content h2 {
        font-size: 2em;
    }
    
    .content-section ul {
        font-size: 1.1em;
    }
}
