/* =============================================
   Semt Bilişim - Kurumsal Web Sitesi
   ============================================= */

:root {
  --primary: #0d47a1;
  --primary-dark: #0a3d8f;
  --primary-light: #1565c0;
  --accent: #0288d1;
  --accent-light: #e3f2fd;
  --text-dark: #1a2332;
  --text-muted: #5a6578;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(13, 71, 161, 0.08);
  --shadow-hover: 0 12px 40px rgba(13, 71, 161, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-top-height: 40px;
  --navbar-height: 72px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-top-height) + var(--navbar-height) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
  color: #fff;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.5rem;
}

.top-bar__item i {
  color: var(--accent-light);
  font-size: 0.75rem;
}

/* ---- Navbar ---- */
.navbar-main {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.75rem 0;
  position: fixed;
  top: var(--header-top-height);
  left: 0;
  right: 0;
  z-index: 1030;
  transition: box-shadow var(--transition), padding var(--transition);
}

.navbar-main.scrolled {
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary) !important;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--accent);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition), left var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
  left: 20%;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-top-height) + var(--navbar-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #e8f4fd 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13, 71, 161, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(2, 136, 209, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(13, 71, 161, 0.04) 0%, transparent 45%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 71, 161, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 71, 161, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero__floating {
  position: absolute;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 71, 161, 0.1);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 6s ease-in-out infinite;
}

.hero__floating--1 {
  top: 25%;
  right: 8%;
  animation-delay: 0s;
}

.hero__floating--2 {
  bottom: 30%;
  right: 15%;
  animation-delay: 2s;
}

.hero__floating--3 {
  top: 40%;
  right: 25%;
  animation-delay: 4s;
}

.hero__floating i {
  font-size: 1.5rem;
  color: var(--primary);
}

.hero__floating span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 71, 161, 0.08);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__visual-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  padding: 2rem;
  border: 1px solid var(--border);
}

.hero__code-block {
  background: #1a2332;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8125rem;
  color: #a8d4ff;
  line-height: 1.8;
}

.hero__code-block .keyword { color: #ff79c6; }
.hero__code-block .string { color: #50fa7b; }
.hero__code-block .comment { color: #6272a4; }
.hero__code-block .func { color: #8be9fd; }

/* ---- Section Common ---- */
.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--bg-light);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- About Intro ---- */
.about-intro__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.about-intro__features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-intro__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  color: var(--text-dark);
}

.about-intro__features li i {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.about-intro__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--accent-light), #fff);
  padding: 2.5rem;
  text-align: center;
}

.about-intro__image i {
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.85;
}

/* ---- Why Us ---- */
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: all var(--transition);
  text-align: center;
}

.why-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background var(--transition);
}

.why-card:hover .why-card__icon {
  background: var(--primary);
}

.why-card__icon i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: color var(--transition);
}

.why-card:hover .why-card__icon i {
  color: #fff;
}

.why-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.why-card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---- Solutions ---- */
.solution-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.solution-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.solution-item__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solution-item__icon i {
  color: var(--primary);
  font-size: 1.25rem;
}

.solution-item__title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.solution-item__text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ---- Support ---- */
.support-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.support-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.support-box h3 {
  margin-bottom: 1rem;
}

.support-box p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.support-list li i {
  color: #90caf9;
}

/* ---- Stats ---- */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card__number span {
  font-size: 1.5rem;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---- Service Cards ---- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-light), #fff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.service-card__icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
}

.service-card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-card__btn {
  align-self: flex-start;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition);
}

.service-card__btn:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* ---- About Page Section ---- */
.mission-vision {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all var(--transition);
}

.mission-vision:hover {
  box-shadow: var(--shadow);
}

.mission-vision__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mission-vision__icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.mission-vision h4 {
  margin-bottom: 0.875rem;
}

.mission-vision p {
  color: var(--text-muted);
  margin: 0;
}

/* ---- Contact ---- */
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-info-card__icon i {
  color: var(--primary);
  font-size: 1.125rem;
}

.contact-info-card h5 {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0;
  word-break: break-word;
}

.contact-info-card a:hover {
  color: var(--primary);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form .form-label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.contact-form .invalid-feedback {
  font-size: 0.8125rem;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer__info li i {
  color: var(--accent);
  margin-top: 0.2rem;
  width: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: #fff;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Legal Pages ---- */
.legal-page {
  padding-top: calc(var(--header-top-height) + var(--navbar-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-page__header {
  background: linear-gradient(135deg, var(--accent-light), #fff);
  padding: 3rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.legal-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* ---- Modal ---- */
.modal-header {
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 1020;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---- Page Transition ---- */
.page-transition {
  animation: pageIn 0.6s ease forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .hero__floating {
    display: none;
  }

  .top-bar__item {
    margin-right: 0.75rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-top-height: 0px;
  }

  .top-bar {
    position: relative;
    text-align: center;
  }

  .navbar-main {
    top: 0;
  }

  .top-bar .container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
  }

  .top-bar__item {
    margin-right: 0;
  }

  html {
    scroll-padding-top: calc(var(--navbar-height) + 16px);
  }

  .hero {
    padding-top: calc(var(--navbar-height) + 2rem);
    min-height: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .support-box {
    padding: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .map-container iframe {
    height: 300px;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 575.98px) {
  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
    text-align: center;
  }
}
