/* Core Styles */

body {
	margin: 0;
	font-family: 'Lato', sans-serif;
	background: #333;
	color: #fff;
	font-size: 1.1em;
	line-height: 1.5;
	text-align: center;
	font-weight: 300;
}
img {
	display: block;
	width: 100%;
	height: auto;
}
h1, h2, h3 {
	margin: 0;
	padding: 1em, 0;
}
p {
	margin: 1rem 0 1rem 0;
	padding: 1em 0 0 0;
}
hr {
	height: 1px;
	color: #ccc;
	background-color: #ccc;
	border: none;
}

/* Fine Adjustment */
.ali-left {
	text-align: left;
}

.mt-1em {
	margin-top: 1em;
}

/* Define Button*/
.btn, 
#section-b li .b-btn,
#section-digital .btn {
	background: #2690d4;
	color: #fff;
	text-decoration: none;
	padding: 0.75em 1.5em;
	border: 1px solid #1B6797;
	margin: 0 0 1em 0;
}
.btn,
#section .btn {
	display: inline-block;
	border-radius: 5px;
}
#section-b li .b-btn {
	display: block;
	border-radius: 0 0 0px 0px;
}

.btn:hover, 
#section-b li .b-btn:hover {
	background: #eaeaea;
	color : #2690d4;
}

/* Navigator Menu */
nav {
	width: 100%;
	background: #1F77AF;
	padding: 0 50px;
	box-sizing: border-box;
}
nav .nav-brand {
	display: flex;
	float:left;
}
nav .nav-brand img {
	margin:0;
	padding: 10px 0 10px 10px;
	max-height: 40px;
	width: auto;
}
nav h1 {
	margin: 0;
	padding: 15px 15px;
	font-size: 24px;
	color: #eee;
}
nav h1 a {
	color: #eee;
	text-decoration: none;
}
nav ul {
	margin: 0;
	padding: 0;
	float: right;
}
nav ul li {
	list-style: none;
	display: inline-block;
	transition: 0.5s;
	padding: 0px;
}
nav ul li.nav-active {
	background: #5eaee2;
}
nav ul li a {
	color: #fff;
	text-decoration: none;
	margin: 0;
	display: block;
	padding: 20px 30px;
}
nav ul li:hover {
	background: #5eaee2;
}

/* Slide Bar */
.responsive-bar {
	width:100%;
	background: #1F77AF;
	padding: 0px 20px;
	box-sizing: border-box;
	display: none;
}
.responsive-bar .bar-brand {
	display: flex;
	float: left;
}
.responsive-bar img {
	margin:0;
	padding: 10px 0 10px 10px;
	max-height: 40px;
	width: auto;
}
.responsive-bar h1 {
	margin: 0;
	font-size: 22px;
	padding: 15px 10px;
	color: #eee;
}

.responsive-bar h1 a {
	color: #fff;
	text-decoration: none;
}

.responsive-bar h4 {
	margin: 0;
	padding: 0;
	color: #fff;
	float: right;
	margin-top: 12px;
	padding: 10px 10px;
	background: #f2184f;
	text-transform: uppercase;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
}

/* Header Showcase*/

#showcase, #showcase-services {
	color: #fff;
	text-align: center;
}
#showcase {
	min-height: 600px;
}
#showcase-about {
	min-height: 450px;
}
#showcase-services {
	min-height: 450px;
}

#showcase .bg-main {
	position: absolute;
	background: #333 url('../img/home-2.jpeg');
	background-attachment: fixed;
	height: 600px;
	opacity: 0.8;
}
#showcase-about .bg-about {
	position: absolute;
	background: #333 url('../img/about.jpg');
	background-attachment: fixed;
	height: 480px;
	opacity: 1;
}
#showcase-services .bg-services {
	position: absolute;
	background: #333 url('../img/services.jpeg');
	background-attachment: fixed;
	height: 480px;
	opacity: 0.5;
}


/* Main Page */
.bg-worries {
	position: absolute;
	height: 520px;
	opacity: 0.9;
	background: #333 url('../img/home-worries.jpg');
	
}
.bg-digital {
	position: absolute;
	height: 520px;
	opacity: 0.9;
	background: #333 url('../img/home-digital.jpg');
}

/* About section*/
.bg-about-mission {
	height: 300px;
	opacity: 0.9;
	background: #333 url('../img/about-mission.jpg');
}
.bg-about-why {
	height: 300px;
	opacity: 0.9;
	background: #333 url('../img/about-why.jpg');
}

