/* ======= 1. General Setup ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.temple-wrapper {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ======= 2. The Roof (Pediment) ======= */
.temple-roof {
    width: 100%;
    height: 180px;
    background-color: #1f3a5f;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.temple-roof::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 0;
    background-color: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 1;
}

.roof-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 25px;
    width: 70%;
}

.roof-content h2 {
    font-size: 1.4rem;
    color: #1f3a5f;
    margin: 0;
}

.roof-content p {
    font-size: 0.95rem;
    color: #555;
}

/* ======= 3. The Body (Pillars & Chamber) ======= */
.temple-body {
    display: flex;
    align-items: stretch;
    background-color: transparent;
    border-top: 5px solid #1f3a5f;
}

.pillar {
    flex: 0 0 120px;
    background-color: transparent;
}

.pillar img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.temple-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-left: 5px solid #1f3a5f;
    border-right: 5px solid #1f3a5f;
}

/* ======= 4. Navigation (2 Columns x 4 Rows) ======= */
.navbar {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 side-by-side columns */
    gap: 15px;
    width: 100%;
    max-width: 600px; /* Adjust this to make the columns wider or narrower */
    margin-top: 20px;
}

.navbar a {
    background-color: white;
    padding: 12px;
    text-align: center;
    color: #1f3a5f;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #1f3a5f;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar a:hover {
    background-color: #1f3a5f;
    color: white;
}

/* ======= 5. Main Page Button (Centered Below) ======= */
.main-page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.btn-main {
    display: inline-block;
    background-color: #1f3a5f;
    color: white;
    padding: 15px 80px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid #1f3a5f;
    transition: all 0.2s ease;
}

.btn-main:hover {
    background-color: white;
    color: #1f3a5f;
    transform: translateY(-2px);
}

.about-me {
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.about-me-content {
    display: flex;
    gap: 25px;
    align-items: center;
}

.about-me-content img {
    /* To make a perfect sphere, width and height must be equal */
    width: 140px;
    height: 140px;
    
    /* This creates the sphere shape */
    border-radius: 50%; 
    
    /* Ensures the image doesn't stretch weirdly */
    object-fit: cover; 
    
    /* The "Frame" for the sphere */
    border: 4px solid #1f3a5f;
    
    /* Optional: Adds a little depth to the sphere */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.about-me-text p {
    margin-bottom: 8px;
    color: #333;
}

/* ======= 7. The Fundament (Steps) ======= */
.temple-fundament {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    background-color: white;
    border: 5px solid #1f3a5f;
    border-top: none;
    height: 30px;
}

.step-1 {
    width: 100%;
}

.step-2 {
    width: calc(100% + 40px);
}

/* ======= 8. Mobile Adjustments ======= */
@media (max-width: 800px) {
    .pillar { display: none; }
    .temple-container { border: none; }
    .navbar { grid-template-columns: 1fr; } /* Stacks to 1 column on mobile */
}