:root {
  --bg: #05060a;
  --surface: #0e1016;
  --surface-alt: #0a0c12;
  --text: #e8ecf5;
  --muted: #9aa3b5;
  --accent: #2f6fed;
  --accent-glow: #4f8bff;
  --border: #1c2130;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Navbar ===== */
#mainNav {
  background: transparent;
  padding: 1.2rem 0;
  transition: all 0.35s ease;
}

#mainNav.scrolled {
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text) !important;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--muted) !important;
  margin: 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
  position: relative;
  padding: 0.4rem 0.1rem !important;
  transition: color 0.25s ease;
}

.btn-nav-cta {
  background: var(--accent);
  color: white !important;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  margin-left: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--accent-glow);
  color: white !important;
  box-shadow: 0 8px 20px rgba(47,111,237,0.4);
}

@media (max-width: 767px) {
  .btn-nav-cta {
    margin: 1rem 0 0;
    display: inline-block;
  }
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent-glow);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-glow) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border-color: var(--border);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 60px;
  background: radial-gradient(ellipse at top right, #0b1226 0%, var(--bg) 60%);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(47,111,237,0.25) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.eyebrow {
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  font-size: 0.8rem;
  font-family: var(--mono);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0;
  color: var(--text);
  line-height: 1.08;
  font-weight: 700;
}

.hero-text {
  color: var(--muted);
  max-width: 560px;
  font-size: 1.05rem;
  margin: 1.2rem 0 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-glow {
  background: var(--accent);
  color: white !important;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 0 rgba(47,111,237,0.6);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 28px rgba(79,139,255,0.65);
  transform: translateY(-3px);
  color: white !important;
}

.btn-outline-glow {
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--accent-glow);
  color: var(--text) !important;
  transition: all 0.3s ease;
}

.btn-outline-glow:hover {
  background: var(--accent-glow);
  color: #05060a !important;
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(79,139,255,0.5);
}

.hero-socials {
  display: flex;
  gap: 0.9rem;
}

.hero-socials a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: all 0.3s ease;
}

.hero-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(47,111,237,0.4);
}

.hero-photo-wrap {
  position: relative;
  height: clamp(360px, 40vw, 540px);
  border-radius: 20px;
  overflow: hidden;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 42%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%);
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 75% 85%, rgba(47,111,237,0.28), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(10%) contrast(1.05);
}

@media (max-width: 991px) {
  .hero-photo-wrap {
    height: clamp(300px, 70vw, 420px);
  }
}

.hero-stats {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats .stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.hero-stats .stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-glow);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== Side Scroll Rail ===== */
.side-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 1.1rem;
  z-index: 900;
}

.rail-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.rail-dot span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
}

.rail-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.rail-dot:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.rail-dot.active span {
  background: var(--accent-glow);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.3);
}

/* ===== Sections ===== */
.section-block {
  padding: 6rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading .tag {
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  font-size: 0.78rem;
  font-family: var(--mono);
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0.4rem 0 0;
  position: relative;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 3px;
}

.section-heading-left {
  text-align: left;
  max-width: 640px;
}

.section-heading-left h2::after {
  margin: 1rem 0 0;
}

/* ===== Feature Rows ===== */
.feature-rows .feature-row {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-rows .feature-row:last-child {
  border-bottom: none;
}

.feature-index {
  display: inline-block;
  font-family: var(--mono);
  color: var(--accent-glow);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.2rem;
}

.feature-row h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 1rem;
}

.feature-row p {
  color: var(--muted);
  max-width: 480px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.6rem;
}

.feature-list li {
  color: var(--text);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-list li i {
  color: var(--accent-glow);
  font-size: 0.85rem;
}

.feature-link {
  color: var(--accent-glow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.feature-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.feature-link:hover {
  gap: 0.8rem;
  color: var(--accent-glow);
}

.feature-link:hover i {
  transform: translateX(4px);
}

.feature-image {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.feature-image:hover img {
  transform: scale(1.04);
}

/* ===== Comparison Table ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.compare-table thead th {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  padding: 1.1rem 1.4rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table thead th:last-child {
  color: var(--accent-glow);
}

.compare-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:last-child {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.compare-table td:last-child::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-glow);
  margin-right: 0.6rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 1.4rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question i {
  color: var(--accent-glow);
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.faq-item.open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  color: var(--muted);
  padding-bottom: 1.4rem;
  margin: 0;
  max-width: 640px;
}

/* ===== About ===== */
.about-photo-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.about-photo-frame img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.about-photo-frame:hover img {
  transform: scale(1.05);
}

.about-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.about-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-info p {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.about-info span {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.4rem;
}

/* ===== Skills / Services ===== */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.4rem;
  text-align: center;
  height: 100%;
  transition: all 0.35s ease;
}

.skill-card i {
  font-size: 2rem;
  color: var(--accent-glow);
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.skill-card h4 {
  margin: 0.4rem 0;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(47,111,237,0.25);
}

.skill-card:hover i {
  transform: scale(1.2) rotate(-8deg);
}

.progress-item {
  margin-bottom: 1.4rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  border-radius: 999px;
  transition: width 1.4s ease;
}

/* ===== Portfolio ===== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.portfolio-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.portfolio-card img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,0.1) 0%, rgba(5,6,10,0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.6rem;
  text-align: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-overlay h4 {
  margin: 0;
}

.portfolio-overlay p {
  color: var(--accent-glow);
  margin: 0.2rem 0 0.8rem;
  font-size: 0.9rem;
}

.portfolio-links {
  display: flex;
  gap: 0.7rem;
}

.portfolio-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: white;
  transition: transform 0.3s ease;
}

.portfolio-links a:hover {
  transform: translateY(-4px) scale(1.05);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

/* ===== Process ===== */
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.4rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.6rem;
  color: rgba(47,111,237,0.35);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.process-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(47,111,237,0.2);
}

/* ===== Contact ===== */
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,111,237,0.15);
  color: var(--accent-glow);
  border-radius: 50%;
  font-size: 1.1rem;
}

.contact-info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-item p {
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.contact-form .form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
}

.contact-form .form-control:focus {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(47,111,237,0.2);
}

.contact-form .form-control::placeholder {
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
  color: var(--muted);
  text-align: center;
}

.footer-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-share span {
  color: var(--muted);
  margin-right: 0.3rem;
}

.footer-share a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-share a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* ===== Back to Top ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.35s ease;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(47,111,237,0.4);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent-glow);
  transform: translateY(-4px);
}

@media (max-width: 767px) {
  .navbar-collapse {
    background: rgba(5,6,10,0.97);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.8rem;
  }
}
