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

:root {
    --color-black: rgb(0, 0, 0);
    --color-red: rgb(255, 0, 0);
    --color-yellow: rgb(255, 204, 110);
    --color-green: rgb(10, 201, 77);
    --color-gray-light: rgb(245, 245, 245);
    --color-gray: rgb(232, 232, 232);
    --color-white: rgb(255, 255, 255);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-black);
    color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgb(0, 0, 0) -51%, rgba(38, 38, 38, 0) 100%);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--color-white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-white);
}

.btn-add-project {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-yellow);
    color: var(--color-black);
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-add-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 110, 0.3);
}

.search-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 80px 60px;
    background-image: url('https://res.cloudinary.com/dxqrmxll4/image/upload/v1759865286/z7092697499138_325ef6e26c355a465ede8d0740f592c5_vcploz.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(38, 38, 38, 0) 0%, rgb(0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 72px;
    line-height: 0.9;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    color: var(--color-black);
    padding: 14px 32px;
    border-radius: 38px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Sections */
.section-dark {
    padding: 60px 0;
    background: var(--color-black);
    max-width: 1920px;
    margin: 0 auto;
}

.section-dark > * {
    padding: 0 40px;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: var(--color-white);
}

/* Projects Horizontal Scroll (for Latest, All, Experimental) */
.projects-horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Medium Project Card (for horizontal scrolls) */
.project-card-medium {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card-medium:hover {
    transform: translateY(-8px);
}

.project-card-medium .project-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.project-card-medium .project-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.project-card-medium .project-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-card-medium .new-added-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-red);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
}

.project-card-medium .project-info {
    padding: 16px 0;
    background: var(--color-black);
}

.project-card-medium .project-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-white);
    background: var(--color-black);
}

.project-card-medium .project-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.project-card-medium:hover .project-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-edit {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-delete {
    background: var(--color-red);
    color: var(--color-white);
}

.btn-edit:hover,
.btn-delete:hover {
    transform: translateY(-2px);
}

/* Categories Grid (3 per row, large) */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .category-name {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    letter-spacing: 2px;
    color: var(--color-white);
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgb(20, 20, 20);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-red);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group select option {
    background: rgb(20, 20, 20);
    color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

.btn-secondary,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.btn-submit {
    background: var(--color-yellow);
    color: var(--color-black);
}

.btn-secondary:hover,
.btn-submit:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 14px;
    color: var(--color-gray);
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray);
}

.empty-state h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-horizontal-scroll {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 24px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.btn-add-project) {
        display: none;
    }

    .hero {
        padding: 60px 24px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-dark {
        padding: 40px 20px;
    }

    .projects-horizontal-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card-medium .project-thumbnail {
        aspect-ratio: 16 / 9;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 300px;
    }

    .category-card .category-name {
        font-size: 36px;
    }

    footer {
        padding: 40px 24px;
    }

    .modal-content {
        padding: 24px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-gray);
}

.empty-state h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}

.pagination-prev,
.pagination-next {
    width: 40px;
    height: 40px;
}

.pagination-prev svg,
.pagination-next svg {
    width: 20px;
    height: 20px;
}

.pagination-dots {
    color: var(--color-gray);
    padding: 0 8px;
    font-size: 16px;
    font-weight: 600;
}
