@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Merriweather:wght@300;400;700&display=swap');

/* Futuristic theme variables */
:root {
    --neon-blue: #00ffff;
    --neon-purple: #8a2be2;
    --neon-green: #39ff14;
    --neon-pink: #ff1493;
    --cyber-dark: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-neon: 0 0 20px var(--neon-blue);
    --gradient-cyber: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-matrix: linear-gradient(45deg, #000000, #1a1a2e, #16213e, #0f3460);
}

/* Main theme colors */
:root {
    --bg-color: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f1f3f4 100%);
    --text-color: #212529;
    --text-light: #495057;
    --text-muted: #6c757d;
    --text-heading: #2c3e50;
    --text-accent: #e67e22;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: #e67e22;
    --border-light: #fdecda;
    --shadow-color: rgba(0, 0, 0, 0.12);
    --shadow-hover: rgba(230, 126, 34, 0.25);
    --shadow-strong: rgba(230, 126, 34, 0.35);
    
    /* Light mode colors */
    --accent-color: #e67e22;
    --accent-secondary: #d35400;
    --accent-light: #fdf2e9;
    --golden-primary: #f39c12;
    --golden-secondary: #e67e22;
    --orange-primary: #d35400;
    --orange-secondary: #e67e22;
    --golden-glow: rgba(243, 156, 18, 0.3);
    --orange-glow: rgba(211, 84, 0, 0.3);
    --golden-glow-strong: rgba(243, 156, 18, 0.5);
    
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-shadow: rgba(0, 0, 0, 0.1);
    --post-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #ffffff;
    --input-border: #e67e22;
    --input-focus: var(--orange-primary);
    --button-bg: var(--orange-primary);
    --button-hover: var(--golden-primary);
    --button-text: #ffffff;
    --card-bg: #ffffff;
    --card-border: #daa520;
}

/* Dark mode */
body.dark-mode {
    --bg-color: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    --text-color: #ffd700;
    --text-light: #daa520;
    --text-muted: #b8860b;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --border-color: #ff8c00;
    --border-light: #daa520;
    --shadow-color: rgba(255, 140, 0, 0.2);
    --shadow-hover: rgba(255, 140, 0, 0.3);
    --shadow-strong: rgba(255, 140, 0, 0.4);
    --accent-color: #ff8c00;
    --accent-secondary: #ffa500;
    --accent-light: #ff7f50;
    --golden-primary: #ffd700;
    --golden-secondary: #daa520;
    --orange-primary: #ff8c00;
    --orange-secondary: #ff7f50;
    --golden-glow: rgba(255, 215, 0, 0.4);
    --orange-glow: rgba(255, 140, 0, 0.4);
    --golden-glow-strong: rgba(255, 215, 0, 0.6);
    --success-color: #32cd32;
    --warning-color: #ff8c00;
    --error-color: #ff6347;
    --nav-bg: rgba(26, 26, 26, 0.98);
    --nav-shadow: rgba(255, 140, 0, 0.3);
    --post-bg: rgba(26, 26, 26, 0.98);
    --input-bg: #2d2d2d;
    --input-border: #ff8c00;
    --input-focus: #ffd700;
    --button-bg: #ff8c00;
    --button-hover: #ffa500;
    --button-text: #000000;
    --card-bg: #1a1a1a;
    --card-border: #ff8c00;
}

/* Mobile Chrome and Universal Optimizations */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(255, 140, 0, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for readable content */
p, h1, h2, h3, h4, h5, h6, span, div.post-content, textarea, input[type="text"], input[type="email"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 70px;
    height: 100%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    /* Mobile scroll optimization - less aggressive */
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
}

html, body {
    scroll-behavior: smooth;
    transform: translateZ(0);
    will-change: scroll-position;
    /* Mobile momentum scrolling */
    -webkit-overflow-scrolling: touch;
    /* Allow normal scrolling */
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Cursor styles */
* {
    cursor: default;
}

/* Default cursor for body */
body {
    cursor: default;
}

/* Pointer cursor for interactive elements */
a, button, .nav-link, .back-to-top, .youtube-button, .mobile-menu-toggle,
.newsletter-form button, .share-button, .theme-toggle, input[type="submit"],
input[type="button"], .btn, .developer-credit {
    cursor: pointer;
}

input[type="text"], input[type="email"], input[type="password"], 
textarea, [contenteditable="true"] {
    cursor: text;
}

.stat-item, .benefits-list li {
    cursor: help;
}

.floating-shapes .shape {
    cursor: move;
}

button:disabled, input:disabled, textarea:disabled {
    cursor: not-allowed;
}

img, .dev-bg img {
    cursor: zoom-in;
}

.nav-controls {
    cursor: crosshair;
}

section:hover {
    cursor: pointer;
}

p, article, blockquote, li {
    cursor: text;
}

/* Custom cursor for special elements */
.typewriter {
    cursor: text;
}

.header-stats .stat-number {
    cursor: help;
    color: #2c3e50; /* Ensure visibility in light mode */
}

/* Dark mode header stats */
body.dark-mode .header-stats .stat-number {
    color: #ffffff !important;
}

/* Custom Cursor Effects */
/* Cursor glow effect */
.nav-link:hover, .youtube-button:hover, .newsletter-form button:hover {
    cursor: pointer;
    position: relative;
}

/* Custom cursor */
body:not(.dark-mode) .nav-link:hover {
    cursor: pointer;
}

body.dark-mode .nav-link:hover {
    cursor: pointer;
}

/* Responsive cursor */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }
}

/* Custom cursor for code blocks */
code, pre {
    cursor: text;
}

/* Progress cursor for loading or processing elements */
.back-to-top[aria-label*="loading"] {
    cursor: progress;
}

/* Grab cursor for scrollable areas */
.nav-links {
    cursor: grab;
}

.nav-links:active {
    cursor: grabbing;
}

/* Mobile scroll optimizations */
body:not(.dark-mode) {
    /* Light mode optimizations */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-snap-type: y proximity;
}

body.dark-mode {
    /* Dark mode optimizations */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-snap-type: y proximity;
    /* Dark mode scrolling */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Smooth scrolling with better mobile Chrome performance */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto; /* Override for JavaScript control */
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto; /* JavaScript handles smoothness */
    }
    
    /* Mobile Chrome specific performance */
    section, nav, main, article {
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Disable smooth scrolling for accessibility */
    .smooth-scroll-disabled * {
        scroll-behavior: auto !important;
    }
}

/* Mobile Chrome specific scroll snap optimization */
@media screen and (max-width: 768px) {
    section {
        scroll-snap-align: start;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Mobile scroll */
    body:not(.dark-mode) section {
        scroll-margin-top: 80px;
        -webkit-scroll-snap-coordinate: 0 0;
        scroll-snap-coordinate: 0 0;
    }
    
    body.dark-mode section {
        scroll-margin-top: 80px;
        -webkit-scroll-snap-coordinate: 0 0;
        scroll-snap-coordinate: 0 0;
        /* Dark mode specific acceleration */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

body { 
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif; 
    margin: 0; 
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.7;
    letter-spacing: 0.3px;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile Chrome */
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(243, 156, 18, 0.15), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(230, 126, 34, 0.1), transparent);
    background-size: 400px 400px, 300px 300px;
    animation: subtle-float 30s ease-in-out infinite;
    opacity: 0.3;
    z-index: -1;
}

/* Dark mode particles */
body.dark-mode::before {
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(255, 140, 0, 0.15), transparent);
    opacity: 0.2;
}

@keyframes subtle-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

/* Additional body properties for mobile optimization */
body {
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Mobile scrolling */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
}

/* Mobile body adjustments */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        font-size: 1rem;
        line-height: 1.6;
    }
}
/* Header design */
header { 
    text-align: center; 
    margin-bottom: 1.5em; 
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
    color: var(--golden-primary);
    border: 2px solid var(--orange-primary);
    border-bottom: 3px solid var(--golden-primary);
    padding: 2em 1.5em;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.25), 0 0 30px rgba(255, 215, 0, 0.15);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Light mode header */
body:not(.dark-mode) header {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fdfdfd 100%);
    color: #2c3e50;
    border: 2px solid var(--orange-primary);
    border-bottom: 3px solid var(--golden-secondary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 30px rgba(230, 126, 34, 0.12);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--golden-primary);
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px var(--golden-glow),
        0 0 40px var(--orange-glow);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Light mode header */
