/* ===========================
   PRODIGY KIDS — Diveo Media-inspired Design
   =========================== */

:root {
    --primary: #6B4EFF;
    --primary-dark: #4A30D4;
    --primary-light: #EDE9FF;
    --secondary: #FF5C7A;
    --accent: #4ECDC4;
    --dark: #0F0C29;
    --text: #2D2D4E;
    --muted: #8B8FAE;
    --bg: #FFFFFF;
    --bg-alt: #F7F5FF;
    --border: #E8E4FF;
    --radius: 20px;
    --shadow: 0 8px 32px rgba(107, 78, 255, 0.12);
    --shadow-hover: 0 20px 50px rgba(107, 78, 255, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Round', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ===========================
   NAV
   =========================== */
.pk-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.pk-nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 24px rgba(107, 78, 255, 0.1);
}

.pk-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pk-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.25rem;
    color: white;
    transition: 0.2s;
}

.pk-nav--scrolled .pk-nav__logo {
    color: var(--primary);
}

.pk-nav__logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.pk-nav__links {
    display: flex;
    gap: 4px;
    list-style: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.pk-nav--scrolled .pk-nav__links {
    background: white;
    border-color: var(--border);
}

.pk-nav__links li a {
    display: block;
    padding: 9px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
}

.pk-nav--scrolled .pk-nav__links li a {
    color: var(--text);
}

.pk-nav__links li a:hover {
    background: var(--primary);
    color: white !important;
}

.pk-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
}

.pk-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.pk-nav--scrolled .pk-nav__toggle span {
    background: var(--text);
}

/* ===========================
   HERO
   =========================== */
.pk-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0C29 0%, #302B63 55%, #24243E 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.pk-hero__blob-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 78, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pk-hero__blob-2 {
    position: absolute;
    bottom: 5%;
    left: -8%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pk-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 28px 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.pk-hero__content { flex: 1; }

.pk-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #A78BFA;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 28px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pk-hero__tag::before {
    content: '★';
    font-size: 0.75rem;
}

.pk-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 22px;
}

.pk-hero__title span {
    background: linear-gradient(90deg, #A78BFA, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pk-hero__sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 460px;
}

.pk-hero__btns {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.pk-btn-store {
    display: block;
    transition: transform 0.2s;
}

.pk-btn-store img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.pk-btn-store:hover { transform: scale(1.06); }

.pk-btn-explore {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.pk-btn-explore:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Hero visual — floating cards */
.pk-hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pk-hero__cards {
    position: relative;
    width: 360px;
    height: 400px;
}

.pk-float-card {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.pk-float-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pk-float-card--1 {
    width: 230px;
    height: 290px;
    top: 10px;
    left: 50%;
    transform: translateX(-60%) rotate(-4deg);
    animation: pkFloat1 6s ease-in-out infinite;
    z-index: 2;
}

.pk-float-card--2 {
    width: 170px;
    height: 195px;
    bottom: 0;
    right: 0;
    animation: pkFloat2 8s ease-in-out infinite;
    z-index: 1;
    opacity: 0.85;
}

@keyframes pkFloat1 {
    0%, 100% { transform: translateX(-60%) rotate(-4deg) translateY(0); }
    50%       { transform: translateX(-60%) rotate(-4deg) translateY(-16px); }
}

@keyframes pkFloat2 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50%       { transform: rotate(5deg) translateY(-10px); }
}

.pk-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
}

.pk-hero__wave svg { width: 100%; display: block; }

/* ===========================
   SHARED SECTION STYLES
   =========================== */
.pk-section { padding: 100px 0; }
.pk-section--alt { background: var(--bg-alt); }

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

.pk-container--narrow { max-width: 700px; }

.pk-section__title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}

.pk-section__sub {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   APPS GRID
   =========================== */
.pk-apps__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.pk-app-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 340px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid var(--border);
}

.pk-app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.pk-app-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pk-app-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.pk-app-card:hover .pk-app-card__img img {
    transform: scale(1.07);
}

.pk-app-card__age {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pk-app-card__body { padding: 22px; }

.pk-app-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.pk-app-card__icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(107, 78, 255, 0.2);
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.pk-app-card__header h3 {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pk-app-card__header h3 a {
    color: var(--text);
    text-decoration: none;
    transition: 0.2s;
}

.pk-app-card__header h3 a:hover { color: var(--primary); }

.pk-app-card__header p {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0 0 6px;
}

.pk-stars {
    color: #FFB800;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.pk-app-card__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pk-store-btn { display: inline-block; transition: transform 0.2s; }
.pk-store-btn img { height: 36px; width: auto; display: block; }
.pk-store-btn:hover { transform: scale(1.06); }

/* ===========================
   ABOUT
   =========================== */
.pk-about__grid {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.pk-about-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
}

.pk-about-item__icon {
    width: 96px;
    height: 96px;
    background: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pk-about-item:hover .pk-about-item__icon {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pk-about-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pk-about-item h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
}

.pk-about-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

.pk-about__desc {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
}

.pk-about__desc p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.85;
}

/* ===========================
   CONTACT
   =========================== */
.pk-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pk-form__group input,
.pk-form__group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-alt);
    outline: none;
    transition: all 0.2s;
    font-weight: 600;
}

.pk-form__group input:focus,
.pk-form__group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(107, 78, 255, 0.08);
}

.pk-form__group input::placeholder,
.pk-form__group textarea::placeholder { color: var(--muted); }

.pk-form__group textarea {
    height: 140px;
    resize: vertical;
}

.pk-form__submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.pk-form__submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 78, 255, 0.35);
}

/* ===========================
   FOOTER
   =========================== */
.pk-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.pk-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pk-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.pk-footer__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.pk-footer__social {
    display: flex;
    list-style: none;
    gap: 10px;
}

.pk-footer__social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pk-footer__social li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.pk-footer__social li a svg {
    width: 18px;
    height: 18px;
    fill: white;
    display: block;
}

.pk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
}

.pk-footer__bottom p { color: rgba(255, 255, 255, 0.4); }

.pk-footer__links {
    display: flex;
    gap: 20px;
}

.pk-footer__links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 700;
}

.pk-footer__links a:hover { color: white; }

/* ===========================
   MODAL
   =========================== */
.pk-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 41, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.pk-modal__content {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 32px 80px rgba(15, 12, 41, 0.3);
}

.pk-modal__content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 700;
}

.pk-modal__content button {
    padding: 12px 36px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

.pk-modal__content button:hover { background: var(--primary-dark); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .pk-hero__container {
        flex-direction: column;
        text-align: center;
        padding: 90px 28px 60px;
    }

    .pk-hero__sub { max-width: 100%; }
    .pk-hero__btns { justify-content: center; }
    .pk-hero__visual { width: 100%; }

    .pk-hero__cards {
        width: 280px;
        height: 280px;
    }

    .pk-float-card--1 {
        width: 170px;
        height: 215px;
    }

    .pk-float-card--2 {
        width: 130px;
        height: 148px;
    }
}

@media (max-width: 640px) {
    .pk-nav__links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 16px; right: 16px;
        flex-direction: column;
        border-radius: 16px;
        background: white !important;
        border-color: var(--border) !important;
        padding: 10px;
        box-shadow: 0 16px 40px rgba(107, 78, 255, 0.15);
    }

    .pk-nav__links.open { display: flex; }
    .pk-nav__links li a { color: var(--text) !important; }
    .pk-nav__toggle { display: flex; }
    .pk-section { padding: 64px 0; }

    .pk-footer__top { flex-direction: column; align-items: flex-start; }
    .pk-footer__bottom { flex-direction: column; gap: 12px; }
}
