/* Custom Properties for Theme Management */
/* Nervy Archives - Raw with Neon Edge */
:root {
    --primary-color: #D72638;
    --secondary-color: #8AC6D1;
    --accent-color: #9B59B6;
    --bg-color: #F4E9F0;
    --text-color: #1E1E2F;
    --surface-color: #ffffff;
    --border-color: #1E1E2F;
    --shadow-color: rgba(30, 30, 47, 0.2);

    /* Neon glow colors - electric edge */
    --neon-red: #FF2E4C;
    --neon-cyan: #00F5FF;
    --neon-purple: #BF5AF2;
    --glow-red: 0 0 10px rgba(215, 38, 56, 0.6), 0 0 20px rgba(215, 38, 56, 0.4), 0 0 30px rgba(215, 38, 56, 0.2);
    --glow-cyan: 0 0 10px rgba(138, 198, 209, 0.6), 0 0 20px rgba(138, 198, 209, 0.4), 0 0 30px rgba(138, 198, 209, 0.2);
    --glow-purple: 0 0 10px rgba(155, 89, 182, 0.6), 0 0 20px rgba(155, 89, 182, 0.4), 0 0 30px rgba(155, 89, 182, 0.2);

    /* Neon text shadows */
    --text-glow-red: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
    --text-glow-cyan: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    --text-glow-purple: 0 0 5px var(--neon-purple), 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);

    --font-display: 'Amatic SC', cursive;
    --font-heading: 'Amatic SC', cursive;
    --font-body: 'IBM Plex Mono', monospace;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Dark Mode Variables - Neon in the dark */
[data-theme="dark"] {
    --bg-color: #0D0D1A;
    --text-color: #F4E9F0;
    --surface-color: #1A1A2E;
    --border-color: #F4E9F0;
    --shadow-color: rgba(244, 233, 240, 0.1);
    /* Neon glows intensify in dark mode */
    --glow-red: 0 0 10px rgba(255, 46, 76, 0.8), 0 0 25px rgba(255, 46, 76, 0.5), 0 0 40px rgba(255, 46, 76, 0.3);
    --glow-cyan: 0 0 10px rgba(0, 245, 255, 0.8), 0 0 25px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
    --glow-purple: 0 0 10px rgba(191, 90, 242, 0.8), 0 0 25px rgba(191, 90, 242, 0.5), 0 0 40px rgba(191, 90, 242, 0.3);
}

/* Ambient Mode - Moody neon atmosphere */
[data-ambient="true"] {
    --bg-color: #0D0D1A;
    --text-color: #F4E9F0;
    --surface-color: rgba(26, 26, 46, 0.85);
    --border-color: var(--neon-red);
    --shadow-color: rgba(255, 46, 76, 0.2);
}

/* Ambient mode neon enhancements */
[data-ambient="true"] .hero-title .title-line-1,
[data-ambient="true"] .hero-title .title-line-4 {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 40px var(--neon-red), 0 0 80px var(--neon-red);
}

[data-ambient="true"] .hero-title .title-line-2 {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 80px var(--neon-cyan);
}

[data-ambient="true"] .hero-title .title-line-3 {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple), 0 0 80px var(--neon-purple);
}

[data-ambient="true"] .nav-brand .brand-text {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
}

[data-ambient="true"] .cta-button {
    box-shadow: var(--glow-red);
    border-color: var(--neon-red);
}

[data-ambient="true"] .entry-card {
    box-shadow: 0 0 20px rgba(255, 46, 76, 0.3), 0 0 40px rgba(255, 46, 76, 0.1);
    border-color: var(--neon-red);
}

