@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-top: #100b1a;
    --bg-mid: #f5f5f7;
    --bg-bottom: #2b3a67;
    --accent-purple: #8b5cf6;
    --text-light: #ffffff;
    --text-dark: #1f2937;
    --glass-bg-dark: rgba(255, 255, 255, 0.05);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-light: rgba(139, 92, 246, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
    background-color: #020105;
    background-image: radial-gradient(ellipse 160% 70% at 50% 48%, #ffffff 15%, #5a35e6 45%, #0f0524 75%, #020105 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* ── Navbar ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.nav-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #a78bfa;
}

.nav-cta {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-cta:hover {
    color: #a78bfa;
}

/* ── Hero (home) ── */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5% 8rem 5%;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #a78bfa;
}

.hero p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-visuals {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ── App preview images ── */
.app-preview {
    width: 300px;
    height: 520px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: block;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.app-preview-small {
    width: 260px;
    height: 494px;
    border-radius: 20px 20px 0 0;
    display: block;
    margin-top: 0.75rem;
    object-fit: cover;
    object-position: top center;
}

/* ── Hero carousel ── */
.carousel-wrap {
    position: relative;
    width: 300px;
    height: 520px;
    overflow: hidden;
    flex-shrink: 0;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    width: 300px;
    height: 520px;
    flex-shrink: 0;
    border-radius: 24px;
    display: block;
    object-fit: cover;
    object-position: top center;
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #a78bfa;
    transform: scale(1.4);
}

/* ── CTA link ── */
.cta-link {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.cta-link:hover {
    color: #a78bfa;
}

/* ── Portfolio section ── */
.light-section {
    padding: 5rem 5%;
    color: var(--text-light);
    text-align: center;
}

.light-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.glass-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-dark);
    border-radius: 24px;
    padding: 2rem 2rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.2s;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.glass-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.glass-card p {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-link {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.2s;
}

.card-link:hover {
    color: #a78bfa;
}

/* ── Stats / footer section ── */
.stats-footer {
    padding: 6rem 5% 5rem 5%;
    text-align: center;
}

.stats-footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-footer > p {
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

.stat-box {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-dark);
    border-radius: 16px;
    padding: 2rem;
}

.stat-box h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.stat-box p {
    font-size: 0.9rem;
    color: #d1d5db;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border-dark);
    font-size: 0.8rem;
    color: white;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.social-links a:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.15);
}

/* ── Coming soon card ── */
.coming-soon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 220px;
    padding: 2rem 0 1rem;
}

.coming-soon-badge {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
}

.coming-soon-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #374151;
    line-height: 1.2;
    text-align: center;
}

.coming-soon-text span {
    color: #8b5cf6;
}

.coming-soon-sub {
    font-size: 0.8rem;
    color: #9ca3af !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

/* ── Page hero (inner pages) ── */
.page-hero {
    padding: 6rem 5% 1.5rem 5%;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-hero h1 span {
    color: #a78bfa;
}

.page-hero p {
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Dark glass card (About, etc.) ── */
.glass-card-dark {
    background: rgba(8, 4, 20, 0.65);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.glass-card-dark p {
    color: #e5e7eb;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.glass-card-dark p:last-child {
    margin-bottom: 0;
}

/* ── Skills grid ── */
.content-section {
    padding: 2rem 5% 6rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-box {
    background: rgba(8, 4, 20, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
}

.skill-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.skill-box p {
    font-size: 0.8rem;
    color: #c4b5fd;
}

/* ── Contact form ── */
.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 5% 6rem 5%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border-dark);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: white;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.btn-primary:hover {
    background: #7c3aed;
}

.contact-alt {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border-dark);
}

.contact-alt p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* ── App detail hero ── */
.app-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5% 6rem 5%;
}

.app-hero-content {
    flex: 1;
    max-width: 500px;
}

.app-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.app-hero-content h1 span {
    color: #a78bfa;
}

.app-hero-content .app-tagline {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.app-hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border-dark);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s;
}

.btn-store:hover {
    border-color: var(--accent-purple);
}

.app-description {
    padding: 0 5% 5rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.app-description p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* ── Legal pages ── */
.legal-section {
    padding: 3rem 5% 6rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.legal-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
    color: #a78bfa;
}

.legal-section h2:first-of-type {
    margin-top: 0;
}

.legal-section p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ── Page footer ── */
.page-footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border-dark);
    font-size: 0.8rem;
    color: #9ca3af;
}

.page-footer a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.2s;
}

.page-footer a:hover {
    color: #a78bfa;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-content { margin-bottom: 3rem; }
    .hero-visuals { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .app-hero { flex-direction: column; text-align: center; }
    .app-hero-content { margin-bottom: 3rem; }
    .app-hero-visual { justify-content: center; }
    .store-buttons { justify-content: center; }
    .page-hero h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
}
