/* ===================================================================
   LUCID STACK - CLEAN SOFTWARE STUDIO DESIGN
   =================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(16, 21, 34, 0.75);
  --bg-card-hover: rgba(22, 29, 48, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #06b6d4;
  
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-primary-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);

  --container-max: 1040px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.25);

  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.orb-2 {
  width: 550px;
  height: 550px;
  top: 35%;
  right: -120px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

/* Square Boxes Background Grid */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px;
}

.hero-container {
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.service-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Sections Common */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Portfolio Card */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition);
}

.portfolio-card:hover {
  border-color: var(--border-highlight);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.meta-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}

.dot-green {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.portfolio-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-left: 4px;
}

.tech-tag {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.tech-tag strong {
  color: var(--secondary);
}

.portfolio-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.h-icon {
  font-size: 1.3rem;
}

.highlight-item strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.highlight-item span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.portfolio-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 12px 22px;
  font-size: 0.92rem;
}

.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.domain-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: monospace;
}

/* Browser Mockup Visual */
.browser-mockup {
  background: rgba(14, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mockup-header {
  background: rgba(22, 29, 48, 0.9);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.d-red { background: #ef4444; }
.d-yellow { background: #eab308; }
.d-green { background: #22c55e; }

.mockup-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 100%;
}

.mockup-screen {
  padding: 0;
  background: #000;
  position: relative;
  overflow: hidden;
  max-height: 380px;
}

.screenshot-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.mockup-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.screenshot-link:hover .mockup-img {
  transform: scale(1.04);
}

.mockup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.screenshot-link:hover .mockup-overlay {
  opacity: 1;
}

/* Mockup Footer Details Below Screenshot */
.mockup-footer-details {
  background: rgba(14, 18, 28, 0.98);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 20px 26px;
  text-align: center;
}

.preview-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.footer-details-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-details-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.preview-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-tags span {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 6px;
  color: #cbd5e1;
  font-weight: 500;
}

.overlay-btn {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.screenshot-link:hover .overlay-btn {
  transform: translateY(0);
}

.preview-tags span {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Dedicated Single Phone Box */
.hotline-box {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.phone-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.phone-details {
  text-align: left;
  flex-grow: 1;
}

.phone-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.phone-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #38bdf8;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-number:hover {
  color: #7dd3fc;
}

.call-cta-group {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-call {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-call:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-1px);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
  color: var(--text-main);
  padding: 10px 16px;
  font-size: 0.88rem;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
  background: #040609;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-right a:hover {
  color: #ffffff;
}

/* Toast Bubble */
/* Contact Divider */
.contact-divider {
  position: relative;
  text-align: center;
  max-width: 650px;
  margin: 36px auto 30px;
}

.contact-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
  z-index: 0;
}

.contact-divider span {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  padding: 0 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  max-width: 650px;
  margin: 0 auto;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(11, 15, 25, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  margin-top: 6px;
  justify-content: center;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.toast-bubble {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-bubble.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 860px) {
  .portfolio-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hotline-box {
    flex-direction: column;
    text-align: center;
  }

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

  .call-cta-group {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