body:not(.dark-mode) header h1 {
    color: #e67e22;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(230, 126, 34, 0.3),
        0 0 40px rgba(243, 156, 18, 0.2);
    font-weight: 800;
}

header p {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-style: normal;
    font-size: 1.2em;
    margin-top: 0.5em;
    color: #ecf0f1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Light mode header paragraphs */
body:not(.dark-mode) header p {
    color: #34495e;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* Article Styling */
article { 
    background: var(--card-bg);
    padding: 1.5em; 
    margin-bottom: 1.2em; 
    border-radius: 12px; 
    box-shadow: 0 3px 15px var(--shadow-color); 
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-color);
    color: var(--text-color);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1em;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Light mode hover effect */
body:not(.dark-mode) article:hover {
    box-shadow: 
        0 6px 20px var(--shadow-hover),
        0 0 15px var(--neon-glow),
        inset 0 0 1px var(--neon-blue);
    border-left-color: var(--neon-blue);
    transform: translateY(-1px);
}

article:hover {
    box-shadow: 0 6px 20px var(--shadow-hover);
    transform: translateY(-1px);
}

/* Text Styling */
/* Main titles and subtitles */
body:not(.dark-mode) .welcome-section h1 {
    color: var(--orange-primary);
    text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

body:not(.dark-mode) .welcome-section .subtitle,
body:not(.dark-mode) .welcome-section p {
    color: var(--golden-secondary);
    font-weight: 500;
}

/* Blog post titles */
body:not(.dark-mode) .blog-post h3,
body:not(.dark-mode) article h3 {
    color: var(--orange-secondary);
    border-bottom: 2px solid var(--golden-primary);
    padding-bottom: 5px;
}

/* Section headings */
body:not(.dark-mode) section h3,
body:not(.dark-mode) section h4 {
    color: var(--text-heading);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Text emphasis */
body:not(.dark-mode) section strong,
body:not(.dark-mode) article strong {
    color: var(--orange-primary);
    font-weight: 700;
}

body:not(.dark-mode) section em,
body:not(.dark-mode) article em {
    color: var(--golden-secondary);
    font-style: italic;
}

/* Links in light mode */
body:not(.dark-mode) section a,
body:not(.dark-mode) article a {
    color: var(--orange-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

body:not(.dark-mode) section a:hover,
body:not(.dark-mode) article a:hover {
    color: var(--text-heading);
    border-bottom-color: var(--golden-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Paragraph text improvements */
body:not(.dark-mode) section p,
body:not(.dark-mode) article p {
    color: var(--text-color);
    line-height: 1.7;
}

/* List styling */
body:not(.dark-mode) section li,
body:not(.dark-mode) article li {
    color: var(--text-color);
    margin-bottom: 0.5em;
}

body:not(.dark-mode) section li strong,
body:not(.dark-mode) article li strong {
    color: var(--orange-secondary);
}

/* Heading Styles */
h1, h2 { 
    color: var(--text-color); 
    text-shadow: none;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Golden theme section headings */
body:not(.dark-mode) section h2 {
    color: var(--orange-primary);
    text-shadow: 0 0 20px var(--golden-glow), 0 2px 8px rgba(218, 165, 32, 0.3);
}

body:not(.dark-mode) section h2:hover {
    text-shadow: 0 0 30px var(--golden-glow-strong), 0 2px 12px rgba(255, 140, 0, 0.4);
    color: var(--golden-primary);
}

/* Dark mode section headings */
body.dark-mode section h2 {
    color: var(--golden-primary);
    text-shadow: 0 0 25px var(--golden-glow-strong), 0 2px 10px rgba(255, 215, 0, 0.4);
}

body.dark-mode section h2:hover {
    text-shadow: 0 0 35px var(--orange-glow), 0 2px 15px rgba(255, 140, 0, 0.5);
    color: var(--orange-primary);
}

/* Legacy header styles (kept for specificity) */
header h1 {
    color: var(--accent-color);
    font-size: 2.2em;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: none;
}

section h2 { 
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 0.6em;
    color: var(--accent-color);
    font-size: 1.6em;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.8em;
    position: relative;
}

/* Light mode section h2 styling */
body:not(.dark-mode) section h2 {
    border-bottom-color: var(--orange-primary);
}

/* Dark mode section h2 styling */
body.dark-mode section h2 {
    border-bottom-color: var(--golden-primary);
}
.date { 
    color: #5d4e75; 
    font-size: 0.95em; 
    font-style: italic; 
    font-family: 'Crimson Text', 'Times New Roman', Times, serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85em;
}
.dev-bg {
    margin: 2em auto;
    max-width: 600px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #e9ecef 100%);
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.2);
    color: #2c3e50;
    border: 2px solid #d4c5b9;
}

/* Section Enhancement */
/* Section Styling */
section {
    background: var(--card-bg);
    margin: 1.2em 0;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 2px solid var(--card-border);
    border-left: 3px solid var(--accent-color);
    color: var(--text-color);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1em;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(8px);
}

/* Light mode sections */
body:not(.dark-mode) section {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 50%, #faf6f0 100%);
    border: 2px solid #e67e22;
    border-left: 3px solid #d35400;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(230, 126, 34, 0.1);
    color: var(--text-color);
}

/* Dark mode section styling */
body.dark-mode section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    border-color: var(--orange-primary);
    border-left-color: var(--golden-primary);
    box-shadow: 0 6px 25px rgba(255, 140, 0, 0.25), 0 0 20px rgba(255, 215, 0, 0.15);
}

/* Section hover effects */
body:not(.dark-mode) section:hover {
    box-shadow: 
        0 10px 30px rgba(218, 165, 32, 0.2),
        0 0 25px var(--golden-glow),
        inset 0 0 1px var(--orange-primary);
    border-left-color: var(--golden-primary);
    transform: translateY(-3px);
}

body.dark-mode section:hover {
    box-shadow: 
        0 10px 30px rgba(255, 140, 0, 0.3),
        0 0 35px var(--golden-glow-strong),
        inset 0 0 1px var(--golden-primary);
    border-left-color: var(--orange-secondary);
    transform: translateY(-3px);
}

/* Paragraph styling */
section p {
    color: var(--text-color);
    margin-bottom: 1em;
    line-height: 1.6;
    font-weight: 400;
}

/* Light mode text enhancement with colors */
body:not(.dark-mode) section p {
    color: #2c3e50;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

body:not(.dark-mode) section li {
    color: #34495e;
    font-weight: 450;
}

body:not(.dark-mode) section strong {
    color: #e67e22;
    font-weight: 700;
}

/* Blockquote styling */
body:not(.dark-mode) blockquote {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05) 0%, rgba(218, 165, 32, 0.08) 100%);
    border-left: 3px solid var(--orange-primary);
    color: var(--text-heading);
    font-style: italic;
    padding: 1.2em 1.5em;
    margin: 1.2em 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.08);
}

body:not(.dark-mode) blockquote p {
    color: inherit;
    margin-bottom: 0.5em;
}

/* Code styling */
body:not(.dark-mode) code {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    color: var(--orange-secondary);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

body:not(.dark-mode) pre {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 73, 94, 0.08) 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-left: 3px solid var(--golden-primary);
    border-radius: 6px;
    padding: 1.2em;
    overflow-x: auto;
    margin: 1.2em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-heading);
}

/* Table styling */
body:not(.dark-mode) table {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--golden-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
}

body:not(.dark-mode) th {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--golden-primary) 100%);
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body:not(.dark-mode) td {
    color: var(--text-color);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

body:not(.dark-mode) tr:nth-child(even) {
    background: rgba(218, 165, 32, 0.03);
}

body:not(.dark-mode) tr:hover {
    background: rgba(255, 140, 0, 0.08);
}

/* Form styling */
body:not(.dark-mode) input,
body:not(.dark-mode) textarea,
body:not(.dark-mode) select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--golden-primary);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

body:not(.dark-mode) input:focus,
body:not(.dark-mode) textarea:focus,
body:not(.dark-mode) select:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.25);
    outline: none;
}

/* Button styling enhancements */
body:not(.dark-mode) button,
body:not(.dark-mode) .btn {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--golden-primary) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.25);
}

