/* ===== GOTHIC BLACK & PURPLE THEME ===== */
/* Import Gothic fonts */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Cinzel:wght@400;700&family=Cormorant+Garamond:wght@300;400;600&family=MedievalSharp&display=swap');

/* ===== RESET & BASIC STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(90, 24, 154, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(157, 78, 221, 0.05) 0%, transparent 20%),
        url('images/dark_texture.png');
    font-family: 'Cormorant Garamond', serif;
    color: #d8c4e7;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0b23;
}

::-webkit-scrollbar-thumb {
    background: #4a1e6b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a189a;
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* ===== HEADER: HOME LOGO ===== */
header {
    text-align: center;
    padding: 30px 0 50px 0;
    position: relative;
}

.home-logo {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-logo:hover {
    transform: scale(1.05);
}

.home-logo img {
    max-width: 320px;
    height: auto;
    filter: 
        brightness(0.9) 
        contrast(1.1)
        drop-shadow(0 0 10px rgba(157, 78, 221, 0.5));
    
    /* Floating animation */
    animation: float 5s ease-in-out infinite;
}

.logo-subtitle {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #c77dff;
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: lowercase;
    opacity: 0.8;
}

/* Floating animation keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== THREE-COLUMN LAYOUT ===== */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    position: relative;
}

/* ===== LEFT COLUMN: NAVIGATION ===== */
.left-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(26, 11, 35, 0.85);
    border-radius: 15px;
    border: 1px solid #4a1e6b;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding-top: 180px; /* Space for selfsona */
    position: relative;
    min-height: 600px;
    backdrop-filter: blur(5px);
}

/* Selfsona container */
.selfsona-container {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: center;
}

