/*
    Project: Portfolio
    File: styles.css
    @author: Matthew Pool
*/

:root {
    /* Main Body Colors */
    --bg-main: #f4f4f4;
    --text-main: black;

    /* Tab Button Colors */
    --tab-bg: #e0e0e0;
    --tab-text: #555555;
    --tab-bg-hover: #d0d0d0;
    --tab-text-hover: #222222;
    --tab-bg-active: #ffffff;
    --tab-text-active: #0a0094;
    --tab-border-active: #0a0094;

    /* ---> Cards & Containers <--- */
    --bg-tab-content: white;
    --bg-card: white;
    --border-card: rgba(0,0,0,0.05);
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.1);

    /* ---> Typography & Links <--- */
    --text-heading: #2c3e50;
    --text-muted: #555555;
    --link-color: #0066cc;
    --link-hover: #0052a3;

	/* ---> Modals <--- */
    --bg-modal: #ffffff;
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.4);
    --modal-close-text: #666;
    --modal-close-hover-bg: rgba(0, 0, 0, 0.05);
    --modal-close-hover-text: #333;

    /* ---> Buttons & Gradients <--- */
    --bg-quick-link: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --bg-action-btn: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-action-btn: #ffffff;
    --border-action-btn: transparent;
    --shadow-action-btn: 0 4px 10px rgba(102, 126, 234, 0.25);
    
    --bg-action-btn-hover: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-action-btn-hover: #ffffff;
    --shadow-action-btn-hover: 0 6px 16px rgba(102, 126, 234, 0.45);
}

body.dark-mode {
    /* Main Body Colors */
    --bg-main: #1a1a1a;
    --text-main: #e0e0e0;

    /* Tab Button Colors */
	 --tab-bg: #2c2c2c;              /* Matches your dark cards */
    --tab-text: #a0a0a0;            /* Muted gray text */
    --tab-bg-hover: #3a3a3a;        /* Slightly lighter on hover */
    --tab-text-hover: #ffffff;      /* Bright white on hover */
    --tab-bg-active: #202020;       /* Perfectly matches your dark tab content background! */
    --tab-text-active: #a855f7;     /* Your signature dark mode purple */
    --tab-border-active: #a855f7;

    /* ---> Cards & Containers (Dark Mode) <--- */
    --bg-tab-content: #202020;
    --bg-card: #2c2c2c;
    --border-card: #444444;
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.6);

    /* ---> Typography & Links (Dark Mode) <--- */
    --text-heading: #e0e0e0;
    --text-muted: #b0b0b0;
    --link-color: #66b3ff;
    --link-hover: #99ccff;

	/* ---> Modals (Dark Mode) <--- */
    --bg-modal: #2a2a2a;
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.8);
    --modal-close-text: #aaa;
    --modal-close-hover-bg: rgba(255, 255, 255, 0.1);
    --modal-close-hover-text: #fff;

    /* ---> Buttons & Gradients (Dark Mode) <--- */
    --bg-quick-link: linear-gradient(135deg, #4a5a8e 0%, #5a3b71 100%);
    
    --bg-action-btn: rgba(168, 85, 247, 0.1);
    --text-action-btn: #c4aaff;
    --border-action-btn: rgba(168, 85, 247, 0.3);
    --shadow-action-btn: none;
    
    --bg-action-btn-hover: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    --text-action-btn-hover: #1a1a1a;
    --shadow-action-btn-hover: 0 6px 16px rgba(168, 85, 247, 0.3);
}

/* GLOBAL RESET: Removes default gaps and prevents horizontal scrolling */
html {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    /* Your Layout Reset */
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-anchor: none;
    
    /* Your New Theme Variables */
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    
    /* Your Smooth Theme Transition */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure all elements calculate width including their padding/borders */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
	color: black;
	overflow-anchor: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

p {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 1em;
}

h1 {
	font-family: 'Roboto', sans-serif;
	text-align: center;
	padding: 20px 0;
	margin: 0;
}

h2 {
	margin-top: 1.5em;
	margin-bottom: 0.8em;
}

h3 {
	margin-top: 1.2em;
	margin-bottom: 0.6em;
}

h4 {
	margin-top: 1em;
	margin-bottom: 0.5em;
}

/* Dark mode body styles */
body.dark-mode {
	background-color: #1a1a1a;
	color: #e0e0e0;
}

.sticky-header-zone {
    position: sticky;
    top: -9999px;  
    z-index: 1000;
}

/* Tab container no longer needs its own sticky */
.tab-container {
    background-color: #1a1440;
    position: static;
    z-index: auto;
}

body.dark-mode .tab-container {
    background-color: #12103a;
}

/* Skills eyebrow label — stronger contrast */
.skills-eyebrow {
    color: #444;
}

body.dark-mode .skills-eyebrow {
    color: #bbb;
}

/* Skills row labels — stronger contrast */
.home-skills-label {
    color: #333;
}

body.dark-mode .home-skills-label {
    color: #bbb;
}

body.dark-mode .flick-card p {
	color: #e0e0e0;
}

body.dark-mode .screenshot-item figcaption {
	color: #ffffff;
}

body.dark-mode hr {
	border-top-color: transparent;
}

/* Dark background for card containing Figma images (white text needs dark bg in both modes) */
.content-card:has(img[src*="figma-"]) {
	background-color: #262626;
}

body.dark-mode .content-card:has(img[src*="figma-"]) {
	background-color: #262626;
}

/* Dark background for card containing CI images in both light and dark mode */
.image-card:has(.ci-images) {
	background-color: #010409;
}

body.dark-mode .image-card:has(.ci-images) {
	background-color: #010409;
}

/* Container to hold the spec cards side-by-side */
.tech-specs-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap; 
}

/* Individual Card Style */
.tech-spec-item {
    flex: 1;             
    min-width: 240px;    
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #667eea; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* The Label (Architecture / Design) */
.spec-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
    margin-bottom: 5px;
}

/* The Value (MVVM... / Figma) */
.spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Roboto', sans-serif; 
}