body:not(.dark-mode) button:hover,
body:not(.dark-mode) .btn:hover {
    background: linear-gradient(135deg, var(--golden-primary) 0%, var(--orange-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.35);
}

body:not(.dark-mode) section em {
    color: #d35400;
    font-style: italic;
}

/* Light mode headings with color */
body:not(.dark-mode) section h3,
body:not(.dark-mode) section h4 {
    color: #d35400;
    font-weight: 600;
}

/* Dark mode text styling */
body.dark-mode section p {
    color: #ecf0f1;
}

body.dark-mode section li {
    color: #bdc3c7;
}

section ul {
    color: var(--text-color);
}

section li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Data Stream Effect */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(0, 255, 255, 0.03) 0%, 
            transparent 25%, 
            rgba(138, 43, 226, 0.03) 50%, 
            transparent 75%, 
            rgba(57, 255, 20, 0.03) 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 255, 255, 0.02) 100px
        );
    pointer-events: none;
    z-index: 1;
    animation: data-stream 8s linear infinite;
}

@keyframes data-stream {
    0% { background-position: 0px 0px, 0px 0px; }
    100% { background-position: 100px 100px, 200px 0px; }
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

section h2 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2em;
    margin-bottom: 1em;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px var(--neon-blue);
}

/* List styling for blue, brown, white theme */
ul {
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5em;
    border-radius: 8px;
    border-left: 3px solid #3498db;
    font-family: 'Crimson Text', 'Times New Roman', Times, serif;
    font-size: 1.05em;
    line-height: 1.6;
}

ul li {
    margin-bottom: 0.8em;
    padding: 0.6em 0;
    border-bottom: 1px solid #d4c5b9;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

ul li:hover {
    color: #3498db;
    padding-left: 0.8em;
    font-weight: 500;
}

ul li:last-child {
    border-bottom: none;
}

/* Image styling updates */
img {
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
    border: 3px solid #8b7d6b;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    border-color: #3498db;
}

/* Additional Blue, Brown, White Accent Elements */
p {
    line-height: 1.8;
    color: #34495e;
    font-family: 'Crimson Text', 'Times New Roman', Times, serif;
    font-size: 1.1em;
    margin-bottom: 1.2em;
    text-align: justify;
    letter-spacing: 0.2px;
}

/* First letter styling for paragraphs in articles */
article p:first-of-type::first-letter {
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
    font-size: 3.5em;
    line-height: 0.8;
    float: left;
    margin: 0.1em 0.1em 0 0;
    color: #3498db;
    font-weight: 700;
}

/* Golden theme links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--golden-primary);
    text-decoration: underline;
    text-shadow: 0 0 10px var(--golden-glow);
}

/* Light mode links */
body:not(.dark-mode) a {
    color: var(--orange-primary);
}

body:not(.dark-mode) a:hover {
    color: var(--golden-secondary);
    text-shadow: 0 0 8px var(--orange-glow);
}

/* Dark mode links */
body.dark-mode a {
    color: var(--golden-primary);
}

body.dark-mode a:hover {
    color: var(--orange-primary);
    text-shadow: 0 0 12px var(--golden-glow-strong);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #8b7d6b);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #5d4e75);
}

/* Selection highlighting */
::selection {
    background: var(--orange-primary);
    color: #000000;
}

/* Golden Button Styling */
.btn {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-secondary) 100%);
    color: #000000;
    padding: 0.8em 2em;
    border: 2px solid var(--golden-primary);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--orange-glow), 0 0 20px var(--golden-glow);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Merriweather', serif;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--orange-glow), 0 0 30px var(--golden-glow-strong);
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--golden-primary) 0%, var(--orange-primary) 100%);
}

/* Quote styling for future use */
blockquote {
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
    font-size: 1.3em;
    font-style: italic;
    color: #5d4e75;
    border-left: 4px solid #3498db;
    padding-left: 1.5em;
    margin: 1.5em 0;
    background: rgba(248, 249, 250, 0.5);
    padding: 1em 1em 1em 2em;
    border-radius: 0 8px 8px 0;
}

/* Typography emphasis */
em {
    font-family: 'Crimson Text', 'Times New Roman', Times, serif;
    font-style: italic;
    color: #2980b9;
}

strong {
    font-family: 'Merriweather', 'Times New Roman', Times, serif;
    font-weight: 700;
    color: #2c3e50;
}

/* Developer Credit */
.developer-credit {
    font-family: 'Crimson Text', 'Times New Roman', Times, serif;
    font-size: 1em;
    font-style: italic;
    color: var(--text-heading) !important;
    margin-top: 1em;
    text-align: center;
    letter-spacing: 0.5px;
    padding: 0.8em 1.5em;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(218, 165, 32, 0.05) 100%);
    border-radius: 25px;
    border: 2px solid rgba(255, 140, 0, 0.2);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
    font-weight: 500;
}

.developer-credit strong {
    color: var(--orange-primary) !important;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 140, 0, 0.3);
}

.developer-credit em {
    color: var(--golden-primary) !important;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(218, 165, 32, 0.4);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #f8f9fa;
    text-align: center;
    padding: 2em;
    margin-top: 3em;
    border-radius: 15px;
    box-shadow: 0 -4px 12px rgba(44, 62, 80, 0.2);
    border-top: 3px solid #3498db;
}

.footer-content p {
    font-family: 'Crimson Text', 'Times New Roman', Times, serif;
    font-size: 1em;
    margin: 0.5em 0;
    color: #f8f9fa !important;
    text-align: center !important;
}

.footer-content strong {
    color: #3498db;
    font-weight: 600;
}

.developer-signature {
    font-style: italic;
    font-size: 0.9em !important;
    color: #d4c5b9 !important;
    margin-top: 1em !important;
}

.developer-signature em {
    color: #3498db !important;
    font-weight: 500;
}

/* YouTube Section Styling */
#youtube-channel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 30%, #e9ecef 70%, #d4c5b9 100%);
    border-left: 5px solid #ff0000;
    border-right: 2px solid #8b7d6b;
    border-top: 1px solid #d4c5b9;
    border-bottom: 2px solid #5d4e75;
}

.youtube-container {
    text-align: center;
    margin-top: 1.5em;
}

.youtube-link {
    text-decoration: none;
    display: inline-block;
}

.youtube-button {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    padding: 1em 2em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    font-family: 'Merriweather', 'Times New Roman', Times, serif;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    min-width: 280px;
}

.youtube-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
}

.youtube-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.youtube-button:hover .youtube-icon {
    transform: scale(1.1);
}

.youtube-description {
    margin-top: 1em;
    font-style: italic;
    color: #5d4e75 !important;
    font-family: 'Crimson Text', 'Times New Roman', Times, serif !important;
    font-size: 1em !important;
    text-align: center !important;
}

/* Navigation */
.nav-menu, .nav-container {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.95) 0%, rgba(250, 235, 215, 0.98) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 10000 !important;
    border-bottom: 2px solid var(--golden-primary) !important;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Dark mode navigation */
body.dark-mode .nav-menu,
body.dark-mode .nav-container {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%) !important;
    border-bottom: 2px solid var(--orange-primary) !important;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2) !important;
}

.nav-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 70px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Navigation Logo */
.nav-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.logo-text {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #3498db !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.logo-subtitle {
    font-size: 0.8rem !important;
    color: #666 !important;
    font-style: italic !important;
    margin-top: 2px !important;
}

body.dark-mode .logo-subtitle {
    color: #aaa !important;
}

