@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff; /* White background as requested */
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* --- Index Page Styles --- */

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo-container {
    text-align: center;
    opacity: 0;
    animation: zoomIn 1.4s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.main-logo {
    width: 145px; /* Increased size by 20% */
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.logo-text {
    margin-top: 25px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #000;
    text-transform: uppercase;
    opacity: 0.9;
}

.corner-link {
    position: absolute;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: #333;
    padding: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.corner-link:hover {
    opacity: 1;
}

/* Increased distance from edges for better spacing */
.top-left {
    top: 40px;
    left: 40px;
}

.top-right {
    top: 40px;
    right: 40px;
}

.bottom-left {
    bottom: 60px;
    left: 60px;
}

.bottom-right {
    bottom: 60px;
    right: 60px;
}

/* --- Projects Page Styles --- */

.projects-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

.sidebar {
    width: 300px;
    background-color: #ffffff;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 40px 0 10px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.logo-link {
    display: inline-block;
    padding-left: 40px; /* Align with list items */
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.sidebar-logo {
    width: 54px;
    height: auto;
    display: block;
}

.sidebar-header-project {
    margin: 0;
    padding-left: 40px; /* Match the padding of project-button */
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: left; /* Explicitly left align */
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-header-project:hover {
    color: #333;
}

.home-link {
    display: inline-block;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-link:hover {
    color: #000;
}

.project-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.project-item {
    border-bottom: none;
}

.project-button {
    width: 100%;
    padding: 16px 40px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    color: #555;
    font-family: inherit;
    border-right: 3px solid transparent; /* Right border for a cleaner look */
}

.project-button:hover {
    color: #000;
    background-color: #fafafa;
}

.project-button.active {
    color: #000;
    font-weight: 600;
    background-color: #f7f7f7;
    border-right: 3px solid #333; /* Marker on the right side matches content flow */
}

.project-details {
    flex: 1;
    padding: 80px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #333;
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-content.active {
    display: block;
}

.project-content h1 {
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 400; /* Lighter weight heading */
    color: #111;
    letter-spacing: -0.5px;
}

.project-content p {
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
    color: #444;
}

.placeholder-text {
    color: #999;
    text-align: center;
    margin-top: 20vh;
    font-style: normal;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Scrollbar styling - Minimalist */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
/* --- Welcome Card Styles --- */

#default-message {
    animation: fadeIn 0.6s ease-out forwards;
}

.project-welcome-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    max-width: 400px;
    margin: 10vh auto 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.welcome-card-image-container {
    width: 100%;
    height: 200px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.welcome-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-card-content {
    padding: 30px;
}

.welcome-card-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #222;
}

.welcome-card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.content-header {
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-button:hover {
    color: #000;
    text-decoration: underline;
}