/* --- Dark Mode Overrides --- */
body.dark-mode .tech-spec-item {
    background: #262626;
    border-left-color: #a855f7; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .spec-label {
    color: #aaa;
}

body.dark-mode .spec-value {
    color: #e0e0e0;
}

/* Theme Toggle */
.theme-toggle-wrapper {
    position: fixed;
	top: 5px;  
	left: 16px;
    z-index: 10000;
}

.theme-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	animation: shimmer 1.5s ease-in-out 4;
}

@keyframes shimmer {
	0%, 100% {
		filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
	}
	50% {
		filter: brightness(1.8) drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
	}
}

.toggle-track {
    display: flex;
    align-items: center;
    position: relative;
    width: 72px;            
    height: 30px;           
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;    
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover .toggle-track {
	background: rgba(255, 255, 255, 0.6);
	border-color: rgba(255, 255, 255, 0.9);
	transform: scale(1.05);
}

.toggle-thumb {
	position: absolute;
	width: 22px;
	height: 22px;
	background: rgba(41, 41, 41, 0.683);
	border-radius: 50%;
	transition: transform 0.3s ease, background-color 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	left: 4px;
	z-index: 1;
	background: #ffcc00; 
}

/* Dark Mode: Moon is selected */
body.dark-mode .toggle-thumb {
	transform: translateX(42px);
	background: #a855f7; 
	box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); 
}

/* Ensure the icons look good on top of the colored thumb */
.toggle-icon {
    z-index: 2;
    width: 14px; 
    height: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    color: #ffffff; 
}

/* Precise centering math */
.toggle-icon.sun {
    left: 9px;
    opacity: 1;
}

.toggle-icon.moon {
    right: 9px;
    opacity: 0.4;
}

/* Light Mode: Sun is active */
body:not(.dark-mode) .toggle-icon.sun {
    color: #333333; 
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Dark Mode: Moon is active */
body.dark-mode .toggle-icon.moon {
    color: #ffffff; 
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Directions popup */
.directions-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	backdrop-filter: blur(4px);
}

.directions-popup-overlay.show {
	display: flex;
	align-items: center;
	justify-content: center;
}

.directions-popup {
	background-color: #333;
	color: white;
	padding: 14px 18px;
	border-radius: 12px;
	width: 90%;
	max-width: 400px;
	text-align: left;
	font-size: 14px;
	line-height: 1.6;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.directions-popup strong {
	font-size: 16px;
}

.directions-popup ol {
	margin-top: 12px;
	padding-left: 20px;
}

.directions-popup li {
	margin-bottom: 8px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1em auto;
}

#refactoring img {
	margin-left: 0;
	margin-right: auto;
}

.ci-images {
	margin: 1em auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ci-images img {
	margin: 0;
	width: 100%;
	max-width: 1200px;
}

/* Container for the text and title inside the button */
.badge-text-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
}

/* The Button Itself */
.web-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background-color: #000; 
	border: 2px solid #a855f7; 
	color: white;
	padding: 8px 20px;
	border-radius: 8px; 
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	min-width: 180px; 
	height: 55px; 
}

/* Ensure button looks the same in dark mode */
body.dark-mode .web-badge {
	background-color: #000;
	border: 2px solid #a855f7;
	color: white;
}

/* Hover Effects */
.web-badge:hover {
	background-color: #2d1b4e; 
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4); 
	color: white;
}

body.dark-mode .web-badge:hover {
	background-color: #2d1b4e;
	box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
	color: white;
}

/* Text Sizing */
.badge-small {
	font-size: 0.7rem;
	text-transform: uppercase;
	opacity: 0.9;
}

.badge-large {
	font-size: 1.2rem;
	font-weight: bold;
	font-family: sans-serif;
}

/* Subtle, on-brand glow for the Play Store badge on hover */
.play-link .play-badge {
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px; 
}

/* Light Mode: Stronger, deeper colors so it pops against white/gray backgrounds */
.play-link:hover .play-badge {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.7)) drop-shadow(0 0 22px rgba(118, 75, 162, 0.6));
}

/* Dark Mode: Brighter, pastel colors to pop against dark backgrounds */
body.dark-mode .play-link:hover .play-badge {
    filter: drop-shadow(0 6px 16px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 22px rgba(216, 180, 254, 0.4));
}

/* Removes default browser margins from the figure tag */
.screenshot-item {
	margin: 0; 
	display: flex;
	flex-direction: column;
	align-items: center; 
}

/* Ensures the image stays responsive inside the figure */
.screenshot-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px; 
	box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

/* Travel images - no scaling */
.travel-images-row {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 1em auto;
}

.travel-images-row img {
	max-width: none;
	width: auto;
	height: auto;
	margin: 0;
}

/* Travel images that should not scale */
.image-card .travel-no-scale {
	max-width: none;
	width: auto;
	margin: 1em auto;
}

/* Toast notification */
.toast {
	position: absolute;
	background: rgba(5, 5, 5, 0.95);
	color: rgba(255, 255, 255, 0.95);
	padding: 6px 12px;
	border-radius: 4px;
	border: 1px solid rgba(150, 150, 150, 0.3);
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	white-space: nowrap;
	z-index: 10000;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-left: 28px;
}

.toast.show {
	opacity: 1;
}
	
/* Styles the text caption */
.screenshot-item figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: #333;
	text-align: center;
	font-weight: 500;
}

/* InventoryBuddy screenshot grid */
.buddy-screenshot-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.buddy-screenshot-grid img {
	width: 45%;
	max-width: 300px;
	height: auto;
	margin: 10px;
	box-sizing: border-box;
}

/* Mario images - centered and same width */
.mario-image {
	width: 80%;
	max-width: 900px;
	height: auto;
	display: block;
	margin: 1em auto;
}

hr {
	margin: 2em 0;
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent); 
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease; /* Added a smooth fade for you! */
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Limit text width for better readability without shrinking the whole container */
.tab-content p, 
.tab-content ul, 
.tab-content h2, 
.tab-content h3, 
.tab-content h4 {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.tab-content > h2:first-of-type,
.tab-content > .content-card:first-of-type,
.tab-content > hr:first-child {
	margin-top: 0;
}

/* Make the main Section Headers (Overview, Refactoring, All Projects) pop */
.section-header {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-heading);
    position: relative;
    padding-bottom: 15px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Add a small colored underline to the header */
.section-header::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
}

