/* ==========================================================================
   DREMORA IT — COMPONENTS
   Navbar, Buttons, Cards, Badge, Form, Footer, etc.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition:
    height var(--duration-slow) var(--ease-out),
    background-color var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out),
    backdrop-filter var(--duration-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.navbar.scrolled {
  height: var(--nav-height-scrolled);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--border);
}

.navbar.scrolled::after {
  opacity: 1;
}

.navbar.scrolled .nav-logo img {
  height: 38px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: var(--weight-black);
  color: #fff;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-md);
  object-fit: contain;
  transition: height var(--duration-slow) var(--ease-out);
}

.nav-logo-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.nav-logo-tagline {
  font-size: 0.65rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--duration-base) var(--ease-out);
}

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

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  width: 20px;
}

/* Nav CTA */
.nav-cta {
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Mobile menu button */
.nav-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}

.nav-mobile-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--glass-bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out),
              top var(--duration-slow) var(--ease-out);
  z-index: var(--z-drawer);
}

.navbar.scrolled ~ .nav-drawer {
  top: var(--nav-height-scrolled);
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-drawer .nav-link {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.nav-drawer .nav-cta {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   2. BUTTONS
   -------------------------------------------------------------------------- */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

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

/* Primary */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* Secondary (ghost) */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-hover);
}

/* Outline accent */
.btn-outline {
  background: transparent;
  color: var(--accent-bright);
  border-color: var(--border-accent);
}

.btn-outline:hover {
  background: var(--accent-subtle);
}

/* Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* Magnetic wrapper (JS-enhanced) */
.btn-magnetic {
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

/* Icon button */
.btn-icon {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration-base) var(--ease-out);
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. CARDS
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition:
    border-color var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-interactive {
  cursor: pointer;
}

.card-accent-hover:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), var(--shadow-xl);
}

/* Card with top accent line */
.card-accent-line {
  position: relative;
  overflow: hidden;
}

.card-accent-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.card-accent-line:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   4. BADGE / TAG
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
}

.badge-blue {
  background: var(--accent-subtle);
  color: var(--accent-bright);
  border: 1px solid var(--border-accent);
}

.badge-green {
  background: var(--success-subtle);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.badge-orange {
  background: var(--warning-subtle);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-gray {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   5. ICON BOX
   -------------------------------------------------------------------------- */

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 25%, var(--accent-subtle), var(--bg-secondary) 70%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: border-color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  border-radius: var(--radius-xl);
}

.card:hover .icon-box {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
}

/* --------------------------------------------------------------------------
   6. PROCESS / TIMELINE
   -------------------------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  position: relative;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--space-8) + 20px);
  right: 0;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, var(--border-accent), var(--border));
}

.process-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: calc(var(--space-8) + 20px);
  left: 0;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--border-accent));
}

.process-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  transition: all var(--duration-slow) var(--ease-out);
}

.process-step.active .process-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

.process-step-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.process-step-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   7. FORM COMPONENTS
   -------------------------------------------------------------------------- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B6B6B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: var(--leading-relaxed);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   8. SECTION HEADER
   -------------------------------------------------------------------------- */

.section-header {
  margin-bottom: var(--space-16);
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 560px;
}

.section-header.centered .section-subtitle {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   9. HERO VISUAL — Abstract Geometric
   -------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 480px;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero-visual-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.12;
}

.hero-visual-glow-1 {
  width: 240px;
  height: 240px;
  top: -40px;
  left: -40px;
}

.hero-visual-glow-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  right: -20px;
  background: #8B5CF6;
}

/* Floating stat cards on hero */
.hero-stat-card {
  position: absolute;
  background: rgba(23, 23, 23, 0.9);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
  font-weight: var(--weight-medium);
}

/* --------------------------------------------------------------------------
   10. WHY DREMORA — FEATURE GRID
   -------------------------------------------------------------------------- */

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.feature-item h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   11. WORK / PROJECT CARDS
   -------------------------------------------------------------------------- */

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: border-color var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-img-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.04);
}

.project-content {
  padding: var(--space-6);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.project-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.project-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   12. DIVIDER WITH TEXT
   -------------------------------------------------------------------------- */

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --------------------------------------------------------------------------
   13. CONTACT INFO ITEMS
   -------------------------------------------------------------------------- */

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  padding-block: var(--space-16) var(--space-10);
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-base) var(--ease-out);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}

.footer-social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--duration-base) var(--ease-out);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   15. AI CHAT WIDGET (SAM)
   -------------------------------------------------------------------------- */

.chat-widget-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px var(--accent-glow);
  z-index: 500;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.chat-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   16. SUCCESS / ERROR STATES
   -------------------------------------------------------------------------- */

