/* GLOBAL RESET */
body { margin: 0; background: #000; color: #ccc; font-family: 'Segoe UI', sans-serif; display: block; min-height: 100vh; position: relative; padding-bottom: 80px; }
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* NAVBAR & MENU */
.navbar { position: fixed; top: 0; width: 100%; height: 80px; background: #111; border-bottom: 1px solid #222; z-index: 10000; display: flex; justify-content: center; }
.nav-box { width: 100%; max-width: 1440px; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; height: 100%; }

.brand { color: #fff; font-size: 1.5rem; letter-spacing: 2px; font-weight: bold; }
.links { display: flex; gap: 30px; height: 100%; align-items: center; }

/* Navigation Links & The "Bridge" Fix */
.link, .dropdown { position: relative; height: 100%; display: flex; align-items: center; cursor: pointer; color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.link:hover, .dropdown:hover { color: #fff; }

/* Invisible Bridge to prevent menu closing */
.dropdown::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 15px; background: transparent; }

/* Dropdown Menu */
.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 80px; 
    left: -20px; 
    background: #1e1e1e; 
    min-width: 220px; 
    border: 1px solid #333; 
    border-top: 3px solid #007acc;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 12px 20px; color: #aaa; border-bottom: 1px solid #2a2a2a; }
.dropdown-content a:hover { background: #2a2a2a; color: #fff; padding-left: 25px; }

/* AUTH LAYOUT (Login/Register) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding-top: 100px;
}
.auth-card {
    background: #111;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.auth-card h2 { margin-top: 0; color: #fff; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; }
.auth-card input { width: 100%; padding: 12px; margin-bottom: 15px; background: #222; border: 1px solid #444; color: #fff; }
.btn-full { width: 100%; padding: 12px; background: #fff; color: #000; font-weight: bold; border: none; cursor: pointer; text-transform: uppercase; }
.btn-full:hover { background: #ccc; }

/* FOOTER */
.footer { 
    text-align: center; 
    padding: 20px; 
    background: #111; 
    color: #666; 
    border-top: 1px solid #222; 
    width: 100%; 
    position: absolute; 
    bottom: 0; 
}

/* PORTFOLIO GRID */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px 0; }
.p-img { height: 180px; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.p-card:hover img { transform: scale(1.05); }