:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --bg-card: rgba(13, 27, 45, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --white: #f7fbff;
  --text: #c4cfdd;
  --muted: #8ca0bb;
  --accent: #6ee7ff;
  --accent-2: #8b5cf6;
  --success: #21c67a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(110, 231, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #07111f 0%, #091729 55%, #08101c 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  z-index: 0;
}

.section-spacing {
  position: relative;
  padding: 6.5rem 0;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.premium-nav {
  padding: 1rem 0;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--white);
}

.brand-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 0.55rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(110, 231, 255, 0.7);
}

.navbar-nav .nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 0.95rem !important;
  border-radius: 999px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.hero-section {
  padding-top: 10.5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-copy .display-3 {
  line-height: 0.95;
}

.text-accent {
  color: var(--accent);
}

.hero-summary {
  max-width: 640px;
}

.hero-metric {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  min-height: 100%;
}

.hero-metric strong {
  color: var(--white);
  display: block;
  font-size: 1.35rem;
}

.hero-metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.glass-card,
.content-card,
.timeline-shell,
.modal-premium {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.content-card {
  padding: 2rem;
}

.content-title {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
}

.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0.08rem;
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
}

.hero-badge {
  width: fit-content;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.hero-portrait {
  width: 100%;
  min-height: 450px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.hero-tech-grid span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--white);
  text-align: center;
  font-size: 0.9rem;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  z-index: -1;
}

.orb-one {
  inset: auto auto 15% -4%;
  width: 110px;
  height: 110px;
  background: rgba(110, 231, 255, 0.24);
}

.orb-two {
  inset: 6% -3% auto auto;
  width: 140px;
  height: 140px;
  background: rgba(139, 92, 246, 0.22);
}

.btn-premium {
  min-height: 52px;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
}

.btn-primary.btn-premium {
  background: linear-gradient(135deg, #1fb8ff, #7758ff);
  border: none;
  box-shadow: 0 16px 34px rgba(31, 184, 255, 0.22);
}

.btn-primary.btn-premium:hover,
.btn-primary.btn-premium:focus {
  background: linear-gradient(135deg, #32c0ff, #8669ff);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.btn-soft:hover,
.btn-soft:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.timeline-shell {
  padding: 1.2rem;
}

.premium-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.premium-accordion .accordion-button {
  background: transparent;
  color: var(--white);
  padding: 1.5rem 0.4rem;
  box-shadow: none;
}

.premium-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--white);
}

.premium-accordion .accordion-button::after {
  filter: invert(1);
}

.premium-accordion .accordion-body {
  padding: 0 0.4rem 1.5rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.55rem;
}

.tag-row,
.focus-stack,
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.85rem;
}

.project-card {
  padding: 1.4rem;
  height: 100%;
}

.project-visual {
  min-height: 220px;
  border-radius: 22px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  overflow: hidden;
  position: relative;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(12px);
}

.visual-blue {
  background: linear-gradient(135deg, rgba(31, 184, 255, 0.95), rgba(9, 24, 54, 0.95));
}

.visual-violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(24, 16, 54, 0.95));
}

.visual-cyan {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(6, 41, 68, 0.95));
}

.visual-slate {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(8, 15, 28, 0.98));
}

.project-visual .mini-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.project-visual .mini-panel span {
  display: block;
  border-radius: 14px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.project-card h3,
.project-card h4 {
  color: var(--white);
}

.project-card p,
.project-card li {
  color: var(--text);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.project-problem {
  color: var(--muted);
  font-size: 0.96rem;
}

.tech-card {
  height: 100%;
  padding: 1.5rem;
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tech-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(31, 184, 255, 0.22), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-premium {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.progress-premium .progress-bar {
  background: linear-gradient(90deg, #35c6ff, #7c5dff);
  border-radius: 999px;
}

.education-item {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.8rem;
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(110, 231, 255, 0.12);
}

.education-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.35rem;
  bottom: -1.4rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.education-item:last-child::after {
  display: none;
}

.education-item h3,
.education-item h4 {
  color: var(--white);
  margin-bottom: 0.45rem;
}

.education-item p,
.education-item small {
  color: var(--muted);
}

.certificate-card,
.service-card,
.stat-card {
  padding: 1.5rem;
  height: 100%;
}

.certificate-card h3,
.service-card h3,
.stat-card h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.service-icon,
.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.stat-value {
  font-size: clamp(2.15rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.form-label {
  color: var(--white);
  font-weight: 600;
}

.form-control-premium {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--white);
  padding: 0.95rem 1rem;
}

.form-control-premium:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(31, 184, 255, 0.1);
  border-color: rgba(110, 231, 255, 0.35);
}

.form-control-premium::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.map-shell {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-shell iframe {
  width: 100%;
  height: 310px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(1.1);
}

.footer-shell {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 9, 17, 0.6);
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
}

.modal-premium {
  background: rgba(9, 19, 34, 0.96);
}

.modal-premium .modal-body {
  color: var(--text);
}

.modal-section {
  margin-bottom: 1.6rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.project-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.case-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 8.5rem;
    min-height: auto;
  }

  .section-spacing {
    padding: 5rem 0;
  }

  .premium-nav {
    padding: 0.85rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-card,
  .project-card,
  .tech-card,
  .certificate-card,
  .service-card,
  .stat-card {
    padding: 1.25rem;
  }

  .hero-portrait {
    min-height: 360px;
  }
}