[data-ambient="true"] .section-title {
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Subtle grain texture - always on */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(215, 38, 56, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 198, 209, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 224, 102, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    top: 10%;
    left: 80%;
    animation-delay: -5s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    top: 60%;
    left: 10%;
    animation-delay: -10s;
    border-radius: 0;
    transform: rotate(45deg);
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    top: 30%;
    left: 60%;
    animation-delay: -15s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-4 {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    top: 80%;
    left: 90%;
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-color);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-text {
    font-family: 'Amatic SC', 'Segoe Print', cursive;
    font-size: 2.4rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    transform: rotate(-2deg);
    letter-spacing: 0.02em;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(-1deg) scale(1.05);
    box-shadow: var(--glow-red);
}

.nav-link:hover {
    animation: wobble 0.5s ease-in-out;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-1deg) scale(1.05); }
    25% { transform: rotate(1deg) scale(1.05); }
    75% { transform: rotate(-2deg) scale(1.05); }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    transform: rotate(15deg);
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    gap: 3rem;
}

.hero-content {
    z-index: 2;
    width: 100%;
    text-align: left;
    position: relative;
    margin-bottom: 0;
    margin-top: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 12rem);
    line-height: 0.85;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    max-width: 100%;
}

.title-line-1 {
    color: var(--primary-color);
    transform: rotate(-2deg);
    display: block;
    margin-left: 0;
    animation: neonFlicker 3s ease-in-out infinite;
    text-shadow: var(--text-glow-red);
}

.title-line-2 {
    color: var(--secondary-color);
    transform: rotate(1deg);
    display: block;
    margin-left: 8%;
    animation: neonFlicker 3s ease-in-out infinite;
    animation-delay: 0.5s;
    text-shadow: var(--text-glow-cyan);
}

.title-line-3 {
    color: var(--accent-color);
    transform: rotate(-1deg);
    display: block;
    margin-left: 18%;
    animation: neonFlicker 3s ease-in-out infinite;
    animation-delay: 1s;
    text-shadow: var(--text-glow-purple);
}

.title-line-4 {
    color: var(--primary-color);
    transform: rotate(2deg);
    display: block;
    margin-left: 28%;
    animation: neonFlicker 3s ease-in-out infinite;
    animation-delay: 1.5s;
    text-shadow: var(--text-glow-red);
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    5% { opacity: 0.8; filter: brightness(0.8); }
    10% { opacity: 1; filter: brightness(1.1); }
    15% { opacity: 0.9; filter: brightness(0.9); }
    50% { opacity: 1; filter: brightness(1); }
    55% { opacity: 0.7; filter: brightness(0.7); }
    60% { opacity: 1; filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    text-align: center;
}

.subtitle-text {
    font-weight: normal;
}

.subtitle-emphasis {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2rem;
    transform: skew(-5deg);
    display: inline-block;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 25px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: rotate(1deg) scale(1.05);
    animation: glitchBtn 0.3s ease-in-out;
    box-shadow: var(--glow-cyan);
}

@keyframes glitchBtn {
    0%, 100% { transform: rotate(1deg) scale(1.05); }
    25% { transform: rotate(-1deg) scale(1.05) translateX(2px); }
    75% { transform: rotate(2deg) scale(1.05) translateX(-2px); }
}

.hero-visual {
    position: relative;
    height: 250px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

.rotating-element {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 10s linear infinite;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 0 30px rgba(215, 38, 56, 0.3));
}

.glitch-text {
    position: absolute;
    top: 20%;
    right: 10%;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-color);
    animation: glitch 2s infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

/* Collage Elements */
.collage-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.scribble-1 {
    width: 100px;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,20 Q40,10 60,30 T80,50 Q70,70 50,60 T20,40 Z' stroke='%23D72638' stroke-width='3' fill='none' opacity='0.6'/%3E%3C/svg%3E");
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.torn-paper {
    width: 80px;
    height: 120px;
    background: var(--accent-color);
    opacity: 0.7;
    bottom: 20%;
    left: 5%;
    clip-path: polygon(0% 0%, 85% 0%, 100% 15%, 90% 30%, 100% 45%, 85% 60%, 100% 75%, 90% 90%, 100% 100%, 0% 100%);
    transform: rotate(-15deg);
    animation: floatSlow 8s ease-in-out infinite;
}

.collage-scribble {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.4;
    animation: spin 20s linear infinite;
}

.scribble-red {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M10,10 L50,50 M50,10 L10,50 M30,5 L30,55 M5,30 L55,30' stroke='%23D72638' stroke-width='2' opacity='0.6'/%3E%3C/svg%3E");
    top: 10px;
    right: 10px;
}

.scribble-blue {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='25' stroke='%238AC6D1' stroke-width='3' fill='none' opacity='0.6'/%3E%3Cline x1='15' y1='15' x2='45' y2='45' stroke='%238AC6D1' stroke-width='2' opacity='0.6'/%3E%3C/svg%3E");
    top: 10px;
    left: 10px;
}

.scribble-green {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M15,15 Q30,5 45,15 Q55,30 45,45 Q30,55 15,45 Q5,30 15,15 Z' stroke='%23FFE066' stroke-width='3' fill='none' opacity='0.6'/%3E%3C/svg%3E");
    top: 10px;
    right: 10px;
}

.floating-heart {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    transform: rotate(45deg);
    position: relative;
    top: 30%;
    right: 20%;
    animation: heartbeat 2s ease-in-out infinite;
}

.floating-heart::before,
.floating-heart::after {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.floating-heart::before {
    top: -20px;
    left: 0;
}

.floating-heart::after {
    left: -20px;
    top: 0;
}

@keyframes floatSlow {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-10px); }
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
}

/* Entries Section */
.entries-section {
    padding: 4rem 2rem;
    background: var(--surface-color);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary-color);
    transform: rotate(-1deg);
    margin-bottom: 1rem;
    font-weight: 700;
}

