:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f3f7;
    --text-primary: #2d2d2d;
    --text-secondary: #2d2d2d;
    --accent: #2d2d2d;
    --accent-dark: #2d2d2d;
    --border: rgba(177, 156, 217, 0.2);
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-image: url('holographic-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 0;
    pointer-events: none;
}

main, .nav {
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: linear-gradient(to bottom, var(--bg-primary), rgba(250, 250, 250, 0));
    z-index: 1000;
    animation: navSlideDown 0.8s ease-out;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-card {
    background: rgba(232, 223, 245, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(177, 156, 217, 0.5);
    box-shadow: 0 4px 20px rgba(177, 156, 217, 0.25);
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(177, 156, 217, 0.1), transparent);
    transition: left 0.6s ease;
}

.hero-card:hover::before {
    left: 100%;
}

.hero-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(177, 156, 217, 0.3);
}

.card-number {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.hero-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Decorative Element */
.decorative-element {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(177, 156, 217, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.floating-quote {
    position: absolute;
    top: 15%;
    right: 5%;
    max-width: 350px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-left: 3px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    opacity: 0;
    animation: floatIn 1.5s ease-out 1s forwards;
}

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

.quote-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quote-attribution {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
    font-weight: 500;
}

.quote-attribution em {
    font-style: italic;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-50px, 50px);
    }
}

/* Page Content */
.page-content {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.page-number {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Book Items */
.content-grid {
    display: grid;
    gap: 3rem;
}

.book-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.book-item:nth-child(1) { animation-delay: 0.4s; }
.book-item:nth-child(2) { animation-delay: 0.5s; }
.book-item:nth-child(3) { animation-delay: 0.6s; }

.book-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border);
}

.book-info h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.author {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.book-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--bg-tertiary);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-item:nth-child(1) { animation-delay: 0.4s; }
.project-item:nth-child(2) { animation-delay: 0.5s; }
.project-item:nth-child(3) { animation-delay: 0.6s; }

.project-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-card {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.project-icon {
    font-size: 4rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.project-status {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-completed {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-planning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Music Grid */

.music-item {
    margin-bottom: 2rem;
}

.soundcloud-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.soundcloud-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(177, 156, 217, 0.2);
    transform: translateY(-3px);
}

.soundcloud-card iframe {
    border-radius: 4px;
}

.music-grid {
    display: grid;
    gap: 3rem;
}

.music-item:nth-child(1) { animation-delay: 0.4s; }
.music-item:nth-child(2) { animation-delay: 0.5s; }
.music-item:nth-child(3) { animation-delay: 0.6s; }

.music-item:hover {
    border-color: var(--accent);
}

.music-artwork {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-artwork:hover {
    border-color: var(--accent);
}

.play-button {
    font-size: 3rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.music-artwork:hover .play-button {
    transform: scale(1.2);
}

.music-info h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.music-genre {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.music-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.music-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.music-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.music-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(177, 156, 217, 0.1);
}

.music-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.7s forwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-links {
        grid-template-columns: 1fr;
    }

    .floating-quote {
        position: relative;
        top: auto;
        right: auto;
        max-width: 100%;
        margin: 3rem 0;
    }

    .page-content {
        padding: 6rem 1.5rem 3rem;
    }

    .book-item,
    .project-item,
    .music-item {
        grid-template-columns: 1fr;
    }

    .project-item {
        gap: 1rem;
    }

    .music-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
