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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo h2 a {
    color: #ff6b9d;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b9d;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff6b9d;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b9d, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b9d, #ffd93d);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 157, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.card-btn {
    background: linear-gradient(45deg, #667eea, #ff6b9d);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-logo h3 {
    color: #ff6b9d;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b9d;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ff6b9d;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

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

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff6b9d, #667eea);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.image-placeholder p {
    font-weight: 600;
    font-size: 1.2rem;
}

.hero-portrait,
.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-portrait:hover,
.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.3);
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.album-image:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        border-width: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
        text-align: center;
    }
}

.btn:focus {
    outline: 2px solid #ffd93d;
    outline-offset: 2px;
}

.btn-primary:focus {
    outline-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:focus {
    outline-color: #ffd93d;
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.nav-link:focus,
.btn:focus,
.social-link:focus {
    outline: 2px solid #ff6b9d;
    outline-offset: 2px;
}

/* --- Theme Toggle & Dark Mode --- */
/* Toggle button */
.theme-toggle {
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); background: rgba(0,0,0,0.05); }
.theme-toggle i { pointer-events: none; }

/* Dark theme root */
.dark body {
    background: #0e1116;
    color: #e6e6e6;
}

/* Navbar adjustments in dark */
.dark .navbar {
    background: rgba(15, 18, 24, 0.8) !important;
}
.dark .nav-link { color: #e6e6e6; }
.dark .nav-link:hover,
.dark .nav-link.active { color: #ffd93d; }
.dark .nav-link::after { background-color: #ffd93d; }
.dark .bar { background-color: #e6e6e6; }
.dark .theme-toggle { border-color: rgba(255,255,255,0.1); color: #e6e6e6; }
.dark .theme-toggle:hover { background: rgba(255,255,255,0.06); }

/* Mobile menu background in dark */
@media (max-width: 768px) {
    .dark .nav-menu { background-color: rgba(15, 18, 24, 0.95); }
}

/* Cards and surfaces */
.dark .card,
.dark .link-card,
.dark .album-card,
.dark .song-card,
.dark .achievement-card,
.dark .timeline-content,
.dark .fact-item,
.dark .detail-item {
    background: #151a21 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.dark .detail-item { border-left-color: #ff6b9d; }

/* Text tones */
.dark p,
.dark .section-subtitle,
.dark .song-details,
.dark .timeline-content p,
.dark .achievement-card p,
.dark .fact-item p {
    color: #c8c8c8 !important;
}

/* Footer keeps dark, just refine border */
.dark .footer-bottom { border-top-color: #1e2631; }

/* Page wrapper backgrounds (light sections) */
.dark .about,
.dark .discography,
.dark .quick-links {
    background: #0e1116 !important;
}

/* Section boxes with light backgrounds */
.dark .timeline,
.dark .achievements-section,
.dark .fun-facts,
.dark .achievements,
.dark .music-videos,
.dark .year-section {
    background: #121822 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Individual items and cards already handled, add year-section, achievement list items, tracks */
.dark .achievement,
.dark .songs-grid .track {
    background: #151a21 !important;
}
.dark .songs-grid .track { border-bottom: 1px solid #263042 !important; }

/* Text colors in dark mode */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 { color: #e6e6e6 !important; }
.dark .song-title,
.dark .album-title,
.dark .video-card h4,
.dark .achievement-text h4,
.dark .timeline-content h4,
.dark .bio-section h3,
.dark .timeline h3,
.dark .achievements-section h3,
.dark .fun-facts h3 { color: #e6e6e6 !important; }

/* Muted text */
.dark .album-type,
.dark .song-details,
.dark .video-card p,
.dark .fact-item p,
.dark .achievement-text p,
.dark .section-subtitle { color: #bfc6cf !important; }

/* Album/Year separators */
.dark .track:hover { color: #ff6b9d !important; }

/* Timeline dot inner ring for dark */
.dark .timeline-item::after { box-shadow: 0 0 0 4px #151a21, 0 0 0 8px #ff6b9d !important; }