.header-decoration {
    width: 150px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    transform: skew(-15deg);
    opacity: 0.8;
}

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.entry-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px var(--shadow-color);
}

.entry-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 8px 8px 25px var(--shadow-color), var(--glow-red);
    border-color: var(--primary-color);
}

.entry-1 {
    transform: rotate(1deg);
    border-left: 4px solid var(--primary-color);
}

.entry-2 {
    transform: rotate(-1deg);
    border-left: 4px solid var(--secondary-color);
}

.entry-visual {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.entry-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

.entry-image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.7;
}

.entry-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.entry-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 0 var(--text-color);
}

.entry-content {
    padding: 2rem;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(-1deg);
    font-weight: 700;
    position: relative;
}

.entry-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60%;
    height: 2px;
    background: var(--accent-color);
    transform: skew(-20deg);
}

.entry-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.entry-tags {
    color: var(--secondary-color);
}

.entry-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.7rem 1.8rem;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.entry-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.4s ease;
}

.entry-link:hover::before {
    left: 0;
}

.entry-link:hover {
    color: var(--text-color);
    transform: rotate(-2deg) scale(1.05);
    animation: glitchLink 0.3s ease-in-out;
    box-shadow: var(--glow-purple);
}

.entry-link span {
    position: relative;
    z-index: 1;
}

@keyframes glitchLink {
    0%, 100% { transform: rotate(-2deg) scale(1.05); }
    25% { transform: rotate(1deg) scale(1.05) translateX(1px); }
    75% { transform: rotate(-3deg) scale(1.05) translateX(-1px); }
}

/* Card Decorative Elements */
.card-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFA500, #8B4513);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset -1px -1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
    top: 1rem;
    animation: pinWobble 3s ease-in-out infinite;
}

.card-pin::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pin-1 {
    left: 2rem;
}

.pin-2 {
    right: 2rem;
    animation-delay: 0.3s;
}

@keyframes pinWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.tape-overlay {
    position: absolute;
    width: 80px;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(200, 200, 200, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: rotate(-25deg);
    z-index: 8;
    pointer-events: none;
}

.tape-top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-25deg);
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    min-height: 60vh;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    transform: rotate(-2deg);
}