/* GUARANTEED VISIBLE NAVIGATION LINKS */
.nav-links {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 25px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-links li {
    display: flex !important;
    align-items: center !important;
}

.nav-link {
    text-decoration: none !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.nav-link:hover {
    color: var(--orange-primary) !important;
    background: var(--golden-glow) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px var(--orange-glow) !important;
}

/* Dark mode nav links */
body.dark-mode .nav-link {
    color: var(--golden-primary) !important;
}

body.dark-mode .nav-link:hover {
    color: var(--orange-primary) !important;
    background: var(--golden-glow) !important;
    box-shadow: 0 4px 15px var(--golden-glow-strong) !important;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 100;
}

/* GUARANTEED VISIBLE NAV CONTROLS */
.nav-controls {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    position: relative !important;
    z-index: 1001 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.mobile-menu-toggle span {
    width: 25px !important;
    height: 3px !important;
    background: #2c3e50 !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
}

body.dark-mode .mobile-menu-toggle span {
    background: #ecf0f1 !important;
}

/* SIMPLE WORKING TOGGLE - Mobile responsive */
@media (max-width: 768px) {
    #simpleToggle {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 20px !important;
    }
}

/* ENSURE CONTENT DOESN'T HIDE BEHIND FIXED NAVIGATION */
body {
    margin: 0 !important;
    padding-top: 70px !important; /* Account for fixed navigation */
}

header {
    margin-top: 0 !important;
    padding-top: 50px !important; /* Additional spacing */
}

@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
    
    header {
        padding-top: 30px !important;
    }
}
@media (max-width: 768px) {
    .nav-content {
        padding: 0 15px !important;
        height: 60px !important;
    }
    
    .logo-text {
        font-size: 1.3rem !important;
    }
    
    .logo-subtitle {
        font-size: 0.7rem !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 60px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 30px 0 !important;
        transition: left 0.3s ease !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    body.dark-mode .nav-links {
        background: rgba(45, 52, 64, 0.98) !important;
    }
    
    .nav-links.active {
        left: 0 !important;
    }
    
    .nav-links li {
        width: 100% !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
    
    .nav-link {
        width: 90% !important;
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
        text-align: center !important;
        border-radius: 10px !important;
        margin: 0 auto !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Mobile responsive styles for front toggle - Bottom-right */
    .front-dark-toggle, #frontDarkToggle {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 20px !important;
    }
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #2980b9;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 15px;
    border-radius: 8px;
    /* Smooth interaction optimization */
    will-change: color, background-color, text-shadow;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-blue);
    background: var(--accent-light);
    text-shadow: 0 0 10px var(--neon-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-glow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #3498db;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border: 2px solid transparent;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3), 
                0 0 0 0 rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-cyan));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark-mode-toggle:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--neon-blue));
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4), 
                0 0 30px rgba(0, 212, 255, 0.6),
                0 0 0 8px rgba(14, 165, 233, 0.1);
    border-color: var(--neon-cyan);
}

.dark-mode-toggle:hover::before {
    opacity: 1;
    animation: neonPulse 2s ease-in-out infinite;
}

.dark-mode-toggle:active {
    transform: rotate(15deg) scale(0.95);
    transition: all 0.1s ease;
}

.dark-mode-toggle .theme-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.dark-mode-toggle:hover .theme-icon {
    transform: rotate(-15deg) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

/* Dark mode button styles */
body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4), 
                0 0 20px rgba(0, 255, 255, 0.2);
    border-color: var(--neon-cyan);
}

body.dark-mode .dark-mode-toggle::before {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
}

body.dark-mode .dark-mode-toggle:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6), 
                0 0 35px rgba(0, 255, 255, 0.8),
                0 0 0 10px rgba(0, 255, 255, 0.1);
    transform: rotate(-15deg) scale(1.15);
}

body.dark-mode .dark-mode-toggle .theme-icon {
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

body.dark-mode .dark-mode-toggle:hover .theme-icon {
    transform: rotate(15deg) scale(1.2);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1));
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-left: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .dark-mode-toggle:hover {
        transform: scale(1.05);
    }
    
    .dark-mode-toggle:active {
        transform: scale(0.9);
    }
    
    body.dark-mode .dark-mode-toggle:hover {
        transform: scale(1.1);
    }
}

/* Accessibility improvements */
.dark-mode-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.5);
}

body.dark-mode .dark-mode-toggle:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.5);
}

/* Neon pulse animation */
@keyframes neonPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Animated Header Styles */
.animated-header {
    padding-top: 70px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.header-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.typewriter {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    border-right: 3px solid white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: white; }
    51%, 100% { border-color: transparent; }
}

.header-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--text-color); /* Use theme-aware color */
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
    color: var(--text-light); /* Use theme-aware color */
}

/* Ensure stats are visible in light mode */
body:not(.dark-mode) .stat-number {
    color: #2c3e50 !important; /* Dark color for light mode */
}

body:not(.dark-mode) .stat-label {
    color: #495057 !important; /* Lighter dark color for light mode */
}

/* Dark mode stat colors */
body.dark-mode .stat-number {
    color: #ffffff !important; /* White for dark mode */
}

body.dark-mode .stat-label {
    color: #c7ccd1 !important; /* Light gray for dark mode */
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    top: 20%;
    left: 10%;
}

.shape2 {
    width: 60px;
    height: 60px;
    background: white;
    transform: rotate(45deg);
    top: 60%;
    right: 15%;
}

