body, html {
	font-family: 'Open Sans', sans-serif;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	color: rgba(255,255,255,0.5);
	width: 100% !important;
	height: 100% !important;
}
h1 {
	font-weight: 400;
}
h2 {
	line-height: 20px;
	margin: 0;
	color: #25BAD0;
	margin-bottom: 30px;
	font-size: 40px;
	font-weight: 400;
	text-transform: uppercase;
	padding-bottom: 10px;
}
h3, h4 {
	color: #333;
	font-size: 20px;
	font-weight: 400;
}
h5 {
	text-transform: uppercase;
	font-weight: 700;
	line-height: 20px;
}
p {
	font-size: 15px;
}
p.intro {
	font-size: 16px;
	margin: 12px 0 0;
	line-height: 24px;
}
a {
	color: #fff;
}
a:hover, a:focus {
	text-decoration: none;
	color: #25BAD0;
}
ul, ol {
	list-style: none;
}
.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}
.clearfix {
	display: inline-block;
}
* html .clearfix {
	height: 1%;
}
.clearfix {
	display: block;
}
ul, ol {
	padding: 0;
	webkit-padding: 0;
	moz-padding: 0;
}

/* Navigation */
#menu {
	padding: 20px;
	transition: all 0.8s;
}
#menu.navbar-default {
	background-color: rgba(248, 248, 248, 0);
	border-color: rgba(231, 231, 231, 0);
}
#menu a.navbar-brand {
	font-size: 20px;
	color: rgba(255,255,255,0.8);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
}
#menu a.navbar-brand i.fa {
	color: #25BAD0;
}
#menu.navbar-default .navbar-nav > li > a {
	text-transform: uppercase;
	color: rgba(255,255,255,0.8);
	font-size: 12px;
	letter-spacing: 1px;
}
#menu.navbar-default .navbar-nav > li > a:hover {
	color: #25BAD0;
}
.on {
	background-color: #03252b !important;
	padding: 0 !important;
}
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
	color: #25BAD0 !important;
	background-color: transparent;
}
.navbar-toggle {
	border-radius: 0;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
	background-color: #25BAD0;
	border-color: #25BAD0;
}
.navbar-default .navbar-toggle:hover>.icon-bar {
	background-color: #FFF;
}
.btn-default {
	color: #25BAD0;
	background-color: transparent;
	border: 2px solid #25BAD0;
	padding: 12px 20px;
	margin: 0;
	font-size: 15px;
	border-radius: 0;
	text-transform: uppercase;
}
.btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active {
	color: #053740;
	background-color: #25BAD0;
	border-color: #25BAD0;
}
.btn:active, .btn.active {
	background-image: none;
	outline: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
}
a:focus, .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus {
	outline: none;
	outline-offset: none;
}

/* NAVBAR FLEX ADJUSTMENTS */
#menu .navbar-nav {
	display: flex;           /* Use flex layout */
	flex-wrap: nowrap;       /* Prevent items from wrapping */
	justify-content: flex-end; /* Align items to the right */
}
#menu .navbar-nav li {
	white-space: nowrap;     /* Prevent text wrapping */
	margin-left: 10px;       /* Optional spacing */
}
#menu .navbar-nav li a {
	padding: 14px;       /* Reduce padding to fit items */
	font-size: 8px;          /* Slightly smaller font for fit */
}
#menu .navbar-brand {
  display: flex;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Home Section */
.intro {
	display: table;
	width: 100%;
	height: auto;
	text-align: center;
	color: #fff;
	background: url(../img/intro-bg.jpg) no-repeat center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-size: cover;
	-o-background-size: cover;
}
.intro .overlay {
	padding: 100px 0;
	background: -moz-linear-gradient(top, rgba(5,55,64,1) 0%, rgba(5,55,64,0.6) 100%);
	background: -webkit-linear-gradient(top, rgba(5,55,64,1) 0%, rgba(5,55,64,0.6) 100%);
	background: linear-gradient(to bottom, rgba(5,55,64,1) 0%, rgba(5,55,64,0.6) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#053740', endColorstr='#99053740', GradientType=0);
}
.section-title {
	padding: 25px 0 60px 0;
}
.intro H1 {
	font-size: 60px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255,255,255,0.9);
}
.intro .brand {
	color: #25BAD0;
	font-weight: 700;
}
.intro .intro-text p {
	font-size: 18px;
	margin-bottom: 40px;
	margin-top: 20px;
	text-transform: none;
	color: rgba(255,255,255,0.9);
}
header .intro-text {
	padding-top: 150px;
	padding-bottom: 150px;
}

/* Services Section */
#services {
	padding: 120px 0;
	background: #053740;
}
#services h4 {
	color: #25BAD0;
	text-transform: uppercase;
}
#services i.fa {
	font-size: 32px;
	margin-bottom: 20px;
	transition: all 0.5s;
	color: #053740;
	width: 100px;
	height: 100px;
	padding: 33px 0;
	border: 1px solid #25BAD0;
	background: #25BAD0;
	border-radius: 50%;
}

/* About Section */
#about {
	padding: 100px 0;
	color: rgba(255,255,255,0.9);
	background: rgb(32,166,187);
	background: -moz-linear-gradient(top, rgba(32,166,187,1) 0%, rgba(37,186,208,1) 50%);
	background: -webkit-linear-gradient(top, rgba(32,166,187,1) 0%, rgba(37,186,208,1) 50%);
	background: linear-gradient(to bottom, rgba(32,166,187,1) 0%, rgba(37,186,208,1) 50%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#20a6bb', endColorstr='#25bad0', GradientType=0);
}
#about h2 {
	color: rgba(255,255,255,0.8);
}
#about h4 {
	color: #0a4b55;
}
#about .about-text {
	margin-left: 10px;
}
#about p {
	margin-top: 20px;
	margin-bottom: 30px;
}

