
:root { --bg: #ffffff; --text: #222; --gray: #777; --line: #eaeaea; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }

/* Sticky Nav */
nav { 
    position: sticky; top: 0; background: rgba(245, 245, 245, 0.98); 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 3rem; border-bottom: 1px solid var(--line); z-index: 1000;
}
.logo a { 
    font-family: 'Great Vibes', cursive; /* Script Font */
    font-size: 2rem; 
    font-weight: 400; 
    color: #000;
}
.links a { margin-left: 2rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

/* Homepage Main */
.home-center {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 80vh; text-align: center; padding: 2rem 1rem;
}
.home-center img {
    max-width: 95%; width: 100%; height: auto;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.grayscale-image {
    filter: grayscale(100%);
    transition: filter 1s ease-in-out;
}
.color-image {
    filter: grayscale(0%);
    transition: filter 1s ease-in-out;
}
.enter-btn {
    padding: 1rem 2rem; border: 1px solid #000;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.9rem; transition: all 0.3s;
}
.enter-btn:hover { background: #000; color: #fff; }

/* Portfolio Page */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 3rem; }

/* Project Detail Page */
.back-link {
    margin:3rem 0 3rem 1rem ;
    text-align: left;
}

.back-link a {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link a:hover {
    background-color: #000;
    color: #fff;
    opacity: 1;
}

/* Update link styles to be different from the button */
a:not(.back-link a) {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* New Portfolio Page Styles */
.clear-thumb-btn {
    background: none;
    color: #dc3545;
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:10px 5px 16px 5px; 
    width: 30px;
    height: 30px;
}

.clear-thumb-btn:hover {
    background: #c82333;
    color: #fafafa;
    border: none;
    border-radius:3px;
}

#largeThumbPreview {
    display: none;
    margin: 2rem 0;
    text-align: center;
}

#largeThumbPreview .preview-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#largeThumbPreview .preview-header h3 {
    margin: 0;
    font-weight: 500;
}

#largeThumbPreview #largeThumbImage {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

a:not(.back-link a):hover {
    opacity: 1;
}
.portfolio-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 3rem; 
}
.project-card { cursor: pointer; }
.thumb { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #f4f4f4; margin-bottom: 1rem; filter: grayscale(100%); transition: filter 0.3s; }
.project-card:hover .thumb { filter: grayscale(0%); }

/* New Portfolio Page Styles */
.new-portfolio-body { font-size: 16px; }
/* Navigation */
nav { 
    position: sticky; top: 0; background: rgba(245, 245, 245, 0.98); 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 3rem; border-bottom: 1px solid #eaeaea; z-index: 1000;
}
nav .logo a { 
    font-family: 'Great Vibes', cursive !important; 
    font-size: 2rem; 
    font-weight: 400; 
    color: #000;
    text-decoration: none;
}
nav .links { display: flex; }
nav .links a { 
    margin-left: 2rem; 
    font-size: 0.8rem; 
    font-weight: 500; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    color: #222;
    text-decoration: none;
}
nav .links a:hover { opacity: 0.6; }
nav button { 
    font-family: 'Inter', sans-serif; 
    font-size: 0.8rem !important;
}

/* Main Content */
.new-portfolio-main { 
    flex: 1; 
    max-width: 1000px; 
    margin: 2rem auto; 
    width: 100%; 
    padding: 0 2rem;
}
.new-portfolio .content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Form Styles */
.new-portfolio .form-group { 
    margin-bottom: 2.5rem; 
}
.new-portfolio .form-group.description-field {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
.new-portfolio .form-group.thumbnail-field {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}
.new-portfolio .form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px; 
}
.new-portfolio .form-control { 
    width: 100%; 
    padding: 0.8rem; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 16px; 
    font-family: 'Inter', sans-serif;
}
.new-portfolio .form-control:focus { 
    outline: none; 
    border-color: #000; 
}
.new-portfolio textarea.form-control { resize: vertical; min-height: 100px; }

/* Buttons */
.new-portfolio .btn-black { 
    background: #000; 
    color: white; 
    border: none; 
    padding: 0.8rem 2rem; 
    text-transform: uppercase; 
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.new-portfolio .btn-black:hover { 
    background: #333; 
}

/* Headings */
.new-portfolio h2 { 
    font-weight: 300; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 2rem;
}

/* Additional New Portfolio Styles */
.new-portfolio-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logout-btn {
    background: #000; 
    color: white; 
    border: none; 
    padding: 0.6rem 1rem; 
    cursor: pointer; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    transition: all 0.3s; 
    font-family: 'Inter', sans-serif;
}

.logout-btn:hover {
    background: #333;
}

.btn-cancel {
    background: #f5f5f5 !important; 
    color: #333 !important; 
    border: 1px solid #ddd !important; 
    margin-left: 1rem !important;
}

.quill-editor {
    min-height: 400px;
}

.new-portfolio .checkbox-label {
    display: flex; 
    align-items: center; 
    cursor: pointer;
}

.new-portfolio .checkbox-label input {
    margin-right: 8px;
}

.new-portfolio .checkbox-label span {
    font-weight: normal; 
    text-transform: none; 
    letter-spacing: normal;
}

.new-portfolio-body .nav-links {
    display: flex; 
    align-items: center; 
    gap: 2rem;
}

.new-portfolio-body .nav-links .dashboard-link {
    border-bottom: 1px solid #000;
}

.logout-btn {
    background: #000; 
    color: white; 
    border: none; 
    padding: 0.6rem 1rem; 
    cursor: pointer; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    transition: all 0.3s; 
    font-family: 'Inter', sans-serif;
    align-self: center;
    white-space: nowrap;
}
.project-title { font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.project-date { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }

/* Footer */
footer { text-align: center; padding: 3rem 0; border-top: 1px solid var(--line); margin-top: auto; background: #f5f5f5; }
.social-icons { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.social-icons a { font-size: 1.4rem; color: #333; }
.social-icons a:hover { color: #000; transform: scale(1.1); }
footer p { color: #999; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* Admin */
.admin-body { background: #f5f5f5; font-family: 'Inter', sans-serif; padding-top: 2rem; }
.admin-panel { max-width: 1000px; margin: 0 auto; background: white; padding: 2rem; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.admin-panel h2 { font-weight: 300; text-transform: uppercase; letter-spacing: 1px; }
.admin-panel h3 { font-weight: 400; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.btn-black { background: #000; color: white; border: none; padding: 0.8rem 1.5rem; cursor: pointer; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: all 0.3s; }
.btn-black:hover { background: #333; }
.btn { background: #000; color: #fff; border: none; padding: 0.8rem 1.5rem; cursor: pointer; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: all 0.3s; }
.btn:hover { background: #333; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 4px; font-family: 'Inter', sans-serif; }
.form-control:focus { outline: none; border-color: #000; }
.project-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid #eee; }
.project-item:hover { background: #f9f9f9; }
.hidden { display: none; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Responsive Design */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .logo a { font-size: 1.5rem; }
    .links a { margin-left: 1rem; font-size: 0.7rem; }
    .home-center { min-height: 60vh; padding: 1.5rem 1rem; }
    .home-center img { max-width: 100%; width: 100%; margin-bottom: 1.5rem; }
    .enter-btn { padding: 0.8rem 1.5rem; font-size: 0.8rem; }
    .container { padding: 2rem 1.5rem; }
    footer { padding: 2rem 0; }
    .social-icons { gap: 1rem; }
}

@media (max-width: 480px) {
    nav { padding: 0.8rem 1rem; flex-direction: column; gap: 1rem; }
    .logo a { font-size: 1.2rem; }
    .links { display: flex; gap: 1rem; }
    .links a { margin-left: 0; font-size: 0.65rem; }
    .home-center { min-height: 50vh; padding: 1rem; }
    .home-center img { margin-bottom: 1rem; }
    .enter-btn { padding: 0.7rem 1.2rem; font-size: 0.75rem; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 2rem; }
    .container { padding: 1.5rem 1rem; }
    footer { padding: 1.5rem 0; }
    .social-icons a { font-size: 1.2rem; }
    footer p { font-size: 0.7rem; }
}
