/* =========================================================
   :root - Theme Variables
   ========================================================= */
:root {
	--bg: #f6f7fb;
	--card: #ffffff;
	--muted: #6b7280;
	--text: #0f172a;
	--accent: #0a22fa;
	--surface: #eef2ff;
	--radius: 12px;
}

/* =========================================================
   Global Styles
   ========================================================= */
* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Container
   ========================================================= */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* =========================================================
   Site Wrapper
   ========================================================= */
.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* =========================================================
   Header
   ========================================================= */
header.site-header {
	background: linear-gradient(135deg, #0a22fa, #4f8bff);
	color: #fff;
	padding: 0.7rem 1rem;
	z-index: 1000;
}

.header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

/* Logo Section */
.logo-section {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.logo-link {
	display: flex;
	align-items: center;
}

/* =========================================================
   Logo Image Support
   ========================================================= */
.logo-link img {
    display: block;
    max-width: 175px;        /* same as SVG width */
    max-height: 120px;       /* same as SVG height */
    width: auto;
    height: auto;
    object-fit: contain;    /* ensures full logo fits inside box */
}

/* Optional: adjust alignment with version text */
.logo-section {
    gap: 0.5rem;            /* keep spacing consistent with SVG */
    align-items: center;     /* vertically align logo and version */
}


/* =========================================================
   Mobile Logo Adjustments
   ========================================================= */
@media (max-width: 768px) {
    .logo-link img {
        max-width: 120px;   /* smaller width on mobile */
        max-height: 80px;   /* smaller height on mobile */
    }

    .tool-version {
        font-size: 0.75rem; /* shrink version text on mobile */
    }

    .logo-section {
        gap: 0.3rem;        /* reduce spacing on small screens */
    }
}




.tool-version {
	font-size: 0.85rem;
	color: #cbd5ff;
}

/* Navigation */
.site-nav {
	position: relative;
}

.site-nav ul {
	display: flex;
	gap: 1.2rem;
	list-style: none;
	    margin: 30px 0;
    
}

.site-nav a,
.nav-links a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	transition: background 0.3s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-nav a:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Burger Menu */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.6rem;
	color: #fff;
	cursor: pointer;
	position: relative;
}

/* =========================================================
   Mobile Menu
   ========================================================= */

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		font-size: 2rem;
		position: absolute;  /* position it in header */
       
        right: 1rem;         /* distance from right edge */
        
	}
	header.site-header {
	background: linear-gradient(135deg, #0a22fa, #4f8bff);
	color: #fff;
	padding: 1.4rem 1rem;
	z-index: 1000;
}
	
	.site-nav ul {
	display: flex;
	gap: 1.2rem;
	list-style: none;
	margin: 72px 0;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: flex-start;
}

	.nav-links {
		display: grid;
		grid-template-columns: repeat(1, 1fr); /* 2 boxes per row */
		gap: 1rem;
		position: fixed;
		top: 0;
		right: -100%;
		height: 100%;
		width: 90%; /* roughly half width for 2 per row with gap */
	margin-bottom: 1rem;
		background: linear-gradient(135deg, #0a22fa, #4f8bff);
		padding: 3rem 1rem;
		transition: right 0.3s ease;
	}

	.nav-links.show {
		right: 0;
	}

	.nav-links li {
		margin: 0;
	}

	.nav-links a {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 1.2rem;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 10px;
		font-size: 1rem;
		text-align: center;
	}

	.nav-links a span {
		display: block;
		margin-top: 0.5rem;
		font-size: 0.95rem;
	}

	.nav-links a:hover {
		background: rgba(255, 255, 255, 0.2);
	}
}

/* =========================================================
   Main Content
   ========================================================= */
.main {
	flex: 1;
	padding-bottom: 2rem;
}

/* Hero Section */
.hero .lead {
	font-size: 1rem;
	color: var(--muted);
	text-align: center;
	margin: 0 0 1.25rem;
	padding: 0.25rem 0;
}

/* Section Titles */
.section-title {
	font-size: 1.1rem;
	margin: 1rem 0 0.5rem;
	font-weight: 600;
}

/* =========================================================
   Tools Grid
   ========================================================= */
.tools-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

/* Tablet (3 cards per row) */
@media (max-width: 1024px) {
	.tools-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.tool-card {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--card-color, #f0f0f0) 20%, #ffffff),
		#ffffff);
	border-radius: var(--radius);
	padding: 10px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
	transition: all 0.2s ease;
	position: relative;
}
}

/* Mobile (2 cards per row) */
@media (max-width: 768px) {
	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.tool-card {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--card-color, #f0f0f0) 20%, #ffffff),
		#ffffff);
	border-radius: var(--radius);
	padding: 10px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
	transition: all 0.2s ease;
	position: relative;
}

.btn {
	font-size: 12px;
}
}

/* Tool Card */
.tool-card {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--card-color, #f0f0f0) 20%, #ffffff),
		#ffffff);
	border-radius: var(--radius);
	padding: 10px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
	transition: all 0.2s ease;
	position: relative;
}

.tool-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--card-color, #e0e0e0) 35%, #d6eaff),
		#ffffff);
}

/* Tool Card Inner */
.tool-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tool-icon {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	color: #fff;
	font-weight: bold;
	flex-shrink: 0;
	background: var(--card-color, #666);
}

.tool-title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.tool-desc {
	margin: 0 0 0.9rem;
	color: var(--muted);
	font-size: 0.92rem;
	flex: 1;
}

.tool-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.54rem 0.85rem;
	border-radius: 5px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font-weight: 600;
	background: var(--accent);
	color: #fff;
}

.btn-outline {
	background: transparent;
	color: var(--accent);
	border: 1px solid rgba(10, 34, 250, 0.25);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: linear-gradient(135deg, #0a22fa, #4f8bff);
	padding: 1rem 0;
	color: #fff;
	margin-top: auto;
}

.footer-links a,
.footer-content {
	color: #e0e7ff;
}

/* =========================================================
   Responsive Tweaks
   ========================================================= */
@media (max-width: 768px) {
	.site-title {
		font-size: 1.1rem;
	}

	.tool-actions {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.footer-content {
		justify-content: center;
		text-align: center;
	}

	.container {
		padding: 0 0.75rem;
	}
}
