/* Typography & Design Variables */
:root {
  --bg-dark: #141416; /* Clean matte charcoal-black */
  --bg-glass: rgba(28, 28, 33, 0.48); /* Frosted matte grey glass */
  --border-glass: rgba(255, 255, 255, 0.055); /* Muted frosted border */
  --border-glass-glow: rgba(168, 85, 247, 0.22); /* Soft purple border glow */
  --blur-glass: blur(24px) saturate(130%); /* Muted saturation for eye comfort */
  
  --color-white: #ffffff;
  --color-muted: rgba(220, 220, 225, 0.7); /* Soft off-white for comfortable reading */
  --color-muted-dark: rgba(220, 220, 225, 0.45);
  
  --accent-purple: #9d4edd; /* Slightly deeper, softer purple for eye comfort */
  --accent-purple-glow: rgba(157, 78, 221, 0.25);
  --accent-cyan: #8a2be2; /* Muted violet instead of bright cyan */
  --accent-cyan-glow: rgba(138, 43, 226, 0.15);
  
  --font-primary: 'Plus Jakarta Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-dark);
}

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

li {
  list-style: none;
}

h1, h2, h3, h4, h5, h6, p, a, span, li {
  word-break: keep-all;
  overflow-wrap: break-word;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Ambient Backlight Glows & Dot Grid */
.aurora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-dark);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.022'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.16; /* Softened to prevent eye strain, very clean point lighting */
  mix-blend-mode: screen;
}

.glow-top-right {
  background: radial-gradient(circle, rgba(157, 78, 221, 0.6) 0%, transparent 70%);
  width: 60vw;
  height: 60vw;
  top: -20vw;
  right: -10vw;
}

.glow-bottom-left {
  background: radial-gradient(circle, rgba(157, 78, 221, 0.35) 0%, transparent 70%);
  width: 55vw;
  height: 55vw;
  bottom: -15vw;
  left: -10vw;
}

.glow-center-purple {
  background: radial-gradient(circle, rgba(157, 78, 221, 0.45) 0%, transparent 70%);
  width: 70vw;
  height: 70vw;
  top: 30vw;
  left: 5vw;
}

.glow-portfolio-purple {
  background: radial-gradient(circle, rgba(157, 78, 221, 0.4) 0%, transparent 70%);
  width: 70vw;
  height: 70vw;
  bottom: 15vw;
  right: -5vw;
}

/* Floating Ambient Orbs */
.floating-ambient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.03) 0%, rgba(168, 85, 247, 0.01) 70%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float-gently 20s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -50px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes float-gently {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: 20px;
  box-shadow: 
    0 10px 40px 0 rgba(0, 0, 0, 0.35), 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(32, 29, 48, 0.58);
  box-shadow: 
    0 16px 50px 0 rgba(0, 0, 0, 0.45), 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Buttons (Pill shaped modern design) */
.glass-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  cursor: pointer;
}

.glass-btn-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.glass-btn-pill:active {
  transform: translateY(0);
}

.glass-btn-pill.primary {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.glass-btn-pill.primary:hover {
  background: rgba(168, 85, 247, 0.4);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 8px 30px var(--accent-purple-glow);
}

.glass-btn-pill.large {
  padding: 16px 36px;
  font-size: 1rem;
}

.pulsing-button {
  animation: pulse-border 2s infinite alternate ease-in-out;
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 4px 20px var(--accent-purple-glow);
  }
  100% {
    box-shadow: 0 8px 30px var(--accent-purple-glow), 0 0 10px var(--accent-purple);
  }
}

.btn-icon {
  margin-left: 6px;
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}

.btn-icon-left {
  margin-right: 6px;
  width: 14px;
  height: 14px;
}

.glass-btn-pill:hover .btn-icon {
  transform: translateX(3px);
}

/* Floating Navigation Header */
.main-header {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 820px;
  padding: 5px 16px;
  border-radius: 9999px;
}

.logo a {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link-item {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--color-muted);
  transition: var(--transition-fast);
  padding: 5px 12px;
  border-radius: 9999px;
}

.nav-link-item:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
}

/* Compact Nav CTA Button Override */
.nav-cta .glass-btn-pill {
  padding: 7px 16px;
  font-size: 0.82rem;
}

/* Sections Global */
section {
  padding: 100px 24px;
  display: flex;
  justify-content: center;
}

