/* =========================================================
   RAWMAC PREMIUM UI CSS
   LIGHT + DARK THEME READY
   MOBILE RESPONSIVE
   MODERN UI/UX
========================================================= */

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #60a5fa;
  --brand-soft: rgba(37, 99, 235, 0.08);

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: rgba(255,255,255,0.88);

  --text: #0f172a;
  --text-light: #ffffff;
  --text-muted: #64748b;

  --border: rgba(148,163,184,0.16);

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --transition: all 0.3s ease;

}

/* =========================================================
   DARK THEME
========================================================= */

[data-theme="dark"] {

  --bg: #0b1120;
  --bg-soft: #111827;
  --bg-card: rgba(15,23,42,0.76);

  --text: #f8fafc;
  --text-muted: #cbd5e1;

  --border: rgba(255,255,255,0.08);

  --shadow-sm: 0 4px 14px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);

}

/* =========================================================
   GLOBAL
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  font-family:
  "Inter",
  system-ui,
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  sans-serif;

  background: var(--bg);
  color: var(--text);

  overflow-x: hidden;

  line-height: 1.7;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

  transition:
  background 0.3s ease,
  color 0.3s ease;

}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {

  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;

  color: var(--text);

}

.section-title {

  font-size: clamp(2rem, 5vw, 3rem);

  margin-bottom: 1rem;

}

.text-muted-custom {
  color: var(--text-muted);
}

/* =========================================================
   LINKS
========================================================= */

a {

  text-decoration: none;

  transition: var(--transition);

}

a:hover {
  color: var(--brand);
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {

  background:
  linear-gradient(
    90deg,
    #0f172a,
    #1e293b
  );

  color: #fff;

  font-size: 0.92rem;

  border-bottom:
  1px solid rgba(255,255,255,0.08);

}

.topbar a {
  color: #fff;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {

  background:
  rgba(255,255,255,0.85) !important;

  backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--border);

  transition: var(--transition);

  padding: 0.85rem 0;

}

[data-theme="dark"] .navbar {

  background:
  rgba(15,23,42,0.88) !important;

}

.navbar-brand {

  font-weight: 800;

  font-size: 1.25rem;

  color: var(--text) !important;

}

.nav-link {

  position: relative;

  font-weight: 600;

  color: var(--text) !important;

  margin: 0 0.5rem;

  transition: var(--transition);

}

.nav-link:hover,
.nav-link.active {

  color: var(--brand) !important;

}

.nav-link::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: var(--brand);

  transition: var(--transition);

}

.nav-link:hover::after,
.nav-link.active::after {

  width: 100%;

}

/* =========================================================
   HERO
========================================================= */

.hero {

  position: relative;

  padding:
  clamp(100px, 12vw, 170px)
  0;

  overflow: hidden;

  background:
  linear-gradient(
    135deg,
    rgba(15,23,42,0.92),
    rgba(30,41,59,0.85)
  ),
  url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1800&q=80')
  center/cover no-repeat;

}

.hero::before {

  content: "";

  position: absolute;
  inset: 0;

  background:
  radial-gradient(
    circle at top right,
    rgba(37,99,235,0.28),
    transparent 40%
  );

}

.hero h1 {

  font-size:
  clamp(2.5rem, 5vw, 4.5rem);

  color: #fff;

  line-height: 1.1;

}

.hero p {

  color:
  rgba(255,255,255,0.82);

  font-size: 1.08rem;

}

.hero .badge {

  border-radius: 999px;

  padding: 0.7rem 1rem;

  font-weight: 600;

}

/* =========================================================
   BUTTONS
========================================================= */

.btn {

  border-radius: 14px;

  font-weight: 600;

  padding:
  0.85rem 1.6rem;

  transition: var(--transition);

}

.btn-brand {

  border: none;

  color: #fff;

  background:
  linear-gradient(
    135deg,
    var(--brand),
    var(--brand-dark)
  );

  box-shadow: var(--shadow-md);

}

.btn-brand:hover {

  transform: translateY(-2px);

  box-shadow: var(--shadow-lg);

  color: #fff;

}

.btn-outline-light {

  border-width: 2px;

}

.btn-outline-light:hover {

  background: #fff;
  color: #111827;

}

/* =========================================================
   THEME TOGGLE BUTTON
========================================================= */

.theme-toggle-btn {

  position: relative;

  width: 52px;
  height: 52px;

  border-radius: 16px;

  border: 1px solid var(--border);

  background: var(--bg-card);

  color: var(--text);

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(14px);

  cursor: pointer;

  transition: var(--transition);

  overflow: hidden;

}

.theme-toggle-btn:hover {

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}

