@import url('https://fonts.googleapis.com/css2?family=Belanosima:wght@400;600;700&family=Google+Sans+Code:ital,wght,MONO@0,300..800,1;1,300..800,1&family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Noto+Sans+Bengali:wght@100..900&display=swap');

/* ==========================================================================
   Unijoy for Android — custom theme
   Modern dark UI layered on top of Bootstrap 3.3.5.
   Structure is preserved; this file refines typography, color, spacing,
   components (nav, hero, cards, buttons) and interaction states.
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
	/* Surfaces */
	--bg:            #14151a;
	--surface:       #1c1e26;
	--surface-2:     #23262f;
	--surface-media: #eceef3;
	--border:        rgba(255, 255, 255, 0.09);
	--border-strong: rgba(255, 255, 255, 0.16);

	/* Text */
	--text:          #d7dae2;
	--text-muted:    #9aa0ad;
	--heading:       #ffffff;

	/* Brand / accent */
	--accent:        #5555ff;
	--accent-hover:  #7070ff;
	--accent-contrast:#ffffff;
	--accent-soft:   rgba(85, 85, 255, 0.14);
	--link:          #9c9cff;
	--link-hover:    #c1c1ff;

	/* Shape & motion */
	--radius:        14px;
	--radius-sm:     10px;
	--shadow:        0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.28);
	--shadow-lg:     0 12px 40px rgba(0,0,0,0.45);
	--ease:          200ms cubic-bezier(0.4, 0, 0.2, 1);
	--maxw:          1120px;
}

/* --------------------------------------------------------------- Base type */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;      /* keeps anchored sections clear of fixed navbar */
}

body {
	padding-top: 64px;
	background-color: var(--bg);
	color: var(--text);
	font-family: "Noto Sans Bengali", "Google Sans Flex", sans-serif;
	font-size: 17px;
	line-height: 1.85;
	text-align: left;              /* replaces global justify — cleaner rag */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--heading);
	text-align: left;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

p {
	margin-bottom: 1.1em;
}

/* Latin runs embedded in Bengali copy render in Google Sans Flex */
.latin { font-family: "Google Sans Flex", sans-serif; }
/* The hero title "Unijoy for Android" uses the Belanosima display face */
.brand { font-family: "Belanosima", sans-serif; font-weight: 400; }

