/* --- VARIABLES --- */
:root {
    --mmc-black: #000000;
    --mmc-charcoal: #1A1A1A; /* Dark Premium Charcoal */
    --mmc-yellow: #FFFF00; /* High Vis Yellow */
    --mmc-grey: #595959;
    --mmc-white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--mmc-white); color: var(--mmc-charcoal); overflow-x: hidden; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-yellow { color: var(--mmc-yellow); }
.center-text { text-align: center; }
.mt-50 { margin-top: 50px; }

/* --- BUTTONS --- */
.btn-yellow {
    background-color: var(--mmc-yellow); color: var(--mmc-black);
    padding: 12px 30px; border: none; border-radius: 5px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}
.btn-yellow:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); background-color: #e6e600; }

.btn-outline {
    border: 2px solid var(--mmc-white); color: var(--mmc-white);
    padding: 10px 30px; text-decoration: none; font-weight: 700;
    border-radius: 5px; transition: 0.3s; display: inline-block;
    text-transform: uppercase; font-size: 0.9rem;
}
.btn-outline:hover { background-color: var(--mmc-white); color: var(--mmc-charcoal); }

.btn-dark {
    background-color: var(--mmc-charcoal); color: var(--mmc-white);
    padding: 15px 40px; text-decoration: none; border-radius: 30px;
    font-weight: 700; text-transform: uppercase; transition: 0.3s;
    display: inline-block;
}
.btn-dark:hover { background-color: var(--mmc-black); }

/* --- HEADER --- */
.site-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 20px 0;
}
.header-layout { display: flex; justify-content: space-between; align-items: center; }

/* LOGO */
.logo img { 
    height: 30px; 
    width: auto; 
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--mmc-charcoal);
    min-height: 100vh; position: relative;
    display: flex; align-items: center;
    padding-top: 80px; /* Space for header */
    padding-bottom: 100px; /* Space for overlap */
    overflow: hidden; /* Important for side slide animation */
}
.hero-layout {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.hero-text { flex: 1; color: var(--mmc-white); max-width: 600px; }
.pill-badge {
    background: rgba(255,255,255,0.1); padding: 5px 15px;
    border-radius: 20px; font-weight: 700; font-size: 0.8rem;
    letter-spacing: 2px; border: 1px solid rgba(255,255,255,0.2);
    display: inline-block; margin-bottom: 20px;
}
.hero-text h1 {
    font-size: 4.5rem; line-height: 0.9; font-weight: 900;
    margin-bottom: 20px; letter-spacing: -2px;
}
.hero-sub { font-size: 1.5rem; font-weight: 300; margin-bottom: 20px; color: var(--mmc-yellow); }
.hero-desc { font-size: 1.1rem; line-height: 1.6; opacity: 0.8; margin-bottom: 30px; max-width: 500px; }

/* SIGNATURE */
.signature-img { 
    height: 220px; 
    width: auto;
    max-width: 100%; 
    display: block; 
    margin-bottom: 30px; 
    filter: brightness(0) invert(1); 
    opacity: 0.9; 
}

.hero-image { flex: 1; display: flex; justify-content: flex-end; position: relative; }

/* CHARACTER ANIMATION */
.character-img { 
    max-width: 100%; height: auto; 
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    transform: scale(1.1); 
    /* Initial State for Animation */
    opacity: 0; 
    transform: translateX(100px) scale(1.1); 
    animation: slideInRight 1s ease-out 0.5s forwards; /* 0.5s Delay */
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0) scale(1.1);
    }
}

/* --- SERVICES STRIP (Floating) --- */
.services-strip {
    margin-top: -80px; /* Pull up into Hero */
    position: relative; z-index: 10;
}
.services-strip .container {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
}
.service-box {
    background: var(--mmc-white); padding: 40px 30px; border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); text-align: center;
    min-width: 250px; flex: 1; transition: 0.3s;
    border-bottom: 5px solid var(--mmc-yellow);
}
.service-box:hover { transform: translateY(-10px); }
.service-box i { font-size: 2.5rem; color: var(--mmc-charcoal); margin-bottom: 15px; }
.service-box h3 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }

/* --- PORTFOLIO --- */
.portfolio-section { padding: 100px 0 100px 0; }
.section-header h2 { font-size: 3rem; font-weight: 900; color: var(--mmc-black); margin-bottom: 15px; }
.divider-yellow { width: 60px; height: 5px; background: var(--mmc-yellow); margin: 0 auto 20px auto; }
.section-header p { color: var(--mmc-grey); font-size: 1.1rem; }