/* Service section*/
.bg-services-section {
	height: 300px;
	opacity: 0.9;
}
.bg-systemCon {
	background: #333 url('../img/system-consulting.jpg');
	background-attachment: fixed;
}
.bg-softwareDev {
	background: #333 url('../img/software-development.jpg');
	background-attachment: fixed;
}
.bg-systemInt {
	background: #333 url('../img/system-integration.jpg');
	background-attachment: fixed;
}
.bg-bigData {
	background: #333 url('../img/big-data.jpg');
	background-attachment: fixed;
}

/* Contact section */
.bg-contact-section {
	height: 320px;
	opacity: 0.9;
}
.bg-contact {
	background: #333 url('../img/contact.jpg');
	background-attachment: fixed;
}

#showcase .bg-main, .bg-worries, .bg-digital,
#showcase-about .bg-about,
.bg-about-mission, .bg-about-why,
#showcase-services .bg-services,
.bg-systemCon, .bg-softwareDev, .bg-systemInt, .bg-bigData, 
.bg-contact {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	z-index: -1;
}

#showcase h1 {
	letter-spacing: 0.1em;
	padding-top: 180px;
	padding-bottom: 0;
}

#showcase-services h1 {
	padding-top: 160px;
	padding-bottom: 0;
}

#showcase .second-h1 {
	padding-top: 10px;
	padding-bottom: 10px;
}

#showcase .text-green {
	color: #32CD32;
}

#showcase .text-gold {
	color: #FFDF00;
}

#showcase .content-wrap,
#section-a .content-wrap {
	padding: 0 1.5em;
}

/* Section A*/

#section-a {
	background: #fff;
	color: #333;
	padding: 1em 0;
}
#section-a .ma-boxes {
	padding: 1em;
}
#section-a .ma-boxes h2 {
	font-size: 32px;
	color: #333;
	font-family: 'PT Sans';
}
#section-a .ma-boxes p {
	padding: 0 1.5em;
}

#section-a .content-wrap h1 {
	color: #1F77AF;
	font-weight: 800;
	font-size: 32px;
}

/* Breadcumb*/
#section-a .breadcumb {
	text-align: left;
	color: grey;
	font-size: 16px;
	line-height: 1;
	padding-top: 5px;
	padding-bottom: 10px;
}
#section-a .breadcumb a {
	color: #333;
	text-decoration: none;
	padding: 0 3px;
}

#section-a .breadcumb span {
	display: inline-block;
	text-align: center;
	padding: 0 3px;
}

/* Section B */
#section-worries {
	min-height: 480px;
	margin: 0;
	padding: 0;
}
#section-worries .wo-boxes {
	display: flex;
	flex-flow: row;
	justify-content: space-evenly;
	align-content: center;
}
#section-worries .wo-boxes .wo-box {
	width: 49%;
}
#section-worries .wo-boxes .wo-box h1 {
	font-size: 32px;
	padding-right: 1em;
	text-align: left;
	margin-top: 180px;
}
#section-worries .wo-boxes .wo-box h4 {
	font-size: 20px;
	padding-right: 2em;
	font-weight: normal;
	text-align: left;
}

#section-b {
	background-color: #f6f6f6;
	padding: 2em 1em 1em;
}

#section-b .section-title h1 {
	color: #1F77AF;
	font-weight: 800;
	font-size: 32px;
	margin-bottom: 0.5em;
}
#section-b .section-title h4{
	color: #333;
	font-weight: 400;
	font-size: 17px;
	margin-top: 0px;

	box-sizing: border-box;
}

#section-b ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#section-b li {
	/*margin-bottom: 1em; implement by new button */ 
	background: #fff;
	color: #333;
}

#section-b li h3 {
	font-size: 22px;
	padding: 1.5em 1em 0 1em;
}
#section-b li p {
	padding: 0 1.5em;
}
#section li a {
	padding: 0 1.5em 1.5em 1.5em;
}

/* About Section*/
#section-about {
	background-color: #fff;
	padding: 0 1em 2em;
	color: #333;
	text-align: left;
}
.about-sbox h1 {
	font-size: 1.5rem;
	color: #1F77AF;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}
.about-sbox p {
	margin: 0;
	padding: 0;
}
.about-sbox h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}
#section-about .flex-front {
	padding-bottom: 3em;
}

/* Service Section Boxes */
#section-box {
	padding: 2em 1em 2em;
	color: #333;
}

.bg-odd #section-box {
	background-color: #f9f9f9;
}
.bg-even #section-box {
	background-color: #fff;
}
.section-edge {
	height: 10px;
	background: #1F77AF;
}

#section-box h2 {
	margin-bottom: 1em;
	color: #333;
	font-size: 2rem;
}

#section-box .boxes {
	display: grid;
	grid-gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#section-box .sbox {
	background: #F9FCFE;
	text-align: center;
	padding: 1.5rem 1.5rem;
	box-shadow: 0 1px 3px rgba(104, 104, 104, 0.8);
}

