﻿/* ==========================================================================
   XORVIN DESIGN SYSTEM & GLOBAL STYLES
   Custom Web Development & Technical SEO (US Market Portfolio)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core Colors */
  --bg-primary: #020813;           /* Deep Midnight Navy */
  --bg-secondary: #0B1528;         /* Slate Dark Navy (Card Surface) */
  --bg-tertiary: #111e38;          /* Elevated Surface / Popovers */
  --bg-card-hover: #13223f;        /* Card Hover State */
  
  /* Borders & Strokes */
  --border-subtle: #1E293B;        /* Default Stroke Color */
  --border-cyan-glow: rgba(0, 216, 246, 0.25);
  --border-cyan-hover: rgba(0, 216, 246, 0.6);
  
  /* Accents & CTA */
  --accent-cyan: #00D8F6;          /* Electric Cyan */
  --accent-cyan-light: #48E5FF;    /* Brighter Cyan */
  --accent-cyan-dark: #009FB5;     /* Deeper Cyan */
  --accent-cyan-glow: rgba(0, 216, 246, 0.4);
  --accent-cyan-subtle: rgba(0, 216, 246, 0.12);
  --accent-emerald: #10B981;       /* Speed & Success Green */
  --accent-purple: #8B5CF6;        /* Gradient Blend */
  
  /* Typography Colors */
  --text-primary: #FFFFFF;         /* Pure White */
  --text-secondary: #8892B0;       /* Muted Slate Grey */
  --text-muted: #64748B;           /* Darker Slate */
  --text-cyan: #00D8F6;            /* Accent Highlight */
  
  /* Shadows & Glows */
  --glow-cyan-sm: 0 0 15px rgba(0, 216, 246, 0.25);
  --glow-cyan-md: 0 0 25px rgba(0, 216, 246, 0.4);
  --glow-cyan-lg: 0 0 45px rgba(0, 216, 246, 0.55);
  --shadow-card: 0 10px 30px -10px rgba(2, 8, 19, 0.7);
  --shadow-card-hover: 0 20px 40px -15px rgba(0, 216, 246, 0.18);
  
  /* Layout & Animation */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

input, button, select, textarea, pre, code, kbd, samp {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* --------------------------------------------------------------------------
   Lenis Smooth Scroll Standard Styles
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero Slide System Styles (CSS Grid Stacked Layout)
   -------------------------------------------------------------------------- */
#heroSlider {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  width: 100% !important;
  position: relative;
}

.hero-slide {
  grid-area: 1 / 1 / 2 / 2 !important;
  width: 100% !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-slide.active-slide {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.hero-slide:not(.active-slide) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: none !important;
}

.hero-slide-indicator {
  transition: all 0.3s ease;
}

.hero-slide-indicator.active {
  background-color: #0B1528 !important;
  border-color: rgba(0, 216, 246, 0.6) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 15px rgba(0, 216, 246, 0.2);
}

.hero-slide-indicator.active .indicator-dot {
  background-color: #00D8F6 !important;
  box-shadow: 0 0 8px #00D8F6;
}

.hero-slide-indicator:not(.active) .indicator-dot {
  background-color: #64748B !important;
  box-shadow: none;
}

.slide-progress-bar {
  will-change: width;
}

/* Custom Selection Highlight */
::selection {
  background-color: rgba(0, 216, 246, 0.3);
  color: #FFFFFF;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 216, 246, 0.5);
}

/* --------------------------------------------------------------------------
   3. Logo Brand Wrapper Utility
   -------------------------------------------------------------------------- */

/* Removes all background box, border, shadow, and padding from logo anchors
   so the Xorvin logo renders cleanly against the dark navy header & footer */
.navbar-brand-logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  mix-blend-mode: screen !important;
}

