/* ===== JVV Dev — Portfolio ===== */
:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f1524;
    --bg-card: rgba(18, 26, 42, 0.6);
    --bg-card-hover: rgba(24, 34, 54, 0.8);
    --text-primary: #eef2ff;
    --text-secondary: #9ba9c9;
    --text-muted: #636f8a;
    --accent-1: #6366f1;
    --accent-2: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --accent-soft: rgba(99, 102, 241, 0.1);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 20px;
    --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

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

/* ===== Header / Nav ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(8, 12, 20, 0.9);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-soft);
    color: var(--accent-1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent-1);
    background: var(--accent-soft);
}

/* ===== Sections ===== */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Apps Grid ===== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: 0.3s;
}

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

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.app-info .app-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-1);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.tag.ios { background: rgba(6, 182, 212, 0.1); color: #06b6d4; border-color: rgba(6, 182, 212, 0.2); }
.tag.android { background: rgba(34, 197, 94, 0.1); color: #22c55e; border-color: rgba(34, 197, 94, 0.2); }
.tag.web { background: rgba(234, 179, 8, 0.1); color: #eab308; border-color: rgba(234, 179, 8, 0.2); }

.app-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: 0.2s;
}

.app-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-1);
    background: var(--accent-soft);
}

/* ===== Screenshots ===== */
.screenshots-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 2px;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    width: 240px;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Contact ===== */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: 0.2s;
}

.contact-item:hover {
    border-color: var(--accent-1);
    background: var(--accent-soft);
}

.contact-item .icon {
    font-size: 1.3rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .apps-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    section { padding: 60px 16px; }
    .hero { padding: 100px 16px 60px; }
    .contact-card { padding: 32px 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .screenshot-item { width: 180px; }
}
.app-icon { overflow: hidden; }
.app-icon img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }

/* ===== App cards alignment ===== */
.app-card {
    display: flex;
    flex-direction: column;
}

.app-card .app-tags {
    margin-top: auto;
}

/* ===== Card screenshots ===== */
.card-screens {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.card-screens img {
    width: 120px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.card-screens::-webkit-scrollbar {
    height: 3px;
}

.card-screens::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.card-screens::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 2px;
}
