@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Dancing+Script:wght@700&display=swap');

:root {
    --ios-blue: #007AFF;
    --glass: rgba(255, 255, 255, 0.65);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #e1f5fe 50%, #fff9c4 100%);
    background-attachment: fixed;
    color: #1d1d1f;
    overflow-x: hidden;
}

.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 25s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 10vh) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.nav-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
}

.menu-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-overlay a {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.rgb-card-container {
    position: relative;
    padding: 3px;
    border-radius: 43px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.rgb-card-container::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(#ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    animation: rotateRGB 4s linear infinite;
}

@keyframes rotateRGB {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.popup-overlay .rgb-card-container::before {
    animation: none;
}

.about-card,
.skill-card-inner,
.popup-card-inner {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    width: 100%;
    height: 100%;
}

.profile-orbit {
    position: relative;
    padding: 10px;
    border: 2px dashed var(--ios-blue);
    border-radius: 50%;
    animation: rotateOrbit 20s linear infinite;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-img-container {
    animation: counter-rotate 20s linear infinite;
}

@keyframes counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.img-wrapper {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 24px;
    background: #e5e5e5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.5s;
    cursor: pointer;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.text-gradient {
    background: linear-gradient(to right, #007AFF, #5856D6, #FF2D55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.download-btn,
.share-btn {
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.download-btn {
    background: var(--ios-blue);
    color: white;
    border: none;
}

.share-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1d1d1f;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    z-index: 300;
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    transition: 0.4s;
}

.social-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.social-row:hover {
    background: white;
    transform: scale(1.04) translateX(8px);
}

.ios-input {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    outline: none;
    font-size: 16px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s;
}

.ios-input:focus {
    background: white;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.btn-ios {
    background: var(--ios-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-premium {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    padding: 18px;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    border: none;
    width: 100%;
    cursor: pointer;
}

.toggle-btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: transparent;
    justify-content: center;
    align-items: center;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    width: 92%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    margin: 1rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.popup-close-btn {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.card-action-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.btn-copy-link {
    background: #f0f0f5;
    color: #1d1d1f;
}

.btn-open-web {
    background: var(--ios-blue);
    color: white;
    text-decoration: none;
}

.item-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8e8e93;
    margin-bottom: 2px;
}

.item-value-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.item-value-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8e8e93;
    margin-bottom: 2px;
}

.current-price {
    font-size: 1.4rem;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: pricePulse 1.5s infinite;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.save-badge {
    background: #ff4757;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: badgeShine 2s infinite;
    display: inline-block;
    width: fit-content;
}

@keyframes pricePulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes badgeShine {
    0% { box-shadow: 0 0 5px #ff4757; }
    50% { box-shadow: 0 0 15px #ff6b81; }
    100% { box-shadow: 0 0 5px #ff4757; }
}

.btn-buy-now {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    transition: transform 0.2s;
    margin-top: 12px;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.qr-outer {
    padding: 12px;
    background: white;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.qr-outer::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, #f472b6, #fbbf24, #34d399, #60a5fa);
    z-index: -1;
    border-radius: 28px;
    filter: blur(12px);
    opacity: 0.6;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.social-brand-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .logo-text {
        font-size: 1.3rem !important;
    }
}