:root {
    --primary-blue: #4F46E5;
    --primary-blue-hover: #4338CA;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #FFFFFF;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --font-inter: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 5%;
    background-color: var(--bg-white);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
}

.eyebrow::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 24px;
    height: 2px;
    background-color: var(--primary-blue);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.highlight {
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.39);
}

.btn-secondary {
    color: var(--text-muted);
}

.btn-secondary:hover {
    color: var(--text-main);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* MAIN LAYOUT */
.projects-section {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 5%;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
}

/* SIDEBAR */
.sidebar-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.category-list a:hover {
    background-color: #F3F4F6;
    color: var(--text-main);
}

.category-list a.active {
    background-color: #EEF2FF;
    color: var(--primary-blue);
    font-weight: 600;
}

/* PROJECTS GRID */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.project-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.sort-dropdown {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* PROJECT CARD */
.project-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: #f1f1f1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    background-color: #F3F4F6;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.view-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.project-card:hover .view-link {
    color: var(--primary-blue);
}

@media (max-width: 1024px) {
    .projects-section {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        display: flex;
        flex-direction: column;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-list li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        padding-top: 4rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .eyebrow::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* ===================== */
/* LOGIN PAGE            */
/* ===================== */

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-back {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.login-back:hover {
    color: var(--primary-blue);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-icon {
    margin-bottom: 1.25rem;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-inter);
    color: var(--text-main);
    background: #F9FAFB;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--primary-blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-blue);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forgot-link:hover {
    opacity: 0.8;
}

.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.login-footer a:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}