.navbar-brand-logo img,
.logo-screen-blend {
  mix-blend-mode: screen !important;
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   4. Ambient Background & Grid Utilities
   -------------------------------------------------------------------------- */
.bg-ambient-wrapper {
  position: relative;
  background-color: var(--bg-primary);
  overflow: hidden;
}

/* Ambient Radial Glow Overlays */
.ambient-glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 850px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 216, 246, 0.16) 0%, rgba(2, 8, 19, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.ambient-glow-side-left {
  position: absolute;
  top: 35%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 216, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, rgba(2, 8, 19, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.ambient-glow-side-right {
  position: absolute;
  top: 65%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 216, 246, 0.09) 0%, rgba(16, 185, 129, 0.04) 40%, rgba(2, 8, 19, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Subtle Geometric Tech Grid Pattern */
.bg-tech-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(30, 41, 59, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.4) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 0%, #000 70%, transparent 100%);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(0, 216, 246, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --------------------------------------------------------------------------
   4. Typography Utilities & Keyword Accent
   -------------------------------------------------------------------------- */
.text-cyan-glow {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 216, 246, 0.4);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 30%, #00D8F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-multi {
  background: linear-gradient(135deg, #00D8F6 0%, #38BDF8 50%, #818CF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Important keyword accent styling */
.text-cyan-accent,
.keyword-highlight {
  color: var(--accent-cyan);
  font-style: italic;
  position: relative;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   5. Navigation Links & Active Indicators
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  transition: color var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */

/* Primary CTA Button (Electric Cyan) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-cyan);
  color: #020813 !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-cyan);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 15px rgba(0, 216, 246, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover {
  background-color: var(--accent-cyan-light);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 216, 246, 0.55), 0 8px 20px -5px rgba(0, 216, 246, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

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

/* Outline CTA Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(11, 21, 40, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.btn-outline:hover {
  background-color: rgba(0, 216, 246, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 216, 246, 0.25);
}

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

/* --------------------------------------------------------------------------
   7. Badge Pills & Status Chips
   -------------------------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 216, 246, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 216, 246, 0.22);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.badge-pill:hover {
  background: rgba(0, 216, 246, 0.15);
  border-color: rgba(0, 216, 246, 0.45);
  box-shadow: 0 0 12px rgba(0, 216, 246, 0.2);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.badge-dot-green {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* --------------------------------------------------------------------------
   8. Glass Card & Surfaces
   -------------------------------------------------------------------------- */
.glass-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 216, 246, 0.18), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(0, 216, 246, 0.35);
  background-color: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Glowing Card Border on Hover */
.glass-card-glow {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-smooth);
}

.glass-card-glow:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 216, 246, 0.2), inset 0 0 15px rgba(0, 216, 246, 0.05);
}


/* Badge float animations — used by hero floating metric badges */
.badge-float-1 {
  animation: floatSlow 5s ease-in-out infinite;
}

.badge-float-2 {
  animation: floatSlowReverse 6s ease-in-out infinite;
}



/* --------------------------------------------------------------------------
   10. Infinite Tech Stack Marquee
   -------------------------------------------------------------------------- */
.marquee-ribbon {
  background: rgba(2, 8, 19, 0.95);
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0;
}

.marquee-gradient-fade-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 120px;
  background: linear-gradient(to right, #020813 30%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.marquee-gradient-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 120px;
  background: linear-gradient(to left, #020813 30%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  user-select: none;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-ribbon:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(11, 21, 40, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.7);
  color: #CBD5E1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  margin-right: 1.25rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.marquee-badge:hover {
  background: rgba(0, 216, 246, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 216, 246, 0.25);
}

/* --------------------------------------------------------------------------
   11. Project Grid, Quick Action Overlays & Case Study Modal
   -------------------------------------------------------------------------- */

/* Uniform card image container — consistent 14rem height across all viewport sizes */
.project-card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 14rem;          /* ~224px — clean uniform height */
  flex-shrink: 0;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 19, 0.2) 0%, rgba(2, 8, 19, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-card-image-wrap:hover .project-card-overlay {
  opacity: 1;
  visibility: visible;
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Dialog Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 8, 19, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  transition: opacity var(--transition-smooth);
}

.modal-dialog {
  background: #0B1528;
  border: 1px solid rgba(0, 216, 246, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 216, 246, 0.2);
  width: 100%;
  max-width: 56rem; /* max-w-4xl */
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --------------------------------------------------------------------------
   12. Tech Tag & Metric Pills
   -------------------------------------------------------------------------- */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.7);
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 216, 246, 0.08);
}

.metric-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   13. Interactive FAQ Accordion Styles
   -------------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.active {
  background: rgba(0, 216, 246, 0.03);
}

.faq-toggle-icon {
  transition: transform var(--transition-smooth);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   14. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlowReverse {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseDot 3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   15. Responsive Layout Utility Fixes
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .btn-primary, .btn-outline {
    width: 100%;
  }
  .marquee-gradient-fade-left,
  .marquee-gradient-fade-right {
    width: 40px;
  }
}

/* --------------------------------------------------------------------------
   Permanently hide all circular badge and indicator dots
   -------------------------------------------------------------------------- */
.badge-dot,
.badge-dot-green,
.indicator-dot,
.animate-pulse,
[class*="badge-dot"],
[class*="indicator-dot"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Hero Overlap Guard — prevent subtitle / stars collision
   -------------------------------------------------------------------------- */
#hero p {
  margin-bottom: 24px !important;
  display: block !important;
  height: auto !important;
}

#hero .flex {
  position: relative !important;
  top: auto !important;
}

/* do nothing */