a {
	color: var(--link);
	text-decoration: none;
	transition: color var(--ease);
}
a:hover, a:focus {
	color: var(--link-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: #fff;
}

/* Visible keyboard-focus ring for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--accent-hover);
	outline-offset: 2px;
}

.container {
	max-width: var(--maxw);
}

/* --------------------------------------------------------------- Page head */
.page-header {
	border-bottom: 1px solid var(--border);
	padding-bottom: 14px;
	margin: 56px 0 28px;
	font-size: 30px;
	font-weight: 700;
}
.page-header small {
	display: inline-block;
	margin-top: 6px;
	color: var(--text-muted);
	font-size: 60%;
	font-family: "Noto Sans Bengali", serif;
}

/* --------------------------------------------------------------- Navbar */
.navbar-inverse.navbar-fixed-top {
	background-color: rgba(20, 21, 26, 0.85);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border: 0;
	border-bottom: 1px solid var(--border);
	min-height: 64px;
	box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.navbar-inverse .navbar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 64px;
	padding-top: 0;
	padding-bottom: 0;
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.01em;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus { color: #fff; }
.navbar-inverse .navbar-brand img { display: block; }

.navbar-inverse .navbar-nav > li > a {
	color: var(--text-muted);
	font-weight: 600;
	padding-top: 22px;
	padding-bottom: 22px;
	transition: color var(--ease), background-color var(--ease);
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
	color: #fff;
	background-color: rgba(255,255,255,0.04);
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
	background-color: rgba(255,255,255,0.06);
	color: #fff;
}
.navbar-inverse .navbar-toggle { border-color: var(--border-strong); }
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus { background-color: rgba(255,255,255,0.08); }
.navbar-inverse .navbar-toggle .icon-bar { background-color: #cfd2da; }
.navbar-inverse .navbar-collapse { border-color: var(--border); }

/* Dropdown menu */
.navbar-inverse .dropdown-menu {
	background-color: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	padding: 6px;
	margin-top: 6px;
}
.navbar-inverse .dropdown-menu > li > a {
	color: var(--text);
	border-radius: 8px;
	padding: 8px 14px;
}
.navbar-inverse .dropdown-menu > li > a:hover,
.navbar-inverse .dropdown-menu > li > a:focus {
	background-color: var(--accent-soft);
	color: #fff;
}

/* ------------------------------------------------------------------- Hero */
.jumbotron.feature {
	position: relative;
	margin-bottom: 0;
	padding: 96px 0 104px;
	background-color: #0b0c10;
	color: #fff;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}
/* Legibility overlay over the background photo */
.jumbotron.feature::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(11,12,16,0.95) 0%, rgba(11,12,16,0.72) 42%, rgba(11,12,16,0.35) 100%),
		linear-gradient(0deg, rgba(11,12,16,0.6), rgba(11,12,16,0));
	pointer-events: none;
}
.jumbotron.feature .container { position: relative; z-index: 1; }
.jumbotron.feature h1 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 14px;
	font-size: 46px;
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
}
.jumbotron.feature h1 img { flex: none; }
.jumbotron.feature p {
	margin: 0;
	max-width: 540px;
	font-size: 20px;
	color: rgba(255,255,255,0.82);
}

/* ---------------------------------------------------------- Section intro */
.container > .col-lg-12 > h3 {
	text-align: center;
	font-size: 30px;
	font-weight: 700;
	margin: 56px 0 8px;
}

/* ---------------------------------------------------- Feature cards (intro) */
/* Equal-height cards once they sit side by side (>=992px) */
@media (min-width: 992px) {
	.feature-row {
		display: flex;
		flex-wrap: wrap;
		gap: 28px;                 /* visible gutter between cards */
	}
	.feature-row > .article-intro {
		flex: 1 1 0;               /* equal widths, shrink to make room for the gap */
		min-width: 0;
		display: flex;
		flex-direction: column;
	}
}
.article-intro {
	margin-bottom: 28px;
	margin-top: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.article-intro:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lg);
}
.article-intro img {
	width: 100%;
	height: 176px;
	object-fit: contain;
	background: #e8e8e8;
	border-radius: var(--radius-sm);
	padding: 10px;
	margin-bottom: 18px;
}
/* The phone photo fills its panel edge-to-edge (no inset) */
.article-intro img[src="./img/mockup.jpg"] {
	padding: 0px;
	object-fit: cover;
	background: #000;
}
.article-intro h3 {
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 10px;
}
.article-intro p {
	color: var(--text-muted);
	margin-bottom: 0;
	font-size: 16px;
	line-height: 1.8;
}

/* ---------------------------------------------- Supported apps (footer-blurb) */
.footer-blurb {
	padding: 20px 0 56px;
	background: transparent;
	color: var(--text);
}
.footer-blurb .page-header {
	color: #fff;
	border-bottom-color: var(--border);
}
.footer-blurb-item {
	flex: 1 1 0;                   /* equal widths, shrink to make room for the gap */
	min-width: 0;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
	display: flex;
	flex-direction: column;
}
.footer-blurb-item:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lg);
}
.footer-blurb-item h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 12px;
}
.footer-blurb-item h3 img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 6px;
	flex: none;
}
.footer-blurb-item p {
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.7;
	flex: 1 1 auto;
}
/* Keep the four app cards on one flex row so heights match */
.footer-blurb .row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;                     /* visible gutter between app cards */
}
.footer-blurb .row > .col-lg-12 { width: 100%; flex: 0 0 100%; }
.footer-blurb-item p:last-child { flex: none; margin-top: 16px; margin-bottom: 0; }

/* --------------------------------------------------------------- Buttons */
.btn {
	border-radius: 10px;
	font-family: inherit;
	font-weight: 600;
	padding: 9px 20px;
	transition: transform var(--ease), background-color var(--ease),
	            border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-default {
	background-color: var(--accent);
	border: 1px solid var(--accent);
	color: var(--accent-contrast);
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
	color: #fff;
	box-shadow: 0 6px 18px rgba(85, 85, 255, 0.35);
}

/* --------------------------------------------------------------- Small print */
.small-print {
	background-color: #0e0f13;
	border-top: 1px solid var(--border);
	padding: 28px 0;
	color: var(--text-muted);
	font-size: 14px;
}
.small-print p { margin-bottom: 6px; }
.small-print a { color: var(--text-muted); }
.small-print a:hover { color: #fff; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 767px) {
	.footer-blurb .row { display: block; }
	.footer-blurb-item { margin-bottom: 20px; }
	body { font-size: 16px; }
	.navbar-inverse.navbar-fixed-top { min-height: 56px; }
	body { padding-top: 56px; }
	.navbar-inverse .navbar-brand { height: 56px; }
	.navbar-inverse .navbar-nav > li > a { padding-top: 12px; padding-bottom: 12px; }
	.jumbotron.feature { padding: 64px 0 68px; }
	.jumbotron.feature h1 { font-size: 32px; gap: 12px; }
	.jumbotron.feature h1 img { height: 42px; }
	.jumbotron.feature p { font-size: 17px; }
	.jumbotron.feature::before {
		background:
			linear-gradient(90deg, rgba(11,12,16,0.92) 0%, rgba(11,12,16,0.7) 100%),
			linear-gradient(0deg, rgba(11,12,16,0.7), rgba(11,12,16,0));
	}
	.page-header { font-size: 25px; margin-top: 40px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.article-intro:hover,
	.footer-blurb-item:hover { transform: none; }
}
