
/*
Theme Name: Cailven Theme
Theme URI: https://example.com
Author: Cailven
Author URI: https://example.com
Description: A cool WordPress theme for frontend developers with amazing animations
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cailven-theme
*/

:root {
    --primary-dark: #0a192f;
    --primary-light: #112240;
    --accent: #64ffda;
    --accent-tint: rgba(100, 255, 218, 0.1);
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --text-light: #e6f1ff;
    --font-mono: 'Fira Code', 'SF Mono', 'Fira Mono', monospace;
    --font-sans: 'Inter', 'San Francisco', 'Helvetica Neue', sans-serif;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --nav-height: 100px;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) var(--primary-dark);
}

body {
    background-color: var(--primary-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--text-secondary);
    border: 3px solid var(--primary-dark);
    border-radius: 10px;
}

main {
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Additional safety for nav */
.nav {
    transform: none !important;
}

/* Prevent any layout shifts for nav links */
.nav-links,
.nav-logo {
    position: relative;
    z-index: 1;
}

/* Ensure sections have proper top spacing */
section {
    padding-top: 100px;
    padding-bottom: 100px;
}

section:first-of-type {
    padding-top: 0;
}

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

a:hover {
    color: var(--accent);
}

button {
    font-family: var(--font-mono);
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Fix for WordPress admin bar */
body.admin-bar .nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nav {
        top: 46px;
    }
}

.nav.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-light);
    position: relative;
}

.nav-links a span {
    color: var(--accent);
    margin-right: 0.25rem;
}

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

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

.nav-resume-btn {
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent) !important;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: var(--transition);
}

.nav-resume-btn:hover {
    background-color: var(--accent-tint);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 400px);
    height: 100vh;
    background-color: var(--primary-light);
    padding: 100px 50px;
    z-index: 999;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-menu-overlay.open {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
    text-align: center;
}

.mobile-menu-links a {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-light);
}

.mobile-menu-links span {
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

section {
    padding: 100px 150px;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-family: var(--font-sans);
}

.section-title::before {
    content: attr(data-num);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent);
    margin-right: 0.75rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--primary-light);
    margin-left: 1.5rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
}

.hero-overline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 540px;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-block;
    padding: 1.25rem 1.75rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: var(--transition);
}

.hero-cta:hover {
    background-color: var(--accent-tint);
}

/* ========================================
   LOOPING ANIMATIONS - Subtle & Refined
   ======================================== */

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gentle pulse for contact icons */
@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Glow pulse for accent elements */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    }
}

/* Subtle rotation for decorative lines */
@keyframes subtleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Breathing scale for images */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Shimmer effect for decorative elements */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Text highlight sweep */
@keyframes textSweep {
    0%, 100% {
        background-size: 0% 100%;
    }
    50% {
        background-size: 100% 100%;
    }
}

/* Dot pulse for timeline */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Subtle swing for arrow icons */
@keyframes subtleSwing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* ========================================
   ENHANCED DECORATIVE ELEMENTS
   ======================================== */

/* Floating decorative geometric shapes */
.geometric-decoration {
    position: absolute;
    opacity: 0.03;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.geometric-decoration.circle {
    width: 300px;
    height: 300px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    top: 10%;
    right: -150px;
    animation-delay: 0s;
}

.geometric-decoration.square {
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent);
    bottom: 20%;
    left: -100px;
    animation-delay: 2s;
}

.geometric-decoration.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--accent);
    top: 40%;
    left: 5%;
    background: none;
    animation-delay: 4s;
}

/* Enhanced section title with animated underline */
.section-title {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
    animation: shimmerWidth 3s ease-in-out infinite;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 60px;
    width: 0;
    height: 2px;
    background: var(--accent);
    animation: shimmerWidthExtend 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes shimmerWidth {
    0%, 100% {
        width: 60px;
        opacity: 0.7;
    }
    50% {
        width: 80px;
        opacity: 1;
    }
}

@keyframes shimmerWidthExtend {
    0%, 40% {
        width: 0;
        opacity: 0;
    }
    60%, 100% {
        width: calc(100% - 60px);
        opacity: 0.3;
    }
}

/* Enhanced timeline dots */
.timeline-dot {
    animation: dotPulse 2s ease-in-out infinite;
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: innerDotPulse 2s ease-in-out infinite;
}

@keyframes innerDotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

.timeline-item:nth-child(2) .timeline-dot {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3) .timeline-dot {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(4) .timeline-dot {
    animation-delay: 0.9s;
}

/* Enhanced skill icons */
.about-skills li::before {
    animation: gentlePulse 3s ease-in-out infinite;
}

.about-skills li:nth-child(odd)::before {
    animation-delay: 0.5s;
}

.about-skills li:nth-child(3n)::before {
    animation-delay: 1s;
}

/* Enhanced project cards */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-card:hover::before {
    animation: shimmer 2s ease-in-out infinite;
}

/* Enhanced contact links */
.contact-link {
    position: relative;
    overflow: hidden;
}

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

.contact-link:hover::after {
    width: 100%;
}

/* Enhanced footer social icons */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    animation: gentlePulse 0.8s ease-in-out infinite;
}

/* Enhanced CTA button with glow */
.hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}