/* --- DARK MODE ADJUSTMENTS --- */
body.dark-mode hr {
	background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

/* Keep the cards wide though, so images stay large */
.content-card, 
.image-card, 
.dark-flick-header-card {
	max-width: 1000px; 
	margin-left: auto;
	margin-right: auto;
}

.tab-nav {
	display: flex;
	justify-content: center;
	max-width: 1000px;
	margin: 0 auto;
	width: 100%; 
}

.tab-button {
    /* Your Layout Rules */
    flex: 1;
    max-width: none;
    padding: 18px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: var(--tab-bg);
    color: var(--tab-text);
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: var(--tab-bg-hover);
    color: var(--tab-text-hover);
}

.tab-button.active {
    background-color: var(--tab-bg-active);
    color: var(--tab-text-active);
    border-bottom: 3px solid var(--tab-border-active);
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: var(--bg-tab-content);
    min-height: calc(100vh - 150px);
    transition: background-color 0.3s ease;
}

.tab-content.active {
	display: block;
}

/* Main Button Style */
.btn-try {
	display: block;
	width: fit-content;
	margin: 20px auto;
	padding: 10px 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 25px;
	font-weight: bold;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none; 
	border-bottom: none; 
}

.btn-try:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0,0,0,0.15);
	color: white;
}

/* Icon Style */
.btn-icon {
	display: inline-block; 
	text-decoration: none; 
	margin-left: 5px; 
}

/* Navigation Gesture Cards */
.gesture-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
	background: #eee7e7;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px #e5e7eb;
	border: 1px solid #e5e7eb;
}

.gesture-grid:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s ease;
}

.gesture-card {
	border: 1px solid #262626;
	border-radius: 8px;
	background-color: #181818;
	padding: 20px;
	display: flex;
	align-items: flex-start;
	gap: 15px;
	transition: transform 0.2s ease;
	color: #a0a0a0;
}

.gesture-card:hover {
	transform: translateY(-3px);
	border-color: #bb86fc;
}
				
.sideways-chain-section {
	background: #202020;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
	margin-top: 20px;
}

.sideways-chain-section:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s ease;
}

.sideways-chain-section h3 {
	margin-top: 0;
}

.emoji-icon {
	font-size: 2rem;
	background: #2a2a2a;
	border-color: #ffffff;
	padding: 10px;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.guide-link {
	color: #0066cc;
	text-decoration: none;
	font-weight: bold;
}

.guide-link:hover {
	color: #0052a3;
	text-decoration: underline;
}

body.dark-mode .guide-link {
	color: #66b3ff;
}

body.dark-mode .guide-link:hover {
	color: #99ccff;
}

/* GPA link */
.gpa-link {
	color: #e3165b;
	text-decoration: none;
}

.gpa-link:hover {
	color: #e4487c;
	text-decoration: underline;
}

body.dark-mode .gpa-link {
	color: #66b3ff; 
	text-decoration: none;
}

body.dark-mode .gpa-link:hover {
	color: #99ccff;
	text-decoration: underline;
}

/* Flick text - pink color matching resume */
.flick-text {
	color: #e3165b; 
	font-weight: 600;
	font-size: 16px;
	font-style: italic;
}

body.dark-mode .flick-text {
    color: #ff6b8b;
    /* Lighter, high-contrast pink for dark mode */
}

.tech-name {
	color: #fff;
	font-weight: 700;
	font-family: 'Courier New', Courier, monospace;
	display: block;
	margin-bottom: 5px;
}

.tech-list {
	list-style: none;
	margin-left: 0;
	margin-top: 10px;
}

.tech-item {
	background-color: #333333;
	margin-bottom: 10px;
	padding: 15px;
	border-radius: 6px;
	border-left: 3px solid #333;
	color: #a0a0a0;
}

.tech-item .tech-name {
	margin-bottom: 8px;
}

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

@keyframes glow {
	0%, 100% {
		box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 
					0 0 40px rgba(118, 75, 162, 0.3),
					0 0 60px rgba(240, 147, 251, 0.2);
	}
	50% {
		box-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 
					0 0 60px rgba(118, 75, 162, 0.5),
					0 0 90px rgba(240, 147, 251, 0.4);
	}
}

/* Contact Card */
.contact-card {
	background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
	background-size: 300% 300%;
	animation: gradientShift 8s ease infinite, glow 3s ease-in-out infinite;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	padding: 15px;
	margin: 20px;
	text-align: center;
	position: relative;
}

.contact-card p {
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	font-size: 20px;
	line-height: normal;
	margin: 5px 0 7px 0; 
}

body.dark-mode .contact-card {
	background: linear-gradient(135deg, #2a3a6e, #3a2651, #5a3a6a, #2a5a7e, #2a3a6e);
	background-size: 300% 300%;
	animation: gradientShift 8s ease infinite, glow 3s ease-in-out infinite;
	border: 4px solid rgba(255, 255, 255, 0.71);
}

body.dark-mode .contact-card button svg {
	stroke: rgba(255, 255, 255, 0.9);
}

.contact-card b {
    font-size: 22px;
    font-weight: normal; 
    letter-spacing: 4px;  
    text-transform: uppercase; 
}

.contact-card i {
	font-size: 16px;
}

/* --- LIGHT MODE: Themed "Glass" Pills --- */
.contact-card a {
    color: #66b3ff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    background-color: rgba(40, 20, 60, 0.7); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    margin: 1px 0 1px 0;
    padding: 2px 12px;
    border-radius: 12px;
    text-shadow: none; 
    transition: all 0.2s ease;
}

.contact-card a:hover {
    background-color: rgba(60, 30, 90, 0.7); 
    border-color: rgba(255, 255, 255, 0.3);
    color: #99ccff; 
    transform: translateY(-1px);
    text-decoration: underline;
}

/* --- DARK MODE OVERRIDE: Remove Pills but keep Animation --- */
body.dark-mode .contact-card a {
    background-color: transparent;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    display: inline-block; 
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); 
}

body.dark-mode .contact-card a:hover {
    background-color: transparent;
    color: #99ccff;
    transform: translateY(-1px); 
    text-decoration: underline;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Installation Notice */
.install-notice {
	text-align: center;
	margin: 15px 0;
	font-size: 17px;
	font-weight: 600;
	color: #333;
}

.install-link {
	position: relative;
	color: #0066cc;
	cursor: pointer;
	text-decoration: underline;
	font-weight: 700;
}

.play-cta-content {
	text-align: center;
	margin: 20px 0;
}

.play-link {
	position: relative;
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
}

.install-tooltip {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background-color: #333;
	color: white;
	padding: 14px 18px;
	border-radius: 8px;
	width: 300px;
	text-align: left;
	font-size: 14px;
	line-height: 1.6;
	z-index: 1000;
	transition: opacity 0.3s, visibility 0.3s;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.install-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #333;
}

.install-link:hover .install-tooltip,
.play-link:hover .install-tooltip {
	visibility: visible;
	opacity: 1;
}

/* Flick Header */
.flick-card {
	margin-bottom: 20px;
}

.flick-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 5px;
}

.flick-logo {
	width: 64px;
	height: 64px;
	margin: 0;
	flex-shrink: 0;
}

.flick-header h2 {
	margin: 0;
	line-height: 1;
}

/* Lightbox */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.95);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	cursor: pointer;
	animation: fadeIn 0.3s ease;
}

