/* Design System for Tyas Aditya Mahesa */
:root {
    --primary: #f9d949;
    --primary-dark: #e5c63b;
    --text-dark: #111111;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-alt: #fafafa;
    --section-padding: 100px 20px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: all 0.4s var(--ease);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;600&family=Nothing+You+Could+Do&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Nothing You Could Do', cursive;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

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

.signature {
    font-family: 'Nothing You Could Do', cursive;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.signature::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: -10%;
    width: 120%;
    height: 25px;
    background: var(--primary);
    z-index: -1;
    transform: rotate(-1deg);
    opacity: 0.8;
}

.tagline {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Section Common */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title span {
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary);
    z-index: -1;
    opacity: 0.5;
}

/* About Section */
.about {
    background: var(--bg-alt);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-image {
    position: relative;
    padding: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 20px 20px 0 var(--primary);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid #eee;
}

.book-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.05);
}

.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 25px;
    overflow: hidden;
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.book-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services */
.services {
    background: var(--text-dark);
    color: white;
}

.services .section-title span::after {
    background: rgba(255,255,255,0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.service-item:hover {
    background: rgba(255,255,255,0.05);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* CTA */
.cta-section {
    text-align: center;
    background: var(--primary);
    padding: 80px 20px;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.whatsapp-btn {
    display: inline-block;
    padding: 20px 50px;
    background: var(--text-dark);
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 30px;
    border-radius: 5px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    background: #000;
}

/* Footer */
footer {
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-info span {
    margin: 0 15px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 20px;
    }
    .nav-links {
        display: none;
    }
    .signature {
        font-size: 2.5rem;
    }
    .about {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2.5rem;
    }
}