.shape3 {
    width: 100px;
    height: 100px;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 80%;
    left: 20%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Search and Filter Styles */
.search-filter-section {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Blog Stats Display */
.blog-stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.total-likes-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.total-likes-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.stats-icon {
    font-size: 1.3rem;
    animation: heartBeat 2s ease-in-out infinite;
}

.total-likes-count {
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

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

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--input-border);
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.1);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Blog Post Styles */
.blog-post {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 40px;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid var(--card-border);
    border-left: 6px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

/* Light mode blog posts */
body:not(.dark-mode) .blog-post {
    background: linear-gradient(135deg, #ffffff 0%, #fffef9 100%);
    border-color: var(--golden-secondary);
    border-left-color: var(--orange-primary);
    box-shadow: 0 8px 30px rgba(218, 165, 32, 0.15), 0 0 20px rgba(255, 140, 0, 0.05);
}

/* Dark mode blog posts */
body.dark-mode .blog-post {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-color: var(--orange-primary);
    border-left-color: var(--golden-primary);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.25), 0 0 25px rgba(255, 215, 0, 0.1);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

/* Light mode blog post hover */
body:not(.dark-mode) .blog-post:hover {
    box-shadow: 0 20px 50px rgba(218, 165, 32, 0.25), 0 0 40px var(--golden-glow);
    border-left-color: var(--golden-primary);
}

/* Dark mode blog post hover */
body.dark-mode .blog-post:hover {
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.35), 0 0 50px var(--golden-glow-strong);
    border-left-color: var(--orange-secondary);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    gap: 10px;
}

.tag {
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #495057;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.like-btn, .share-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    user-select: none;
}

/* Prevent spam clicking */
.like-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.like-btn:hover {
    background: #fee;
    color: #e74c3c;
    transform: translateY(-2px);
}

.like-btn.liked {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.like-btn.liked:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* Like count animation */
.like-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.like-count.updating {
    transform: scale(1.2);
    color: #e74c3c;
}

.share-btn:hover {
    background: #e3f2fd;
    color: #3498db;
    transform: translateY(-2px);
}

.heart {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.heart.pulse {
    animation: heartPulse 0.6s ease;
}

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

/* Contact Form Styles */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #6c757d;
    line-height: 1.6;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 1.5rem;
    color: #3498db;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--accent-light);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    max-width: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light mode neon button effect */
body:not(.dark-mode) .submit-btn {
    box-shadow: 
        0 4px 15px var(--shadow-color),
        0 0 20px var(--neon-glow);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Light mode neon button hover effect */
body:not(.dark-mode) .submit-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px var(--shadow-hover),
        0 0 40px var(--neon-glow-strong);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.submit-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: var(--text-muted);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Animation Utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Notification System Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
}

.notification {
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    font-family: 'Merriweather', serif;
    font-size: 14px;
    min-width: 280px;
    max-width: 400px;
    overflow: hidden;
}

.notification.notification-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.notification.notification-error {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.notification.notification-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    line-height: 1.4;
}

/* Dark mode notification adjustments */
body.dark-mode .notification {
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    #notification-container {
        top: 80px; /* Below fixed navigation */
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
        font-size: 14px;
    }
    
    .notification-content {
        padding: 14px 18px;
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 16px;
    }
}

/* Mobile Chrome Optimizations and Responsiveness */
@media (max-width: 768px) {
    /* Enhanced Mobile body styles with proper initial scroll support */
    body {
        padding-top: 70px;
        margin: 1em;
        font-size: 16px; /* Prevent zoom on input focus in Chrome mobile */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
        -webkit-touch-callout: default;
        -webkit-user-select: text;
        user-select: text;
        /* Mobile scrolling optimizations - allow initial scrolling */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        overscroll-behavior-y: contain;
        overscroll-behavior-x: none;
        scroll-behavior: smooth;
        overflow-y: auto;
        overflow-x: hidden;
        /* Performance optimizations */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: scroll-position;
        /* Less aggressive touch optimization */
        -webkit-touch-callout: default;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.1);
    }

    /* Enhanced HTML scrolling with proper overflow */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px; /* More padding for mobile navigation */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        overflow-y: auto;
        overflow-x: hidden;
        /* Performance optimizations */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: scroll-position;
    }

    .nav-container {
        position: fixed;
        top: 0;
        width: 100%;
        height: 70px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(52, 152, 219, 0.1);
        z-index: 1001;
        /* Smooth transform optimization for mobile */
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Touch optimization */
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        /* Smooth transition for auto-hide */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px); /* Dynamic viewport height for mobile Chrome */
        background: var(--nav-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing */
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll optimization */
        overscroll-behavior: contain;
        -webkit-momentum-scrolling: touch;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        padding: 18px 25px;
        font-size: 1.1rem;
        margin: 8px 0;
        min-height: 44px; /* Minimum touch target size for mobile */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transitions */
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
        width: 80%;
        max-width: 300px;
        /* Smooth interaction optimization */
        will-change: background-color, transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Touch feedback */
        -webkit-user-select: none;
        user-select: none;
        cursor: pointer;
        /* Prevent zoom on double tap */
        touch-action: manipulation;
    }

    .nav-link:active {
        background: rgba(52, 152, 219, 0.1);
        transform: scale(0.98) translateZ(0);
        -webkit-transform: scale(0.98) translateZ(0);
    }

    .nav-link:hover {
        background: rgba(52, 152, 219, 0.05);
    }

    .nav-link::after {
        display: none; /* Remove underline animation on mobile for better performance */
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 15px;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
        border-radius: 8px;
        transition: all 0.3s ease;
        /* Better touch feedback */
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
        /* Prevent zoom on double tap */
        touch-action: manipulation;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
        background: rgba(52, 152, 219, 0.1);
    }

    .mobile-menu-toggle:active {
        background: rgba(52, 152, 219, 0.1);
        transform: scale(0.95);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Dark mode toggle mobile styles */
    .dark-mode-toggle {
        width: 40px;
        height: 40px;
        margin-left: 10px;
        font-size: 1rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Header optimizations for mobile Chrome */
    .animated-header {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height */
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile sections */
    section {
        padding: 30px 20px;
        margin: 0;
        scroll-margin-top: 80px; /* Account for fixed nav */
        /* Smooth scrolling optimization */
        will-change: scroll-position;
    }

    #about-me, #blog-posts, #my-hobbies, #youtube-channel, #contact {
        padding: 40px 20px;
        margin-bottom: 20px;
    }

    /* Header improvements for mobile */
    header {
        padding: 100px 20px 60px;
        margin: 0;
    }

    .typewriter {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
        text-align: center;
        word-break: break-word;
        /* Smooth text rendering */
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    .header-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
        text-align: center;
    }

    .header-stats {
        flex-direction: column;
        gap: 25px;
        margin-top: 40px;
        padding: 0 20px;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .stat-number {
        font-size: 2rem;
        color: #2c3e50; /* Ensure visibility in light mode */
    }
    
    /* Dark mode mobile stats */
    body.dark-mode .stat-number {
        color: #ffffff !important;
    }

    /* Search and filter improvements */
    .search-container {
        padding: 0 15px;
    }

    .search-input {
        font-size: 16px; /* Prevent zoom on focus */
        padding: 18px 20px;
        border-radius: 25px;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .filter-tabs {
        justify-content: start;
        overflow-x: auto;
        padding: 15px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
    }

    .filter-tab:active {
        transform: scale(0.98);
    }

    /* Blog post improvements */
    .blog-post {
        padding: 20px 15px;
        margin: 15px 0;
        border-radius: 12px;
    }

    .blog-post h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .post-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .post-actions {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .like-btn, .share-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.2);
        border-radius: 22px;
    }

    .like-btn:active, .share-btn:active {
        transform: scale(0.95);
    }

    /* Contact form improvements */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on focus */
        padding: 18px 15px;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .submit-btn {
        font-size: 16px;
        padding: 14px 20px;
        min-height: 48px;
        border-radius: 24px;
        -webkit-tap-highlight-color: transparent;
        max-width: 180px;
        width: auto;
    }

    .submit-btn:active {
        transform: scale(0.98);
    }

    /* Back to top button mobile optimization */
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
        -webkit-tap-highlight-color: transparent;
        border-radius: 27px;
    }

    #backToTop:active {
        transform: scale(0.95);
    }

    /* Contact items mobile optimization */
    .contact-item {
        padding: 18px 15px;
        border-radius: 12px;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.1);
    }

    .contact-item:active {
        transform: scale(0.98);
    }

    /* YouTube button mobile optimization */
    .youtube-button {
        padding: 18px 25px;
        font-size: 1rem;
        min-height: 54px;
        border-radius: 27px;
        min-width: 200px;
        -webkit-tap-highlight-color: transparent;
    }

    .youtube-button:active {
        transform: scale(0.98);
    }

    /* Performance optimizations for mobile Chrome */
    .floating-shapes {
        display: none; /* Hide complex animations on mobile for better performance */
    }

    .shape {
        display: none;
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        
        .typewriter {
            animation: none;
            border-right: none;
        }
    }
}

/* Additional optimizations for very small screens */
@media (max-width: 480px) {
    body {
        margin: 0.5em;
        font-size: 16px;
    }

    .typewriter {
        font-size: 1.8rem;
    }

    .header-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
        color: #2c3e50; /* Ensure visibility in light mode */
    }
    
    /* Dark mode mobile stats */
    body.dark-mode .stat-number {
        color: #ffffff !important;
    }

    .blog-post {
        padding: 15px 12px;
        margin: 12px 0;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .search-input {
        padding: 15px 18px;
    }

    .filter-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Enhanced Dark Mode Text Visibility */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode p,
body.dark-mode .post-content,
body.dark-mode .blog-post p,
body.dark-mode .contact-details p,
body.dark-mode .about-me p {
    color: #f0f2f5 !important;
    line-height: 1.7;
}

body.dark-mode .nav-link {
    color: #f0f2f5 !important;
}

body.dark-mode .nav-link:hover {
    color: #64b5f6 !important;
}

body.dark-mode .post-meta,
body.dark-mode .date,
body.dark-mode .read-time {
    color: #c7ccd1 !important;
}

body.dark-mode .tag {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6 !important;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

body.dark-mode .developer-credit,
body.dark-mode .header-subtitle {
    color: #ffffff !important;
}

/* Dark mode developer credit enhancement */
body.dark-mode .developer-credit {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(218, 165, 32, 0.15) 100%) !important;
    border: 2px solid rgba(255, 140, 0, 0.4) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3), 0 0 15px rgba(218, 165, 32, 0.2) !important;
    color: #ffffff !important;
}

body.dark-mode .developer-credit strong {
    color: var(--orange-primary) !important;
    text-shadow: 0 2px 8px rgba(255, 140, 0, 0.6) !important;
}

body.dark-mode .developer-credit em {
    color: var(--golden-primary) !important;
    text-shadow: 0 2px 6px rgba(218, 165, 32, 0.7) !important;
}

/* Developer credit hover effects */
.developer-credit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(218, 165, 32, 0.1) 100%);
}

body.dark-mode .developer-credit:hover {
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4), 0 0 20px rgba(218, 165, 32, 0.3) !important;
    border-color: rgba(255, 140, 0, 0.6) !important;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.25) 0%, rgba(218, 165, 32, 0.2) 100%) !important;
}

body.dark-mode .contact-details h3 {
    color: #ffffff !important;
}

body.dark-mode .footer-content p {
    color: #c7ccd1 !important;
}

body.dark-mode .youtube-description {
    color: #c7ccd1 !important;
}

