/* ========================================
   SamuelQZQ Style Personal Website
   Minimal Modern Design
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #FF6B35;
    --primary-light: #FF8C61;
    --primary-dark: #E55A2B;
    --bg-color: #FAFAFA;
    --bg-secondary: #F5F5F5;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E5E5E5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--primary-color);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

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

.hero-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orbit Animation */
.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.orbit-1 {
    width: 400px;
    height: 400px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 480px;
    height: 480px;
    animation: rotate 25s linear infinite reverse;
}

.orbit-3 {
    width: 560px;
    height: 560px;
    animation: rotate 30s linear infinite;
}

.orbit-4 {
    width: 640px;
    height: 640px;
    animation: rotate 35s linear infinite reverse;
}

.orbit-5 {
    width: 720px;
    height: 720px;
    animation: rotate 40s linear infinite;
}

.orbit-5 .orbit-image {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 107, 53, 0.3);
    border: 3px solid var(--primary-color);
    background: var(--bg-card);
    animation: counter-rotate 40s linear infinite, avatar-glow 2s ease-in-out infinite alternate;
}

.orbit-5 .orbit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

@keyframes avatar-glow {
    from { box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 107, 53, 0.3); }
    to { box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 107, 53, 0.3); }
}

.orbit-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation-delay: var(--delay);
}

.orbit-1 .orbit-icon {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-2 .orbit-icon {
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
}

.orbit-3 .orbit-icon {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-4 .orbit-icon {
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
}

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

/* Hero Card */
.hero-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
    max-width: 400px;
    width: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    }
    50% {
        transform: translateY(-5px) rotateX(-1deg) rotateY(1deg);
    }
    75% {
        transform: translateY(-15px) rotateX(1deg) rotateY(-1deg);
    }
}

.card-content {
    text-align: left;
}

.card-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.card-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
}

.name-char {
    display: inline-block;
    animation: name-bounce 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0);
    transition: text-shadow 0.3s ease;
}

.name-char:nth-child(1) { animation-delay: 0s; }
.name-char:nth-child(2) { animation-delay: 0.1s; }
.name-char:nth-child(3) { animation-delay: 0.2s; }
.name-char:nth-child(4) { animation-delay: 0.3s; }
.name-char:nth-child(5) { animation-delay: 0.4s; }
.name-char:nth-child(6) { animation-delay: 0.5s; }
.name-char:nth-child(7) { animation-delay: 0.6s; }
.name-char:nth-child(8) { animation-delay: 0.7s; }
.name-char:nth-child(9) { animation-delay: 0.8s; }
.name-char:nth-child(10) { animation-delay: 0.9s; }

@keyframes name-bounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
        text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
        text-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4);
    }
}

.card-name:hover .name-char {
    animation: name-shine 0.8s ease-in-out;
}

@keyframes name-shine {
    0% { color: var(--primary-color); }
    50% { color: #FFD700; text-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
    100% { color: var(--primary-color); }
}

.card-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    margin: 20px 0;
}

.card-roles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-roles li {
    font-size: 1rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.card-roles li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Decoration Circles */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
}

.circle-2 {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* ========================================
   Favorites Section
   ======================================== */
.favorites-section {
    background: var(--bg-secondary);
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.favorite-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.favorite-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.favorite-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.favorite-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.favorite-item:hover {
    background: var(--bg-secondary);
}

.favorite-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.favorite-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.favorite-item:hover span {
    color: var(--primary-color);
}

.movie-item img {
    width: 80px;
    height: 60px;
}

.book-item img {
    width: 40px;
    height: 60px;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

/* ========================================
   Skills Section
   ======================================== */
.skills-section {
    background: var(--bg-secondary);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skills-category {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: var(--progress);
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

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

.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.goal-item:hover {
    background: rgba(255, 107, 53, 0.1);
}

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

.goal-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Works Section
   ======================================== */
.works-slider {
    overflow-x: hidden;
    padding-bottom: 20px;
    position: relative;
}

.works-track {
    display: flex;
    gap: 24px;
    padding: 10px;
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.works-slider:hover .works-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.work-card {
    flex: 0 0 350px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.work-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.work-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.work-card:hover .work-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.work-placeholder {
    color: var(--text-muted);
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.work-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.work-tags span {
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-normal);
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-primary);
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-stats {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .orbit-1 { width: 300px; height: 300px; }
    .orbit-2 { width: 360px; height: 360px; }
    .orbit-3 { width: 420px; height: 420px; }
    .orbit-4 { width: 480px; height: 480px; }
    .orbit-5 { width: 540px; height: 540px; }
    .orbit-5 .orbit-image { width: 60px; height: 60px; top: -30px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-social {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-card {
        padding: 32px;
    }
    
    .card-name {
        font-size: 2.5rem;
    }
    
    .orbit-1 { width: 250px; height: 250px; }
    .orbit-2 { width: 300px; height: 300px; }
    .orbit-3 { width: 350px; height: 350px; }
    .orbit-4 { width: 400px; height: 400px; }
    .orbit-5 { width: 450px; height: 450px; }
    .orbit-5 .orbit-image { width: 50px; height: 50px; top: -25px; }
    
    .orbit-icon {
        width: 36px;
        height: 36px;
    }
    
    .orbit-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .work-card {
        flex: 0 0 300px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .card-name {
        font-size: 2rem;
    }
    
    .card-roles li {
        font-size: 0.9rem;
    }
    
    .orbit-1 { width: 200px; height: 200px; }
    .orbit-2 { width: 240px; height: 240px; }
    .orbit-3 { width: 280px; height: 280px; }
    .orbit-4 { width: 320px; height: 320px; }
    .orbit-5 { width: 360px; height: 360px; }
    .orbit-5 .orbit-image { width: 40px; height: 40px; top: -20px; }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-card {
        padding: 24px;
    }
    
    .work-card {
        flex: 0 0 280px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .scroll-indicator,
    .orbit-container {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-card {
        animation: none;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
