/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

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

/* Base typography normalization */
p, li {
    letter-spacing: normal;
    word-spacing: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-text .hero-subtitle, .about-text p, .music-item p {
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #764ba2;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    background: #764ba2;
    color: white;
    transform: translateY(-2px);
}

.social-link img {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 70vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.9;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
    max-width: 52ch;
}

.hero-subtitle p {
    margin-bottom: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInScale 1s ease 1.5s forwards;
}

/* About Section */
.about {
    background: white;
    padding: 6rem 0;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: #764ba2;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    letter-spacing: 0.2px;
}

.about-text p {
    margin-bottom: 2rem;
}

.vtuber-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

/* Script Showcase */
.script-showcase {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    margin: 2.5rem auto 0;
    align-items: center;
}

.script-panel {
    position: relative;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: #111 url('assets/bac5abb2cf6e962857957ee7986465cb.png') center/cover no-repeat;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}



.script-text {
    color: #dbeafe;
    text-shadow: 0 0 10px rgba(59,130,246,0.5), 0 2px 0 rgba(0,0,0,0.2);
    font-size: 1.15rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .script-showcase { grid-template-columns: 1fr; }
    .script-panel { height: 280px; }
    .script-bubble { width: 190px; left: 20px; bottom: 18px; }
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 6rem 0;
    color: white;
}

/* Two-column split (mimicking original Canva layout) */
.portfolio-columns {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
}
.portfolio-left {
    grid-column: 1 / -1;
}

.portfolio-left .column-title {
    text-align: center;
}

.column-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
    letter-spacing: 0.2px;
}

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

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.thumbnails-section {
    margin-top: 4rem;
}

.thumbnails-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

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

.thumbnail-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.note {
    text-align: center;
    font-style: italic;
    margin-top: 2rem;
    letter-spacing: 1px;
}

/* Music Section */
.music {
    background: white;
    padding: 6rem 0;
}

.music-content {
    max-width: 800px;
    margin: 0 auto;
}

.music-embeds {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.yt-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.yt-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.music-item {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.music-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.music-item p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.audio-player {
    margin-top: 1rem;
}

.audio-player audio {
    width: 100%;
    border-radius: 10px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 6rem 0;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.status {
    margin-top: 2rem;
    font-size: 1.3rem;
}

.status-open {
    color: #28a745;
    font-weight: bold;
}

.commission-info {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.commission-info h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #764ba2;
}

.guidelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.allowed, .not-allowed {
    padding: 1.5rem;
    border-radius: 10px;
}

.allowed {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.not-allowed {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.allowed h4, .not-allowed h4 {
    margin-bottom: 1rem;
    color: #333;
}

.allowed ul, .not-allowed ul {
    list-style-type: none;
    padding-left: 0;
}

.allowed li, .not-allowed li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.allowed li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.not-allowed li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.payment-note {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #764ba2;
}

.contact-details {
    margin: 1.5rem 0 2rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    margin-bottom: 1rem;
}

.contact-buttons {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    align-items: stretch;
    justify-items: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    width: 100%;
    justify-content: center;
}

.contact-button.copied {
    filter: brightness(1.1);
    opacity: 0.9;
}

.contact-button img {
    width: 18px;
    height: 18px;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-button.discord {
    background: #5865F2;
}

.contact-button.email {
    background: #6c63ff;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */

/* Optional spaced title utility (apply on specific headings only) */
.spaced-title {
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-columns { grid-template-columns: 1fr; }
    
    .guidelines {
        grid-template-columns: 1fr;
    }
    
    .thumbnails-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .thumbnail-item img {
        height: 220px;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
    font-size: 1.875rem;
    letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.2px;
    }
    
    .section-title {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .thumbnail-item img {
        height: 180px;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.open { display: flex; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox.open .lightbox-backdrop { opacity: 1; }

.lightbox-content {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    margin: 0 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lightbox.open .lightbox-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.lightbox-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background: #111;
}

.lightbox-caption {
    background: #111;
    color: #eee;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 8px;
    padding: 0 10px 4px;
    cursor: pointer;
}