/* ===== THEME TOKENS (Light / Dark) ===== */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted-text: #333333;
  --card: #ffffff;
  --card-alt: #f8f9fa;
  --card-hover: #b3d5ea;
  --accent: #12486A;
  --accent-hover: #487d9d;
  --border: #e5e5e5;
  --shadow: 0 4px 8px rgba(0,0,0,0.1);
}


:root[data-theme="dark"] {
  --bg: #0f1214;
  --text: #e9eef2;
  --muted-text: #cfd6dc;
  --card: #171b1f;
  --card-alt: #1e242a;
  --card-hover: #2a3a46;
  --accent: #5aa6d4;
  --accent-hover: #7abce2;
  --border: #2a2f35;
  --shadow: 0 4px 12px rgba(0,0,0,0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #0f1214;
    --text: #e9eef2;
    --muted-text: #cfd6dc;
    --card: #171b1f;
    --card-alt: #1e242a;
    --card-hover: #2a3a46;
    --accent: #5aa6d4;
    --accent-hover: #7abce2;
    --border: #2a2f35;
    --shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
}


body {
	font-family: Arial, sans-serif;
	margin: 20px;
	background-color: var(--bg);

  background: var(--bg);
  color: var(--text);
}

header {
	text-align: center;
	margin-bottom: 20px;
}

.author-images img {
    width: 200px;
    height: 200px;
    border-radius: 100px; /* or 0px for sharp */
    object-fit: cover;
    display: block;
}

.header-image {
	width: 100%;
	max-width: 900px;
	height: auto;
	border-radius: 4px;
}
nav {
  margin-top: 0;             /* remove extra gap above nav */
  margin-bottom: 20px;
  text-align: center;
}

nav > button {
  text-decoration: none;
  color: #fff !important;           /* fixed white text */
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #12486A !important; /* fixed blue background */
  border: none !important;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

nav > button:hover {
  background-color: #487d9d !important; /* fixed hover blue */
  color: #fff !important;
}

/* Optional: keyboard focus ring */
nav > button:focus-visible {
  outline: 2px solid #7abce2;  /* light blue ring */
  outline-offset: 2px;
}

/* Button hover effect
nav button:hover {
	background-color: var(--accent-hover);
	color: white;
} */

.content {
	margin-bottom: 20px;
	text-align: center;
}

/*article section --- article.html*/
.story-section {
	display: flex;
	align-items: center;
	margin: 2rem 1rem;
	background-color: var(--card-alt);
	border-radius: 8px;
	padding: 20px;
	box-shadow: var(--shadow);
}
.story-section img {
	max-width: 150px;
	margin-right: 1rem;
	border-radius: 8px;
}
.story-content {
	flex: 1;
}
.story-content h1 {
	margin-top: 0;
	font-size: 1.5em;
	color: var(--muted-text);
}
.story-content p {
	margin-top: 10px;
	font-size: 1em;
	color: var(--muted-text);
	line-height: 1.5;
	font-family: Lucida-Console, sans-serif;
}
.story-section:hover {
	background-color: var(--card-hover);
}
.story-link {
	text-decoration: none;
	color: inherit;
	display: block;
}


/*PROJECTS section ------ index page*/
.project-tiles {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 20px 0;
}
.project-tile {
	display: block;
	width: 250px;
	height: 400px; 
	margin: 10px;
	padding: 10px;
	background-color: var(--card-alt);
	color: #000000;
	box-shadow: var(--shadow);
	text-decoration: none;
	border-radius: 8px;
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease;
	overflow: hidden;  
}
.project-tile:hover {
	background-color: var(--card-hover);

}
.project-tile img.project-image {
	width: 100%;
	height: 150px; 
	object-fit: cover;
	border-bottom: 1px solid var(--border);
}
.project-tile h3 {
	margin: 10px 0;
	font-size: 1.2em;
}
.project-tile p {
	margin: 0;
	font-size: 0.9em;
	color: var(--muted-text); 
	font-family: Lucida-Console, sans-serif;
	line-height: 1.5;
}
/*AUTHOR section ---- contact page */
.author-content {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	line-height: 1.5;
	font-family: Lucida-Console, sans-serif;
	
}
.author-content p {
	flex: 1;
	margin-right: 20px;
}
.author-images {
	display: flex;
	justify-content: center; 
	align-items: center;
}

.section-background {
	background-color: var(--card);
	border-radius: 8px;
	padding: 20px;
	box-shadow: var(--shadow);
	margin: 2rem 1rem;
}

/*CONTACT section ---- contact page */
.collaboration-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
}
.collaboration-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	background-color: var(--card);
	padding: 10px;
	border-radius: 8px;
	box-shadow: var(--shadow);
	transition: background-color 0.3s ease; 
}
.collaboration-item:hover {
	background-color: var(--card-hover); 
}
.collaboration-item img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 10px;
}
.collaboration-item .icon-image {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	margin-left: 10px;
}
.collaboration-item span {
	color: var(--muted-text);
	font-size: 1em;
	flex-grow: 1;
	text-align: left;
}

/* BADGES section ---- badges.html */
.badge-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Individual badge container */
.badge {
    display: flex;
    flex-direction: column;  /* Stack image and text vertically */
    justify-content: center;
    align-items: center;
    width: 200px; 
    height: 250px; 
    margin: 10px;
    padding: 10px;
    background-color: var(--card-alt);
    box-shadow: var(--shadow);
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Ensure badge image fits nicely */
.badge img {
    width: 80%;  /* Adjust width to fit inside the box */
    height: auto;  /* Maintain aspect ratio */
    max-height: 150px;  /* Prevent image from being too big */
    object-fit: contain; /* Ensures the full image is visible */
    border-radius: 8px;
}

/* Badge text styling */
.badge p {
    margin-top: 10px;  /* Add space between image and text */
    font-size: 1em;
    color: var(--muted-text);
    font-weight: bold;
}

/* Hover effect */
.badge:hover {
    background-color: var(--card-hover);  
}

/* Tech Stack – make icons readable in dark mode */
.tech-stack-icons .icon {
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;                 /* constant light chip so dark icons show */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.tech-stack-icons .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0%);             /* keep brand colors; remove heavy gray */
  transition: transform .2s ease, filter .2s ease;
}

