:root {
    --container-max-width: 100%;
    --container-side-padding: 20px;
    --accent-color: #f1b61f;
    --accent-glow: rgba(241, 182, 31, 0.4);
    --bg-primary: #0a0a0c;
    --bg-secondary: #1a1a1e;
    --text-primary: #ffffff;
    --text-secondary: #dadada;
    --blur-strength: 10px;
    --transition-speed: 0.3s;
    
    /* Space background variables */
    --star-size-tiny: 1px;
    --star-size-small: 2px;
    --star-size-medium: 3px;
    --star-size-large: 4px;
    --nebula-color-1: rgba(241, 182, 31, 0.07);
    --nebula-color-2: rgba(180, 120, 10, 0.05);
    --nebula-color-3: rgba(90, 60, 10, 0.08);
}

@media (max-width: 800px) {
    :root {
        --container-side-padding: 10px;
    }
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { margin: 0; overflow-x: hidden; }

/* Typography */
html, body, button, input, a { font-family: 'Poppins', 'Roboto', sans-serif; font-weight: 400; color: var(--text-primary); }

body { 
    font-size: 18px; 
    line-height: 150%; 
    background: var(--bg-primary);
    position: relative;
}

/* Space Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0f0f12 0%, #050507 100%);
    z-index: -10;
}

@keyframes stars-move-1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

@keyframes stars-move-2 {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(0); }
}

@keyframes nebula-drift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    50% { opacity: 0.7; }
    100% { transform: translate(5vw, 5vh) rotate(5deg); opacity: 0.5; }
}

@keyframes nebula-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.5; }
}

.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -5;
    pointer-events: none;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    background-image: 
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 20% 30%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 40% 70%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 60% 20%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 80% 50%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 15% 60%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 35% 15%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 55% 85%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 75% 35%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 90% 95%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 25% 45%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 45% 95%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 65% 10%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 85% 65%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 10% 10%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 30% 80%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 50% 40%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 70% 75%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 90% 25%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 22% 22%, var(--accent-color), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 44% 66%, var(--accent-color), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 77% 33%, var(--accent-color), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 88% 88%, var(--accent-color), rgba(0,0,0,0));
    background-size: 100% 100%;
    background-repeat: repeat;
    animation: stars-move-1 120s linear infinite;
}

.stars-container-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    background-image: 
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 10% 10%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 30% 50%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 50% 90%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 70% 30%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-tiny) var(--star-size-tiny) at 90% 70%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 20% 80%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 40% 40%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 60% 60%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 80% 20%, white, rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 15% 25%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 35% 65%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 55% 25%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 75% 85%, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 5% 50%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 25% 5%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 45% 55%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-large) var(--star-size-large) at 65% 15%, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 11% 55%, var(--accent-color), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-small) var(--star-size-small) at 62% 38%, var(--accent-color), rgba(0,0,0,0)),
        radial-gradient(var(--star-size-medium) var(--star-size-medium) at 85% 15%, var(--accent-color), rgba(0,0,0,0));
    background-size: 100% 100%;
    background-repeat: repeat;
    animation: stars-move-2 180s linear infinite;
}

.nebula-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    mix-blend-mode: screen;
}

.nebula-1 {
    width: 80vh;
    height: 80vh;
    background: var(--nebula-color-1);
    top: -20vh;
    right: -20vh;
    animation: nebula-drift 50s ease-in-out infinite alternate;
}

.nebula-2 {
    width: 60vh;
    height: 70vh;
    background: var(--nebula-color-2);
    bottom: -20vh;
    left: 20vw;
    animation: nebula-pulse 80s ease-in-out infinite;
}

.nebula-3 {
    width: 40vw;
    height: 50vh;
    background: var(--nebula-color-3);
    top: 30vh;
    left: -10vw;
    animation: nebula-drift 70s ease-in-out infinite alternate-reverse;
}

.nebula-4 {
    width: 30vw;
    height: 40vh;
    background: rgba(241, 182, 31, 0.06);
    top: 20vh;
    right: 10vw;
    animation: nebula-pulse 60s ease-in-out infinite reverse;
}

.bright-star {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7),
                0 0 40px 10px rgba(255, 255, 255, 0.5),
                0 0 60px 15px rgba(255, 255, 255, 0.3);
}

.bright-star-1 {
    top: 25%;
    left: 80%;
    animation: twinkle 4s infinite alternate;
    background: var(--accent-color);
    box-shadow: 0 0 20px 5px rgba(241, 182, 31, 0.7),
                0 0 40px 10px rgba(241, 182, 31, 0.5),
                0 0 60px 15px rgba(241, 182, 31, 0.3);
}

.bright-star-2 {
    top: 15%;
    left: 15%;
    animation: twinkle 7s infinite alternate-reverse;
}

.bright-star-3 {
    top: 70%;
    left: 65%;
    animation: twinkle 6s infinite alternate;
    background: var(--accent-color);
    box-shadow: 0 0 20px 5px rgba(241, 182, 31, 0.7),
                0 0 40px 10px rgba(241, 182, 31, 0.5),
                0 0 60px 15px rgba(241, 182, 31, 0.3);
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Warp speed effect - subtle light streaks */
.warp-speed {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.warp-line {
    position: absolute;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
    height: 1px;
    transform-style: preserve-3d;
    animation: warp-speed 6s linear infinite;
    opacity: 0;
}

/* Add some golden warp lines */
.warp-line:nth-child(3n) {
    background: linear-gradient(to right, rgba(241, 182, 31, 0), rgba(241, 182, 31, 0.6), rgba(241, 182, 31, 0));
}

@keyframes warp-speed {
    0% {
        transform: translateZ(-1000px);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateZ(500px);
        opacity: 0;
    }
}

h1, h2, h3, h4, h5, h6, p { line-height: 130%; margin: 0 0 20px 0; }

h1 { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.5px; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 500; }

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

/* Text Formatting */
.text { color: var(--text-secondary); }
.text, .text :is(p, ul, ol) { font-weight: 400; font-size: 18px; line-height: 150%; }
.text :is(p, ul, ol):not(:last-child) { margin-bottom: 24px; }
.text a { font-weight: normal; color: var(--accent-color); text-decoration: none; position: relative; }
.text a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background-color: var(--accent-color); transform: scaleX(0); transform-origin: right; transition: transform var(--transition-speed); }
.text a:hover { text-decoration: none; }
.text a:hover::after { transform: scaleX(1); transform-origin: left; }
.text strong { font-weight: 600; color: var(--text-primary); }
.text img {max-width: 100%; height: auto;}

.text ul, .text ol { padding-left: 20px; }
.text blockquote { border-left: 3px solid var(--accent-color); padding-left: 20px; margin-left: 0; font-style: italic; color: var(--text-secondary); }

/* Container */
.container, .Container { max-width: var(--container-max-width); padding-left: var(--container-side-padding); padding-right: var(--container-side-padding); margin-left: auto; margin-right: auto; }

/* Selection styling */
::selection { background-color: rgba(241, 182, 31, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(241, 182, 31, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(241, 182, 31, 0.4); }

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

.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUp 0.5s ease forwards; }

header {height: 100px;}
footer {height: 100px;}pre {position: relative; tab-size: 4;}
pre canvas {position: absolute; left: 0; top: 0; width: 100%; height: 100%;}

pre code {
	display: block;
	padding: 10px var(--side-padding);
	/*background: #111; /* deep black */
	color: #eee;      /* default code color */
	font-family: 'Cascadia Mono', 'Fira Code', 'Courier New', monospace;
	font-size: 16px;
	line-height: 175%;
	overflow-x: auto;
	position: relative;
	text-shadow: black 1px 1px 10px ;
}

/* Optional: subtle top-left marker bar */
pre::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 3px;
	background: var(--accent-color); /* orange gradient */
	z-index: 1;
}

@media (max-width: 800px) {

	pre::before {width: 2px;}
}

/* Highlight colors */
pre code .keyword {
	color: #3DD17C; /* warm amber */
}

pre code .variable {
	color: #F1B61F; /* light blue */
}

pre code .string {
	color: #E5E5E5; /* soft green */
}

pre code .comment {
	color: #D548FF; /* muted gray */
	/*font-style: italic;*/
}

pre code .number {
	color: #f87171; /* soft red */
}

pre code .punctuation {
	color: #9A9A9A; /* light gray (neutral) */
}

/* Optional: smooth fade-in if you want to animate it */
pre code span {
	transition: color 0.2s ease;
}
body { background: var(--bg-primary); position: relative; transition: background-color var(--transition-speed); }

/* Add a class to disable animations when needed */
body.paused * { animation-play-state: paused !important; transition: none !important; }

/* Use regular background-color with opacity instead of backdrop-filter where possible */
.container { background: rgba(10, 10, 12, 0.7); border-radius: 8px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); transition: all var(--transition-speed); }
.container:hover { box-shadow: 0 0 25px rgba(0, 0, 0, 0.4), 0 0 5px var(--accent-glow); }

  @media (min-width: 768px) {
      .container { backdrop-filter: blur(var(--blur-strength));
        -webkit-backdrop-filter: blur(var(--blur-strength)); background: rgba(10, 10, 12, 0.5); }
    }

