/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    background: #000000;
    color: #ffffff;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.loading-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #00d4ff;
    margin-bottom: 2rem;
}

.loading-text {
    font-size: 1rem;
    color: rgba(0, 212, 255, 0.7);
    margin-bottom: 2rem;
}

/* Error Screen */
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.error-content {
    text-align: center;
}

.error-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #00d4ff;
    margin-bottom: 2rem;
}

.error-text {
    font-size: 1rem;
    color: rgba(0, 212, 255, 0.7);
    margin-bottom: 2rem;
}

.error-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Main 3D Scene */
.main-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.three-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* UI Overlay */
.ui-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    pointer-events: none;
}

.brand-section {
    margin-bottom: 1rem;
}

.brand-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #00d4ff;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(0, 212, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.nav-link:hover {
    color: #00d4ff;
}

/* Page Content */
.page-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow-y: auto;
    z-index: 200;
}

.page {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #00d4ff;
}

.back-button {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: rgba(0, 212, 255, 0.7);
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-color: #00d4ff;
}

.page-body {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

.page-body p {
    margin-bottom: 1rem;
}

/* Page Content Styles */
.page-body h2 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin: 2rem 0 1rem 0;
    font-weight: 400;
}

.page-body h3 {
    font-size: 1.25rem;
    color: #00d4ff;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 400;
}

.page-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-body li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Styles */
.blog-post {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
}

.blog-post h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.post-date {
    color: rgba(0, 212, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Project Styles */
.project-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
}

.project-card h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: rgba(0, 212, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

.github-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.github-button:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

/* Contact Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
}

.contact-item h3 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
}

.contact-form button {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* Book Styles */
.book-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
}

.book-item h3 {
    color: #00d4ff;
    margin-bottom: 0.25rem;
}

.book-author {
    color: rgba(0, 212, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.book-description {
    color: rgba(255, 255, 255, 0.8);
}

/* TLDR Styles */
.tldr-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.tldr-section:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 1.25rem;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page {
        padding: 1rem;
    }
    
    .ui-overlay {
        top: 1rem;
        left: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