.about-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-tagline {
    font-size: 1.1rem;
    font-style: italic;
}

.emphasis {
    color: var(--primary-color);
    font-weight: bold;
}

.about-visual {
    position: relative;
    height: 300px;
}

.spinning-logo {
    width: 150px;
    height: 150px;
    background: conic-gradient(var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 15s linear infinite;
}

.spinning-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 2rem;
    text-align: center;
    font-family: var(--font-body);
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--bg-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: rotate(-2deg);
}

/* Floating Badge */
.floating-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    box-shadow: 5px 5px 15px var(--shadow-color);
    z-index: 1000;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    max-width: 200px;
}

.floating-badge:hover {
    transform: rotate(0deg) scale(1.05);
    border-color: var(--secondary-color);
}

/* Glitch hover effect */
.glitch-hover {
    position: relative;
}

.glitch-hover:hover {
    animation: glitchEffect 0.3s ease-in-out;
}

@keyframes glitchEffect {
    0% { transform: translate(0) rotate(-2deg); }
    20% { transform: translate(-2px, 2px) rotate(-1deg); filter: hue-rotate(90deg); }
    40% { transform: translate(2px, -2px) rotate(-3deg); filter: hue-rotate(180deg); }
    60% { transform: translate(-1px, 1px) rotate(-2deg); filter: hue-rotate(270deg); }
    80% { transform: translate(1px, -1px) rotate(-1deg); filter: hue-rotate(360deg); }
    100% { transform: translate(0) rotate(-2deg); filter: hue-rotate(0deg); }
}

.badge-content {
    text-align: center;
}