/* Enhanced input visibility in dark mode */
body.dark-mode input,
body.dark-mode textarea {
    color: #f0f2f5 !important;
    background: #242942 !important;
    border-color: #4a4b4c !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #c7ccd1 !important;
    opacity: 0.8;
}

/* Enhanced "Get In Touch" Section in Dark Mode */
body.dark-mode .contact-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%) !important;
    position: relative;
    overflow: hidden;
}

body.dark-mode .contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 90, 155, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

body.dark-mode .contact-section h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

body.dark-mode .contact-section > p {
    color: #c7ccd1 !important;
    position: relative;
    z-index: 2;
}

body.dark-mode .contact-container {
    position: relative;
    z-index: 2;
}

/* Individual Contact Items with Different Color Shades */
body.dark-mode .contact-item:nth-child(1) {
    background: linear-gradient(135deg, #242942 0%, #2d3548 100%) !important;
    border: 1px solid rgba(100, 181, 246, 0.3) !important;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.1) !important;
}

body.dark-mode .contact-item:nth-child(1):hover {
    background: linear-gradient(135deg, #2d3548 0%, #364158 100%) !important;
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.2) !important;
    border-color: rgba(100, 181, 246, 0.5) !important;
}

body.dark-mode .contact-item:nth-child(2) {
    background: linear-gradient(135deg, #2d2438 0%, #3a2d48 100%) !important;
    border: 1px solid rgba(139, 90, 155, 0.3) !important;
    box-shadow: 0 4px 15px rgba(139, 90, 155, 0.1) !important;
}

body.dark-mode .contact-item:nth-child(2):hover {
    background: linear-gradient(135deg, #3a2d48 0%, #473658 100%) !important;
    box-shadow: 0 8px 25px rgba(139, 90, 155, 0.2) !important;
    border-color: rgba(139, 90, 155, 0.5) !important;
}

body.dark-mode .contact-item:nth-child(3) {
    background: linear-gradient(135deg, #233042 0%, #2e3d52 100%) !important;
    border: 1px solid rgba(52, 152, 219, 0.3) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1) !important;
}

body.dark-mode .contact-item:nth-child(3):hover {
    background: linear-gradient(135deg, #2e3d52 0%, #394a62 100%) !important;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2) !important;
    border-color: rgba(52, 152, 219, 0.5) !important;
}

body.dark-mode .contact-item:nth-child(4) {
    background: linear-gradient(135deg, #2a3230 0%, #354240 100%) !important;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.1) !important;
}

body.dark-mode .contact-item:nth-child(4):hover {
    background: linear-gradient(135deg, #354240 0%, #405250 100%) !important;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.2) !important;
    border-color: rgba(46, 204, 113, 0.5) !important;
}

/* Contact Icons with Matching Colors */
body.dark-mode .contact-item:nth-child(1) .contact-icon {
    color: #64b5f6 !important;
    text-shadow: 0 1px 3px rgba(100, 181, 246, 0.5);
}

body.dark-mode .contact-item:nth-child(2) .contact-icon {
    color: #ba68c8 !important;
    text-shadow: 0 1px 3px rgba(186, 104, 200, 0.5);
}

body.dark-mode .contact-item:nth-child(3) .contact-icon {
    color: #42a5f5 !important;
    text-shadow: 0 1px 3px rgba(66, 165, 245, 0.5);
}

body.dark-mode .contact-item:nth-child(4) .contact-icon {
    color: #66bb6a !important;
    text-shadow: 0 1px 3px rgba(102, 187, 106, 0.5);
}

/* Enhanced Contact Details Text Visibility in Dark Mode */
body.dark-mode .contact-details h3 {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .contact-details p {
    color: #f0f2f5 !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ensure icons are clearly visible */
body.dark-mode .contact-icon {
    font-size: 1.8rem !important;
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Contact Form in Dark Mode */
body.dark-mode .contact-form {
    background: linear-gradient(135deg, #242942 0%, #2d3548 100%) !important;
    border: 1px solid rgba(100, 181, 246, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .submit-btn {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%) !important;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3) !important;
}

body.dark-mode .submit-btn:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%) !important;
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4) !important;
    transform: translateY(-2px);
}

/* Enhanced Dark Mode Section Styling - FORCE OVERRIDE */

/* About Me Section Dark Mode - Ultra Specific */
body.dark-mode section#about-me {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%) !important;
    border-left: 5px solid #64b5f6 !important;
    border-right: 2px solid #533a7b !important;
    border-top: 1px solid #8b5a9b !important;
    border-bottom: 2px solid #42a5f5 !important;
    position: relative !important;
    overflow: hidden !important;
    color: #f0f2f5 !important;
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3) !important;
}

body.dark-mode section#about-me::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 30% 70%, rgba(100, 181, 246, 0.08) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

/* Blog Posts Section Dark Mode - Ultra Specific */
body.dark-mode main#blog-posts,
body.dark-mode section#blog-posts {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 30%, #533a7b 70%, #8b5a9b 100%) !important;
    border-left: 5px solid #ba68c8 !important;
    border-right: 2px solid #64b5f6 !important;
    border-top: 1px solid #42a5f5 !important;
    border-bottom: 2px solid #9c27b0 !important;
    position: relative !important;
    overflow: hidden !important;
    color: #f0f2f5 !important;
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.3) !important;
}

body.dark-mode main#blog-posts::before,
body.dark-mode section#blog-posts::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 70% 30%, rgba(186, 104, 200, 0.08) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

/* Hobbies Section Dark Mode - Golden Theme Only */
body.dark-mode section#my-hobbies {
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2d2d2d 25%, 
        #1f1f1f 50%, 
        #2a2a2a 75%, 
        #1a1a1a 100%) !important;
    border-left: 8px solid var(--orange-primary) !important;
    border-right: 4px solid var(--golden-primary) !important;
    border-top: 3px solid var(--orange-secondary) !important;
    border-bottom: 4px solid var(--golden-secondary) !important;
    position: relative !important;
    overflow: hidden !important;
    color: #ffffff !important;
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.6), 
                inset 0 1px 0 rgba(218, 165, 32, 0.3) !important;
    cursor: default;
}

/* Custom cursors for hobbies list items */
body.dark-mode section#my-hobbies ul li,
body:not(.dark-mode) section#my-hobbies ul li {
    cursor: pointer;
}

body.dark-mode section#my-hobbies ul li:hover,
body:not(.dark-mode) section#my-hobbies ul li:hover {
    cursor: pointer;
}

body.dark-mode section#my-hobbies::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(218, 165, 32, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 165, 0, 0.12) 0%, transparent 35%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

body.dark-mode section#my-hobbies ul li {
    color: #ffffff !important;
    background: rgba(255, 140, 0, 0.25) !important;
    padding: 15px 25px !important;
    margin: 12px 0 !important;
    border-radius: 30px !important;
    border-left: 5px solid var(--orange-primary) !important;
    border: 2px solid rgba(255, 140, 0, 0.4) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 
                0 2px 10px rgba(255, 140, 0, 0.3) !important;
    transition: all 0.4s ease !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    z-index: 2 !important;
    backdrop-filter: blur(10px) !important;
}

/* Individual hobby item colors - Golden/Orange Theme Only */
body.dark-mode section#my-hobbies ul li:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%) !important;
    border-left-color: var(--orange-primary) !important;
    border-color: rgba(255, 140, 0, 0.5) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:nth-child(2) {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%) !important;
    border-left-color: var(--golden-primary) !important;
    border-color: rgba(218, 165, 32, 0.5) !important;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3) 0%, rgba(255, 140, 0, 0.2) 100%) !important;
    border-left-color: var(--orange-secondary) !important;
    border-color: rgba(255, 165, 0, 0.5) !important;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(218, 165, 32, 0.2) 100%) !important;
    border-left-color: var(--golden-secondary) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:nth-child(5) {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%) !important;
    border-left-color: var(--orange-primary) !important;
    border-color: rgba(255, 140, 0, 0.5) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:nth-child(6) {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%) !important;
    border-left-color: var(--golden-primary) !important;
    border-color: rgba(218, 165, 32, 0.5) !important;
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:nth-child(7) {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3) 0%, rgba(255, 140, 0, 0.2) 100%) !important;
    border-left-color: var(--orange-secondary) !important;
    border-color: rgba(255, 165, 0, 0.5) !important;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4) !important;
}