header, footer { background: rgba(10, 10, 12, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
footer { border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: none; }

@media (min-width: 768px) {
    header, footer { backdrop-filter: blur(var(--blur-strength));
      -webkit-backdrop-filter: blur(var(--blur-strength));
      background: rgba(10, 10, 12, 0.7); }
  }

main { padding: 30px 0; }

.ArticlesList article { transition: transform var(--transition-speed); display: grid; grid-template-columns: 1fr; gap: 20px; padding: 20px; background: rgba(20, 20, 25, 0.7); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; overflow: hidden; }
.ArticlesList article:hover { border-color: rgba(241, 182, 31, 0.3); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 5px var(--accent-glow); }

.ArticlesList article {padding: 0;}

.ArticlesList .image {aspect-ratio: 16 / 9; width: 100%;}
.ArticlesList .image > div {margin: 20px; height: calc(100% - 40px); width: calc(100% - 40px); transition-property: margin, height, width; transition-duration: var(--transition-speed); overflow: hidden; position: relative; border-radius: 12px;}
.ArticlesList .image > div > div {width: calc(100% + 40px); height: calc(100% + 40px); position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); transition: all var(--transition-speed); display: flex;}
.ArticlesList .image img {object-fit: cover; width: 100%; height: 100%; object-position: center; display: inline;}
.ArticlesList article:hover .image > div > div {width: 100%; height: 100%;}
.ArticlesList article:hover .image > div {margin: 0; height: 100%; width: 100%;}

.image { border-radius: 6px; overflow: hidden; position: relative; }
.image img { width: 100%; height: auto; transition: transform 0.5s ease; }

h1, h2, h3 { color: var(--text-primary); position: relative; }
h2 { font-size: 1.6rem; margin-bottom: 10px; }
h2::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 40px; height: 2px; background: var(--accent-color); transition: width var(--transition-speed); }
article:hover h2::after { width: 60px; }