.badge-text {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.badge-author {
    display: block;
    color: var(--text-color);
    font-size: 0.7rem;
    opacity: 0.8;
    font-style: italic;
}

/* Terminal/Code Block Styling */
.terminal-block {
    background-color: #1a1a2e;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(215, 38, 56, 0.15);
}

.terminal-block::before {
    content: '> TERMINAL';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-weight: 700;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.terminal-code {
    color: #00ff00;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.code-keyword {
    color: #ff6b9d;
}

.code-string {
    color: #00d9ff;
}

.code-comment {
    color: #888888;
    font-style: italic;
}

.code-number {
    color: #ffd700;
}

.code-function {
    color: #ffb347;
}

.code-operator {
    color: #ff6b9d;
}

/* Animated typing effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

/* Art Deco + Glitch Brand Animation */
@keyframes glitchOffset1 {
    0%, 100% {
        transform: translate(0, 0);
        clip-path: polygon(0 0, 100% 0, 100% 65%, 0 65%);
    }
    20% {
        transform: translate(-2px, 2px);
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 70%);
    }
    40% {
        transform: translate(2px, -2px);
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
    }
    60% {
        transform: translate(-1px, 1px);
        clip-path: polygon(0 0, 100% 0, 100% 68%, 0 68%);
    }
    80% {
        transform: translate(1px, -1px);
        clip-path: polygon(0 0, 100% 0, 100% 62%, 0 62%);
    }
}

@keyframes glitchOffset2 {
    0%, 100% {
        transform: translate(0, 0);
        clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
    }
    20% {
        transform: translate(2px, -2px);
        clip-path: polygon(0 35%, 100% 35%, 100% 100%, 0 100%);
    }
    40% {
        transform: translate(-2px, 2px);
        clip-path: polygon(0 45%, 100% 45%, 100% 100%, 0 100%);
    }
    60% {
        transform: translate(1px, -1px);
        clip-path: polygon(0 38%, 100% 38%, 100% 100%, 0 100%);
    }
    80% {
        transform: translate(-1px, 1px);
        clip-path: polygon(0 42%, 100% 42%, 100% 100%, 0 100%);
    }
}

@keyframes brandGlitch {
    0%, 100% {
        text-shadow:
            2px 2px 0px var(--secondary-color),
            4px 4px 0px var(--accent-color),
            -1px -1px 0px var(--primary-color),
            1px 1px 0px rgba(215, 38, 56, 0.3);
    }
    25% {
        text-shadow:
            -2px 2px 0px var(--accent-color),
            3px -3px 0px var(--secondary-color),
            -1px -1px 0px var(--primary-color),
            1px 1px 0px rgba(215, 38, 56, 0.2);
    }
    50% {
        text-shadow:
            2px -2px 0px var(--secondary-color),
            -4px 4px 0px var(--accent-color),
            -1px -1px 0px var(--primary-color),
            1px 1px 0px rgba(215, 38, 56, 0.3);
    }
    75% {
        text-shadow:
            -2px -2px 0px var(--accent-color),
            4px 2px 0px var(--secondary-color),
            -1px -1px 0px var(--primary-color),
            1px 1px 0px rgba(215, 38, 56, 0.25);
    }
}

.terminal-line {
    margin: 0.5rem 0;
    animation: typing 0.5s steps(40, end);
}

.terminal-caret {
    display: inline-block;
    border-right: 2px solid var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 2px;
}

/* Code block (alternative style without terminal decoration) */
.code-block {
    background-color: #1a1a2e;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
    margin: 1.5rem 0;
    color: #00ff00;
}

.code-block pre {
    margin: 0;
    font-family: inherit;
}

.code-block code {
    color: inherit;
}

/* ==========================================
   RESPONSIVE DESIGN - Main Styles
   ========================================== */

/* Large tablets */
@media (max-width: 1024px) {
    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
    }

    .nav-brand {
        flex: 1 0 100%;
        text-align: center;
    }

    .nav-links {
        gap: 0.8rem;
        justify-content: center;
    }

    .hero-section {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(3rem, 8vw, 6rem);
    }

    .hero-visual {
        height: 200px;
        width: 200px;
    }

    .rotating-element {
        width: 100px;
        height: 100px;
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .entries-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-visual {
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Tablets and large phones */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.8rem 1rem;
    }

    .nav-brand .brand-text {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

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

    .dark-mode-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }

    .main-content {
        margin-top: 100px;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 1.5rem;
    }

    .title-line-1,
    .title-line-2,
    .title-line-3,
    .title-line-4 {
        margin-left: 0;
        transform: none;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .subtitle-emphasis {
        font-size: 1.5rem;
    }

    .hero-visual {
        height: 150px;
        width: 150px;
    }

    .rotating-element {
        width: 80px;
        height: 80px;
    }

    .glitch-text {
        font-size: 2rem;
        top: 10%;
        right: 5%;
    }

    /* Floating shapes - reduce on mobile */
    .floating-shapes {
        opacity: 0.5;
    }

    .shape {
        transform: scale(0.7);
    }

    /* Entries section */
    .entries-section {
        padding: 3rem 1rem;
    }

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

    .entry-card {
        transform: none !important;
    }

    .entry-visual {
        height: 200px;
    }

    .entry-content {
        padding: 1.5rem;
    }

    .entry-title {
        font-size: 1.6rem;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* About section */
    .about-section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    /* Footer */
    .main-footer {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Floating badge */
    .floating-badge {
        bottom: 10px;
        right: 10px;
        max-width: 160px;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .badge-author {
        font-size: 0.65rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .main-nav {
        padding: 0.6rem;
    }

    .nav-brand .brand-text {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .main-content {
        margin-top: 90px;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .subtitle-emphasis {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

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

    .entry-title {
        font-size: 1.4rem;
    }

    .entry-excerpt {
        font-size: 1rem;
    }

    .entry-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 1rem;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Card pins - hide on small screens */
    .card-pin {
        display: none;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .nav-brand .brand-text {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .floating-badge {
        display: none;
    }
}