body.dark-mode section#my-hobbies ul li:hover {
    color: #ffffff !important;
    transform: translateX(20px) scale(1.05) !important;
    border-left-width: 8px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    filter: brightness(1.2) !important;
}

/* Light Mode Hobbies Section - Golden Theme Only */
body:not(.dark-mode) section#my-hobbies {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #fdfbf7 25%, 
        #faf6f0 50%, 
        #f8f4ec 75%, 
        #ffffff 100%) !important;
    border-left: 6px solid var(--orange-primary) !important;
    border-right: 3px solid var(--golden-primary) !important;
    border-top: 2px solid var(--orange-secondary) !important;
    border-bottom: 3px solid var(--golden-secondary) !important;
    position: relative !important;
    overflow: hidden !important;
    color: var(--text-color) !important;
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.2), 
                inset 0 1px 0 rgba(218, 165, 32, 0.1) !important;
}

body:not(.dark-mode) section#my-hobbies::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 140, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(218, 165, 32, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 165, 0, 0.03) 0%, transparent 35%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

body:not(.dark-mode) section#my-hobbies ul li {
    color: var(--text-heading) !important;
    background: rgba(255, 140, 0, 0.08) !important;
    padding: 12px 20px !important;
    margin: 10px 0 !important;
    border-radius: 25px !important;
    border-left: 4px solid var(--orange-primary) !important;
    border: 2px solid rgba(255, 140, 0, 0.2) !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1), 
                0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Light mode individual hobby item colors - Golden/Orange Theme Only */
body:not(.dark-mode) section#my-hobbies ul li:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%) !important;
    border-left-color: var(--orange-primary) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:nth-child(2) {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    border-left-color: var(--golden-primary) !important;
    border-color: rgba(218, 165, 32, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%) !important;
    border-left-color: var(--orange-secondary) !important;
    border-color: rgba(255, 165, 0, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(218, 165, 32, 0.05) 100%) !important;
    border-left-color: var(--golden-secondary) !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:nth-child(5) {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%) !important;
    border-left-color: var(--orange-primary) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:nth-child(6) {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    border-left-color: var(--golden-primary) !important;
    border-color: rgba(218, 165, 32, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:nth-child(7) {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%) !important;
    border-left-color: var(--orange-secondary) !important;
    border-color: rgba(255, 165, 0, 0.3) !important;
}

body:not(.dark-mode) section#my-hobbies ul li:hover {
    color: var(--text-heading) !important;
    transform: translateX(15px) scale(1.03) !important;
    border-left-width: 6px !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.2), 
                0 3px 12px rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 140, 0, 0.15) !important;
}

/* Enhanced YouTube Section Dark Mode - Ultra Specific */
body.dark-mode section#youtube-channel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 70%, #533a7b 100%) !important;
    border-left: 5px solid #ff4444 !important;
    border-right: 2px solid #cc0000 !important;
    border-top: 1px solid #ff6666 !important;
    border-bottom: 2px solid #990000 !important;
    position: relative !important;
    overflow: hidden !important;
    color: #f0f2f5 !important;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.3) !important;
}

body.dark-mode section#youtube-channel::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 60% 40%, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(204, 0, 0, 0.05) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

body.dark-mode section#youtube-channel .youtube-button {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4) !important;
    border: 1px solid rgba(255, 102, 102, 0.3) !important;
    color: #ffffff !important;
}

body.dark-mode section#youtube-channel .youtube-button:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff1a1a 100%) !important;
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.6) !important;
    border-color: rgba(255, 102, 102, 0.5) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

body.dark-mode section#youtube-channel .youtube-description {
    color: #f0f2f5 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Enhanced Section Headers in Dark Mode - Ultra Specific */
body.dark-mode section#about-me h2 {
    color: #64b5f6 !important;
    text-shadow: 0 2px 4px rgba(100, 181, 246, 0.5) !important;
    position: relative !important;
    z-index: 2 !important;
}

body.dark-mode main#blog-posts h2,
body.dark-mode section#blog-posts h2 {
    color: #ba68c8 !important;
    text-shadow: 0 2px 4px rgba(186, 104, 200, 0.5) !important;
    position: relative !important;
    z-index: 2 !important;
}

body.dark-mode section#my-hobbies h2 {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 25%, #81c784 50%, #a5d6a7 75%, #c8e6c9 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    position: relative !important;
    z-index: 2 !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.6)) !important;
}

body.dark-mode section#my-hobbies h2::before {
    content: '🎨 ' !important;
    position: absolute !important;
    left: -50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 2rem !important;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.8)) !important;
}

body.dark-mode section#my-hobbies h2::after {
    content: ' 🎯' !important;
    position: absolute !important;
    right: -50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 2rem !important;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.8)) !important;
}

/* Enhanced hobbies section text visibility */
body.dark-mode section#my-hobbies p {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 2 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    padding: 15px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

body.dark-mode section#my-hobbies ul {
    position: relative !important;
    z-index: 2 !important;
    padding: 20px 0 !important;
}

body.dark-mode section#youtube-channel h2 {
    color: #ff4444 !important;
    text-shadow: 0 2px 4px rgba(255, 68, 68, 0.5) !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Enhanced Content in Dark Mode */
body.dark-mode #about-me p,
body.dark-mode #blog-posts p,
body.dark-mode #my-hobbies p,
body.dark-mode #youtube-channel p {
    position: relative;
    z-index: 2;
}

/* Enhanced Image with Rainbow Border in Dark Mode */
body.dark-mode #my-hobbies img {
    border: 6px solid transparent !important;
    background: linear-gradient(45deg, #ff5722, #9c27b0, #2196f3, #4caf50, #ffc107, #e91e63, #00bcd4) !important;
    background-clip: padding-box !important;
    border-radius: 50% !important;
    box-shadow: 
        0 0 30px rgba(76, 175, 80, 0.6),
        0 0 60px rgba(156, 39, 176, 0.4),
        0 0 90px rgba(33, 150, 243, 0.3) !important;
    filter: brightness(1.1) contrast(1.2) saturate(1.1) !important;
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.5s ease !important;
}

body.dark-mode #my-hobbies img::before {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    left: -6px !important;
    right: -6px !important;
    bottom: -6px !important;
    background: linear-gradient(45deg, #ff5722, #9c27b0, #2196f3, #4caf50, #ffc107, #e91e63, #00bcd4) !important;
    border-radius: 50% !important;
    z-index: -1 !important;
    animation: rainbow-rotate 3s linear infinite !important;
}

body.dark-mode #my-hobbies img:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 
        0 0 40px rgba(76, 175, 80, 0.8),
        0 0 80px rgba(156, 39, 176, 0.6),
        0 0 120px rgba(33, 150, 243, 0.4) !important;
    filter: brightness(1.2) contrast(1.3) saturate(1.2) !important;
}

@keyframes rainbow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FUTURISTIC ENHANCEMENTS */

/* Floating UI Panels */
.floating-panel {
    position: fixed;
    background: rgba(10, 10, 15, 0.85);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.floating-panel:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 60px rgba(0, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Subtle text highlight alternative */
.subtle-highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Futuristic List Items Enhancement */
section ul li {
    position: relative;
    padding-left: 35px;
    margin: 15px 0;
}

section ul li::before {
    content: '▶';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    font-size: 1em;
    animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { 
        transform: translateY(-50%) scale(1); 
        color: var(--neon-blue); 
        text-shadow: 0 0 10px var(--neon-blue);
    }
    50% { 
        transform: translateY(-50%) scale(1.3); 
        color: var(--neon-green); 
        text-shadow: 0 0 15px var(--neon-green);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--cyber-dark);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-blue);
    border: 2px solid var(--cyber-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-pink));
    box-shadow: 0 0 20px var(--neon-green);
}

/* Futuristic Input Fields Enhancement */
input[type="text"], 
input[type="email"], 
textarea,
.contact-form input,
.contact-form textarea {
    background: rgba(10, 10, 15, 0.9) !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    padding: 18px 25px !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 1.1em !important;
    transition: all 0.4s ease !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--neon-blue) !important;
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.4) !important;
    outline: none !important;
    transform: scale(1.03) !important;
    background: rgba(0, 255, 255, 0.05) !important;
}