/* Improved heading animations that preserve layout */
.animate-heading {
  opacity: 0;
  position: relative;
  /* Important: Do not use transform here to avoid layout shifts */
}

.animate-heading-visible {
  animation: fadeInHeading 0.7s forwards;
}

@keyframes fadeInHeading {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Special animation for hero section h1 only */
.hero .animate-heading {
  clip-path: inset(0 100% 0 0);
  display: inline-block;
}

.hero .animate-heading-visible {
  animation: revealText 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealText {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

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

a.btn { display: inline-block; padding: 8px 16px; background: rgba(241, 182, 31, 0.1); color: var(--accent-color); border: 1px solid var(--accent-color); border-radius: 4px; transition: all var(--transition-speed); }
a.btn:hover { background: rgba(241, 182, 31, 0.2); box-shadow: 0 0 10px var(--accent-glow); text-decoration: none; }

@media (min-width: 768px) { article { grid-template-columns: 200px 1fr; } }

.author-info { display: flex; align-items: center; margin-top: 15px; color: var(--text-secondary); font-size: 0.9rem; }
.author-info .avatar { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; border: 1px solid var(--accent-color); }

/* Custom cursor styles - improved to ensure always visible and with enhanced hover effects */
@media (pointer: fine) {
  /* Hide default cursor on ALL elements */
  html, body, * {
    cursor: none !important;
  }

  /* Ensure even interactive elements don't show the system cursor */
  a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
  }

  /* Custom cursor container */
  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
  }

  /* Custom cursor dot (center) */
  .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.1s ease, height 0.1s ease;
  }

  /* Custom cursor outline (ring) */
  .cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
  }

  /* Enhanced interactive hover effects */
  .cursor-outline.hover {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(241, 182, 31, 0.15);
    box-shadow: 0 0 15px rgba(241, 182, 31, 0.5);
    border-color: var(--accent-color);
    backdrop-filter: blur(2px);
  }

  /* Dot enlarges slightly on hover as well */
  .cursor-dot.hover {
    width: 8px !important;
    height: 8px !important;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(241, 182, 31, 0.8);
  }

  /* Click effect */
  .cursor-dot.clicking {
    transform: translate(-50%, -50%) scale(0.7);
  }

  .cursor-outline.clicking {
    transform: translate(-50%, -50%) scale(0.9);
  }

  /* Pulse animation for hover effect */
  @keyframes cursor-pulse {
    0% { box-shadow: 0 0 0 0 rgba(241, 182, 31, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(241, 182, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 182, 31, 0); }
  }

  .cursor-outline.hover {
    animation: cursor-pulse 1.5s infinite;
  }
}@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-ExtraLight.ttf);
    font-weight: 100;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-ExtraLightItalic.ttf);
    font-weight: 100;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-Light.ttf);
    font-weight: 200;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-LightItalic.ttf);
    font-weight: 200;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-Thin.ttf);
    font-weight: 300;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-ThinItalic.ttf);
    font-weight: 300;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-Regular.ttf);
    font-weight: normal;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-RegularItalic.ttf);
    font-weight: normal;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-MediumItalic.ttf);
    font-weight: 500;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-SemiBold.ttf);
    font-weight: 550;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-SemiBoldItalic.ttf);
    font-weight: 550;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-Bold.ttf);
    font-weight: bold;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-BoldItalic.ttf);
    font-weight: bold;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-ExtraBold.ttf);
    font-weight: 800;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-ExtraBoldItalic.ttf);
    font-weight: 800;
	font-style: italic;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-Black.ttf);
    font-weight: 900;
}
@font-face {
    font-family: Poppins;
    src: url(/Grace/Projects/Tom/Design/Fonts/Poppins-BlackItalic.ttf);
    font-weight: 900;
	font-style: italic;
}/* Layout Styles */
:root { --header-height: 80px; --footer-height: 80px; }

