/* Jenny's Portfolio - Modern & Vibrant Theme */
:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #EC4899;
    --accent: #06B6D4;
    --bg-dark: #0F0F1A;
    --bg-card: #1A1A2E;
    --bg-card-hover: #252542;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --gradient-1: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    --gradient-2: linear-gradient(135deg, #06B6D4 0%, #7C3AED 100%);
    --gradient-3: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 20px;
    --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: -2;
}

.floating-shapes {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--secondary); top: 50%; right: -100px; animation-delay: -5s; }
.shape-3 { width: 250px; height: 250px; background: var(--accent); bottom: -50px; left: 30%; animation-delay: -10s; }
.shape-4 { width: 200px; height: 200px; background: #F59E0B; top: 30%; left: 50%; animation-delay: -15s; }
.shape-5 { width: 350px; height: 350px; background: var(--primary-light); bottom: 20%; right: 20%; animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; }


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 80px 80px;
    gap: 60px;
}

.hero-content { max-width: 600px; }

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    color: var(--primary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    background: var(--gradient-1);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Phone Mockup */
.hero-visual { position: relative; }

.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a4a 0%, #1a1a2e 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: var(--shadow), 0 0 60px rgba(124, 58, 237, 0.3);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a0a2e 0%, #0a0a1a 100%);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-preview { text-align: center; }
.app-preview .app-icon { font-size: 80px; margin-bottom: 15px; }
.app-preview .app-icon-img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 15px; }
.app-preview .app-name { font-size: 1.2rem; color: #D4AF37; font-weight: 600; }

/* Sections */
.section {
    padding: 100px 80px;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

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

.app-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

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

.app-card.featured { border-color: rgba(124, 58, 237, 0.3); }
.app-card.featured::before { opacity: 1; }

.app-card-badge {
    position: absolute;
    top: 20px; right: 20px;
    padding: 6px 14px;
    background: var(--gradient-3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.app-icon-large {
    font-size: 60px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 20px;
}

.app-icon-large-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 20px;
}

.app-info h3 { font-size: 1.5rem; margin-bottom: 5px; }
.app-tagline { color: var(--text-secondary); font-size: 0.9rem; }

.app-card-body { margin-bottom: 25px; }
.app-card-body p { color: var(--text-secondary); margin-bottom: 20px; }

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

.feature-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
}

.app-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-platforms { display: flex; gap: 15px; }
.platform { font-size: 0.9rem; color: var(--text-secondary); }
.platform.coming { opacity: 0.5; }

.app-card.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.placeholder-content { text-align: center; }
.placeholder-icon { font-size: 50px; display: block; margin-bottom: 15px; }
.placeholder-content h3 { margin-bottom: 10px; color: var(--text-secondary); }
.placeholder-content p { color: var(--text-secondary); opacity: 0.7; }
.placeholder-hint { font-size: 0.85rem; margin-top: 10px; }

/* Websites Grid */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.website-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
}

.website-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.website-preview { position: relative; }

.browser-bar {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.website-screenshot {
    height: 200px;
    background: linear-gradient(135deg, #1a0a2e 0%, #0a0a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.website-screenshot span { font-size: 50px; margin-bottom: 10px; }
.website-screenshot img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 10px; }
.website-screenshot p { color: #D4AF37; font-weight: 500; }

.website-screenshot.ew-bg {
    background: linear-gradient(135deg, #1a0a2e 0%, #0a0a1a 100%);
}

.website-screenshot.placeholder-bg {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.website-info { padding: 25px; }
.website-info h3 { margin-bottom: 8px; }
.website-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 15px; }

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-stack span {
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-light);
}

.link-btn {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link-btn:hover { color: var(--secondary); }


/* About Section */
.about-section {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.05) 50%, transparent 100%);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image { position: relative; flex-shrink: 0; }

.avatar-frame {
    width: 280px;
    height: 280px;
    background: var(--gradient-1);
    border-radius: 50%;
    padding: 5px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 0 30px rgba(124, 58, 237, 0); }
}

.avatar {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.float-icon {
    position: absolute;
    font-size: 30px;
    animation: floatIcon 6s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: -10px; left: 50%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 50%; right: -20px; animation-delay: -1.5s; }
.float-icon:nth-child(3) { bottom: -10px; left: 50%; animation-delay: -3s; }
.float-icon:nth-child(4) { top: 50%; left: -20px; animation-delay: -4.5s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.about-content { flex: 1; }

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills { margin-top: 30px; }
.skills h4 { margin-bottom: 15px; color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 12px; }

.skill {
    padding: 10px 20px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-light);
    transition: all 0.3s;
}

.skill:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-section { position: relative; overflow: hidden; }

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content { max-width: 500px; }

.contact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: rgba(124, 58, 237, 0.3);
    background: var(--bg-card-hover);
}

.contact-icon { font-size: 35px; }

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.contact-value {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-decoration { position: relative; width: 300px; height: 300px; }

.deco-circle {
    width: 250px;
    height: 250px;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

/* Footer */
.footer {
    padding: 60px 80px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text { color: var(--text-secondary); margin-bottom: 25px; }

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

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

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

.copyright { color: var(--text-secondary); font-size: 0.85rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding: 120px 40px 60px; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-container { flex-direction: column; text-align: center; }
    .contact-container { flex-direction: column; }
    .contact-decoration { display: none; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 25px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 10px; }
    .nav-toggle span { display: block; width: 25px; height: 2px; background: white; margin: 5px 0; }
    .section { padding: 60px 25px; }
    .apps-grid, .websites-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .phone-mockup { width: 220px; height: 460px; }
}


/* XPaihang specific styles */
.website-card.featured {
    border-color: rgba(236, 72, 153, 0.3);
    position: relative;
}

.website-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-3);
}

.website-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: var(--gradient-3);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.xpaihang-bg {
    background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1a1a2e 100%) !important;
}

.xpaihang-bg span {
    font-size: 60px !important;
}

.websites-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1100px;
}


/* Language Switcher - Inside Navbar */
.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
}

@media (max-width: 768px) {
    .lang-switcher {
        position: fixed;
        top: 15px;
        right: 60px;
        margin-left: 0;
        z-index: 1001;
        background: rgba(15, 15, 26, 0.95);
    }
}