@charset "UTF-8";
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i&display=swap');

:root {
  --primary: #539df1;
  --danger: #539df1;
  --dark: #343a40;
  --light: #f8f9fa;
  --gray: #6c757d;
  --white: #fff;
}

/* Reset & Base Styles */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: 'Dosis', sans-serif;
  font-weight: 500;
  line-height: 1.2;
}
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

p { 
  margin-top: 0; 
  margin-bottom: 1rem;
  font-size: calc(13px + 1 * ((100vw - 300px) / 1000));
  opacity: 0.8;
  color: #444;
}

a { 
  color: var(--primary); 
  text-decoration: none; 
  background-color: transparent;
}
a:hover { 
  color: #0c5b8f; 
  text-decoration: none; 
}

hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Container & Grid */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-1 { flex: 0 0 8.33333%; max-width: 8.33333%; }
.col-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.col-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
.col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
.col-11 { flex: 0 0 91.66667%; max-width: 91.66667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
}

/* Components - Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn:hover { 
  color: #212529;
  text-decoration: none; 
}
.btn:focus { 
  outline: 0; 
  box-shadow: 0 0 0 0.2rem rgba(134, 92, 248, 0.25); 
}
.btn-rounded { border-radius: 100px; }

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  color: #fff;
  background-color: #3415e2;
  border-color: #1d28c7;
}

.btn-outline-danger {
  color: var(--danger);
  border-color: var(--danger);
}
.btn-outline-danger:hover {
  color: #fff;
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-outline-light {
  color: var(--light);
  border-color: var(--light);
}
.btn-outline-light:hover {
  color: #212529;
  background-color: var(--light);
  border-color: var(--light);
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0;
  margin-bottom: 30px;
}
.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  background: transparent;
  border: none;
}
.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
  font-size: 14px;
  color: #6c757d;
}
.card-title { 
  margin-bottom: 0.75rem;
  color: #212529;
}
.card-header.has-icon i {
  background: #fff;
  position: absolute;
  top: -28px;
  border: 7px solid white;
  overflow: hidden !important;
  font-size: 35px;
}
.card-img-top {
  width: 100%;
  border-top-left-radius: calc(0 - 1px);
  border-top-right-radius: calc(0 - 1px);
}

/* Progress */
.progress {
  display: flex;
  height: 0.3rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #eaf0fc;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}
.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--primary);
  transition: width 0.6s ease;
}
.progress-bar.bg-danger { background-color: var(--danger) !important; }

/* Navbar */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background-color: #fff;
  box-shadow: 0 1px 10px rgba(54, 54, 54, 0.18);
}
.navbar-light {
  background-color: #fff;
}
.navbar-light .navbar-nav .nav-link {
  color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
  font-family: 'Dosis', 'Open Sans', sans-serif;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary) !important;
}
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-item {
  margin-bottom: -1px;
}
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: '';
  background: no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

@media (min-width: 992px) {
  .navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-nav .nav-link { padding-right: 1.5rem; padding-left: 1.5rem; }
  .navbar-expand-lg .navbar-nav:first-child .nav-item:first-child .nav-link { padding-left: 0; }
  .navbar-expand-lg .navbar-nav:last-child .nav-item:last-child .nav-link { padding-right: 0; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-toggler { display: none; }
}

.navbar .brand {
  text-align: center;
}
.navbar .brand .brand-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 10px solid white;
  transition: 0.5s !important;
  z-index: 2;
  box-shadow: 0 5px 1px rgba(128, 128, 128, 0.13);
  width: 170px;
  border-radius: 50%;
}
.navbar .brand .brand-txt {
  position: relative;
  bottom: -20px;
  opacity: 0;
  transition: 1s;
  z-index: 1;
}
.navbar .brand .navbar .brand .brand-txt .brand-subtitle {
  font-size: 13px;
  color: #888;
}
.navbar.sticky-top { 
  position: sticky; 
  top: 0; 
  z-index: 1020; 
}
.navbar.affix .brand-txt { 
  bottom: 0; 
  opacity: 1; 
}
.navbar.affix .brand-img { 
  top: -10px; 
  opacity: 0; 
}

@media (max-width: 991.98px) {
  .navbar .brand { display: none; }
}

/* Contact Info Card Adjustments */
.contact .contact-info-card {
  font-size: 0.9rem;
  padding: 1.2rem 1rem;
  min-height: auto !important;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.contact .contact-info-card h4.contact-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact .contact-info-card h6 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.contact .contact-info-card .social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 1rem;
}
/* Header */
.header {
  position: relative;
  height: 80vh;
  min-height: 600px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../imgs/head.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
}
.header .container { position: relative; height: 100%; }
.header .header-content {
  width: 100%;
  position: absolute;
  left: 0;
  top: 55%;
  transform: translateY(-50%);
  color: #fff;
}
.header .header-subtitle {
  font-weight: 200;
  font-size: calc(20px + 25 * ((100vw - 300px) / 1300));
}
.header .header-title {
  font-size: calc(40px + 80 * ((100vw - 300px) / 1300));
  font-weight: bold;
  line-height: 0.7;
  margin-bottom: 25px;
  color: inherit;
}
.header .header-mono {
  letter-spacing: 5px;
  font-weight: 500;
  font-size: calc(12px + 7 * ((100vw - 300px) / 1300));
  margin-bottom: 40px;
}