/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    transform: translateX(-100%);
    pointer-events: none;
}

/* Decorative corner brackets */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    opacity: 0.2;
    pointer-events: none;
}

.corner-decoration.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Subtle grid pattern overlay */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Smooth number counter animation */
.number-animate {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Loading spinner for dynamic content */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(40);
        opacity: 0;
    }
}

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Staggered reveal animation helper */
[data-reveal] {
    --reveal-delay: 0s;
}

/* Enhanced hover states for links */
a {
    transition: all 0.3s ease;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for animations */
@media (max-width: 768px) {
    .geometric-decoration {
        display: none;
    }
    
    .corner-decoration {
        width: 25px;
        height: 25px;
    }
    
    .grid-pattern {
        background-size: 30px 30px;
    }
    
    .scroll-indicator {
        top: 700px;
    }
}

/* Scroll Indicator Animation */
.scroll-indicator {
    position: absolute;
    top: 900px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0;
    animation: fadeInScroll 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 10;
    pointer-events: none;
}

.scroll-indicator span {
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent);
    border-radius: 14px;
    position: relative;
    background: rgba(10, 25, 47, 0.3);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes fadeInScroll {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 6px;
    }
    50% {
        opacity: 0.3;
        top: 20px;
    }
    100% {
        opacity: 1;
        top: 6px;
    }
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

/* Mobile Scroll Indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        top: 700px;
    }
    
    .scroll-mouse {
        width: 22px;
        height: 36px;
    }
    
    .scroll-wheel {
        width: 3px;
        height: 6px;
        top: 6px;
    }
    
    .scroll-arrow svg {
        width: 20px;
        height: 20px;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    list-style: none;
}

.about-skills li {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
}

.about-skills li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 4px;
    transition: var(--transition);
    top: 20px;
    left: 20px;
    z-index: -1;
}



.about-image {
    width: 100%;
    border-radius: 4px;
 
    transition: var(--transition);
    position: relative;
    z-index: 1;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
}

.project-card {
    position: relative;
    background-color: var(--primary-light);
    padding: 2rem 1.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(100, 255, 218, 0.03) 50%,
        transparent 100%
    );
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 1;
    animation: shimmerCard 1.5s ease-in-out infinite;
}

@keyframes shimmerCard {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-folder {
    color: var(--accent);
    font-size: 2.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.project-card h3 a {
    color: inherit;
}

.project-card h3 a:hover {
    color: var(--accent);
}

.project-card-description {
    color: var(--text-secondary);
    flex-grow: 1;
    font-size: 1rem;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    list-style: none;
}

.featured-project {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.featured-project:nth-child(odd) .featured-project-content {
    grid-column: 7 / -1;
    text-align: right;
}

.featured-project:nth-child(odd) .featured-project-tech {
    justify-content: flex-end;
}

.featured-project:nth-child(odd) .featured-project-links {
    justify-content: flex-end;
}

.featured-project:nth-child(odd) .featured-project-image {
    grid-column: 1 / 8;
}

.featured-project-image {
    grid-column: 6 / -1;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
}

.featured-project-image img {
    width: 100%;
    border-radius: 4px;
    transition: var(--transition);
}

.featured-project-image:hover img {
    filter: none;
}

.featured-project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-tint);
    mix-blend-mode: screen;
    transition: var(--transition);
    border-radius: 4px;
}

.featured-project-image:hover::before {
    background: transparent;
}

.featured-project-content {
    grid-column: 1 / 7;
    grid-row: 1 / -1;
    position: relative;
    z-index: 2;
}

.featured-project-overline {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.featured-project-title {
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-project-title a {
    color: inherit;
}

.featured-project-title a:hover {
    color: var(--accent);
}

.featured-project-description {
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 1rem;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.featured-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    list-style: none;
}

.featured-project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.featured-project-links a {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.featured-project-links a:hover {
    color: var(--accent);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.375rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
}

.resume-skills {
    margin-top: 80px;
}

.resume-skills h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.skill-category h4 {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.projects-notable-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    margin-top: 4rem;
}

.projects-show-more {
    text-align: center;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-tint);
}

.contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-overline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-title {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-email {
    display: inline-block;
    padding: 1.25rem 1.75rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-email:hover {
    background-color: var(--accent-tint);
}

.footer {
    padding: 1.5rem;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-credit {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-credit a {
    color: inherit;
}

.footer-credit a:hover {
    color: var(--accent);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--primary-light);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-7px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image {
    filter: none;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--accent);
}

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

.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header {
    margin-bottom: 3rem;
}

.single-post-meta {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.single-post-title {
    font-size: clamp(30px, 5vw, 50px);
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.single-post-content {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.single-post-content h2 {
    color: var(--text-light);
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}

.single-post-content h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.single-post-content pre {
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.single-post-content code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-primary);
    font-style: italic;
}

/* Portfolio Single Styles */
.portfolio-single {
    padding-top: 150px;
}

.portfolio-single-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-single-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.portfolio-single-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-single-image {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-single-image img {
    width: 100%;
    height: auto;
}

.portfolio-single-tech {
    margin-bottom: 3rem;
}

.portfolio-single-tech h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-single-tech ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.portfolio-single-tech li {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    background-color: var(--accent-tint);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.portfolio-single-content {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.portfolio-single-content p {
    margin-bottom: 1.5rem;
}

.portfolio-single-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
}

.portfolio-single-nav a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-single-nav a:hover {
    color: var(--text-light);
}

/* Blog Single Additional Styles */
.single-post {
    padding-top: 150px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-meta {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.single-post-meta span {
    margin-right: 1rem;
}

.single-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}

.single-post-image {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: auto;
}

.single-post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
}

.single-post-tags a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    background-color: var(--accent-tint);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    text-decoration: none;
}

.single-post-tags a:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.single-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
}

.single-post-nav a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    max-width: 45%;
}

