/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Starfield background animation */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white"/><circle cx="80" cy="40" r="0.3" fill="white"/><circle cx="40" cy="70" r="0.4" fill="white"/><circle cx="90" cy="90" r="0.2" fill="white"/><circle cx="10" cy="50" r="0.3" fill="white"/></svg>') repeat;
    z-index: -2;
    animation: move-stars 50s linear infinite;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="0.2" fill="white" opacity="0.8"/><circle cx="70" cy="60" r="0.3" fill="white" opacity="0.6"/><circle cx="50" cy="10" r="0.1" fill="white" opacity="0.9"/></svg>') repeat;
    z-index: -1;
    animation: move-twinkling 100s linear infinite;
}

@keyframes move-stars {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

@keyframes move-twinkling {
    from { transform: translateY(0px); }
    to { transform: translateY(-1000px); }
}

/* Hero header */
.hero-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.glowing-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px #fff, 0 0 40px #667eea, 0 0 60px #667eea;
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 1rem;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #fff, 0 0 40px #667eea, 0 0 60px #667eea; }
    to { text-shadow: 0 0 30px #fff, 0 0 50px #667eea, 0 0 70px #667eea; }
}

.subtitle {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #fff;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    animation: bounce 2s infinite;
}

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

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #fff;
    margin: 10px auto;
}

/* Floating navigation */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    display: block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.nav-item:hover {
    transform: scale(1.2);
    background: rgba(102, 126, 234, 0.9);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.nav-item[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
}

/* Container and sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    background: #fff;
    margin-bottom: 2px;
    position: relative;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.highlight {
    color: #667eea;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quote machine */
.quote-machine {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
}

.quote-machine h3 {
    font-family: 'Cinzel', serif;
    margin-bottom: 1.5rem;
}

.medieval-button {
    background: linear-gradient(135deg, #c9b037, #dcca4a);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.medieval-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 176, 55, 0.3);
}

.quote-bubble {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-style: italic;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hobbies section */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hobby-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.hobby-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hobby-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hobby-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.clowance-spotlight {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #ff9a56, #ffad56);
    padding: 2rem;
    border-radius: 20px;
    color: white;
}

.clowance-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Travel section */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.travel-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.travel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.travel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.travel-image.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(102, 126, 234, 0.8);
}

.travel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(60%);
    transition: transform 0.3s ease;
}

.travel-card:hover .travel-overlay {
    transform: translateY(0);
}

.travel-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Quote showcase section */
.medieval-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.quote-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 2px solid #c9b037;
    color: #c9b037;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.category-btn:hover,
.category-btn.active {
    background: #c9b037;
    color: #2c3e50;
    transform: translateY(-2px);
}

.quote-showcase {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.quote-content {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-mark {
    font-size: 3rem;
    color: #c9b037;
    margin: 0 10px;
}

.quote-source {
    font-size: 1rem;
    color: #c9b037;
    font-weight: bold;
}

/* Contact section */
.contact-content {
    text-align: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4267B2;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(66, 103, 178, 0.4);
}

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

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

.footer-quote {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .glowing-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .floating-nav {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .clowance-spotlight {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .travel-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-categories {
        flex-direction: column;
        align-items: center;
    }
}