/* Portfolio Section */
#portfolio {
	padding: 100px 0;
	background: #053740;
}
.categories {
	padding-bottom: 30px;
	text-align: center;
}
ul.cat li {
	display: inline-block;
}
ol.type li {
	display: inline-block;
	margin-left: 20px;
	text-transform: uppercase;
}
ol.type li a {
	background: transparent;
	border: 2px solid #25BAD0;
	color: #25BAD0;
	padding: 10px 20px;
}
ol.type li a.active {
	background: #25BAD0;
	color: #053740;
}
ol.type li a:hover {
	background: #25BAD0;
	color: #053740;
}
.isotope-item {
	z-index: 2
}
.isotope-hidden.isotope-item {
	z-index: 1
}
.isotope, .isotope .isotope-item {
	-webkit-transition-duration: 0.8s;
	-moz-transition-duration: 0.8s;
	transition-duration: 0.8s;
}
.isotope-item {
	margin-right: -1px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
.isotope {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition-property: height, width;
	-moz-transition-property: height, width;
	transition-property: height, width;
}
.isotope .isotope-item {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transition-property: -webkit-transform, opacity;
	-moz-transition-property: -moz-transform, opacity;
	transition-property: transform, opacity;
}
.portfolio-item {
	margin: 15px 0;
	-webkit-transition: all 0.5s ease-out;
	-moz-transition: all 0.5s ease-out;
	-ms-transition: all 0.5s ease-out;
	-o-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;
}
.portfolio-item:hover {
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
	transform: scale(1.1);
}

/* Team Section */
#team {
	padding: 100px 0;
	color: rgba(255,255,255,0.9);
	background: rgb(32,166,187);
	background: -moz-linear-gradient(top, rgba(32,166,187,1) 0%, rgba(37,186,208,1) 50%);
	background: -webkit-linear-gradient(top, rgba(32,166,187,1) 0%, rgba(37,186,208,1) 50%);
	background: linear-gradient(to bottom, rgba(32,166,187,1) 0%, rgba(37,186,208,1) 50%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#20a6bb', endColorstr='#25bad0', GradientType=0);
}
#team h2 {
	color: rgba(255,255,255,0.8);
}
#team h3 {
	color: #0a4b55;
}
img.img-circle.team-img {
	width: 160px;
	height: 160px;
}
#team .thumbnail {
	background: transparent;
	border: 0;
}
#team .thumbnail .caption {
	padding: 9px;
	color: rgba(255,255,255,0.9);
}

/* Contact Section */
#contact {
	background: url(../img/contact-bg.jpg) no-repeat center top;
	background-color: #7bc3d1;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-size: cover;
	-o-background-size: cover;
}
#contact .overlay {
	padding: 100px 0 40px 0;
	background: -moz-linear-gradient(top, rgba(5,55,64,1) 0%, rgba(5,55,64,0.75) 100%);
	background: -webkit-linear-gradient(top, rgba(5,55,64,1) 0%, rgba(5,55,64,0.75) 100%);
	background: linear-gradient(to bottom, rgba(5,55,64,1) 0%, rgba(5,55,64,0.75) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#053740', endColorstr='#bf053740', GradientType=0);
}

/* Footer Section */
#footer {
	background: #03252b;
	padding: 25px 0 20px 0;
}
#footer p {
	font-size: 13px;
}
#footer a {
	color: #aaa;
}
#footer a:hover {
	color: #25BAD0;
}

/* Media Queries */
@media (max-width: 1024px) {
	.intro H1 {
		font-size: 42px;
	}
	header .intro-text {
		padding-top: 100px;
		padding-bottom: 100px;
	}
	#about img {
		margin-bottom: 20px;
	}
}


/* === Home 3-square layout (new styles added) === */
.home-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.home-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.home-card h3 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}

.home-card p {
  color: #fff;
  font-size: 15px;
  flex-grow: 1;
}

.home-btn {
  background-color: #fff;
  color: #000;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  transition: background 0.3s;
}

.home-btn:hover {
  background-color: #25bad0;
  color: #fff;
}

@media (max-width: 991px) {
  .home-cards {
    flex-direction: column;
  }
}

/* === Home 3-square layout (final, adjusted widths) === */
.home-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  box-sizing: border-box;
}

/* Make each card slightly narrower than 1/3 of the container */
.home-cards > .col-md-4 {
  flex: 0 0 31%;
  max-width: 31%;
}

.home-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.home-card h3 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}

.home-card p {
  color: #fff;
  font-size: 15px;
  flex-grow: 1;
}

.home-btn {
  background-color: #fff;
  color: #000;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  transition: background 0.3s;
}

.home-btn:hover {
  background-color: #25bad0;
  color: #fff;
}

/* Stack neatly on smaller screens */
@media (max-width: 991px) {
  .home-cards {
    flex-direction: column;
  }
  .home-cards > .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* === Fix: Prevent all-caps text inside home squares === */
.home-card h3,
.home-card p,
.home-card a,
.home-card span {
  text-transform: none !important;
}
/* Fix long section title text wrapping */
#services h4,
#services h3,
#services h2 {
  white-space: nowrap;       /* Prevents text from breaking into two lines */
  font-size: clamp(20px, 2vw, 32px); /* Responsive sizing: shrinks slightly on smaller screens */
}
#services h2,
.section-title h2 {
  text-align: center;        /* Centers text inside the container */
  display: block;            /* Ensures alignment works */
  width: 100%;               /* Make sure it spans full width for centering */
  margin: 0 auto;            /* Centers block if constrained */
  white-space: nowrap;       /* Keep single line */
  font-size: clamp(20px, 2vw, 32px); /* Responsive font size */
}