#section-box .sbox span {
	color: #1F77AF;
}

#section-box .sbox h3 {
	color: #333;
	margin-top: 1rem;
}

#section-box .sbox p {
	color: #333;
}

#section-box .last-service {
	padding-bottom: 2em;
}


/* Section C */
#section-digital {
	min-height: 480px;
	margin: 0;
	padding: 0;
}

#section-digital .mc-boxes {
	display: flex;
	flex-flow: row;
	justify-content: space-evenly;
	align-content: center;
}
#section-digital .mc-boxes .mc-box {
	width: 40%;
	margin-top: 8vw;
	text-align: right;
}
#section-digital .mc-boxes .mc-box h2 {
	font-size: 24px;
}
#section-digital .mc-boxes .mc-box p {
	font-size: 16px;
	font-weight: normal;
	margin: 10px 0;
}

/* Section D - Boxes */
#section-d .testi-head h1{
	color: #1F77AF;
	font-weight: 800;
	font-size: 30px;
	background: #fff;
	padding: 1.5em;
}
#section-d .testi-body:last-child {
	padding-bottom: 3em;
	background: #fff;
}
#section-d .mt-boxes {
	display: flex;
	flex-flow: row;
	justify-content: center;
	align-content: flex-start;
	background: #fff;
	color: #333;
	padding: 0 2em 1em;
}
#section-d .mt-box-left {
	width: 5%;
	padding-top: 16px;
	padding-right: 8px;
	color: #aaa;
}
#section-d .mt-box-right {
	width: 90%;
}

#section-d .testi-body .mt-boxes p {
	margin-bottom: 5px;
	padding: 0;
	text-align: left;
	font-size: 18px;
}

#section-d .testi-body .mt-boxes:first-child {
	background: #fafafa;
}

/* Footer */

#main-footer {
	padding: 1em 0 2em 4em;
	background: #1F77AF;
}

.footer-address, .footer-services, 
.footer-contact, .footer-social {
	text-align: left;
	font-size: 14px;
	color: #ddd;
}

.footer-address h4, .footer-services h4, 
.footer-contact h4, .footer-social h4 {
	text-align: left;
	font-size: 18px;
	color: #fff;
}

.footer-address p {
	margin-top: 2px;
	margin-bottom: 1px;
	padding: 0;
	font-size: 14px;
	color: #ddd;
}

.footer-services a, .footer-contact a, .footer-copy a {
	font-size: 14px;
	color: #ddd;
	text-decoration: none;
}

.footer-services a:hover,
.footer-contact a:hover {
	color: #fff;
}
.footer-contact span,
.footer-contact a {
	margin-left: 10px;
}

.social-icon ul {
	margin: 0;
	padding: 0;
	display: flex;
}
.social-icon ul li {
	list-style: none;
}
.social-icon ul li a {
	display: block;
	position: relative;
	width: 32px;
	height: 32px;
	line-height: 32px;
	font-size: 20px;
	text-align: center;
	text-decoration: none;
	/* icon color */
	color: #fff;
	margin: 0 8px;
	transition: 0.5s;
}

.social-icon ul li a span {
	position: absolute;
	transition: transform 0.5s;

}
.social-icon ul li a span:nth-child(1),
.social-icon ul li a span:nth-child(3) {
	width: 100%;
	height: 1px;
	/* border color */
	background: #fff;
}
/* Top and Bottom Effect*/
.social-icon ul li a span:nth-child(1) {
	top: 0;
	left: 0;
	transform-origin: right;
}

/* Change background color when hover*/
.social-icon ul li.facebook a:hover {
	background: #3b5998;
}
.social-icon ul li.twitter a:hover {
	background: #6dc5dd;
}
.social-icon ul li.google a:hover {
	background: #dd4b39;
}
.social-icon ul li.linkedin a:hover {
	background: #00a9cd;
}

.social-icon ul li a:hover span:nth-child(1){
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s;
}
.social-icon ul li a span:nth-child(3) {
	bottom: 0;
	left: 0;
	transform-origin: left;
}
.social-icon ul li a:hover span:nth-child(3){
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s;
}

/* Left and Right Effect*/
.social-icon ul li a span:nth-child(2),
.social-icon ul li a span:nth-child(4) {
	width: 1px;
	height: 100%;
	background: #fff;
}
.social-icon ul li a span:nth-child(2) {
	top: 0;
	left: 0;
	transform: scaleY(0);
	transform-origin: bottom;
}
.social-icon ul li a:hover span:nth-child(2){
	transform: scaleY(1);
	transform-origin: top;
	transition: transform 0.5s;
}
.social-icon ul li a span:nth-child(4) {
	top: 0;
	right: 0;
	transform: scaleY(0);
	transform-origin: top;
}
.social-icon ul li a:hover span:nth-child(4){
	transform: scaleY(1);
	transform-origin: bottom;
	transition: transform 0.5s;
}

