:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0f766e;
  --primary-strong: #0b5d57;
  --accent: #c2410c;
  --border: #e2e8f0;
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
  background: #0a0f1c;
}

body {
  margin: 0 !important;
  padding-top: 76px;
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0b1324;
}

p {
  color: var(--muted);
}

/* Navbar */
.navbar {
  margin-bottom: 0;
  border-radius: 0;
}

.navbar.fixed {
  position: fixed !important;
  top: 0 !important;
  right: 0;
  left: 0;
  z-index: 1040;
}

.navbar.navbar-inverse {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0;
  border-bottom: 0 !important;
  background: rgba(10, 15, 28, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  position: relative;
}

/* Force no accidental top whitespace in any browser */
html,
body,
body > .navbar.fixed {
  top: 0 !important;
}

#intro,
#portfolio {
  border-top: 0 !important;
}

.navbar.navbar-inverse .navbar-brand {
  color: #fff !important;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-left: 15px;
  line-height: 20px;
  max-width: calc(100vw - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar.navbar-inverse .navbar-brand::before {
  content: none;
}

/* If an older navbar template is still cached, hide extra sublabels/cta text */
.site-nav__brand-tag,
.site-nav__cta-row,
.site-nav__pill {
  display: none !important;
}

/* Keep navbar line neatly centered */
.navbar.navbar-inverse .navbar-header {
  display: block;
}

.navbar.navbar-inverse .navbar-nav > li > a {
  color: #e6ecff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 9px 14px;
  margin: 7px 3px;
  transition: all 0.25s ease;
}

.navbar.navbar-inverse .navbar-nav > li > a:hover,
.navbar.navbar-inverse .navbar-nav > li > a:focus,
.navbar.navbar-inverse .navbar-nav > .active > a,
.navbar.navbar-inverse .navbar-nav > .active > a:hover,
.navbar.navbar-inverse .navbar-nav > .active > a:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.navbar.navbar-inverse .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  margin-top: 11px;
}

.navbar.navbar-inverse .navbar-toggle .icon-bar {
  background: #fff;
}

.navbar.navbar-inverse .navbar-form {
  border: 0;
  box-shadow: none;
  margin-top: 8px;
  margin-bottom: 8px;
}

.navbar.navbar-inverse .navbar-form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar.navbar-inverse .navbar-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.navbar.navbar-inverse .dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.navbar.navbar-inverse .dropdown-menu > li > a {
  font-weight: 600;
}

/* Intro */
#intro {
  width: 100%;
  min-height: 64vh;
  position: relative;
  margin-top: -76px;
  background: url("../img/Cereaymerdiven.jpg") no-repeat center;
  background-size: cover;
}

#intro::before,
.navbar.navbar-inverse::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.navbar.navbar-inverse::after {
  bottom: -40px;
  height: 40px;
  z-index: 1041;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0.9) 0%,
    rgba(10, 15, 28, 0.5) 52%,
    rgba(10, 15, 28, 0) 100%
  );
}

#intro::before {
  top: 0;
  height: 50px;
  z-index: 9;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0.7) 0%,
    rgba(10, 15, 28, 0.34) 42%,
    rgba(10, 15, 28, 0.12) 72%,
    rgba(10, 15, 28, 0) 100%
  );
}

#intro #intro-carousel .item {
  width: 100%;
  min-height: 64vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#intro .intro-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  background: linear-gradient(130deg, rgba(8, 13, 24, 0.56), rgba(13, 88, 82, 0.44));
}

#intro .intro-content h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  color: #fff;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.34);
}

#intro .intro-content h2 span {
  color: #fff;
}

#intro .intro-content .btn-get-started,
#intro .intro-content .btn-projects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  margin: 6px 4px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
}

#intro .intro-content .btn-get-started {
  background: var(--primary);
  border: 2px solid var(--primary);
}

#intro .intro-content .btn-get-started:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  transform: translateY(-1px);
}

#intro .intro-content .btn-projects {
  background: var(--accent);
  border: 2px solid var(--accent);
}

#intro .intro-content .btn-projects:hover {
  background: #9a3412;
  border-color: #9a3412;
  transform: translateY(-1px);
}