body { display: flex; flex-direction: column; min-height: 100vh; }

main { flex: 1; padding-top: 40px; padding-bottom: 60px; }

/* Header */
header { height: var(--header-height); display: flex; align-items: center; position: sticky; top: 0; z-index: 100; transition: all var(--transition-speed); }
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px;}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 1.6rem; font-weight: 600; letter-spacing: 1px; background: linear-gradient(90deg, #fff, var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; }
.logo-text::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-color), transparent); }
.accent { color: var(--accent-color); -webkit-text-fill-color: var(--accent-color); }

nav ul { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.nav-link { color: var(--text-secondary); position: relative; padding: 5px 0; transition: color var(--transition-speed); }
.nav-link:hover { color: var(--text-primary); text-decoration: none; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background-color: var(--accent-color); transition: all var(--transition-speed); transform: translateX(-50%); }
.nav-link:hover::after { width: 100%; }

/* Footer */
footer {display: flex; align-items: center; }
.footer-content { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 25px; padding: 15px;}
.footer-left, .footer-right { display: flex; flex-direction: column; }
.copyright { color: var(--text-secondary); font-size: 0.9rem; margin-top: 10px; margin-bottom: 0;}

/* Hero Section */
.hero { text-align: center; margin-bottom: 60px; position: relative; padding: 40px 20px; }
.hero::before { content: ''; position: absolute; top: 50%; left: 50%; width: 200px; height: 200px; background: var(--accent-glow); filter: blur(60px); opacity: 0.2; z-index: -1; transform: translate(-50%, -50%); }
.hero h1 { font-size: 3rem; margin-bottom: 20px; background: linear-gradient(90deg, #fff, var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-secondary); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

/* Section Titles */
.section-title { font-size: 1.8rem; font-weight: 600; margin: 40px 0 30px; position: relative; display: inline-block; background: linear-gradient(90deg, #fff 60%, var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px; background: var(--accent-color); }

/* Featured Article - Enhanced Styling with Cyberpunk Accents */
.featured-article-wrapper {
  margin-bottom: 80px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}


.featured-article {
  display: block;
  transition: all var(--transition-speed);
  position: relative;
  z-index: 1;
  height: 100%;
}
.featured-article article {transition: box-shadow var(--transition-speed), border var(--transition-speed);}

.featured-article:hover {
  text-decoration: none;
}

/* Cyberpunk-inspired accents */

.featured-article::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 15px;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color));
  z-index: 2;
}

.featured-article article {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(241, 182, 31, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  height: 100%;
}

.featured-article:hover article {
  border-color: rgba(241, 182, 31, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-glow);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
  z-index: 2;
}

.featured-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(241, 182, 31, 0.1);
}

.featured-content .text {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #d7d7d7;
}

.featured-article .author-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-article .author-info .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(241, 182, 31, 0.3), rgba(241, 182, 31, 0.1));
  border: 1px solid rgba(241, 182, 31, 0.3);
}

