/* =========================================
   🏗️ MAIN LAYOUT & SECTION WRAPPERS
   ========================================= */

#main-content {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.edge-light {
    position: fixed;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(circle at 0% 0%, rgba(5, 82, 59, 0.7), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(66, 2, 52, 0.7), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(3, 46, 77, 0.87), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(58, 33, 2, 0.7), transparent 45%);
    filter: blur(300px);
    animation: cinematicMove 25s ease-in-out infinite alternate, colorShift 30s linear infinite;
}

body.light-mode .edge-light { opacity: 0.35; }

@keyframes cinematicMove {
    0% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
    50% { background-position: 5% 10%, 95% 5%, 10% 95%, 90% 90%; }
    100% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
}

@keyframes colorShift {
    0%   { filter: blur(70px) hue-rotate(0deg); }
    100% { filter: blur(70px) hue-rotate(360deg); }
}

.hero-section {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 80px;
    padding: 0 10%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 3;
    pointer-events: none;
}

.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background:
        linear-gradient(to bottom, var(--bg), rgba(11, 15, 26, 0.4) 30%, rgba(11, 15, 26, 0.4) 70%, var(--bg)),
        url('../png/bg01.png') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    z-index: 5;
    padding: 100px 15% 100px 20px;
}

body.light-mode .about-section {
    background:
        linear-gradient(to bottom, var(--bg), rgba(246, 242, 230, 0.4) 30%, rgba(246, 242, 230, 0.4) 70%, var(--bg)),
        url('../png/bg02.png') no-repeat center center;
    background-size: cover;
}

.posts-section,
.projects-section {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 130px 10% 100px;
    background: var(--bg);
}

.posts-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.projects-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    overflow: hidden;
    padding: 120px 5%;
}

/* =========================================
   📎 MODERN FOOTER
   ========================================= */

.site-footer {
    position: relative;
    z-index: 5;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 10% 30px;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-contacts ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contacts li a,
.footer-contacts li span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.footer-contacts li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contacts i {
    color: var(--accent);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}