* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background: radial-gradient(circle at top, #2a1c12, #0d0906 70%);
    color: #f3e8cf;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.6s ease, color 0.6s ease;
}

body.light-mode {
    background: linear-gradient(180deg, #f5efe6, #e6d8c3);
    color: #2a1c12;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #140d08, #1c120c, #120a06);
    border-right: 1px solid rgba(255, 215, 120, 0.15);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.brand h1 {
    font-size: 28px;
    letter-spacing: 1.5px;
    color: #e6c87a;
    text-align: center;
    margin-bottom: 6px;
}

.brand p {
    font-size: 14px;
    text-align: center;
    color: rgba(230, 200, 122, 0.65);
    margin-bottom: 40px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-links a {
    text-decoration: none;
    color: #f3e8cf;
    font-size: 17px;
    letter-spacing: 0.6px;
    padding: 10px 8px;
    border-radius: 6px;
    transition: all 0.35s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e6c87a, transparent);
    transition: width 0.35s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #e6c87a;
    transform: translateX(6px);
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.controls button {
    background: linear-gradient(145deg, #1e140d, #120a06);
    border: 1px solid rgba(255, 215, 120, 0.25);
    color: #e6c87a;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.35s ease;
}

.controls button:hover {
    background: linear-gradient(145deg, #2a1c12, #160e08);
    transform: translateY(-2px);
}

.main-content {
    margin-left: 280px;
    padding: 80px 80px 80px 80px;
    width: calc(100% - 280px);
}

/* FIXED: Set default sections visible */
.page-section {
    min-height: 85vh;
    padding-bottom: 80px;
    opacity: 1; /* changed from 0 to 1 */
    transform: translateY(0); /* changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-section.active {
    opacity: 1;
    transform: translateY(0);
}

.page-section h2 {
    font-size: 42px;
    margin-bottom: 28px;
    color: #e6c87a;
    letter-spacing: 1.2px;
}

.page-section p {
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 22px;
    max-width: 900px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin: 40px 0 30px 0;
}

.image-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.image-grid img:hover {
    transform: scale(1.06);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
}

body.light-mode .sidebar {
    background: linear-gradient(180deg, #f1e8d8, #e5d4bc);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .nav-links a {
    color: #2a1c12;
}

body.light-mode .nav-links a:hover {
    color: #8a6b2f;
}

body.light-mode .controls button {
    background: linear-gradient(145deg, #f6f0e6, #e7d8c2);
    color: #2a1c12;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .page-section h2 {
    color: #8a6b2f;
}

body.light-mode .image-grid img {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        padding: 60px 40px;
    }
}

@media (max-width: 700px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}
