/* ═══════════════════════════════════════════════════════════════
   CODEVERSE — style.css
   Premium Futuristic Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --cyan:        #00e5ff;
  --cyan-dim:    #00b8cc;
  --cyan-faint:  rgba(0, 229, 255, 0.08);
  --cyan-glow:   rgba(0, 229, 255, 0.25);
  --teal:        #00e5c3;
  --white:       #ffffff;
  --off-white:   #d0edf5;
  --body-text:   #8cb8c8;
  --dark-0:      #000810;
  --dark-1:      #010f1c;
  --dark-2:      #071828;
  --dark-3:      #0b2035;
  --glass-bg:    rgba(5, 20, 40, 0.55);
  --glass-border: rgba(0, 229, 255, 0.18);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Space Grotesk', 'Inter', sans-serif;
  --section-pad: 6rem 2rem;
  --max-w:       1240px;
}

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

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

body {
  background-color: var(--dark-0);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,100,160,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(0,50,120,0.18) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--off-white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
strong { color: var(--cyan); font-weight: 500; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { font-size: 1.05rem; color: var(--body-text); }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #00b4ff 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.28s ease;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #0088bb 0%, #00c8e0 60%, var(--teal) 100%);
  color: #000c14;
  box-shadow: 0 0 22px rgba(0, 200, 224, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 220, 255, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--cyan-faint);
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan-glow);
}

.btn--outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.4rem;
}
.btn--outline:hover {
  background: var(--cyan-faint);
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.btn--full { width: 100%; justify-content: center; }

/* ── SECTION SHARED ──────────────────────────────────────────── */
section { padding: var(--section-pad); position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
}

/* Decorative horizontal rule below sections */
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: 1.4rem auto 0;
}

/* ── GLASS PANEL UTILITY ─────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* Galaxy canvas — full bleed background */
#galaxy-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hero inner layout: globe left, copy right */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: var(--max-w);
  width: 100%;
  padding: 2rem 3rem;
  flex-wrap: wrap;
}

/* ── Globe ───────────────────────────────────────────────────── */
.globe-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe-canvas {
  display: block;
  border-radius: 50%;
  /* Outer atmosphere ring */
  box-shadow:
    0 0 0 1px rgba(0,200,255,0.12),
    0 0 40px rgba(0,180,255,0.22),
    0 0 80px rgba(0,140,220,0.14),
    0 0 140px rgba(0,100,180,0.08);
  animation: globeFloat 6s ease-in-out infinite;
}

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

/* Decorative orbital rings around globe */
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.15);
  pointer-events: none;
  animation: ringPulse 4s ease-in-out infinite;
}
.globe-ring {
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
}
.globe-ring--2 {
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  border-color: rgba(0, 200, 255, 0.07);
  animation-delay: 1.5s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.02); }
}

/* ── Hero copy ───────────────────────────────────────────────── */
.hero-copy {
  flex: 1;
  min-width: 280px;
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Scroll hint ─────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.5;
  animation: scrollBob 2.4s ease-in-out infinite;
}
.hero-scroll-hint span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════════════════════════════
   INTRO SECTION
   ════════════════════════════════════════════════════════════════ */
.intro-section {
  display: flex;
  justify-content: center;
  padding: 5rem 2rem;
}

.intro-panel {
  max-width: 860px;
  width: 100%;
  padding: 3.5rem;
  text-align: center;
  position: relative;
}

/* Glowing top-edge accent */
.intro-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.panel-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.6rem;
}

.intro-panel h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 2rem;
}

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.intro-body p { font-size: 1.08rem; color: var(--body-text); }

/* ════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ════════════════════════════════════════════════════════════════ */
.services-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2.2rem 1.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-15deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.service-card:hover::before { left: 130%; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.14), 0 12px 40px rgba(0,0,0,0.4);
}

.service-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
}

.service-card p {
  font-size: 0.97rem;
  color: var(--body-text);
  flex: 1;
}

.service-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.service-link .arrow {
  transition: transform 0.2s ease;
}
.service-card:hover .service-link .arrow {
  transform: translateX(5px);
}

