
/* Modern CSS Reset */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.7;
	color: #2c3e50;
	background-color: #fff;
	overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 1rem;
	color: #1a202c;
}

h2 {
	color: #fff;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
	margin-bottom: 1.5rem;
	color: #4a5568;
	max-width: 65ch;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Title Section */
.title-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	text-align: center;
	padding: 4rem 0;
	margin-bottom: 0;
}

.title-section h1 {
	color: white;
	margin-bottom: 1.5rem;
	font-weight: 700;
}

.subtitle {
	font-size: 1.25rem;
	opacity: .9;
	max-width: 60ch;
	margin: 0 auto;
	color: white;
}

/* Table of Contents */
.toc {
	padding: 4rem 0;
	background: #f8fafc;
}

.toc h2 {
	text-align: center;
	margin-bottom: 3rem;
	color: #fff;
}

.toc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	max-width: 1000px;
	margin: 0 auto;
}

.toc-item {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	text-decoration: none;
	color: #2d3748;
	transition: all .3s ease;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.toc-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, .1);
	border-color: #667eea;
}

.toc-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2d3748;
}

/* Section Styles */
.section {
	padding: 4rem 0;
}

.section:nth-child(even) {
	background: #f8fafc;
}

.section h2 {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.section h2::after {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #667eea, #764ba2);
	border-radius: 2px;
}

/* Benefits Section */
.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.benefit-card {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
	transition: all .3s ease;
}

.benefit-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1);
}

.benefit-card h3 {
	color: #2d3748;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.benefit-card p {
	color: #718096;
	margin: 0 auto;
}

/* Content Layout */
.content-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 800px;
	margin: 0 auto;
}

.content-text {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
}

.content-text h3 {
	color: #667eea;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.technique-list {
	list-style: none;
	margin: 2rem 0;
}

.technique-list li {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f7fafc;
	border-radius: 8px;
	border-left: 4px solid #667eea;
	position: relative;
}

.technique-list li strong {
	color: #2d3748;
	display: block;
	margin-bottom: .5rem;
}

.technique-list li a {
	color: #667eea;
	text-decoration: none;
	font-size: .9rem;
	font-weight: 500;
	transition: color .3s ease;
	margin-left: .5rem;
}

.technique-list li a:hover {
	color: #764ba2;
	text-decoration: underline;
}

.tip-box {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	margin: 2rem 0;
	font-weight: 500;
	box-shadow: 0 10px 15px -3px rgba(102, 126, 234, .2);
}

.tip-box strong {
	display: block;
	margin-bottom: .5rem;
	font-size: 1.1rem;
}

/* Technique Cards */
.footwork-techniques, .defense-grid, .training-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.technique-card, .defense-card, .training-card {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
	transition: all .3s ease;
}

.technique-card:hover, .defense-card:hover, .training-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1);
}

.technique-card h3, .defense-card h3, .training-card h3 {
	color: #667eea;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

/* Punching Section */
.punching-fundamentals {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	margin-bottom: 3rem;
	margin-bottom: 3rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.technique-steps {
	list-style: none;
	counter-reset: step-counter;
}

.technique-steps li {
	counter-increment: step-counter;
	margin-bottom: 1.5rem;
	padding: 1.5rem;
	background: #f7fafc;
	border-radius: 12px;
	position: relative;
	padding-left: 4rem;
	border-left: 4px solid #667eea;
}

.technique-steps li::before {
	content: counter(step-counter);
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: #667eea;
	color: white;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: .9rem;
}

/* Punches Grid */
.punches-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
	margin-bottom: 3rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.punch-card {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
	transition: all .3s ease;
}

.punch-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1);
}

.punch-card h3 {
	color: #2d3748;
	margin-bottom: .5rem;
	font-size: 1.5rem;
}

.punch-card h4 {
	color: #667eea;
	margin: 1.5rem 0 1rem 0;
	font-size: 1.25rem;
}

.punch-card ul {
	margin: 1rem 0;
}

.punch-card li {
	margin-bottom: .75rem;
	color: #4a5568;
}

.punch-benefits {
	background: #edf2f7;
	padding: 1.5rem;
	border-radius: 12px;
	margin-top: 1.5rem;
	border-left: 4px solid #667eea;
}

.punch-benefits strong {
	color: #2d3748;
	display: block;
	margin-bottom: .5rem;
}

/* Punching Tips */
.punching-tips {
	background: white;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
	border: 1px solid #e2e8f0;
	max-width: 800px;
	margin: 0 auto;
}

.tips-list {
	list-style: none;
}

.tips-list li {
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f7fafc;
	border-radius: 8px;
	border-left: 4px solid #48bb78;
	position: relative;
	padding-left: 3rem;
}

.tips-list li::before {
	content: "✓";
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #48bb78;
	font-weight: bold;
	font-size: 1.2rem;
}

/* Call to Action */
.cta-section {
	background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
	color: white;
	padding: 4rem 0;
	text-align: center;
}

.cta-section h2 {
	color: white;
	margin-bottom: 1rem;
}

.cta-section p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	opacity: .9;
	color: white;
	max-width: none;
}

.cta-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.cta-button {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 1rem 2rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	transition: all .3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, .3);
}

.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, .4);
}

.cta-button.secondary {
	background: transparent;
	border: 2px solid #667eea;
	color: #667eea;
}

.cta-button.secondary:hover {
	background: #667eea;
	color: white;
}

/* Scroll to Top Button */
.scroll-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 50%;
	width: 3.5rem;
	height: 3.5rem;
	font-size: 1.5rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all .3s ease;
	z-index: 1000;
	box-shadow: 0 4px 15px rgba(102, 126, 234, .3);
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, .4);
}

/* Reading Progress Bar */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: linear-gradient(90deg, #667eea, #764ba2);
	z-index: 1001;
	transition: width .3s ease;
}

/* Animation Classes */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .6s ease, transform .6s ease;
}

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

.fade-in-item {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Focus Styles for Accessibility */
.toc-item:focus, .cta-button:focus, .scroll-to-top:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}
	
	.title-section {
		padding: 3rem 0;
	}
	
	.section {
		padding: 3rem 0;
	}
	
	.toc-grid, .benefits-grid, .footwork-techniques, .defense-grid, .training-grid {
		grid-template-columns: 1fr;
	}
	
	.punches-grid {
		grid-template-columns: 1fr;
	}
	
	.technique-card, .defense-card, .training-card, .punch-card, .benefit-card {
		padding: 2rem;
	}
	
	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}
	
	.scroll-to-top {
		width: 3rem;
		height: 3rem;
		font-size: 1.25rem;
		bottom: 1.5rem;
		right: 1.5rem;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 .75rem;
	}
	
	.title-section {
		padding: 2.5rem 0;
	}
	
	.section {
		padding: 2.5rem 0;
	}
	
	.technique-card, .defense-card, .training-card, .punch-card, .benefit-card, .content-text, .punching-fundamentals, .punching-tips {
		padding: 1.5rem;
	}
	
	.toc-item {
		padding: 1.5rem;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	
	html {
		scroll-behavior: auto;
	}
}

/* Print Styles */
@media print {
	.scroll-to-top, .cta-section {
		display: none;
	}
	
	.section {
		break-inside: avoid;
		padding: 1rem 0;
	}
	
	body {
		font-size: 12pt;
		line-height: 1.4;
		color: #000;
	}
	
	.title-section {
		background: none;
		color: #000;
		padding: 1rem 0;
	}
}
