:root {
    --primary: #c6a15b;
    --background: #0a0a0a;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(198, 161, 91, 0.2);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.95)), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

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

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(198, 161, 91, 0.3));
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
}

.github-link:hover {
    background: var(--primary);
    color: var(--background);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding: 60px 0 100px;
    align-items: center;
    position: relative;
    min-height: calc(100vh - 80px);
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #c6a15b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 .accent {
    font-style: italic;
    font-weight: 400;
}

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

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    width: fit-content;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 10px 30px rgba(198, 161, 91, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(198, 161, 91, 0.4);
}

.apk-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #111;
    border: 12px solid #222;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 20px rgba(198, 161, 91, 0.1);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 280px;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
}

.top-left { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.top-right { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bottom-right { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.laser {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    top: 0;
    animation: scan 3s infinite ease-in-out;
}

@keyframes scan {
    0%, 100% { top: 0%; }
    50% { top: 100%; }
}

/* Portrait Grid */
.portraits-section {
    padding: 120px 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.portrait-container-wrapper {
    position: relative;
    width: 100%;
}

.scroll-hint-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(198, 161, 91, 0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    pointer-events: auto; /* Enable clicking */
    opacity: 0.8;
}

.scroll-hint-arrow.left {
    left: -80px;
}

.scroll-hint-arrow.right {
    right: -80px;
}

.portrait-container-wrapper:hover .scroll-hint-arrow {
    opacity: 1;
    background: rgba(198, 161, 91, 0.15);
    border-color: var(--primary);
}

@media (max-width: 1400px) {
    .scroll-hint-arrow.left { left: -40px; }
    .scroll-hint-arrow.right { right: -40px; }
}

@media (max-width: 1200px) {
    .scroll-hint-arrow { display: none; } /* Hide on small screens where they overlap content */
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.portrait-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2rem 0;
    gap: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portrait-grid::-webkit-scrollbar {
    display: none;
}

.portrait-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    flex: 0 0 280px;
}

.portrait-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: 300px;
    width: 100%;
    position: relative;
}

.scan-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary);
    color: var(--background);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
    pointer-events: none;
}

.portrait-card:hover .scan-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.portrait-card:hover img {
    filter: grayscale(0);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-content .artist {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 100px 0;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: var(--transition);
}

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

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-muted);
    border-right: 2px solid var(--text-muted);
    transform: rotate(45deg);
    margin: -4px;
    animation: arrowDown 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes arrowDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.fade-in-delayed {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 40px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .subtitle {
        margin: 0 auto 2rem;
        font-size: 1.1rem;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        border-width: 8px;
    }

    .scan-overlay {
        width: 160px;
        height: 220px;
    }

    .cta-group {
        align-items: center;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(198, 161, 91, 0.3);
    border-radius: 8px;
    overflow: visible; /* Allow cross to be outside if needed, or handle inside */
}

.modal-content img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -20px;
    color: #ff4444; /* Bright Red */
    cursor: pointer;
    font-size: 3.5rem;
    transition: var(--transition);
    z-index: 1001;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.modal-close:hover {
    color: #ff0000;
    transform: scale(1.1);
}

.modal-caption {
    display: none; /* Hide name and artist */
}

.modal-caption h3 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.modal-caption p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
