/* style.css */

/* 1. Global Styles */
body {
    font-family: 'Arial Narrow', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #222;
    background-color: #f6f6f4;
}

h1, h2, h3 {
    font-weight: normal;
}

/* 2. Navigation */
header {
    padding: 20px 40px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav a {
    text-decoration: none;
    color: #555;
}

nav a:hover {
    color: #000;
}

/* 3. Section Layout */
main section, footer {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 4. The Grids (The Magic Part) */
.portfolio-grid, .photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Make sure images never overflow their grid cells */
img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: #eee; /* Placeholder color until your images load */
}

/* 5. Typography tweaks for captions */
figcaption, .project-card p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Splash Screen Overlay PA */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #273c76 !important;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transform: translateZ(9999px);
    font-family: 'Courier New', Courier, monospace;

    /* Overall screen fade out */
    animation: fadeOut 0.5s ease-in-out 4.5s forwards;
}

.terminal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Base Typewriter Settings */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #ffffff;
    width: 0;
    margin: 0 auto;
    color: #ffffff;
}

/* Line 1: Main Text ("are you still you ?" = 18 characters) */
.typewriter.main-text {
    font-size: 1.8rem;
    letter-spacing: 1px;
    animation: 
        typeLine1 1.2s steps(18, end) 0.3s forwards,
        blinkCaret 0.6s step-end infinite;
}

/* Line 2: Sub Text (46 characters) */
.typewriter.sub-text {
    font-size: 0.85rem;
    color: #ffffff;
    margin-top: 12px;
    animation: 
        typeLine2 1.8s steps(46, end) 1.8s forwards,
        blinkCaret 0.6s step-end infinite;
}

/* Character-precise width keyframes */
@keyframes typeLine1 {
    from { width: 0; }
    to { width: 18ch; }
}

@keyframes typeLine2 {
    from { width: 0; }
    to { width: 46ch; }
}

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

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Individual Project Page Formatting */
.project-detail {
    max-width: 900px;
    margin: 0 auto;
}

.project-detail img {
    width: 100%;
    margin: 30px 0;
}

/* Static Top Hero Image Banner */
.hero-banner {
    width: 100%;
    height: 425px; 
    overflow: hidden;
    position: relative;
    z-index: 1; 
    transform: translateZ(0);
    background-color: #e5e5e0;
    border-bottom: 1px solid #e0e0dc;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Minimalist Text Archive List */
.project-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.project-list li {
    margin-bottom: 14px;
}

.project-list a {
    color: #222222; /* Matches body text instead of hyperlink blue */
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Subtle Hover Effect */
.project-list a:hover {
    opacity: 0.5;
    text-decoration: underline;
}

/* Reset or remove old grid styles if no longer needed */
.portfolio-grid, .project-card {
    display: block;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    font-family: 'Arial Narrow', Arial, sans-serif;
}

.project-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.4;
}

.project-list a {
    color: #000000;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

/* Typography styles matching image layout */
.project-list a strong {
    font-weight: bold;
}

.project-list a em {
    font-style: italic;
}

/* Subtle hover state */
.project-list a:hover {
    opacity: 0.55;
}