.lightbox.active {
	display: flex;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lightbox-content {
	max-width: 95%;
	max-height: 95vh;
	position: relative;
	animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
	max-width: 100%;
	max-height: 95vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
	position: absolute;
	top: -50px;
	right: 0;
	color: white;
	font-size: 50px;
	cursor: pointer;
	font-weight: 300;
	transition: transform 0.2s;
	background: none;
	border: none;
	padding: 10px;
	line-height: 1;
}

.lightbox-close:hover {
	transform: scale(1.1);
}

.lightbox-caption {
	color: white;
	text-align: center;
	margin-top: 20px;
	font-size: 16px;
	padding: 0 20px;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	font-size: 50px;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	padding: 20px;
	border-radius: 8px;
	transition: background 0.3s;
	user-select: none;
}

.lightbox-nav:hover {
	background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

/* Hero Section - Compact Flex Layout */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0; 
    margin: -20px -20px 40px -20px;
    position: relative; 
    min-height: auto; 
}

/* Targeting `.shelf-container` inside the main flow, assuming they come after hero */
/* Solid spacer to prevent text from showing through the sticky header */
.shelf-spacer {
    height: 20px;
    width: 100%;
    background-color: var(--bg-main);
    transition: background-color 0.3s ease;
}

.main-content .hero-section + .shelf-container, 
.main-content .shelf-container:nth-of-type(2) {
    max-width: 1000px;  
	width: 90%;     
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
	box-sizing: border-box;
}

/* Ensure content takes up available space */
.hero-section .container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 15px 20px; 
}