.selfsona {
    width: 220px;
    height: auto;
    filter: 
        drop-shadow(0 0 10px #9d4edd)
        drop-shadow(0 0 20px rgba(157, 78, 221, 0.7));
    transition: all 0.5s ease;
    z-index: 2;
    position: relative;
}

.selfsona:hover {
    filter: 
        drop-shadow(0 0 15px #c77dff)
        drop-shadow(0 0 30px rgba(199, 125, 255, 0.9));
    transform: scale(1.05) translateX(-50%);
    left: 50%;
}

.selfsona-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Navigation links */
.nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: rgba(42, 21, 59, 0.7);
    border-radius: 10px;
    border: 1px solid #5a189a;
    text-decoration: none;
    color: #c77dff;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background-color: rgba(199, 125, 255, 0.15);
    border-color: #c77dff;
    transform: translateX(8px);
    color: #ffffff;
    text-shadow: 0 0 10px #c77dff;
}

.nav-link.active {
    background-color: rgba(90, 24, 154, 0.4);
    border-color: #9d4edd;
    color: #e0aaff;
    box-shadow: inset 0 0 10px rgba(157, 78, 221, 0.5);
}

.nav-link i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.nav-info {
    margin-top: auto;
    padding: 20px;
    background-color: rgba(15, 7, 23, 0.7);
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #4a1e6b;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.info-label {
    color: #9d4edd;
}

.info-value {
    color: #e0aaff;
    font-weight: 600;
}

/* ===== MIDDLE COLUMN: ABOUT SECTION ===== */
.about-section {
    flex: 2;
    background-color: rgba(15, 15, 20, 0.9);
    border-radius: 15px;
    border: 1px solid #5a189a;
    box-shadow: 0 5px 20px rgba(90, 24, 154, 0.3);
    padding: 30px;
    backdrop-filter: blur(5px);
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-family: 'UnifrakturMaguntia', cursive;
    color: #e0aaff;
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-divider {
    height: 3px;
    width: 100px;
    background: linear-gradient(90deg, transparent, #9d4edd, transparent);
    margin: 0 auto;
}

.about-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: justify;
}

.highlight {
    color: #c77dff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(199, 125, 255, 0.5);
}

.about-features {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.feature {
    flex: 1;
    background-color: rgba(26, 11, 35, 0.6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #4a1e6b;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #c77dff;
}

.feature i {
    font-size: 2.5rem;
    color: #c77dff;
    margin-bottom: 15px;
}

.feature h3 {
    font-family: 'Cinzel', serif;
    color: #e0aaff;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.feature p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.obsessions-list {
    margin: 25px 0 25px 20px;
    list-style-type: none;
}

.obsessions-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1.2rem;
}

.obsessions-list li::before {
    content: '✧';
    position: absolute;
    left: 0;
    color: #c77dff;
}

.currently {
    background-color: rgba(26, 11, 35, 0.6);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #4a1e6b;
}

.currently h3 {
    font-family: 'Cinzel', serif;
    color: #e0aaff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.currently-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.currently-item {
    display: flex;
}

.currently-label {
    color: #9d4edd;
    font-weight: 600;
    min-width: 120px;
}

.currently-value {
    color: #d8c4e7;
}

/* ===== RIGHT COLUMN: SIDEBAR ===== */
.right-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background-color: rgba(26, 11, 35, 0.85);
    border-radius: 15px;
    border: 1px solid #4a1e6b;
    padding: 25px;
    backdrop-filter: blur(5px);
}

.sidebar-section .section-header h3 {
    font-family: 'Cinzel', serif;
    color: #c77dff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.section-divider-small {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, #9d4edd, transparent);
    margin-bottom: 20px;
}

/* Blinkies */
.blinkies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.blinky {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(15, 7, 23, 0.5);
}

.blinky:hover {
    transform: scale(1.05);
    background-color: rgba(199, 125, 255, 0.1);
}

.blinky img {
    max-width: 100%;
    height: auto;
    image-rendering: crisp-edges;
    margin-bottom: 8px;
    border: 1px solid #333;
}

.blinky:hover img {
    border-color: #c77dff;
}

.blinky-text {
    color: #9d4edd;
    font-size: 0.9rem;
    text-align: center;
}

.blinky-cta {
    text-align: center;
    font-style: italic;
    color: #a78bfa;
    margin-top: 15px;
}

.blinky-cta a {
    color: #c77dff;
    text-decoration: none;
}

.blinky-cta a:hover {
    text-decoration: underline;
}

/* Site links */
.site-links {
    list-style-type: none;
}

.site-links li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(90, 24, 154, 0.3);
}

.site-links li:last-child {
    border-bottom: none;
}

.site-links a {
    color: #9d4edd;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.site-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #9d4edd;
    transform: translateX(5px);
}

.site-links i {
    font-size: 0.9rem;
}

/* Recent updates */
.recent-updates {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(90, 24, 154, 0.3);
}

.update:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.update-date {
    color: #c77dff;
    font-weight: 600;
    min-width: 50px;
}

.update-text {
    color: #d8c4e7;
    flex: 1;
}

/* Webring */
.webring {
    text-align: center;
    padding: 20px;
    background-color: rgba(15, 7, 23, 0.7);
    border-radius: 10px;
    border: 1px solid #4a1e6b;
}

.webring h4 {
    font-family: 'Cinzel', serif;
    color: #e0aaff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.webring-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.webring-prev, .webring-next, .webring-index {
    color: #9d4edd;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.webring-prev:hover, .webring-next:hover, .webring-index:hover {
    color: #ffffff;
    background-color: rgba(157, 78, 221, 0.2);
}

/* ===== FOOTER ===== */
footer {
    margin-top: 60px;
}

.footer-divider {
    text-align: center;
    margin-bottom: 40px;
}

.divider {
    width: 80%;
    max-width: 800px;
    opacity: 0.9;
    filter: invert(1) hue-rotate(250deg) brightness(0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: #c77dff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    color: #9d4edd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c77dff;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(90, 24, 154, 0.3);
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.validation a {
    color: #9d4edd;
    text-decoration: none;
    margin: 0 10px;
}

.validation a:hover {
    text-decoration: underline;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(90, 24, 154, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #c77dff;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(157, 78, 221, 0.9);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .main-content {
        gap: 20px;
    }
    
    .about-features {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-nav {
        min-height: auto;
        padding-top: 150px;
    }
    
    .selfsona-container {
        top: -100px;
    }
    
    .selfsona {
        width: 180px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .home-logo img {
        max-width: 250px;
    }
    
    .nav-links {
        padding: 15px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .blinkies {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .home-logo img {
        max-width: 200px;
    }
    
    .logo-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .about-section, .sidebar-section, .left-nav {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .blinkies {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selfsona {
        width: 150px;
    }
    
    .selfsona-container {
        top: -80px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .left-nav, .right-sidebar, .back-to-top {
        display: none;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .about-section {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}