.section-container {
  width: 100%;
  max-width: 1100px;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-top: 14px;
  max-width: 600px;
  line-height: 1.6;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.mt-24 {
  margin-top: 24px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding: 160px 24px 80px;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.hero-title {
  font-weight: 800;
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 20px;
  word-break: keep-all;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #ecdcdc 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* Hero Right: Clean SaaS Mockup Dashboard */
.hero-mock-window {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) rotateZ(1deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.08);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.8s, box-shadow 0.8s;
  border-color: rgba(255, 255, 255, 0.04);
}

.hero-mock-window:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) rotateZ(0deg) translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.15);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dots .dot.red { background: #ff5f56; }
.window-dots .dot.yellow { background: #ffbd2e; }
.window-dots .dot.green { background: #27c93f; }

.window-title {
  font-size: 0.72rem;
  color: var(--color-muted-dark);
  font-family: monospace;
}

.window-action-icon {
  font-size: 0.75rem;
  color: var(--color-muted-dark);
  display: flex;
  align-items: center;
}

.window-action-icon i {
  width: 12px;
  height: 12px;
}

.window-body {
  display: grid;
  grid-template-columns: 80px 1fr;
  height: 260px;
  background: rgba(6, 6, 9, 0.6);
}

.mock-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: var(--color-muted-dark);
  padding: 6px 0;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.sidebar-item i {
  width: 14px;
  height: 14px;
}

.sidebar-item.active {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.06);
}

.mock-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mock-card {
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
}

.card-tag {
  font-size: 0.6rem;
  color: var(--color-muted-dark);
}

.card-val {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2px 0 6px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.mini-chart .bar {
  flex: 1;
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
  transition: height 0.5s;
}

.mini-chart .bar:last-child {
  background: var(--accent-purple);
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.pulse-circle {
  width: 6px;
  height: 6px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
  animation: status-pulse 1.5s infinite alternate ease-in-out;
}

@keyframes status-pulse {
  to { transform: scale(1.3); opacity: 0.5; }
}

.status-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-muted);
}

.mock-terminal {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  font-family: monospace;
}

.terminal-header {
  font-size: 0.6rem;
  color: var(--color-muted-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-header i {
  width: 10px;
  height: 10px;
}

.terminal-text {
  font-size: 0.65rem;
  line-height: 1.4;
}

.terminal-text .cyan { color: var(--accent-cyan); }
.terminal-text .green { color: #27c93f; }
.terminal-text .purple { color: var(--accent-purple); }

/* About Section */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-intro {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
}

.intro-headline {
  font-size: 1.35rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.intro-headline strong {
  color: var(--accent-purple);
  font-weight: 700;
}

.intro-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pillar-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.05);
}

.pillar-num {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.7rem;
  color: rgba(168, 85, 247, 0.35);
  line-height: 1;
  flex-shrink: 0;
}

.pillar-info {
  flex: 1;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-white);
}

.pillar-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* Development Areas */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.08);
}

.service-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.service-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
}

.service-icon {
  width: 22px;
  height: 22px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.service-list li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.service-list .bullet {
  width: 5px;
  height: 5px;
  background: var(--accent-purple);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--accent-purple);
}

/* Portfolio Section */
.filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tabs {
  display: flex;
  padding: 4px;
  border-radius: 9999px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--color-white);
}

.filter-tab.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.portfolio-card {
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.08);
}

.project-preview-box {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.project-overlay-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  opacity: 0.15;
  transition: var(--transition-smooth);
}

.glow-purple { background: var(--accent-purple); }
.glow-cyan { background: var(--accent-cyan); }
.glow-magenta { background: #ec4899; }
.glow-blue { background: #3b82f6; }

.portfolio-card:hover .project-overlay-glow {
  opacity: 0.35;
  width: 65%;
  height: 65%;
}

.project-icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.15);
  z-index: 1;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .project-icon {
  color: var(--accent-purple);
  transform: scale(1.05);
}

.project-meta {
  display: flex;
  flex-direction: column;
  padding: 0 6px;
}

.project-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 6px;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-desc-short {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 16px;
  min-height: 40px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.project-link-btn i {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  transition: var(--transition-fast);
}

.portfolio-card:hover .project-link-btn {
  color: var(--accent-purple);
}

.portfolio-card:hover .project-link-btn i {
  transform: translate(2px, -2px);
}

/* Contact Section */
.contact-section {
  padding: 100px 24px;
}

.contact-card {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  border-color: rgba(168, 85, 247, 0.15);
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.1) 0%, var(--bg-glass) 90%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 993px) {
  .contact-card {
    height: 400px; /* Match tg-preview-card height exactly */
  }
}

.contact-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.12);
}

.contact-title {
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.contact-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.contact-action-container {
  display: flex;
  justify-content: center;
}

/* Footer */
.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 36px 24px;
  background: rgba(0, 0, 0, 0.3);
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted-dark);
}

/* Detail Modal Window */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(15px);
}

.modal-wrapper {
  width: 100%;
  max-width: 780px;
  z-index: 2;
}

.modal-content {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 8, 16, 0.92);
  scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-close-btn i {
  width: 16px;
  height: 16px;
}

.modal-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  display: inline-block;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.modal-image-area {
  width: 100%;
  height: 260px;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, rgba(0,0,0,0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.modal-placeholder-icon {
  width: 64px;
  height: 64px;
  color: rgba(168, 85, 247, 0.2);
}

.modal-info-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  text-align: left;
}

.modal-desc-main h3,
.modal-desc-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-white);
}

.modal-desc-main p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.modal-desc-main ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-desc-main ul li {
  font-size: 0.9rem;
  color: var(--color-muted);
  position: relative;
  padding-left: 18px;
}

.modal-desc-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 5px var(--accent-purple);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
}

.sidebar-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.85rem;
}