/* ════════════════════════════════════════════════════════════════
   WORK / PROJECTS SECTION
   ════════════════════════════════════════════════════════════════ */
.work-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.8rem;
  margin-bottom: 5rem;
  padding: 2.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.08), 0 20px 60px rgba(0,0,0,0.35);
}

/* Alternating layout */
.project-card--reverse {
  flex-direction: row-reverse;
}

/* ── Video frame ─────────────────────────────────────────────── */
.project-media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0,200,255,0.14);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  position: relative;
}

/* Cyan tint overlay on top edge */
.project-media::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  pointer-events: none;
}

.project-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ── Project info ────────────────────────────────────────────── */
.project-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50px;
  padding: 0.28rem 0.9rem;
  align-self: flex-start;
}

.project-info h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 0.3rem;
}

.project-info p {
  font-size: 0.97rem;
  color: var(--body-text);
  line-height: 1.65;
}

/* Bold inline labels (Mission / Solution) */
.label {
  color: var(--cyan);
  font-weight: 500;
}

/* Tech icon row */
.tech-stack-row {
  display: flex;
  gap: 0.9rem;
  font-size: 1.7rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.tech-stack-row i { transition: transform 0.2s ease; }
.tech-stack-row i:hover { transform: scale(1.2); }

/* ════════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ════════════════════════════════════════════════════════════════ */
.reviews-section {
  padding: var(--section-pad);
  position: relative;
}

/* Faint nebula behind reviews */
.reviews-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,80,140,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.review-card {
  padding: 1.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.12);
}

.review-stars {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #f6c90e;
  text-shadow: 0 0 8px rgba(246, 201, 14, 0.4);
}

.review-card p {
  font-size: 0.98rem;
  color: var(--off-white);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.reviewer {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   TECH STACK SECTION
   ════════════════════════════════════════════════════════════════ */
.tech-section {
  padding: var(--section-pad);
  overflow: hidden;
}

.tech-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.tech-scroll {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}
.tech-scroll:hover { animation-play-state: paused; }

.tech-track {
  display: flex;
  gap: 2.8rem;
  padding: 1rem 1.4rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  width: 88px;
  transition: transform 0.25s ease;
  cursor: default;
}
.tech-item:hover { transform: scale(1.12) translateY(-4px); }

.tech-item i,
.tech-item img {
  font-size: 2.6rem;
}

.shopify-icon {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}

.tech-item span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--body-text);
  text-align: center;
  white-space: nowrap;
}

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

/* ════════════════════════════════════════════════════════════════
   CONTACT / FOOTER SECTION
   ════════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 6rem 2rem 3rem;
  position: relative;
}

/* Subtle glow above footer */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.3), transparent);
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--body-text);
  margin: 1rem 0 2.8rem;
}

/* ── Contact form ────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
}

.contact-form input,
.contact-form textarea {
  background: rgba(5, 22, 44, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(140, 184, 200, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

/* ── Footer bottom ───────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--cyan);
  font-size: 1.2rem;
  transition: all 0.25s ease;
  background: var(--glass-bg);
}
.social-links a:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-2px);
}

.copyright {
  font-size: 0.85rem;
  color: rgba(140, 184, 200, 0.5);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* Tablet */
@media screen and (max-width: 960px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 4rem 2rem 3rem;
    gap: 2.5rem;
  }

  .hero-ctas { justify-content: center; }
  .hero-copy { max-width: 100%; }

  .project-card,
  .project-card--reverse {
    flex-direction: column;
  }

  .project-media { max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .intro-panel { padding: 2.5rem 1.8rem; }
}

/* Mobile */
@media screen and (max-width: 600px) {
  :root { --section-pad: 4rem 1.2rem; }

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

  .section-title { font-size: 1.7rem; }

  .services-grid { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr; }

  .tech-item { width: 70px; }
  .tech-item i, .tech-item img { font-size: 2rem; }
  .shopify-icon { width: 2rem; height: 2rem; }

  .project-card { padding: 1.4rem; gap: 1.6rem; }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.8rem;
  }

  .hero-scroll-hint { display: none; }
}