.banner {
  aspect-ratio: 4 / 1;
  background: linear-gradient(to right, #051428, #4a1c00);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif; 
  text-align: center;
  padding: 2rem;
}

.banner-title {
  font-size: 3rem; 
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.text-blue-gradient {
  background: linear-gradient(to right, #6ab8f7, #1e70d6);
  -webkit-background-clip: text;
  color: transparent;
}

.text-orange-gradient {
  background: linear-gradient(to right, #f79d45, #d65c00);
  -webkit-background-clip: text;
  color: transparent;
}

.divider {
  color: white;
  margin: 0 10px;
}

.banner-subtitle {
  color: white;
  font-weight: 300; 
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.banner-footer {
  background: linear-gradient(to bottom, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.3em; 
  text-transform: uppercase;
}

/* =========================================
   CENTERED STACK (Hero + Shelves)
   ========================================= */
.contact-card,
.hero-section,
.shelf-container {
    max-width: 1000px; 
    width: 90%;        
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.hero-section {
    margin-bottom: 0;
    margin-top: 0;
    border-radius: 0;
}

.hero-section + .shelf-container {
    margin-top: 0;
}

.hero-section h1 {
    font-size: clamp(1.2rem, 4.2vw, 3.2rem);  
	font-family: 'Roboto', sans-serif;
    text-align: center;
    font-weight: 100;
    padding: 10px 0 5px 0;     
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em; 
    width: 100%;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300; 
    font-style: italic;
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.hero-cta {
	display: flex;
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 35px;
}

body.dark-mode .hero-section {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.btn-primary, .btn-secondary {
	padding: 15px 35px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s;
	display: inline-block;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: white;
	color: #667eea;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	text-decoration: none;
}

.btn-secondary {
	background: rgba(255,255,255,0.2);
	color: white;
	border: 2px solid white;
}

.btn-secondary:hover {
	background: white;
	color: #667eea;
	text-decoration: none;
}

/* 3D Shelf Styling */
.shelf-container {
	position: relative;
	margin-top: 0;
	height: 15px; 
	width: 100%;
	z-index: 2; 
	background-color: transparent;
	display: flex;
	flex-direction: column;
}

.shelf-container .shelf-top {
	height: 10px;
	width: 100%;
	background: linear-gradient(to bottom, #3a3a3a 0%, #1a1a1a 100%);
	transform: none;
	border-top: 1px solid rgba(255,255,255,0.1);
	border-left: 0;
    border-right: 0;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
	box-sizing: border-box;
}

.shelf-container .shelf-front {
	height: 5px;
	width: 100%;
	background: linear-gradient(to bottom, #111 0%, #000 100%);
	box-shadow: 0 5px 10px rgba(0,0,0,0.5); 
	z-index: 100;
	border-left: 0;
    border-right: 0;
    transform: none; 
    box-sizing: border-box;
}

body:not(.dark-mode) .shelf-container .shelf-top {
	background: linear-gradient(to bottom, #888 0%, #666 100%);
	border-top: 1px solid rgba(255,255,255,0.4);
}

body:not(.dark-mode) .shelf-container .shelf-front {
	background: linear-gradient(to bottom, #555 0%, #333 100%);
}

.contact-card + .shelf-container {
    opacity: 0.5; 
}

.app-cta {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    letter-spacing: -0.5px;
	padding-top: 0;
	margin-top: 5px;
	margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

body.dark-mode .app-cta {
    color: #ccc;
}

body.dark-mode .gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Project Cards */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.project-card, .content-card, .image-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    padding: 25px;
    margin: 20px 0;
    box-shadow: var(--shadow-card); 
    border: 1px solid var(--border-card);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

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

.project-card:focus-visible, 
.tab-button:focus-visible, 
.quick-link:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 4px;
    border-radius: 12px;
}

body.dark-mode .project-card:focus-visible, 
body.dark-mode .tab-button:focus-visible, 
body.dark-mode .quick-link:focus-visible {
    outline-color: #a855f7;
}

.project-card-image {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
}

.project-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.project-card-content {
	padding: 25px;
}

.project-card-content h3 {
	font-size: 22px;
	margin: 0 0 10px 0;
	color: #2c3e50;
}

body.dark-mode .project-card-content h3 {
	color: #e0e0e0;
}

.project-card-brief {
	color: #666;
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 1.6;
}

body.dark-mode .project-card-brief {
	color: #aaa;
}

.project-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.project-card-tag {
	background: #f0f0f0;
	color: #2c3e50;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 500;
}

body.dark-mode .project-card-tag {
	background: #3a3a3a;
	color: #e0e0e0;
}

/* ========================================
GRID-INTEGRATED PROJECT DETAILS
======================================== */
.project-card {
	cursor: pointer;
	transition: transform 0.3s, box-shadow 0.3s, background-color 0.2s;
}

.project-card:active {
	transform: translateY(-3px) scale(0.98);
}

.project-details {
	display: none;
	grid-column: 1 / -1; 
	background-color: #f9f9f9;
	border-radius: 12px;
	padding: 30px;
	margin: 10px 0 20px 0;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	animation: slideDown 0.3s ease-out;
	order: 999; 
}

body.dark-mode .project-details {
	background-color: #1f1f1f;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.project-details.show {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.project-details h3 {
	color: #2c3e50;
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 26px;
}

body.dark-mode .project-details h3 {
	color: #e0e0e0;
}

.project-details .details {
	margin-bottom: 20px;
}

.project-details ul {
	margin-left: 25px;
	margin-bottom: 20px;
}

.project-details ul li {
	margin-bottom: 12px;
	line-height: 1.6;
}

.project-details .project-image-card {
	margin: 20px 0;
}

.project-details hr {
	display: none; 
}

.project-card::after {
	content: '▼ Click for details';
	display: block;
	text-align: center;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
	font-size: 12px;
	color: #999;
	font-weight: 600;
	transition: color 0.3s;
}

body.dark-mode .project-card::after {
	border-top-color: #444;
	color: #666;
}

.project-card:hover::after {
	color: #667eea;
}

body.dark-mode .project-card:hover::after {
	color: #a855f7;
}

.project-card.active-card {
	border: 2px solid #667eea;
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

body.dark-mode .project-card.active-card {
	border-color: #a855f7;
	box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.project-item {
	display: none;
}

body.dark-mode .dark-flick-header-card {
    background-color: #262626; 
    border-color: #404040;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    color: #e0e0e0;
}

/* Filter Buttons */
.project-filters {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 30px 0;
}

.filter-btn {
	background: #e0e0e0;
	border: none;
	padding: 10px 25px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.filter-btn:hover {
	background: #d0d0d0;
}

.filter-btn.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

body.dark-mode .filter-btn {
	background: #3a3a3a;
	color: #e0e0e0;
}

body.dark-mode .filter-btn:hover {
	background: #4a4a4a;
}

body.dark-mode .filter-btn.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.project-item {
	margin-bottom: 40px;
}

.project-item.hidden {
	display: none;
}

.details {
	color: #666;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 15px;
	padding: 8px 15px;
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	border-left: 4px solid #667eea;
	border-radius: 4px;
	display: inline-block;
}

body.dark-mode .details {
	color: #aaa;
	background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
	border-left-color: #a855f7;
}

/* ========================================
   PORTFOLIO MODAL THEME TOGGLE
======================================== */
.preview-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 0.85em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.25);
}

.preview-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}

.preview-toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Dark mode adjustment */
body.dark-mode .preview-toggle-btn {
    background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

body.dark-mode .preview-toggle-btn:hover {
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

/* ========================================
PROJECT MODAL POPUP STYLES
======================================== */

.project-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 10000;
	overflow-y: auto;
	animation: fadeIn 0.3s ease-out;
}

.project-modal.show {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 20px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.project-modal-body {
    background-color: var(--bg-modal);
    border-radius: 16px;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    box-shadow: var(--shadow-modal);
    position: relative;
    animation: slideUp 0.3s ease-out;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--modal-close-text);
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 4px;
    z-index: 10;
}

.project-modal-close:hover {
    color: var(--modal-close-hover-text);
    background-color: var(--modal-close-hover-bg);
    transform: scale(1.1);
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--modal-close-text);
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 4px;
    z-index: 10;
}

.project-modal-close:hover {
    color: var(--modal-close-hover-text);
    background-color: var(--modal-close-hover-bg);
    transform: scale(1.1);
}

#project-modal-content h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    padding-right: 40px; 
}

body.dark-mode #project-modal-content h3 {
    color: #e0e0e0;
}

#project-modal-content .details {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-left: 4px solid #667eea;
    border-radius: 4px;
    display: inline-block;
}

body.dark-mode #project-modal-content .details {
    color: #aaa;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-left-color: #a855f7;
}

#project-modal-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

#project-modal-content ul li {
    margin-bottom: 15px;
    line-height: 1.8;
}

#project-modal-content .project-image-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

body.dark-mode #project-modal-content .project-image-card {
    background: #333;
}

#project-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.project-modal-body::-webkit-scrollbar {
    width: 10px;
}

.project-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.project-modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode .project-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.dark-mode .project-modal-body::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark-mode .project-modal-body::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.project-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card::after {
    content: '▶ Click to view details';
    display: block;
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    transition: color 0.3s;
}

body.dark-mode .project-card::after {
    border-top-color: #444;
    color: #666;
}

.project-card:hover::after {
    color: #667eea;
}

body.dark-mode .project-card:hover::after {
    color: #a855f7;
}

#project-modal-content .travel-images-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

#project-modal-content .travel-images-row img {
    max-width: 48%;
    margin: 0;
}

#project-modal-content .buddy-screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

#project-modal-content .buddy-screenshot-grid img {
    width: 45%;
    max-width: 280px;
    margin: 0;
}

#project-modal-content .mario-image {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 15px auto;
}

#project-modal-content .paradox-image {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: 15px auto;
}

#project-modal-content .launch-cta {
    text-align: center;
    margin: 30px 0;
}

#project-modal-content .project-content-split {
    display: block;
}