/* Animations Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fade-in 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
  opacity: 0;
  transform: scale(0.97);
  animation: scale-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.08s; }
.delay-200 { animation-delay: 0.16s; }
.delay-300 { animation-delay: 0.24s; }
.delay-400 { animation-delay: 0.32s; }

@keyframes slide-up { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes scale-up { to { opacity: 1; transform: scale(1); } }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-left {
    align-items: center;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-mock-window {
    margin: 0 auto;
    transform: none; /* remove tilt on smaller screens to maximize legibility */
  }
  .hero-mock-window:hover {
    transform: translateY(-5px);
  }
  .about-grid {
    flex-direction: column;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }
  .modal-info-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .glass-btn-pill {
    width: 100%;
    max-width: 300px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-title {
    font-size: 2rem;
  }
  .modal-content {
    padding: 30px 16px;
  }
  
  /* Horizontal swipe for mobile filter tabs (Netflix category style) */
  .filter-container {
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 4px;
    margin-bottom: 24px;
  }
  .filter-tabs {
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 6px;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}

/* Mobile Menu Toggle button default (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-toggle i {
  width: 20px;
  height: 20px;
}

/* Mobile Navigation Drawer (Frosted glass overlay) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 11, 20, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  width: 85%;
  max-width: 320px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: scale(1);
}

.mobile-nav-item {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.mobile-nav-item:hover {
  color: var(--accent-purple);
}

/* 8. Live Status Board */
.about-status-board {
  margin-top: 40px;
  padding: 24px;
  width: 100%;
  border-radius: 20px;
}

.status-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.status-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-purple);
}

.status-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

.status-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.status-overall {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  animation: status-pulse-glow 1.8s infinite;
}

.status-overall-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
}

@keyframes status-pulse-glow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.server-status-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.server-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.server-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
}

.server-uptime {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.server-meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.server-status-bar {
  height: 100%;
  border-radius: 2px;
  background: #10b981;
}

.server-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.green-text {
  color: #10b981;
  font-weight: 700;
}

/* 9. Development Process Section */
.process-section {
  display: flex;
  justify-content: center;
  padding: 100px 24px;
}

.process-timeline-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
  position: relative;
}

.process-step-item {
  padding: 24px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.process-step-item::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -10px;
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

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

.step-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  color: var(--color-muted);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--color-muted-dark);
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-muted);
  word-break: keep-all;
}

/* Interactive hover logic for steps */
.process-step-item:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.03);
}

.process-step-item:hover .step-icon {
  color: var(--accent-purple);
  transform: scale(1.1);
}

.process-step-item.active {
  border-color: var(--border-glass-glow);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
}

.process-step-item.active .step-badge {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
}

.process-step-item.active .step-icon {
  color: var(--accent-purple);
  animation: float-icon 2s infinite alternate ease-in-out;
}

@keyframes float-icon {
  to {
    transform: translateY(-4px);
  }
}

@media (max-width: 992px) {
  .process-timeline-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .process-step-item::after {
    display: none;
  }
}

/* 10. FAQ Section */
.faq-section {
  display: flex;
  justify-content: center;
  padding: 100px 24px 50px 24px;
}

.faq-accordion-container {
  max-width: 760px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
  user-select: none;
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--color-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid transparent;
}

.faq-answer p {
  padding: 20px 24px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-muted);
  word-break: keep-all;
}

/* Accordion open classes */
.faq-item.active {
  border-color: rgba(168, 85, 247, 0.15);
  background: rgba(168, 85, 247, 0.02);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.faq-item.active .faq-answer {
  border-top-color: rgba(255, 255, 255, 0.03);
}

/* 11. Telegram Channel Feed Preview Widget */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.tg-preview-card {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 400px;
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(24, 22, 35, 0.6);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.tg-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(30, 27, 44, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tg-profile-pic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.tg-channel-info {
  flex: 1;
  margin-left: 12px;
}

.tg-channel-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tg-verified-icon {
  width: 14px;
  height: 14px;
  color: #229ED9;
  fill: none;
}

.tg-channel-members {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.tg-join-btn {
  background: #229ED9;
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.tg-join-btn:hover {
  background: #1d8ac0;
  transform: translateY(-1px);
}

.tg-chat-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(13, 11, 20, 0.4);
}

/* Scrollbar for Telegram Chat */
.tg-chat-area::-webkit-scrollbar {
  width: 4px;
}

.tg-chat-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.tg-msg-bubble {
  align-self: flex-start;
  max-width: 95%;
  padding: 12px 14px;
  border-radius: 12px 12px 12px 0px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.tg-msg-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: #229ED9;
  display: block;
  margin-bottom: 6px;
}

.tg-msg-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-white);
  word-break: keep-all;
}

.tg-msg-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.65rem;
  color: var(--color-muted-dark);
}

.tg-views {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tg-time {
  font-size: 0.65rem;
}

.tg-footer-link {
  padding: 12px 20px;
  background: rgba(30, 27, 44, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.tg-footer-link a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #229ED9;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.tg-footer-link a:hover {
  color: #1d8ac0;
}