.featured-article .read-more {
  margin-top: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.featured-article .read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(241, 182, 31, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.featured-article:hover .read-more {
  background: rgba(241, 182, 31, 0.15);
  border-color: rgba(241, 182, 31, 0.3);
  box-shadow: 0 0 20px rgba(241, 182, 31, 0.2);
  padding-left: 25px;
}

.featured-article:hover .read-more::before {
  transform: translateX(100%);
}

.featured-article .arrow {
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.featured-article:hover .arrow {
  transform: translateX(8px);
}

.featured-article .featured-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  grid-row: span 1;
}

.featured-article .featured-image > div {margin: 20px; height: calc(100% - 40px); width: calc(100% - 40px); transition-property: margin, height, width; transition-duration: var(--transition-speed); overflow: hidden; position: relative; border-radius: 12px;}
.featured-article .featured-image > div > div {width: calc(100% + 40px); height: calc(100% + 40px); position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); transition: all var(--transition-speed); display: flex;}
.featured-article .featured-image img {object-fit: cover; width: 100%; height: 100%; object-position: center; display: inline;}
.featured-article:hover .featured-image > div > div {width: 100%; height: 100%;}
.featured-article:hover .featured-image > div {margin: 0; height: 100%; width: 100%;}

  @media (min-width: 768px) {
      .featured-article article {
        backdrop-filter: blur(var(--blur-strength));
        -webkit-backdrop-filter: blur(var(--blur-strength));
        background: rgba(10, 10, 15, 0.5);
      }
  }

@media (min-width: 768px) {
  .featured-article article {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 400px;
  }

  .featured-article .featured-content {
    overflow: hidden;
    max-width: 500px;
    padding: 20px;
  }

  .featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .featured-article .featured-image {
    grid-row: 1;
    grid-column: 2;
  }

  .featured-article .featured-image::before {
    background: linear-gradient(to left, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.9) 100%);
  }
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-link {
  display: block;
  height: 100%;
  transition: all var(--transition-speed);
  position: relative;
  border-radius: 12px;
}

.article-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 3;
}

.article-link:hover::before {
  transform: scaleX(1);
}

.articles-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(241, 182, 31, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-speed);
}

  @media (min-width: 768px) {
      .articles-grid article {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: rgba(15, 15, 20, 0.5);
      }
  }

.article-link:hover article {
  border-color: rgba(241, 182, 31, 0.3);
}

.articles-grid .image {
  overflow: hidden;
  position: relative;
}

.articles-grid .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.articles-grid article .content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px;
  position: relative;
  z-index: 2;
}

.articles-grid h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.article-link:hover h2 {
  color: var(--accent-color);
}

.articles-grid .text {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-grid .author-info {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-info .avatar {overflow: hidden;}
.author-info .avatar img {width: 100%; height: 100%; object-fit: cover;}
.articles-grid .author-info .avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(241, 182, 31, 0.3), rgba(241, 182, 31, 0.1));
  border: 1px solid rgba(241, 182, 31, 0.3);
}