#project-modal-content .project-visual {
    margin-top: 20px;
}

#project-modal-content .project-visual img {
    width: 100%;
    margin: 15px 0;
}

#project-modal-content .caption {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

body.dark-mode #project-modal-content .caption {
	color: #aaa;
}

/* Quick Links Section */
.quick-links {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 0;
	flex-wrap: wrap;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: var(--bg-quick-link);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.quick-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	text-decoration: none;
	color: white;
}

.about-intro {
	font-size: 18px;
	line-height: 1.8;
	color: #555;
	margin: 0 auto 30px;
}

body.dark-mode .about-intro {
	color: #ccc;
}

.tech-skills-bar {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 15px 20px; 
    margin-bottom: 0;
    line-height: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.video-container {
position: relative;
overflow: hidden;
width: 100%;
max-width: 1280px;
margin: 20px auto;
padding-top: 56.25%;
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

video {
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: 720px;
}

.intro-card {
	background-color: #ffffff;
	border: 1px solid #ddd;
	border-radius: 0px;
	padding: 25px;
	margin: 20px 0;
}

#home ul {
	margin-left: 40px;
	margin-top: 10px;
	margin-bottom: 10px;
}

#home ul li {
	margin-bottom: 8px;
}

.footer-contact {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 25px;
	margin: 40px 0 20px 0;
	text-align: center;
}

.footer-contact p {
	font-size: 18px;
	line-height: normal;
	margin: 5px 0;
}

.dark-flick-header-card {
	background-color: #010409;
	border: 1px solid #a1a1a1;
	border-radius: 8px;
	padding: 25px;
	margin: 20px 0;
	color: #ffffff;
}

.dark-flick-header-card p {
	color: #0f0f0f;
}

.dark-flick-header-card ul {
	margin-left: 40px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.dark-flick-header-card ul li {
	margin-bottom: 8px;
	color: #ffffff;
}

body.dark-mode .dark-info-card {
	background-color: #010409;
	border-color: #30363d;
}

/* =========================================
   HEADER OUTER WRAPPER
   ========================================= */

.header-outer {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 700px;
    width: 90%;
    margin: 24px auto 0;
}

.header-outer .theme-toggle-wrapper {
    position: static;
    flex-shrink: 0;
}

/* =========================================
   UNIFIED HEADER — business card proportions
   ========================================= */
.unified-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    width: min(700px, 95%);
    margin: 24px auto 0;
    padding: 14px 28px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a2560, #2e1760, #4a1280, #1a3570, #1a2560);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite, glow 3s ease-in-out infinite;
    border: 2px solid rgba(120, 100, 220, 0.5);
    border-radius: 12px;
}

.unified-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.uh-name {
    padding: 0; 
}