.theme-icon {

  position: absolute;

  transition:
  opacity 0.3s ease,
  transform 0.35s ease;

}

/* LIGHT */

[data-theme="light"] .sun-icon {

  opacity: 1;
  transform: rotate(0deg) scale(1);

}

[data-theme="light"] .moon-icon {

  opacity: 0;
  transform: rotate(90deg) scale(0);

}

/* DARK */

[data-theme="dark"] .sun-icon {

  opacity: 0;
  transform: rotate(-90deg) scale(0);

}

[data-theme="dark"] .moon-icon {

  opacity: 1;
  transform: rotate(0deg) scale(1);

}

/* =========================================================
   CARDS
========================================================= */

.card,
.service-card,
.feature-card,
.job-card,
.contact-card {

  border:
  1px solid var(--border);

  background: var(--bg-card);

  backdrop-filter: blur(14px);

  border-radius: var(--radius-md);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

}

.card:hover,
.service-card:hover,
.feature-card:hover,
.job-card:hover {

  transform: translateY(-6px);

  box-shadow: var(--shadow-lg);

}

/* =========================================================
   ICONS
========================================================= */

.service-icon,
.feature-icon {

  width: 64px;
  height: 64px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.5rem;

  color: var(--brand);

  background: var(--brand-soft);

}

/* =========================================================
   FORMS
========================================================= */

.form-control,
.form-select,
textarea {

  border-radius: 14px;

  border: 1px solid var(--border);

  background:
  rgba(255,255,255,0.82);

  color: var(--text);

  min-height: 54px;

  padding:
  0.9rem 1rem;

  transition: var(--transition);

  box-shadow: none !important;

}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {

  background:
  rgba(15,23,42,0.72);

  color: #fff;

}

textarea {
  min-height: 140px;
}

.form-control:focus,
.form-select:focus,
textarea:focus {

  border-color: var(--brand);

  box-shadow:
  0 0 0 4px rgba(37,99,235,0.14) !important;

}

.form-control::placeholder,
textarea::placeholder {

  color: var(--text-muted);

}

/* =========================================================
   SECTION
========================================================= */

section {

  position: relative;

  padding:
  clamp(70px, 10vw, 110px)
  0;

}

.section-soft {

  background:
  linear-gradient(
    180deg,
    var(--bg-soft),
    transparent
  );

}

/* =========================================================
   JOB CARD
========================================================= */

.job-card {

  position: relative;

}

.job-card::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background:
  linear-gradient(
    90deg,
    var(--brand),
    #38bdf8
  );

}

.job-card .badge {

  border-radius: 999px;

  padding: 0.55rem 0.8rem;

  font-weight: 600;

}

/* =========================================================
   IMAGE
========================================================= */

img {

  max-width: 100%;
  height: auto;

}

.rounded-xl {
  border-radius: var(--radius-lg);
}

/* =========================================================
   FOOTER
========================================================= */

footer {

  background:
  linear-gradient(
    90deg,
    #0f172a,
    #111827
  );

  color:
  rgba(255,255,255,0.82);

  border-top:
  1px solid rgba(255,255,255,0.08);

}

/* =========================================================
   ANIMATION
========================================================= */

.card,
.btn,
.form-control,
.nav-link {

  will-change: transform;

}

@keyframes floatY {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }

}

.hero .rounded-xl {

  animation:
  floatY 5s ease-in-out infinite;

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

  .hero {

    text-align: center;

    padding-top: 120px;

  }

  .hero .d-flex {
    justify-content: center;
  }

  .navbar-collapse {

    margin-top: 1rem;

    background: var(--bg);

    border-radius: 18px;

    padding: 1rem;

    box-shadow: var(--shadow-md);

  }

  [data-theme="dark"] .navbar-collapse {

    background: #111827;

  }

}

@media (max-width: 768px) {

  .section-title {

    font-size: 2rem;

  }

  .card,
  .service-card,
  .feature-card,
  .job-card {

    border-radius: 18px;

  }

}

@media (max-width: 576px) {

  body {
    font-size: 15px;
  }

  .btn {

    width: 100%;

  }

  .hero h1 {

    font-size: 2rem;

  }

  .topbar {

    text-align: center;

  }

  .theme-toggle-btn {

    width: 48px;
    height: 48px;

    margin-top: 12px;

  }

  .job-card .d-md-flex,
  .d-grid.gap-2.d-md-flex {

    flex-direction: column !important;

  }

}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {

  background:
  rgba(100,116,139,0.45);

  border-radius: 999px;

}

::-webkit-scrollbar-thumb:hover {

  background:
  rgba(100,116,139,0.72);

}