.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; margin-top: 60px;
}
.project-card {
    background: var(--mmc-white); border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s;
    cursor: pointer;
    display: flex; flex-direction: column;
    height: 100%;
}
.project-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}
.project-thumb { height: 250px; overflow: hidden; position: relative; }
.placeholder-bg { width: 100%; height: 100%; }
.project-info { padding: 25px; border-bottom: 4px solid var(--mmc-yellow); flex: 1; display: flex; flex-direction: column; }
.project-info h3 { font-size: 1.4rem; margin-bottom: 5px; color: var(--mmc-charcoal); }
.project-info p { color: var(--mmc-grey); font-size: 0.9rem; margin-bottom: 15px; font-weight: 700; }
.project-info .card-desc {
    font-size: 0.9rem; color: #777; line-height: 1.5; font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}
.read-more-link {
    margin-top: auto; color: var(--mmc-charcoal); font-weight: 700; 
    font-size: 0.8rem; text-transform: uppercase;
}
.project-card:hover .read-more-link { color: #d4d400; }

/* --- BIO SECTION --- */
.bio-section { background-color: #f9f9f9; padding: 100px 0; }
.bio-layout { display: flex; align-items: center; gap: 60px; }
.bio-text { flex: 2; }
.bio-text h2 { font-size: 2.5rem; margin-bottom: 30px; line-height: 1.2; }
.highlight { background: var(--mmc-yellow); padding: 0 5px; }
.bio-text p { margin-bottom: 20px; line-height: 1.8; color: var(--mmc-grey); font-size: 1.1rem; }
.bio-stat { flex: 1; display: flex; justify-content: center; }
.stat-box {
    background: var(--mmc-charcoal); color: var(--mmc-yellow);
    padding: 40px; border-radius: 50%; width: 200px; height: 200px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.big-num { font-size: 4rem; font-weight: 900; line-height: 1; }
.label { font-size: 0.9rem; color: var(--mmc-white); text-transform: uppercase; margin-top: 5px; }

/* --- FOOTER --- */
footer { background: var(--mmc-black); color: var(--mmc-white); padding: 60px 0 20px 0; text-align: center; }
.social-links { margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; }
.social-links a {
    width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--mmc-white);
    font-size: 1.2rem; transition: 0.3s;
}
.social-links a:hover { background: var(--mmc-yellow); color: var(--mmc-black); transform: translateY(-5px); }
.copyright { font-size: 0.8rem; opacity: 0.5; }

/* --- ANIMATION --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- MODAL (Shared) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000; display: none;
    justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease-out; }
.modal-window {
    background: var(--mmc-white); width: 90%; max-width: 500px;
    padding: 40px; border-radius: 10px; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* PROJECT MODAL SPECIFIC */
.project-window { max-width: 900px; padding: 0; display: flex; flex-direction: column; overflow: hidden; height: 85vh; }
.project-content-wrapper { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
.pm-img-container { width: 100%; height: 400px; background-color: #eee; flex-shrink: 0; }
.pm-img { width: 100%; height: 100%; object-fit: cover; }
.pm-text { padding: 40px; }
.pm-text h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--mmc-charcoal); line-height: 1.1; }
.pm-meta { color: var(--mmc-charcoal); font-weight: 700; margin-bottom: 20px; display: block; font-size: 1.1rem; }
.pm-desc { font-size: 1.1rem; line-height: 1.8; color: #555; white-space: pre-wrap; }

.modal-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 2rem; cursor: pointer; color: var(--mmc-grey); z-index: 10;
}
.project-window .modal-close {
    background: white; border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.modal-content h2 { color: var(--mmc-charcoal); margin-bottom: 10px; }
.modal-content p { margin-bottom: 20px; color: #777; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; color: var(--mmc-charcoal); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 5px;
    font-family: inherit; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--mmc-yellow); outline: none; }
.full-width { width: 100%; }

@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-layout { flex-direction: column-reverse; text-align: center; }
    .hero-text { margin-top: 30px; }
    .hero-image { justify-content: center; }
    .character-img { max-height: 400px; transform: scale(1); }
    .hero-text h1 { font-size: 3rem; }
    .signature-img { margin: 0 auto 30px auto; height: 150px; }
    .bio-layout { flex-direction: column; text-align: center; }
    .services-strip .container { flex-direction: column; padding: 0 40px; }
    .service-box { margin-bottom: 20px; }
    .pm-img-container { height: 250px; }
}

/* ========================================= */
/* ADMIN DASHBOARD STYLES                    */
/* ========================================= */

.admin-body {
    background-color: #f0f0f0; 
    height: 100vh;
    overflow: hidden;
}

/* LOGIN SCREEN */
#admin-login {
    display: flex; height: 100vh; align-items: center; justify-content: center;
    background-color: var(--mmc-charcoal);
    position: relative; z-index: 2000;
}
.login-card {
    background: var(--mmc-charcoal); border: 2px solid var(--mmc-yellow);
    padding: 50px; text-align: center; border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); max-width: 400px; width: 90%;
}
.admin-logo { height: 50px; margin-bottom: 20px; }
.login-card h2 { color: var(--mmc-white); font-size: 1.5rem; margin-bottom: 10px; }
.login-card p { color: #aaa; margin-bottom: 30px; font-size: 0.9rem; }
.login-card input {
    width: 100%; padding: 15px; margin-bottom: 15px; background: rgba(255,255,255,0.1);
    border: 1px solid #444; color: white; border-radius: 5px;
}
.login-card input:focus { border-color: var(--mmc-yellow); outline: none; }

/* DASHBOARD LAYOUT */
.dashboard-wrapper { display: flex; height: 100vh; display: none; }

/* SIDEBAR */
.sidebar {
    width: 250px; background-color: var(--mmc-charcoal);
    display: flex; flex-direction: column; padding: 30px 20px;
    border-right: 1px solid #333;
}
.sb-logo { text-align: center; margin-bottom: 50px; }
.sb-logo img { height: 40px; }

.admin-nav { flex: 1; }
.nav-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 20px; color: #aaa; text-decoration: none;
    font-weight: 700; transition: 0.3s; border-radius: 5px;
    margin-bottom: 10px; text-transform: uppercase; font-size: 0.9rem;
}
.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 0, 0.1); color: var(--mmc-yellow);
}
.nav-item.logout { color: #ff4d4d; margin-top: 20px; }
.nav-item.logout:hover { background-color: rgba(255, 77, 77, 0.1); }

.sb-footer { text-align: center; font-size: 0.7rem; color: #555; }

/* MAIN CONTENT */
.main-content { flex: 1; padding: 40px; overflow-y: auto; }
.dash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px;
}
.dash-header h1 { font-size: 2rem; color: var(--mmc-charcoal); font-weight: 900; }

/* ADMIN GRID (Portfolio Items) */
.admin-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.admin-card {
    background: white; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative;
    border: 1px solid #eee;
}
.ac-img { height: 180px; background-size: cover; background-position: center; position: relative; }
.ac-content { padding: 20px; }
.ac-content h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--mmc-charcoal); }
.ac-content p { font-size: 0.8rem; color: #777; text-transform: uppercase; font-weight: 700; }
.ac-actions {
    display: flex; border-top: 1px solid #eee;
}
.ac-btn {
    flex: 1; padding: 10px; border: none; cursor: pointer; font-weight: 700;
    font-size: 0.8rem; transition: 0.2s; background: white;
}
.ac-btn.edit { color: var(--mmc-charcoal); border-right: 1px solid #eee; }
.ac-btn.edit:hover { background: #f9f9f9; }
.ac-btn.delete { color: #ff4d4d; }
.ac-btn.delete:hover { background: #fff0f0; }

/* ADMIN MODAL EXTRAS */
.image-preview-box {
    height: 150px; background: #eee; margin-top: 10px;
    border-radius: 5px; background-size: cover; background-position: center;
    border: 2px dashed #ccc;
}
.modal-input {
    width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 5px;
    font-family: inherit; font-size: 1rem;
}

/* CHECKBOX STYLE */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}
.checkbox-wrapper input {
    width: auto; 
    margin: 0;
}

/* MESSAGES LIST STYLES */
.msg-list {
    display: flex; flex-direction: column; gap: 20px;
}
.msg-card {
    background: white; padding: 20px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--mmc-charcoal);
    position: relative;
}
.msg-card.unread { border-left-color: var(--mmc-yellow); background: #fffde7; }
.msg-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px;
}
.msg-name { font-weight: 700; color: var(--mmc-charcoal); font-size: 1.1rem; }
.msg-date { font-size: 0.8rem; color: #888; }
.msg-email { font-size: 0.9rem; color: #555; margin-bottom: 10px; font-weight: 600; }
.msg-body { color: #444; line-height: 1.6; white-space: pre-wrap; }
.msg-actions { text-align: right; margin-top: 15px; }
.btn-del-msg {
    background: transparent; color: #ff4d4d; border: 1px solid #ff4d4d;
    padding: 5px 15px; border-radius: 5px; cursor: pointer; font-size: 0.8rem;
    font-weight: 700; transition: 0.3s;
}
.btn-del-msg:hover { background: #ff4d4d; color: white; }