.uh-name b {
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.uh-divider {
    color: rgba(160, 130, 255, 0.5);
    font-size: 18px;
    font-weight: 300;
    user-select: none;
}

.uh-email, .uh-phone {
    position: relative;
    white-space: nowrap;
}

.uh-email {
    padding-right: 26px;
}

.quick-links-bar {
    width: min(700px, 95%);
}

.unified-header p {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.unified-header b {
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.unified-header a {
    color: #a8c8ff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background-color: rgba(20, 10, 60, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(140, 100, 255, 0.3);
    display: inline-block;
    margin: 1px 0;
    padding: 1px 10px;
    border-radius: 10px;
    text-shadow: none;
    transition: all 0.2s ease;
}

.unified-header a:hover {
    background-color: rgba(50, 20, 120, 0.7);
    border-color: rgba(160, 120, 255, 0.6);
    color: #cce0ff;
    transform: translateY(-1px);
    text-decoration: underline;
}

body.dark-mode .unified-header {
    background: linear-gradient(135deg, #111840, #1e0f40, #2e0a50, #111f40, #111840);
    background-size: 300% 300%;
    border: 2px solid rgba(140, 100, 255, 0.6);
}

.quick-links-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 360px;
    margin: 10px auto 20px;
    flex-wrap: wrap;
}

.quick-links-bar .quick-link {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    min-width: 88px;
    text-align: center;
    justify-content: center;
    gap: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #2e1f7a 0%, #4a1280 100%);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    border: 1px solid rgba(140, 100, 255, 0.35);
}

.quick-links-bar .quick-link:hover {
    background: linear-gradient(135deg, #3d2a99 0%, #5e1a99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(80, 20, 160, 0.4);
    text-decoration: none;
    color: white;
}

body.dark-mode .quick-links-bar .quick-link {
    background: linear-gradient(135deg, #1e1450 0%, #30085a 100%);
    border-color: rgba(160, 120, 255, 0.4);
}

body.dark-mode .quick-links-bar .quick-link:hover {
    background: linear-gradient(135deg, #2a1a6e 0%, #420a7a 100%);
    box-shadow: 0 6px 16px rgba(100, 40, 200, 0.5);
}

/* =========================================
   BANNER — full bleed, no width cap
   ========================================= */

.portfolio-banner-container {
    width: 100%;
    margin-left: 0;
    overflow: hidden;
    line-height: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.portfolio-banner {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.footer-contact b {
	font-size: 20px;
}

.footer-contact i {
	font-size: 16px;
}

.footer-contact a {
	font-size: 16px;
}

.image-card .screenshot-grid {
	margin: 0;
}

.project-image-card {
	background: #eee7e7;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	border: 1px solid #e5e7eb;
}

.project-image-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s ease;
}

body.dark-mode .project-image-card {
	background-color: #333333;
	border-color: #444;
}

@media (max-width: 1200px) {
	.tab-content {
		padding: 30px 15px;
	}

	.screenshot-grid img:not([src$="tablet.png"]) {
		max-width: 250px;
	}
}

@media (max-width: 992px) {
	.hero-section {
		padding: 4px 15px;
		margin-top: 8px;
		margin-bottom: 8px;
	}

	.project-filters {
		gap: 10px;
	}

	.filter-btn {
		padding: 8px 20px;
		font-size: 13px;
	}

	.screenshot-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	.buddy-screenshot-grid img {
		width: 48%;
		max-width: 250px;
	}

	.mario-image {
		width: 90%;
	}
}

.erd-wrapper {
	width: 100%;
	max-width: 850px; 
	margin: 20px auto; 
	border: 1px solid #eee; 
	box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
	overflow: hidden;
	border-radius: 8px;
}

.erd-wrapper iframe {
	width: 100%;
	height: 650px; 
	border: none;
	display: block;
}

@media (max-width: 600px) {
	.erd-wrapper iframe {
		height: 500px; 
		overflow: auto;
	}
}

.screenshot-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.screenshot-grid img:not([src$="tablet.png"]) {
	width: 90%;
	max-width: 300px;
	height: auto;
	margin: 10px;
	box-sizing: border-box;
	border-radius: 0;
	box-shadow: none;
}

.screenshot-grid img[src$="tablet.png"] {
	width: 90%; 
	max-width: 700px;
	height: auto;
	margin: 10px auto; 
	display: block;
}

.code-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	align-items: flex-start; 
	margin-top: 15px;
	margin-bottom: 20px;
}

.code-gallery img {
	max-width: 100%; 
	width: auto;     
	height: auto;    
	max-height: 600px; 
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	border: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .code-gallery img {
	border-color: rgba(255,255,255,0.1);
	box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.alt-download-link {
	position: relative;
	color: #0066cc;
	text-decoration: underline;
	font-weight: 700;
	cursor: pointer;
}

.alt-download-link:hover {
	text-decoration: underline;
}

/* =========================================
   HEADER-THEMED FOOTER
   ========================================= */
.footer-metallic-black {
    background: linear-gradient(135deg, #1a2560, #2e1760, #4a1280, #1a3570, #1a2560);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite, glow 3s ease-in-out infinite;
    border: 2px solid rgba(120, 100, 220, 0.5);
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.footer-metallic-black p {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-size: 16px;
    line-height: 1.7;
    margin: 5px 0;
    z-index: 1;
    position: relative;
}

/* High-contrast links for the footer (Matches Header Pill Style) */
.footer-metallic-black a {
    color: #a8c8ff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background-color: rgba(20, 10, 60, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(140, 100, 255, 0.3);
    display: inline-block;
    margin: 1px 0;
    padding: 1px 10px;
    border-radius: 10px;
    text-shadow: none;
    transition: all 0.2s ease;
}

.footer-metallic-black a:hover {
    background-color: rgba(50, 20, 120, 0.7);
    border-color: rgba(160, 120, 255, 0.6);
    color: #cce0ff;
    transform: translateY(-1px);
    text-decoration: underline;
}

/* Dark Mode Overrides (Removes pill background, keeps bright text + shadow) */
body.dark-mode .footer-metallic-black a {
    background-color: transparent;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    color: #99ccff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); 
}

body.dark-mode .footer-metallic-black a:hover {
    background-color: transparent;
    color: #cce0ff;
    transform: translateY(-1px); 
    text-decoration: underline;
}

body.dark-mode .footer-metallic-black {
    background: linear-gradient(135deg, #111840, #1e0f40, #2e0a50, #111f40, #111840);
    border: 2px solid rgba(140, 100, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer-metallic-black p {
    color: #e0e0e0;
}

/* =========================================
   THEME-CENTRIC ACTION BUTTONS (GitHub, Downloads, Docs)
   ========================================= */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

a.theme-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px; 
    border-radius: 25px;
    font-size: 14.5px; 
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    
    color: var(--text-action-btn);
    background: var(--bg-action-btn);
    border: 1px solid var(--border-action-btn);
    box-shadow: var(--shadow-action-btn);
}

a.theme-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

a.theme-action-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-action-btn-hover);
    color: var(--text-action-btn-hover);
    box-shadow: var(--shadow-action-btn-hover);
}

a.theme-action-btn:hover svg {
    transform: scale(1.1);
}

/* ---------------------------------------------------------------- */
/* Birdie Animation */
/* ---------------------------------------------------------------- */
#bird svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); }
.bird.flying #leftWing { animation: flapLeft 0.15s ease-in-out infinite; }
.bird.flying #rightWing { animation: flapRight 0.15s ease-in-out infinite; }
.bird.idle #leftWing { animation: idleFlapLeft 2s ease-in-out infinite; }
.bird.idle #rightWing { animation: idleFlapRight 2s ease-in-out infinite; }
.bird.idle #birdHead {
    animation: idleHeadTurn 4s ease-in-out infinite;
    transform-origin: 20px 12px; 
    transform-box: view-box; 
}

.bird {
    position: absolute;
    z-index: 9900;
    pointer-events: none;
    width: 60px;
    height: 60px;
    left: 65%;        
    top: 180px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    contain: layout style;
}

.bird-tooltip {
    position: absolute; 
    top: 0;
    left: auto;
    right: 0;
    bottom: auto;
    transform: none;

    background: rgba(20, 20, 20, 0.88);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    white-space: nowrap;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 9901;
}

.bird-tooltip.visible {
    opacity: 1;
}

.bird-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    left: auto;
    transform: none;
    border: 5px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.88);
}

.bird-tooltip.flipped::after {
    left: 14px;
    right: auto;
}

@keyframes flapLeft { 0%, 100% { d: path("M 12 20 Q 8 18 6 22"); } 50% { d: path("M 12 20 Q 8 12 6 8"); } }
@keyframes flapRight { 0%, 100% { d: path("M 28 20 Q 32 18 34 22"); } 50% { d: path("M 28 20 Q 32 12 34 8"); } }
@keyframes idleFlapLeft { 0%, 90%, 100% { d: path("M 12 20 Q 8 18 6 22"); } 95% { d: path("M 12 20 Q 8 12 6 8"); } }
@keyframes idleFlapRight { 0%, 90%, 100% { d: path("M 28 20 Q 32 18 34 22"); } 95% { d: path("M 28 20 Q 32 12 34 8"); } }
@keyframes idleHeadTurn { 
    0%, 20% { transform: rotate(0deg) scaleX(1); }
    25%, 35% { transform: rotate(20deg) scaleX(1); }
    40%, 45% { transform: rotate(0deg) scaleX(1); }
    50%, 60% { transform: rotate(-20deg) scaleX(-1); }
    65%, 70% { transform: rotate(0deg) scaleX(1); }
    75%, 80% { transform: rotate(-5deg) scaleX(1) translateY(-3px); }
    85%, 100% { transform: rotate(0deg) scaleX(1); }
}
@keyframes idleTailFlip { 
    0%, 45% { transform: scaleX(1); }
    50%, 60% { transform: scaleX(-1); }
    65%, 100% { transform: scaleX(1); }
}

.bird.idle #tail {
    animation: idleTailFlip 4s ease-in-out infinite;
    transform-origin: 20px 24px; 
    transform-box: view-box;
}

.bird.landed #birdUpper {
    animation: squashStretch 0.4s ease-out forwards;
    transform-origin: 20px 32px; 
}

@keyframes squashStretch {
    0% { transform: scale(1, 1); }
    40% { transform: scale(1.25, 0.75); }
    60% { transform: scale(0.9, 1.1); }
    100% { transform: scale(1, 1); }   
}

/* =========================================
   DARK MODE ELEVATION & DEPTH CORRECTIONS
   ========================================= */
/* 3. Recessed / "Terminal" Cards (Fixing the #010409 Black Holes) */
body.dark-mode .dark-flick-header-card,
body.dark-mode .dark-info-card,
body.dark-mode .image-card:has(.ci-images),
body.dark-mode .content-card:has(img[src*="figma-"]) {
    background-color: #181818; 
    border-color: #333;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.4); 
}

/* =========================================
   MOBILE BREAKPOINT (Max Width: 768px)
   ========================================= */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .unified-header {
        margin-top: 50px;
    }

    .unified-header-inner {
        flex-direction: column;
        gap: 4px;
    }

    /* Hide the vertical dividers when stacked to prevent "orphans" */
    .unified-header-inner .uh-divider {
        display: none;
    }

    .contact-card {
        margin: 10px;
        padding: 20px;
    }

    .contact-card b {
        font-size: 20px;
    }

    .hero-section {
        padding: 50px 15px;
        margin: -10px -10px 30px -10px;
        min-height: auto;
    }

    .hero-section .container {
        padding: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .tech-skills-bar {
        font-size: 0.85rem;
        padding: 12px;
    }

    .quick-links {
        flex-direction: column;
        gap: 15px;
    }

    .quick-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .quick-links-bar .quick-link {
        width: auto;
        max-width: none;
    }

    .tab-nav {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 15px 10px;
        font-size: 14px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .about-intro {
        font-size: 16px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .flick-header {
        flex-direction: column;
        text-align: center;
    }

    .flick-logo {
        margin: 0 auto;
    }

    .flick-card > p {
        margin-top: 6px;
        padding-left: 0;
        text-align: center;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid img:not([src$="tablet.png"]) {
        max-width: 100%;
        width: 100%;
    }

    .buddy-screenshot-grid {
        flex-direction: column;
    }

    .buddy-screenshot-grid img {
        width: 100%;
        max-width: 400px;
        margin: 10px auto;
    }

    .mario-image {
        width: 100%;
    }

    .travel-images-row {
        flex-direction: column;
    }

    .travel-images-row img {
        width: 100%;
    }

    .content-card ul {
        margin-left: 25px;
    }

    .content-card,
    .project-image-card {
        padding: 15px;
    }

    .lightbox-close {
        top: -40px;
        font-size: 40px;
    }

    .lightbox-nav {
        font-size: 35px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .project-details {
        padding: 20px;
        margin: 10px 0 15px 0;
    }

    .project-details h3 {
        font-size: 22px;
    }

    .project-modal.show {
        padding: 20px 10px;
        align-items: flex-start;
    }

    .project-modal-body {
        padding: 30px 20px;
        margin: 10px auto;
        max-height: calc(100vh - 40px);
    }

    #project-modal-content h3 {
        font-size: 24px;
        padding-right: 35px;
    }

    .project-modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }

    #project-modal-content .travel-images-row {
        flex-direction: column;
    }

    #project-modal-content .travel-images-row img {
        max-width: 100%;
    }

    #project-modal-content .buddy-screenshot-grid img {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 15px;
    }

    .theme-toggle-wrapper {
        top: 10px;
        left: 10px;
    }

    .toggle-track {
        width: 70px;
        height: 32px;
    }

    .toggle-thumb {
        width: 24px;
        height: 24px;
    }

    body.dark-mode .toggle-thumb {
        transform: translateX(38px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .tab-button {
        padding: 12px 8px;
        font-size: 13px;
    }

    .project-card-content {
        padding: 15px;
    }

    .project-card-content h3 {
        font-size: 18px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
    }

    .unified-header,
    .quick-links-bar {
        width: 90%;
    }

    .project-modal-body {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    #project-modal-content h3 {
        font-size: 22px;
    }
    
    .project-modal-close {
        top: 12px;
        right: 12px;
        font-size: 24px;
    }
    
    .project-card::after {
        font-size: 11px;
        margin-top: 12px;
        padding-top: 12px;
    }
}