/* Sections */
#portfolio {
  background: transparent;
  padding: 0 0 36px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  max-width: 900px;
  color: #475569;
}

/* Portfolio cards */
.portfolio-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.portfolio-item a.thumbnail {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: block;
  position: relative;
}

.portfolio-item img {
  display: block;
  width: 100% !important;
  height: clamp(230px, 31vw, 360px) !important;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(8, 13, 24, 0.84);
}

.portfolio-info {
  width: 100%;
}

.portfolio-info h2 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-family: "Lato", sans-serif !important;
  letter-spacing: 0.01em;
  text-shadow: none !important;
}

/* Panels, tabs, content cards */
.sayfa-icerik,
.tab-content,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.sayfa-icerik {
  padding: 20px;
}

.panel-heading {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.panel-footer {
  background: var(--surface-soft);
}

.tabbable {
  margin-top: 20px;
}

.nav-tabs {
  border-bottom: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-tabs > li {
  float: none;
}

.nav-tabs > li > a {
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  font-weight: 700;
  padding: 9px 16px;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-content {
  margin-top: 10px;
  padding: 14px 10px;
}

.tab-content p,
.tab-content li,
.sayfa-icerik p {
  color: #334155;
}

iframe {
  border-radius: 12px;
}

/* Footer */
#footer {
  margin-top: 36px;
  background: #111827;
  color: #e5edf8;
  padding: 30px 0 18px;
}

#footer .footer-info h3,
#footer h4 {
  color: #fff;
}

#footer .footer-info p,
#footer .footer-contact p,
#footer .footer-links ul a {
  color: #d1d9e4;
}

#footer .footer-links ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .footer-links ul a:hover {
  color: #fff;
}

#footer .social-links a {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

#footer .social-links a:hover {
  background: var(--accent);
}

#footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  margin-top: 8px;
}

/* Badges */
.badge {
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 12px;
  background: #ecf1f8 !important;
  color: #334155 !important;
  border: 1px solid #dbe4ef;
  margin: 4px 4px 4px 0;
}

/* Popup readability */
.mfp-bg {
  background: rgba(4, 8, 18, 0.9);
}

.mfp-img {
  border-radius: 12px;
}

.mfp-bottom-bar {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
}

.mfp-title {
  font-size: 13px;
  color: #f8fafc;
}

/* Responsive */
@media (max-width: 991px) {
  body {
    padding-top: 72px;
  }

  #intro {
    margin-top: -72px;
  }

  .navbar.navbar-inverse .navbar-brand {
    font-size: 16px;
    padding-left: 15px;
    max-width: calc(100vw - 110px);
  }

  .navbar.navbar-inverse .navbar-nav > li > a {
    margin: 4px 0;
    border-radius: 10px;
  }

  .navbar.navbar-inverse .navbar-form {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 68px;
    font-size: 15px;
  }

  #intro {
    margin-top: -68px;
  }

  .navbar.navbar-inverse .navbar-brand {
    font-size: 15px;
    max-width: calc(100vw - 82px);
    padding-left: 15px;
  }

  .navbar.navbar-inverse .navbar-header {
    min-height: 50px;
  }

  #intro,
  #intro #intro-carousel .item {
    min-height: 54vh;
  }

  #intro {
    margin-top: 0;
  }

  .navbar.navbar-inverse::after {
    bottom: -30px;
    height: 30px;
  }

  #intro::before {
    height: 38px;
  }

  #intro .intro-content h2 {
    font-size: 28px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  #intro .intro-content .btn-get-started,
  #intro .intro-content .btn-projects {
    width: 100%;
    max-width: 320px;
    margin: 5px auto;
  }

  #portfolio {
    padding-top: 32px;
  }

  .portfolio-item {
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .portfolio-item img {
    height: 210px !important;
  }

  .portfolio-overlay {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 10px;
    min-height: 48px;
    padding: 7px 9px;
  }

  .portfolio-info h2 {
    font-size: 12.5px !important;
  }

  .sayfa-icerik,
  .tab-content,
  .panel {
    border-radius: 14px;
  }

  iframe {
    min-height: 230px;
    border-radius: 10px;
  }
}