/* Sections */
.section { padding: 80px 0; }
.section.bg-custom-gray { background: rgba(242, 244, 247, 0.15); }
.section.bg-dark { background-color: #343a40; }
.about-section { border-bottom: 1px solid #dee2e6; }
.about-section .about-card { padding: 60px; border-right: 1px solid #dee2e6; }
.about-section .about-card:last-child { border-right: none; }

/* Utilities */
.line { display: block; width: 25px; height: 1.5px; background-color: var(--primary); }
.title { font-size: calc(17px + 3 * ((100vw - 300px) / 1000)); }
.subtitle { opacity: 1; color: #fff; font-size: 14px; margin-bottom: 1rem; }
.info { color: #6c757d; font-size: 14px; }
.info li { padding-bottom: 8px; }
.info span { font-weight: 600; font-size: 14px; color: #343a40; }

/* Social Icons */
.social-icons {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
  max-width: 180px;
}
.social-link { font-size: 18px; }
.social-link:hover { color: var(--primary); }
.social-item { display: inline-block; }

/* Text Utilities */
.text-danger { color: var(--danger) !important; }
.text-dark { color: var(--dark) !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-light { color: var(--light) !important; }
.text-white { color: #fff !important; }
.font-weight-light { font-weight: 300 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Backgrounds */
.bg-dark { background-color: var(--dark) !important; }
.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--light) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-custom-gray { background: rgba(242, 244, 247, 0.15); }

/* Spacing */
.m-auto { margin: auto !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-auto { margin-right: auto !important; }
.ml-auto { margin-left: auto !important; }
.ml-3 { margin-left: 1rem !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pl-0 { padding-left: 0 !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.pull-left { float: left !important; }

/* Display */
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

/* Icon Sizes */
.icon-lg { font-size: 30px; }
.icon-xl { font-size: 65px; }

/* Border */
.border-right { border-right: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }

/* Contact & Footer - WITH REDUCED PADDING */
/* Contact & Footer - MUCH SMALLER */
.contact {
  position: relative;
  min-height: 250px; /* Further reduced from 400px */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0; /* Reduced from 40px */
  background-color: #131e38;
}
.contact .map {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
#map {
  height: 250px !important; /* Match the reduced contact height */
}

/* Footer - MUCH SMALLER */
.footer {
  background: #17263c;
  padding: 0.5rem 0; /* Reduced to minimal padding */
}
.footer p {
  margin-bottom: 0;
  font-size: 0.8rem; /* Smaller text */
  color: #888; /* Lighter color */
}
.footer a { color: #539df1; }
/* Portfolio */
.portfolio-filters {
  margin-bottom: 2rem;
  text-align: center;
}
.portfolio-filters a {
  cursor: pointer;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #eaeaea;
  margin-right: 0.4rem;
  margin-bottom: 0.6rem;
  display: inline-block;
  color: #212529;
  font-size: 0.9rem;
}
.portfolio-filters a.active,
.portfolio-filters a:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
  text-decoration: none;
}
.portfolio-item {
  margin-bottom: 30px;
}
.portfolio-item .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.portfolio-item .card:hover {
  transform: translateY(-5px);
}
.portfolio-item .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* FIX FOR PORTFOLIO CONTENT VISIBILITY */
.portfolio-item .card-body p {
  font-size: 14px;
  color: #6c757d !important;
  opacity: 1 !important;
  margin-bottom: 1rem;
}
.portfolio-item .card-body .subtitle {
  font-size: 14px;
  color: #6c757d !important;
  opacity: 1 !important;
  margin-bottom: 1rem;
}
.portfolio-item .card-body .stack {
  margin-top: auto;
  font-size: 0.95rem;
  color: #6c757d !important;
}
.portfolio-item .card-body .stack strong {
  color: #343a40 !important;
}
.portfolio-item .card-title {
  color: #343a40 !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.portfolio-item p:not(.stack) {
  color: #6c757d !important;
  line-height: 1.5;
}
.portfolio-item .card-body .read-more {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 0.5rem;
}
.portfolio-container {
  margin-top: 2rem;
}

/* Ensure portfolio cards show all content */
.card-body {
  opacity: 1 !important;
  visibility: visible !important;
}
.card-body * {
  opacity: 1 !important;
  visibility: visible !important;
}
/* Fix for Areas of Expertise text */
.about-card .subtitle {
  color: #6c757d !important;  /* Gray color instead of white */
  opacity: 1 !important;
  font-size: 14px;
  margin-bottom: 1rem;
}

.about-card p {
  color: #6c757d !important;
  opacity: 1 !important;
}

.about-card h6 {
  color: #343a40 !important;
  margin-bottom: 0.5rem;
}

.about-card .row {
  margin-bottom: 1.5rem;
}