.tech-stack-icons .icon:hover img {
  transform: scale(1.08);
}

/* Optional: if some icons are still too dim in dark mode, gently lift them */
:root[data-theme="dark"] .tech-stack-icons .icon img {
  filter: brightness(1.15) contrast(1.05);
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    nav {
        text-align: left;
    }
    nav button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        padding: 15px 20px;
    }
    /* AUTHOR section mobile fix */
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-content p {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .author-images {
        justify-content: center;
    }

    /* ARTICLE section mobile fix */
    .story-section {
        flex-direction: column;
        text-align: center;
    }

    .story-section img {
        margin: 0 0 15px 0;
        max-width: 90%;
    }}
	 /* TECH stack section */
	.tech-stack-icons {
		padding: 40px 20px;
		text-align: center;
		background-color: var(--card);
		border-radius: 12px;
		box-shadow: var(--shadow);
		max-width: 1100px;
		margin: 4rem auto;
	}
	
	h2 {
		font-size: 2rem;
		color: var(--muted-text);
		font-weight: bold;
		margin-bottom: 1.5rem;
		display: inline-block;
		padding-bottom: 6px;
	}
	
	.icon-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
		gap: 24px;
		justify-items: center;
		align-items: center;
		max-width: 800px;
		margin: 0 auto;
	}
	
	
	.icon {
		width: 64px;
		height: 64px;
		transition: transform 0.2s ease;
	}
	
	.icon img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		filter: grayscale(40%);
		transition: transform 0.3s ease, filter 0.3s ease;
	}
	
	.icon:hover img {
		filter: grayscale(0%);
		transform: scale(1.15);
	}

/* ===== Global text color normalization ===== */
h1,h2,h3,h4,h5,h6{ color: var(--text); }
p, li, label, small, span{ color: var(--muted-text); }
a{ color: var(--accent); }
a:hover{ color: var(--accent-hover); }

/* Section + card backgrounds
.section-background{ background: var(--card); box-shadow: var(--shadow); }
.story-section, .project-tile, .badge, .collaboration-item, .tech-stack-icons{ 
  background: var(--card); 
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
} */

/* Specific components */
#about-author p,
.author-content p,
.story-content p,
.project-tile p,
.collaboration-item span{
  color: var(--muted-text);
}
.project-tile h3,
.story-content h1,
.story-content h2{ color: var(--text); }

/* Hover fills */
.project-tile:hover,
.badge:hover,
.collaboration-item:hover{ background: var(--card-hover); }

/* Nav buttons */
nav button{ background: var(--accent); color: #fff; border: 1px solid var(--border); }
nav button:hover{ background: var(--accent-hover); color: #fff; }

/* Base */
html, body{ background: var(--bg); color: var(--text); }


/* === Neumorphic Light/Dark Toggle (narrow, icon-friendly) === */
/* track must clip the thumb; keep your width/height vars */
.neo-theme-switch #neoToggle {
  --h: 44px;
  --w: 90px;   /* narrow pill */
  --pad: 6px;
  --thumb: 32px;
  --radius: 999px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
.neo-theme-switch {
  position: static;          /* in normal flow */
  width: 100%;
  display: flex;
  justify-content: center;   /* center above nav */
  align-items: center;       /* ensures the pill itself is vertically centered */
  margin: 18px auto 20px;    /* space from header (top) and nav (bottom) */
}


.neo-theme-switch .neo-track {
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: var(--radius);
  overflow: hidden;          
  background: var(--card);
  border: 1px solid var(--border);
}

.neo-theme-switch .neo-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%); /* center on X & Y */
  width: 18px; height: 18px;
  object-fit: contain;
  pointer-events: none;
  opacity: .55;
}
/* Sun at 25%, Moon at 75% of track width */
.neo-theme-switch .neo-sun  { left: 25%; }
.neo-theme-switch .neo-moon { left: 75%; }


/* transparent glass thumb (your existing version is fine) */
.neo-theme-switch .neo-thumb {
  position: absolute;
  top: 50%;
  left: var(--pad);
  width: var(--thumb);
  height: var(--thumb);
  transform: translateY(-50%);
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:
    0 2px 6px rgba(0,0,0,.20),
    inset 0 0 0 1px var(--border);
  transition: left .25s ease, box-shadow .25s ease, border-color .25s ease;
  pointer-events: none;
  z-index: 2;
}

/* DARK state: slide right and highlight moon, dim sun */
:root[data-theme="dark"] .neo-theme-switch .neo-thumb {
  left: calc(var(--w) - var(--pad) - var(--thumb));
  border-color: rgba(255,255,255,.12);
  box-shadow:
    0 2px 6px rgba(0,0,0,.35),
    inset 0 0 0 1px var(--border);
}
:root[data-theme="dark"]  .neo-theme-switch .neo-moon { opacity: .95; }
:root[data-theme="dark"]  .neo-theme-switch .neo-sun  { opacity: .35; }

/* LIGHT state: highlight sun, dim moon */
:root[data-theme="light"] .neo-theme-switch .neo-sun  { opacity: .95; }
:root[data-theme="light"] .neo-theme-switch .neo-moon { opacity: .35; }