.form-success-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-subtle);
  border: 1px solid rgba(74, 222, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: #4ADE80;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   17. SCROLL TO TOP BUTTON
   -------------------------------------------------------------------------- */

.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: calc(var(--space-6) + 56px + var(--space-3));
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   18. SEPARATOR SECTION
   -------------------------------------------------------------------------- */

.separator-line {
  border: none;
  height: 1px;
  background: var(--border);
}

/* --------------------------------------------------------------------------
   19. PREMIUM UX ENHANCEMENTS
   -------------------------------------------------------------------------- */
.hero-section {
  padding: clamp(100px, 15vh, 160px) 0 80px;
}

.bg-premium {
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.04), transparent 40%),
              var(--bg-primary);
  position: relative;
}

.bg-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.bg-premium > * {
  position: relative;
  z-index: 1;
}

/* Logos Marquee */
.logo-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 40px 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}
.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}
.logo-marquee {
  display: inline-flex;
  gap: 6rem;
  animation: marquee 30s linear infinite;
  align-items: center;
}
.logo-marquee i {
  font-size: 2.5rem;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  opacity: 0.6;
}
.logo-marquee i:hover {
  color: var(--text-primary);
  transform: scale(1.1);
  opacity: 1;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}
.timeline-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.timeline-number {
  position: absolute;
  top: -64px;
  left: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.timeline-step:hover .timeline-number {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

@media (max-width: 768px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .timeline-grid::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-step {
    margin-top: 0;
    margin-left: 40px;
  }
  .timeline-number {
    top: 50%;
    transform: translateY(-50%);
    left: -64px;
  }
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-secondary);
}
.faq-answer p {
  padding-bottom: var(--space-5);
  margin: 0;
  line-height: var(--leading-relaxed);
}
.faq-item.active .faq-answer {
  max-height: 500px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-icon {
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1.25rem;
}

/* Contact Cards Enhancements */
.contact-opt-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}
.contact-opt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.05);
  border-color: var(--accent);
}

/* Animated Statistics */
.stat-item {
  text-align: center;
  padding: var(--space-6);
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* -- PROTOTYPE CAFE MOCKUP ANIMATIONS -- */
.portfolio-card-link:hover .browser-mockup {
  transform: translateY(-10px) scale(1.02) rotateX(2deg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3) !important;
}

.portfolio-card-link .hero-inner {
  transition: transform 0.4s ease;
}

.portfolio-card-link:hover .hero-inner {
  transform: scale(1.03);
}

.portfolio-card-link:hover .live-indicator {
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.portfolio-card-link .project-title {
  transition: text-shadow 0.3s ease;
}

.portfolio-card-link:hover + div .project-title,
.portfolio-card-link:hover ~ div .project-title {
  text-shadow: 0 0 20px rgba(212,175,55,0.4);
}

/* -- PROTOTYPE HEALTHCARE MOCKUP ANIMATIONS -- */
.portfolio-card-link.healthcare-link:hover .browser-mockup {
  transform: translateY(-10px) scale(1.02) rotateX(2deg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 40px rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3) !important;
}

.portfolio-card-link.healthcare-link:hover + div .project-title,
.portfolio-card-link.healthcare-link:hover ~ div .project-title {
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* ===================== HOME HERO ===================== */
.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-base);
}

.hero-glow-a {
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(48, 89, 234, 0.08), transparent 65%);
}

.hero-glow-b {
  bottom: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(48, 89, 234, 0.045), transparent 65%);
}

/* ===================== PORTFOLIO SHOWCASE CARD ===================== */
.portfolio-showcase-wrapper {
  position: relative;
  z-index: var(--z-sticky);
}
.portfolio-showcase-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-3xl);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.portfolio-showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 100px var(--accent-glow), 0 0 0 1px var(--border-accent), 0 0 40px var(--accent-subtle);
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.showcase-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.showcase-title svg {
  color: var(--accent-bright);
}
.showcase-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.live-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: drm-pulse-dot 2s infinite;
}
.featured-project {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.featured-project.fading {
  opacity: 0;
  transform: scale(0.98);
}
.featured-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.portfolio-showcase-card:hover .featured-img-wrapper img {
  transform: scale(1.05);
}
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.featured-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.featured-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.featured-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.featured-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.featured-tech .tech-tag {
  font-size: 0.65rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 9999px;
}
.showcase-slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.slider-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.slider-progress-fill {
  height: 100%;
  width: 0%;
  background: #3b82f6;
  border-radius: 2px;
  transition: width 0.1s linear;
}
.showcase-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.showcase-slider::-webkit-scrollbar {
  display: none;
}
.slider-card {
  min-width: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.slider-card.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}
.slider-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}
.slider-card-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slider-card.active .slider-card-title {
  color: #fff;
}
.showcase-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  color: #fff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}
.showcase-cta:hover {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}
.showcase-cta:hover svg {
  transform: translateX(4px);
}
.showcase-cta svg {
  transition: transform 0.3s ease;
}

@media (max-width: 640px) {
  .portfolio-showcase-card {
    padding: 16px;
    gap: 16px;
  }
  .featured-title {
    font-size: 1.1rem;
  }
  .featured-desc {
    font-size: 0.75rem;
  }
  .slider-card {
    min-width: 100px;
    padding: 6px;
  }
}
