/* Base Variables */
:root {
    --primary-color: #32612e; /* Your original dark green */
    --secondary-color: #98b66d; /* Your original light green */
    --accent-color: #244621;
    --text-color: #333;
    --bg-color: #f9fbfa;
    --sidebar-width: 280px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

h2 { border-bottom: 2px solid var(--secondary-color); padding-bottom: 5px; margin-top: 30px; }
h3 { margin-top: 25px; font-size: 1.2rem; }

a { color: var(--primary-color); text-decoration: none; font-weight: 500;}
a:hover { color: var(--secondary-color); text-decoration: underline; }

p, ul { margin-bottom: 15px; }
ul { padding-left: 20px; }

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.profile { text-align: center; margin-bottom: 30px; }
.profile-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--secondary-color); margin-bottom: 15px; }
.profile h1 { color: white; margin-bottom: 5px; font-size: 1.5rem; }
.hebrew-name { font-size: 0.9rem; color: #d1dfc1; }

.nav-links { list-style: none; padding: 0; margin-bottom: auto; }
.nav-links li { margin-bottom: 10px; }
.nav-links a {
    display: block;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    background-color: var(--secondary-color);
    color: #1a3318;
    text-decoration: none;
}

.footer-info {
    font-size: 0.8rem;
    color: #d1dfc1;
    margin-top: 30px;
    text-align: center;
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    padding: 50px;
    width: calc(100% - var(--sidebar-width));
    max-width: 1000px;
}

/* Tab Switching Logic */
.tab-content { display: none; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Specific Section Styling */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list i { width: 25px; color: var(--secondary-color); }

.music-rec {
    background: #eef3ea;
    padding: 15px 20px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    margin-top: 30px;
}

.paper-list li { margin-bottom: 12px; }

/* Origami Grid */
.origami-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.origami-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.origami-card img { 
    width: 100%; 
    height: auto; 
    max-height: 250px; /* Prevents portrait images from getting too massive */
    object-fit: contain; /* Ensures the whole model is visible without cropping */
    display: block;
    background-color: #f9fbfa; /* Matches the site background for a seamless look */
    border-bottom: 1px solid #eee; /* Adds a faint line between multiple images in the same card */
}
.origami-card h4, .origami-card p { padding: 10px 15px; margin: 0; }
.origami-card h4 { font-size: 1rem; padding-bottom: 0; }
.origami-card p { font-size: 0.85rem; color: #555; }

/* Mobile Responsiveness */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; }
    .sidebar.open { transform: translateX(0); }
    .content { margin-left: 0; width: 100%; padding: 70px 20px 30px; }
}