/* Media Queries */
@media(min-width: 400px) {
	.responsive-bar h1 {
	font-size: 24px;
	padding: 15px 15px;
	}
}

@media(min-width: 500px) {
	#main-footer .footer-show4 {
		display: grid;
		grid-gap: 15px;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media(min-width: 700px) {
	.grid {
		display: grid;
		grid-template-columns: 1fr repeat(2, minmax(auto,25em)) 1fr;
	}
	.content-wrap {
		grid-column: 2/4;
	}
	.bg-worries, .bg-digital {
		background-attachment: fixed;
	}
	#section-a .ma-boxes {
		display: flex;
		flex-flow: row;
		justify-content: space-evenly;
		align-items: center;
	}
	#section-a .ma-box-left {
		width: 35%;
	}
	#section-a .ma-box-right {
		width: 45%;
		text-align: left;
	}
	#section-a .ma-box-right p {
		font-size: 18px;
	}
	#section-about-value img {
		width: 50vw;
	}

	#section-b .mb-boxes {
		display: flex;
		flex-flow: row;
		justify-content: center;
		align-items: center;
	}
	#section-b .mb-box-left {
		width: 32%;
	}
	#section-b .mb-box-right {
		width: 45%;
		text-align: left;
	}
	#section-b .section-title h1 {
		margin-bottom: 1.5em;
	}
	#section-b .section-title h4 {
		padding-left: 5vw;
		border-left: 2px solid rgba(155,155,155,0.5);
		margin-bottom: 2em;
		font-size: 19px;
	}
	
	#section-b ul {
		/*display: grid;
		grid-gap: 18px;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
		display: flex;
		flex-flow: row wrap;
		justify-content: space-around;
	}
	#section-b ul li {
		display: flex;
		flex-flow: column nowrap;
		width: 47%;
		box-sizing: border-box;
	}
	#section-b ul li .b-btn {
		margin-top: auto;
	}
	
	#section-box {
		padding: 2em 3em 3em;
	}
	/* About Us Flex Section*/
	#section-about {
		padding: 0 3em 2em;
	}
	#section-about .about-boxes {
		display: flex;
		justify-content: space-around;
	}
	#section-about .about-sbox {
		flex-basis: 45%;
		box-sizing: border-box;
	}
	#section-about .flex-back {
		order: 2;
	}
	#section-about .flex-front {
		order: 1;
	}
	.bg-about-mission {
		height: 600px;
		margin-top: 2rem;
	}
	.bg-about-why {
		height: 700px;
		margin-top: 2rem;
	}

	#section-digital .mc-boxes .mc-box {
		margin-top: 8vw;
		text-align: right;
	}
	#section-digital .mc-boxes .mc-box h2 {
		font-size: 26px;
	}
	#section-digital .mc-boxes .mc-box p {
		font-size: 17px;
		font-weight: normal;
		margin: 1em 0;
	}

	#section-d .testi-body {
		display: flex;
		flex-flow: row;
		justify-content: space-evenly;
		align-content: flex-start;
		background: #fff;
	}
	#section-d .mt-boxes {
		width: 33%;
	}
	#section-d .testi-body .mt-boxes {
		background: #fafafa;
	}
}

@media(min-width: 900px) {
	#section-worries .wo-boxes .wo-box h1 {
		font-size: 32px;
		padding-right: 2em;
	}
	#section-worries .wo-boxes .wo-box h4 {
		font-size: 20px;
		padding-right: 3em;
		font-weight: normal;
	}
}

@media(min-width: 1250px) {
	#section-b ul li {
		display: flex;
		flex-flow: column nowrap;
		width: 23%;
		box-sizing: border-box;
	}
}

/* for Slide Bar */
@media (max-width: 900px) {
	nav {
		display: none;
		padding: 0;
	}
	.responsive-bar {
		display: block;
	}
	nav h1 {
		display: block;
		float: none;
	}
	nav ul {
		float: none;
	}
	nav ul li {
		display: block;
		text-align: center;
		background: #141e33;
		padding: 0px;
		border-bottom: 1px solid rgba(255,255,255,0.1)
	}
	.nav-expanded {
		display: block;
	}
	nav .nav-brand {
		display: none;
	}
}

@media(pointer: coarse) {
	/* #showcase .bg-main,
	#showcase-about .bg-about,
	#showcase-services .bg-services,  */
	.bg-worries, .bg-digital,	.bg-main, .bg-about, .bg-services, .bg-systemCon, .bg-softwareDev, .bg-systemInt, .bg-bigData, .bg-contact {
		background-attachment: initial;
	}
}
