@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --accent: #11ab73;
    --secondary: #1F2937;
    --dark: #0F0F0F;
    --text: #f2f1f1;
    --text-dark: #1F2937;
    --text-light: #9CA3AF;
    --bg-dark: #0F0F0F;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --white: #FFFFFF;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(124, 58, 237, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #6366F1 50%, var(--primary-light) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--bg-dark);
    line-height: 1.6;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-links .active::after {
    width: 100%;
    background: var(--gradient);
}

/* Hero Section */
.hero {
    background: var(--bg-dark);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 400;
}

/* Filter Section */
.filter-section {
    padding: 50px 0 20px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--white);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Projects Grid */
.projects-section {
    padding: 40px 0 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-image .placeholder {
    font-size: 48px;
    color: var(--primary-light);
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    padding: 12px 28px;
    border: 2px solid var(--white);
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.project-info {
    padding: 24px;
}

.project-category {
    display: inline-block;
    background: rgba(17, 171, 115, 0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-status.sent {
    background: rgba(17, 171, 115, 0.15);
    color: var(--accent);
}

.project-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.project-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
}

.project-year {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.project-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.project-link:hover {
    gap: 10px;
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image .placeholder {
    font-size: 64px;
    color: var(--primary-light);
    opacity: 0.5;
}

.modal-body {
    padding: 32px;
}

.modal-body .category-label {
    display: inline-block;
    background: rgba(17, 171, 115, 0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

.modal-body h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin: 28px 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.modal-body li {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    position: relative;
    padding-left: 36px;
    border: 1px solid var(--border);
}

.modal-body li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    color: var(--accent);
    font-weight: 700;
}

.modal-body .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-body .tech-tag {
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.modal-footer {
    padding: 24px 32px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer .year-badge {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.modal-footer .btn {
    padding: 14px 32px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Footer */
.footer {
    background: #0A0A0A;
    color: var(--white);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    color: var(--text-light);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 24px;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .modal-body ul {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.projects-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { animation-delay: 0.15s; }
.projects-grid .project-card:nth-child(3) { animation-delay: 0.2s; }
.projects-grid .project-card:nth-child(4) { animation-delay: 0.25s; }
.projects-grid .project-card:nth-child(5) { animation-delay: 0.3s; }
.projects-grid .project-card:nth-child(6) { animation-delay: 0.35s; }
.projects-grid .project-card:nth-child(7) { animation-delay: 0.4s; }
.projects-grid .project-card:nth-child(8) { animation-delay: 0.45s; }
