/* ==========================================================================
       CSS VARIABLES & THEME ENGINE
       ========================================================================== */
:root {
  --bg-primary: #060911;
  --bg-secondary: #0d1322;
  --bg-tertiary: #131b2e;
  --bg-glass: rgba(13, 19, 34, 0.7);
  --bg-glass-card: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;

  --accent-primary: #6366f1;
  --accent-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-success: #10b981;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Reset & Core Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Focus Outline */
:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

p {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #06b6d4 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-success);
  font-size: 0.875rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-success);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

/* Buttons Component */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.btn-secondary-glass {
  background: var(--bg-glass-card);
  border-color: var(--border-light);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary-glass:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Cards Engine */
.card-glass {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-glass:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* Animation Scroll Reveal Defaults */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.text-align {
  text-align: justify;
}

/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT MODE ENGINE
   ========================================================================== */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Light Mode Variables Override */
html.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-glass: rgba(248, 250, 252, 0.85);
  --bg-glass-card: #ffffff;
  --bg-glass-hover: #f1f5f9;

  --border-light: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;

  --accent-glow: rgba(99, 102, 241, 0.15);
}

/* Light Mode Overrides for Better Readability */
html.light-mode .text-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #0891b2 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .nav-brand {
  color: #0f172a;
}

html.light-mode .card-glass {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

html.light-mode .nav-link-custom:hover,
html.light-mode .nav-link-custom.active {
  background: rgba(15, 23, 42, 0.05);
}

html.light-mode .timeline-node {
  background: #ffffff;
}

/* ==========================================================================
       1. HEADER & NAVBAR
       ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.875rem 0;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span {
  color: var(--accent-primary);
}

.nav-link-custom {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);

}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Nav Toggle */
.nav-toggle {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
}

@media (max-width: 991.98px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    display: none;
  }

  .nav-menu.show {
    display: flex;
  }
}

/* ==========================================================================
       2. HERO SECTION
       ========================================================================== */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a:hover {
  color: var(--accent-primary);
}

.hero-card {
  position: relative;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
}

.profile-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.avatar-border-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  z-index: -1;
  opacity: 0.7;
  filter: blur(6px);
}

/* ==========================================================================
       3. WHY HIRE ME SECTION
       ========================================================================== */
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
       4. SERVICES SECTION
       ========================================================================== */
.service-benefits {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.service-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-benefits li i {
  color: var(--accent-success);
}

/* ==========================================================================
       5. DEVELOPMENT PROCESS (TIMELINE)
       ========================================================================== */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-light);
}

@media (min-width: 768px) {
  .process-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-node {
  position: absolute;
  top: 0;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline-node {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  margin-left: 60px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .timeline-step:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    margin-right: calc(50% + 30px);
    text-align: right;
  }

  .timeline-step:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
  }
}

/* ==========================================================================
       6. TECHNOLOGIES
       ========================================================================== */
.tech-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.tech-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 2rem;
  color: var(--accent-secondary);
}

/* ==========================================================================
       7. AVAILABILITY & WORK VALUES
       ========================================================================== */
.avail-list {
  list-style: none;
}

.avail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ==========================================================================
   FAQ SECTION STYLES
   ========================================================================== */

.faq-item {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: #3f3f46;
}

.faq-item.active {
  border-color: #6366f1;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: #f4f4f5;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease;
}

.faq-header:hover {
  color: #818cf8;
}

.faq-icon {
  font-size: 0.85rem;
  color: #a1a1aa;
  transition: transform 0.3s ease, color 0.3s ease;
  margin-left: 16px;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #818cf8;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: max-height 0.35s ease-out, opacity 0.3s ease, padding 0.35s ease;
}

.faq-item.active .faq-body {
  padding: 0 24px 20px 24px;
  opacity: 1;
}

.faq-body p {
  color: #a1a1aa;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
       9. CALL TO ACTION & CONTACT INFO
       ========================================================================== */
.cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.contact-card-link:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  background: var(--bg-glass-hover);
}

/* ==========================================================================
       10. FOOTER
       ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 2rem 0;
  margin-top: 6rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.parent-icon {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parent-icon:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover .bi-arrow-up-short {
  transform: rotate(360deg);
}

.back-to-top .bi-arrow-up-short {
  transition: transform 0.5s ease;
}

.back-to-top:hover {
  background: var(--accent-hover);
}

/* Print Stylesheet */
@media print {

  .site-header,
  .back-to-top,
  .cta-card {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .card-glass {
    border: 1px solid #ccc !important;
  }
}