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

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --hover-color: #404040;
    --red-accent: #ff0000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ========== LANDING PAGE ========== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 200;
    letter-spacing: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: fadeInUp 1s ease-out;
}

.red-text {
    background: var(--red-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

/* Small hero for category page */
.hero-small {
    min-height: 40vh;
    padding: 3rem 2rem;
}

.hero-title-small {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.back-link-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-link-hero:hover {
    color: var(--text-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.5;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Projects Section */
.projects-section {
    min-height: 100vh;
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.3rem;
    margin-bottom: 4rem;
    text-align: center;
    color: var(--text-primary);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.project-card {
    background-color: var(--primary-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    background-color: var(--secondary-bg);
}

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

.project-card:hover .project-card-title {
    color: var(--text-primary);
    transform: translateX(10px);
}

.project-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

.project-card-image {
    display: none;
}

.project-card-content {
    width: 100%;
}

.project-card-title {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.arrow-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 2rem;
}

.project-card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    margin-left: 0;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== PROJECT PAGE ========== */

.project-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
}

.pdf-viewer-simple {
    flex: 1;
    display: flex;
    width: 100%;
    min-height: calc(100vh - 100px);
    background-color: var(--secondary-bg);
}

.pdf-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 100px);
}

.pdf-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--primary-bg);
    z-index: 10;
    pointer-events: none;
}

#pdf-embed {
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 100px);
    border: none;
    background-color: var(--secondary-bg);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 968px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        letter-spacing: 0.5rem;
    }

    .hero-subtitle {
        letter-spacing: 0.3rem;
    }

    .project-nav {
        padding: 1.5rem 2rem;
    }

    .project-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .hero-title {
        letter-spacing: 0.3rem;
    }

    .projects-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .project-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .project-card-content {
        padding: 1.5rem;
    }
}
