:root {
    --bg-color: #0d1117;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.logo-placeholder {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hero {
    margin-top: 8rem;
    max-width: 800px;
}

.sys-msg {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #c9d1d9, #58a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
}

.primary-btn:hover {
    background-color: #79c0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.secondary-btn:hover {
    background-color: rgba(88, 166, 255, 0.1);
}

.gallery-active {
    color: #27c93f !important;
}

.gallery-active-btn {
    background-color: transparent !important;
    color: #27c93f !important;
    border-color: #27c93f !important;
}

.gallery-active-btn:hover {
    background-color: rgba(39, 201, 63, 0.1) !important;
}

.placeholder-section {
    margin-top: 8rem;
}

.terminal-window {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-header {
    background-color: #21262d;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.prompt {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.output {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}


/* Gallery Page Styles */
.gallery-page {
    overflow-y: auto;
    background-color: #000;
}

.gallery-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 100;
    font-family: var(--font-mono);
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.gallery-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fullscreen-gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    margin: 0;
    padding: 0;
}

.gallery-item {
    position: relative;
    width: 25vw;
    height: 40vh;
    overflow: hidden;
    background-color: #111;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .gallery-item {
        width: 33.333vw;
    }
}

@media (max-width: 800px) {
    .gallery-item {
        width: 50vw;
    }
}

@media (max-width: 500px) {
    .gallery-item {
        width: 100vw;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

/* Loading Indicators */
.gallery-item-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    z-index: 1;
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(88, 166, 255, 0.15);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-spinner.large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    justify-content: center;
    align-items: center;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .desc {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80vw;
    font-family: var(--font-sans);
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-family: sans-serif;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