/* Button Styling */
button, 
.btn, 
input[type="submit"],
.submit-btn,
.youtube-button {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    padding: 15px 30px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.3) !important;
}

button::before, 
.btn::before, 
input[type="submit"]::before,
.submit-btn::before,
.youtube-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

button:hover, 
.btn:hover, 
input[type="submit"]:hover,
.submit-btn:hover,
.youtube-button:hover {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-pink)) !important;
    box-shadow: 
        0 0 30px rgba(57, 255, 20, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-4px) scale(1.08) !important;
    border-color: var(--neon-green) !important;
}

button:hover::before, 
.btn:hover::before, 
input[type="submit"]:hover::before,
.submit-btn:hover::before,
.youtube-button:hover::before {
    left: 100%;
}

/* Cyberpunk Grid Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -10;
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Enhanced Section Hover Effects */
section:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 
        0 20px 50px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

section:hover::before {
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        transparent 25%, 
        rgba(138, 43, 226, 0.08) 50%, 
        transparent 75%, 
        rgba(57, 255, 20, 0.08) 100%);
}

/* Glitch Effect for Headers (Optional) */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

header h1:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    section {
        margin: 1.5em 0.5em;
        padding: 2em 1.5em;
        border-radius: 20px;
    }
    
    button, .btn, input[type="submit"], .submit-btn {
        padding: 12px 20px !important;
        font-size: 0.9em !important;
        letter-spacing: 1px !important;
    }
    
    body::after {
        background-size: 40px 40px;
    }
    
    @keyframes grid-move {
        0% { transform: translate(0, 0); }
        100% { transform: translate(40px, 40px); }
    }
}

/* ===== ULTRA-FUTURISTIC SCI-FI ELEMENTS ===== */

/* Quantum Loading Rings */
body::before {
    content: '';
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--neon-blue);
    border-right: 3px solid var(--neon-purple);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    animation: quantum-spin 2s linear infinite;
}

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

/* Holographic Status Bar */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-blue) 0%, 
        var(--neon-purple) 25%, 
        var(--neon-green) 50%, 
        var(--neon-pink) 75%, 
        var(--neon-blue) 100%);
    z-index: 10000;
    animation: status-pulse 3s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.8; height: 3px; }
    50% { opacity: 1; height: 5px; }
}

/* Typography */
h1, h2, h3 {
    position: relative;
    font-weight: 800;
}

h1::before, h2::before, h3::before {
    content: '[SYSTEM ACTIVE]';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.4em;
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    animation: system-blink 2s infinite;
    opacity: 0.7;
}

h2::before { content: '[MODULE LOADED]'; }
h3::before { content: '[DATA READY]'; }

@keyframes system-blink {
    0%, 50% { opacity: 0.7; }
    25%, 75% { opacity: 1; }
}

/* Floating Data Connections */
section {
    position: relative;
}

section:nth-child(odd)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--neon-blue), transparent);
    animation: data-flow 3s ease-in-out infinite;
}

section:nth-child(even)::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--neon-purple), transparent);
    animation: data-flow 3s ease-in-out infinite reverse;
}

@keyframes data-flow {
    0%, 100% { 
        opacity: 0.3; 
        transform: scaleY(0.5); 
    }
    50% { 
        opacity: 1; 
        transform: scaleY(1.2); 
    }
}

/* Terminal-like Text Selection */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* ===== NEW SECTIONS STYLING ===== */

/* Skills & Technologies Section */
.skills-section {
    background: var(--card-bg);
    padding: 60px 40px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.skill-category h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.skill-name {
    font-weight: 600;
    color: var(--text-color);
    min-width: 100px;
}

.skill-level {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 15px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 4px;
    transition: width 2s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: skill-shine 2s ease-in-out infinite;
}

@keyframes skill-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-status.learning {
    background: rgba(255, 193, 7, 0.2);
    color: #ff8f00;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.skill-status.beginner {
    background: rgba(33, 150, 243, 0.2);
    color: #1976d2;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.skill-status.intermediate {
    background: rgba(76, 175, 80, 0.2);
    color: #388e3c;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.skill-status.exploring {
    background: rgba(156, 39, 176, 0.2);
    color: #7b1fa2;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

/* Projects Section */
.projects-section {
    background: var(--card-bg);
    padding: 60px 40px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--success-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.project-card.coming-soon {
    opacity: 0.8;
    background: var(--bg-tertiary);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.8;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--accent-light);
    color: var(--button-text);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.project-link.live {
    background: var(--success-color);
    color: white;
}

.project-link.code {
    background: var(--accent-color);
    color: white;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.project-status {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.planning {
    background: rgba(255, 193, 7, 0.2);
    color: #ff8f00;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.idea {
    background: rgba(156, 39, 176, 0.2);
    color: #7b1fa2;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

/* Journey Timeline Section */
.journey-section {
    background: var(--card-bg);
    padding: 60px 40px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--warning-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--warning-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-item.upcoming {
    opacity: 0.7;
}

.timeline-dot {
    position: absolute;
    left: 18px;
    top: 20px;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border: 4px solid var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 2;
}

.timeline-item.upcoming .timeline-dot {
    background: var(--warning-color);
    box-shadow: 0 0 15px var(--warning-color);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--warning-color); }
    50% { transform: scale(1.2); box-shadow: 0 0 25px var(--warning-color); }
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--bg-secondary);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: var(--accent-light);
    color: var(--button-text);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark Mode Enhancements for New Sections */
body.dark-mode .skills-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-left-color: #64b5f6;
}

body.dark-mode .projects-section {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #533a7b 100%);
    border-left-color: #4caf50;
}

body.dark-mode .journey-section {
    background: linear-gradient(135deg, #533a7b 0%, #8b5a9b 50%, #1a1a2e 100%);
    border-left-color: #ffc107;
}

body.dark-mode .skill-category,
body.dark-mode .project-card,
body.dark-mode .timeline-content {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(100, 181, 246, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .skill-item {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(100, 181, 246, 0.15);
}

body.dark-mode .skill-item:hover {
    background: rgba(71, 85, 105, 0.8);
}

/* Mobile Responsiveness for New Sections */
@media (max-width: 768px) {
    .skills-section,
    .projects-section,
    .journey-section {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category,
    .project-card {
        padding: 20px;
    }
    
    .timeline {
        margin: 20px auto 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        margin-bottom: 40px;
    }
    
    .timeline-dot {
        left: 8px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-content::before {
        left: -8px;
        border-width: 8px;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skill-level {
        width: 100%;
        margin: 0;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: var(--card-bg);
    padding: 60px 40px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-color);
    text-align: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.newsletter-content {
    text-align: left;
}

.newsletter-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.benefits-list li {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list li::before {
    content: none;
}

.newsletter-form {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-email {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.newsletter-email:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.newsletter-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.newsletter-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

.newsletter-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark Mode Newsletter Section */
body.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #0f3460 0%, #533a7b 50%, #8b5a9b 100%);
    border-left-color: #64b5f6;
}

body.dark-mode .newsletter-form,
body.dark-mode .stat-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(100, 181, 246, 0.2);
}

/* Mobile Newsletter Section */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 20px;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .newsletter-content {
        text-align: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-email {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .newsletter-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-card {
        flex: 1;
        padding: 15px 10px;
    }
    
    .stat-card .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.8rem;
    }
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Loading State */
@keyframes quantum-load {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
        transform: scale(1);
    }
    70% { 
        box-shadow: 0 0 0 20px rgba(0, 255, 255, 0);
        transform: scale(1.1);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
        transform: scale(1);
    }
}

/* Enhance existing elements with quantum effects */
button:active, .btn:active, input[type="submit"]:active {
    animation: quantum-load 0.6s ease-out;
}

/* Neural Network Connecting Lines */
body {
    position: relative;
}

body > *:not(script):not(style) {
    position: relative;
    z-index: 10;
}

/* Sci-Fi Cursor */
* {
    cursor: none;
}

body {
    cursor: none;
}

html {
    cursor: none;
}

/* Custom Futuristic Cursor */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    animation: cursor-pulse 2s ease-in-out infinite;
}

@keyframes cursor-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}