.single-post-nav a:hover {
    color: var(--text-light);
}

.single-post-comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-light);
}

/* Blog Card Additional Styles */
.blog-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.blog-card-category {
    margin-left: auto;
}

.blog-card-read-more {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-read-more:hover {
    color: var(--text-light);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-pagination a:hover,
.blog-pagination span.current {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 1080px) {
    section {
        padding: 80px 100px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 25px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    section {
        padding: 80px 25px;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .about-text {
        order: 1;
        text-align: left;
    }
    
    .about-image-wrapper {
        order: 2;
        margin-top: 15rem;
        padding-bottom: 2rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-skills {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-project {
        display: block;
    }
    
    .featured-project:nth-child(odd) .featured-project-content {
        text-align: left;
    }
    
    .featured-project:nth-child(odd) .featured-project-tech {
        justify-content: flex-start;
    }
    
    .featured-project:nth-child(odd) .featured-project-links {
        justify-content: flex-start;
    }
    
    .featured-project-image {
        margin-bottom: 2rem;
    }
    
    .featured-project-content {
        position: relative;
        padding: 2rem;
        background-color: rgba(17, 34, 64, 0.8);
        border-radius: 4px;
    }
    
    .featured-project-description {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-single-header,
    .single-post-header {
        text-align: left;
    }
    
    .portfolio-single-title,
    .single-post-title {
        font-size: 2rem;
    }
    
    .portfolio-single-nav,
    .single-post-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .single-post-nav a {
        max-width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title,
    .hero-subtitle {
        font-size: 40px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Typewriter Effect */
.typewriter {
    display: inline;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent);
    animation: blink 0.7s step-end infinite;
}

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

/* Glow Effect */
.glow {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5),
                 0 0 20px rgba(100, 255, 218, 0.3),
                 0 0 30px rgba(100, 255, 218, 0.1);
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

/* Rotate In Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.rotate-in {
    animation: rotateIn 0.5s ease-out forwards;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

/* Button Hover Animation */
.hero-cta,
.btn,
.contact-email {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.hero-cta:hover::before,
.btn:hover::before,
.contact-email:hover::before {
    left: 100%;
}

.hero-cta:hover,
.btn:hover,
.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

/* Back Button Styles */
.single-post-back,
.portfolio-single-back {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-tint);
    transform: translateX(-3px);
}

/* Responsive Adjustments for Single Pages */
@media (max-width: 768px) {
    .single-post,
    .portfolio-single {
        padding: 2rem 1.5rem 4rem;
    }
    
    .single-post-title,
    .portfolio-single-title {
        font-size: 2rem;
    }
}

/* Project Meta Styles */
.project-meta {
    margin: 1rem 0;
}

.project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-tint);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-date-role {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-date,
.project-role {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.project-date svg,
.project-role svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* Portfolio Single Header Meta */
.portfolio-single-header .project-meta {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Featured Project Meta */
.featured-project-content .project-meta {
    margin: 1rem 0;
}

/* Project Card Meta */
.project-card .project-meta {
    margin-bottom: 1rem;
}

/* Visitor Stats Styles */
.visitor-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(100, 255, 218, 0.05) 100%);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    }
}

.visitor-stats svg {
    color: var(--accent);
    width: 20px;
    height: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.visitor-count {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 1px;
}

.visitor-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 文章统计样式 */
.cailven-post-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-light);
    border-top: 1px solid var(--primary-light);
    align-items: center;
}

.cailven-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: default;
    transition: all 0.3s ease;
}

.cailven-stat-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.cailven-stat-item .stat-value {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.1rem;
}

.cailven-like-button {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cailven-like-button:hover:not(.liked):not(.loading) {
    background: rgba(100, 255, 218, 0.1);
    transform: scale(1.05);
}

.cailven-like-button.liked {
    background: rgba(100, 255, 218, 0.2);
    cursor: default;
}

.cailven-like-button.liked svg {
    fill: var(--accent);
    color: var(--accent);
}

.cailven-like-button.liked .stat-value {
    color: var(--accent);
}

.cailven-like-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cailven-like-button.liked-animation {
    animation: likePop 0.5s ease;
}

@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Update functions.php version */
/* Version 2.0.5 */