.articles-grid .read-more {

  margin-top: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.articles-grid .read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(241, 182, 31, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.articles-grid article:hover .read-more {    background: rgba(241, 182, 31, 0.15);
  border-color: rgba(241, 182, 31, 0.3);
  box-shadow: 0 0 20px rgba(241, 182, 31, 0.2);
  padding-left: 25px;}
.articles-grid article:hover .read-more::before {    transform: translateX(100%);}

.articles-grid .arrow {
  margin-left: 5px;
  transition: transform var(--transition-speed);
}

.article-link:hover .arrow {
  transform: translateX(5px);
}

/* Article Detail */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
}

.article-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-detail .author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.article-detail .author-info .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(241, 182, 31, 0.3), rgba(241, 182, 31, 0.1));
  border: 1px solid rgba(241, 182, 31, 0.3);
}

.article-detail .featured-image {
  margin: 30px 0 0 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.article-detail .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-content {
  margin: 40px 0;
  position: relative;
}

.article-content::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

.article-content {
  --side-padding: 20px;
}
@media (max-width: 800px) {
  .article-content {
    --side-padding: 10px;
  }
}
.article-content {padding-top: 70px; margin-top: -10px; background: rgba(255,255,255,0.01); backdrop-filter: blur(var(--blur-strength)); -webkit-backdrop-filter: blur(var(--side-padding)); padding-bottom: 30px; border-radius: 0 0 6px 6px;}

.article-content .text > *:not(pre) {padding-left: var(--side-padding); padding-right: var(--side-padding);}
.article-content .text pre {margin-bottom: 20px;}
.article-content .text :is(ul, ol) {margin-left: 40px;}
.article-content h2 {margin-bottom: 20px; margin-top: 40px;}
.article-content h2::after {left: var(--side-padding);}

.article-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tag:hover {
  background: rgba(241, 182, 31, 0.1);
  color: var(--accent-color);
  border-color: rgba(241, 182, 31, 0.2);
}

.share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share span {
  color: var(--text-secondary);
}

.share-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  padding: 5px 0;
}

.share-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed);
}

.share-link:hover {
  color: var(--accent-color);
}

.share-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.back-to-home {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(241, 182, 31, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(241, 182, 31, 0.2);
  border-radius: 6px;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.btn:hover {
  background: rgba(241, 182, 31, 0.2);
  border-color: rgba(241, 182, 31, 0.4);
  color: var(--accent-color);
  text-decoration: none;
}

.featured-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}


@media (max-width: 800px) {
  .featured-article-wrapper {padding: 0;}
  .featured-content {padding: 15px;}
  .featured-article .featured-image > div, .ArticlesList .image > div {width: 100%; height: 100%; margin: 0;}
  .featured-article .featured-image > div > div, .ArticlesList .image > div > div {position: static; transform: none; width: 100%; height: 100%;}

  .article-detail {padding: 0;}

  .article-detail h1 {font-size: 2.2rem;}
}/* Performance optimizations */

/* Detect slow devices and reduce animations */
@media screen and (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  
  article:hover {
    transform: none !important;
  }
  
  article:hover .image img {
    transform: none !important;
  }
  
  .custom-cursor {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }
}

/* Add reduced animations for slower devices using JS detection */
html.reduced-motion * {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}

/* Control hardware acceleration */
.hardware-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* Control when elements use hardware acceleration */
@media screen and (min-width: 768px) {
  article {
    will-change: transform;
  }
  
  .custom-cursor {
    will-change: transform;
  }
}

/* Helper class to disable all animations for critical performance issues */
.critical-performance-mode * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Apply optimizations for mobile devices */
@media screen and (max-width: 767px) {
  :root {
    --blur-strength: 0px;
  }
  
  header, footer, article, .container {
    backdrop-filter: none !important;
  }
  
  h2::after {
    transition: none !important;
  }
} .articles-grid article {display: flex; gap: 20px;}
.ArticlesList article > * {flex: 1;}

.ArticlesList .Image {max-width: 300px;}
.ArticlesList .Image img {max-width: 100%; height: auto;}
.ArticlesList h2 {margin-top: 0;}

.Article .Image img {max-width: 100%; height: auto;}

@media (max-width: 900px) {
	.ArticlesList article {display: block; margin-bottom: 65px;}
	.ArticlesList article .Image {margin-bottom: 15px; max-width: none;}
}