/* ═══════════════════════════════════════════════════════════════
   FLOWGEEK — index.css
   Homepage-only styles. Requires global.css to be loaded first.
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Decorative crosshair lines */
.hero-crosshair { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.crosshair-h,
.crosshair-v    { position: absolute; background: var(--border); }
.crosshair-h    { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.crosshair-v    { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }

/* ── ISO Cube Grid ── */
.iso-grid-wrap {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 45vw;
  max-width: 540px;
  z-index: 2;
  animation: isoReveal 1s cubic-bezier(.16,1,.3,1) 0.3s both,
             isoFloat  28s ease-in-out 1.3s infinite;
}

@keyframes isoReveal {
  from { opacity: 0; transform: translateY(-50%) scale(0.85); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes isoFloat {
  0%   { transform: translateY(-50%) rotateX(0deg) rotateZ(0deg); }
  25%  { transform: translateY(calc(-50% - 12px)) rotateX(1.5deg) rotateZ(0.5deg); }
  50%  { transform: translateY(-50%) rotateX(0deg) rotateZ(1deg); }
  75%  { transform: translateY(calc(-50% + 12px)) rotateX(-1.5deg) rotateZ(-0.5deg); }
  100% { transform: translateY(-50%) rotateX(0deg) rotateZ(0deg); }
}

.iso-svg { width: 100%; height: auto; overflow: visible; }

/* Cube faces */
.cube-top {
  fill: var(--teal-dim);
  stroke: var(--border-teal);
  stroke-width: 0.5;
  transition: fill 0.3s, filter 0.3s;
  animation: isoGlow 3s ease-in-out infinite;
}
.cube-left  { fill: rgba(4,4,6,0.85);  stroke: rgba(99,202,183,0.1);  stroke-width: 0.5; }
.cube-right { fill: rgba(2,2,4,0.95);  stroke: rgba(99,202,183,0.07); stroke-width: 0.5; }

/* Staggered glow delays per cube */
.iso-cube:nth-child(odd) .cube-top { animation-delay: -1.2s; }
.iso-cube:nth-child(3n)  .cube-top { animation-delay: -2.1s; }
.iso-cube:nth-child(4n)  .cube-top { animation-delay: -0.6s; }
.iso-cube:nth-child(5n)  .cube-top { animation-delay: -1.8s; }

@keyframes isoGlow {
  0%, 100% { fill: var(--teal-dim); filter: none; }
  50%       { fill: rgba(99,202,183,0.3); filter: drop-shadow(0 0 6px rgba(99,202,183,0.4)); }
}

/* Featured centre cube pulses stronger */
.iso-cube--featured .cube-top {
  fill: rgba(99,202,183,0.25);
  animation: isoGlowFeatured 2.5s ease-in-out infinite;
}
@keyframes isoGlowFeatured {
  0%, 100% { fill: rgba(99,202,183,0.25); filter: drop-shadow(0 0 4px  rgba(99,202,183,0.3)); }
  50%       { fill: rgba(99,202,183,0.5);  filter: drop-shadow(0 0 14px rgba(99,202,183,0.6)); }
}

/* Hover state (toggled via JS) */
.iso-cube--hover .cube-top {
  fill: var(--teal) !important;
  filter: drop-shadow(0 0 10px rgba(99,202,183,0.7)) !important;
}

/* ── Hero content ── */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px 0 max(24px, calc((100vw - 1280px) / 2 + 24px));
  max-width: 700px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

.hero-h1 {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.hero-line-1,
.hero-line-3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: block;
  opacity: 0;
  transform: translateY(30px);
}
.hero-line-2 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 3.5rem);
  line-height: 1.2;
  color: var(--text-muted);
  display: block;
  padding-left: 8px;
  margin: 6px 0;
  opacity: 0;
  transform: translateY(30px);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

/* Promo pill */
.hero-promo {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(7,7,10,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-teal);
  border-radius: 100px;
  padding: 10px 24px;
  white-space: nowrap;
  opacity: 0;
}
.promo-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: fg-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes fg-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.promo-text  { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--text-primary); font-weight: 500; }
.promo-sep   { width: 1px; height: 14px; background: var(--border); flex-shrink: 0; }
.promo-sub   { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); }

/* ── Hero entry animations ── */
.animate-hero-1 { animation: heroInSimple 0.7s cubic-bezier(.16,1,.3,1) 0.5s forwards; }
.animate-hero-2 { animation: heroInSimple 0.7s cubic-bezier(.16,1,.3,1) 0.7s forwards; }
.animate-hero-3 { animation: heroInSimple 0.7s cubic-bezier(.16,1,.3,1) 0.9s forwards; }
.animate-hero-4 { animation: heroInSimple 0.7s cubic-bezier(.16,1,.3,1) 1.1s forwards; }
.animate-hero-5 { animation: heroInSimple 0.7s cubic-bezier(.16,1,.3,1) 1.3s forwards; }
.animate-hero-6 { animation: heroInSimple 0.7s cubic-bezier(.16,1,.3,1) 1.5s forwards; }

@keyframes heroInSimple {
  to { opacity: 1; transform: translateY(0); }
}
/* Promo pill preserves its translateX */
.hero-promo.animate-hero-6 { animation-name: heroPromo; }
@keyframes heroPromo {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ───────────────────────────────────────────────────────────────
   SECTION: AI CHATBOT
───────────────────────────────────────────────────────────────── */
.section-chat { padding: 100px 0; }

.chat-bot-container {
  background: rgba(7,7,10,0.75);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid var(--border-teal);
  box-shadow: var(--shadow-card), var(--shadow-teal);
  overflow: hidden;
}
.chat-header {
  background: linear-gradient(135deg, rgba(99,202,183,0.25), rgba(99,202,183,0.05));
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.chat-status-dot {
  width: 8px; height: 8px; background: var(--teal);
  border-radius: 50%; animation: fg-blink 1.5s infinite; flex-shrink: 0;
}
.chat-title  { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-primary); }
.chat-badge  { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--teal); background: var(--teal-faint); border: 1px solid var(--border-teal); padding: 3px 10px; border-radius: 100px; }

.chat-messages {
  height: 350px; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border-teal) transparent;
}
.message.bot {
  max-width: 80%; padding: 14px 18px;
  border-radius: 12px 12px 12px 3px;
  background: rgba(99,202,183,0.07); border: 1px solid var(--border-teal);
  color: var(--text-secondary); font-family: var(--font-body); font-size: 0.9rem; line-height: 1.65;
}

.chat-input-container { padding: 20px 24px; border-top: 1px solid var(--border); background: rgba(4,4,6,0.5); }
.chat-input-wrapper   { display: flex; gap: 10px; align-items: center; }
.chat-input {
  flex: 1; padding: 13px 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 100px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.chat-input:focus          { border-color: var(--border-teal); box-shadow: 0 0 0 3px var(--teal-faint); }
.chat-input::placeholder   { color: var(--text-muted); }
.send-button {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 13px 22px; background: var(--teal); color: var(--bg-base); border-radius: 100px;
  font-weight: 500; transition: background 0.25s, transform 0.15s;
}
.send-button:hover { background: #fff; transform: scale(1.04); }

/* ───────────────────────────────────────────────────────────────
   SECTION: TOOLS LOGO STRIP
───────────────────────────────────────────────────────────────── */
.tools-section  { padding: 80px 0 60px; text-align: center; overflow: hidden; }
.tools-heading  {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem); letter-spacing: -0.02em;
  color: var(--text-primary); margin-bottom: 48px;
}

/* ───────────────────────────────────────────────────────────────
   SECTION: CALCULATOR + CAROUSEL
───────────────────────────────────────────────────────────────── */
.section-calculator { padding: 100px 0; }

.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 60px;
}

/* Terminal panel */
.calc-terminal {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.calc-terminal:hover { border-color: var(--border-teal); box-shadow: var(--shadow-card), var(--shadow-teal); }

.terminal-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: rgba(4,4,6,0.9); border-bottom: 1px solid var(--border);
}
.term-dot            { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.term-dot.red        { background: #ff5f57; }
.term-dot.yellow     { background: #ffbd2e; }
.term-dot.green      { background: #28c840; }
.term-label          { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em; color: var(--text-muted); margin-left: 8px; }

.calc-sliders        { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.slider-group        { display: flex; flex-direction: column; gap: 10px; }
.slider-label        { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-secondary); font-weight: 300; }
.slider-vals         { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }
.slider-val          { font-weight: 500; }
.slider-val.teal     { color: var(--teal); }
.slider-val.blue     { color: var(--blue-400); }
.slider-val.purple   { color: var(--purple-400); }

.automation-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; background: var(--border); border-radius: 2px; outline: none;
}
.automation-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; background: var(--teal); border-radius: 50%;
  cursor: pointer; box-shadow: 0 0 8px rgba(99,202,183,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.automation-slider::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 0 14px rgba(99,202,183,0.8); }
.automation-slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--teal); border-radius: 50%; border: none; cursor: pointer; }

.calc-results { margin: 0 28px 28px; padding: 24px; background: rgba(99,202,183,0.04); border: 1px solid var(--border-teal); border-radius: 6px; }
.results-header { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 16px; text-align: center; }
.results-row    { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.results-row:last-of-type { border-bottom: none; }
.results-label  { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-secondary); }
.results-val    { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.results-val.teal   { color: var(--teal); }
.results-val.blue   { color: var(--blue-400); }
.results-val.purple { color: var(--purple-400); }
.results-vacation   { margin-top: 16px; padding: 12px; background: rgba(99,202,183,0.08); border-radius: 4px; text-align: center; }
.results-vacation p { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--teal); }

/* ───────────────────────────────────────────────────────────────
   SECTION: CALCULATOR + CAROUSEL (Updated Dual-View)
───────────────────────────────────────────────────────────────── */

/* 1. Main Card Container */
.carousel-card { 
    padding: 32px; 
    display: flex;
    flex-direction: column;
    /* Increased height ensures two stacked pairs fit comfortably */
    min-height: 680px; 
}

.carousel-heading { 
    font-family: var(--font-display); 
    font-size: 1rem; 
    font-weight: 700; 
    letter-spacing: 0.04em; 
    color: var(--text-primary); 
    margin-bottom: 28px; 
    text-align: center; 
}

.carousel-container { 
    position: relative; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 2. Desktop Logic: Two items at a time */
@media (min-width: 769px) {
    .carousel-items {
        display: grid;
        grid-template-rows: 1fr 1fr; /* Stacks two cards vertically */
        gap: 50px; /* Space between the first and second text block */
        flex: 1;
    }

    .carousel-item {
        display: none !important; /* Hide all by default */
        flex-direction: column;
        gap: 16px;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    /* Shows the item with the 'active' class AND its immediate sibling */
    .carousel-item.active,
    .carousel-item.active + .carousel-item {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Mobile Logic: Single item view */
@media (max-width: 768px) {
    .carousel-items {
        display: block;
        min-height: 320px;
    }

    .carousel-item {
        display: none;
        flex-direction: column;
        gap: 16px;
        animation: carouselFade 0.4s ease;
    }

    .carousel-item.active {
        display: flex !important;
    }
}

/* 4. Common Item Styles */
@keyframes carouselFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.carousel-item-icon {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; background: var(--teal-faint);
    border: 1px solid var(--border-teal); border-radius: 8px;
    color: var(--teal); font-size: 1.3rem; margin: 0 auto;
}

.carousel-item-title { 
    font-family: var(--font-display); 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    text-align: center; 
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--border-teal); 
}

.carousel-list { display: flex; flex-direction: column; gap: 10px; }
.carousel-list li { 
    display: flex; gap: 10px; align-items: flex-start; 
    color: var(--text-secondary); font-size: 0.83rem; line-height: 1.6; 
}
.carousel-list li i { color: var(--teal); font-size: 0.65rem; margin-top: 5px; flex-shrink: 0; }
.carousel-list strong { color: var(--text-primary); font-weight: 500; }

/* 5. Progress Bar & Navigation */
.carousel-progress { 
    height: 2px; 
    background: rgba(255, 255, 255, 0.08); 
    border-radius: 2px; 
    margin: 30px 0 15px; 
    overflow: hidden; 
}

.carousel-progress-bar { 
    height: 100%; 
    background: var(--teal); 
    width: 0%; 
    border-radius: 2px;
}

.carousel-nav { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 16px; 
    margin-top: auto; 
}

.carousel-prev,
.carousel-next { 
    width: 36px; height: 36px; border-radius: 50%; 
    border: 1px solid var(--border-teal); background: transparent; 
    color: var(--teal); font-size: 0.75rem; 
    display: flex; align-items: center; justify-content: center; 
    transition: background 0.2s, transform 0.15s; 
    cursor: pointer;
}

.carousel-prev:hover,
.carousel-next:hover { background: var(--teal-faint); transform: scale(1.1); }

.carousel-counter { 
    font-family: var(--font-mono); 
    font-size: 0.65rem; 
    letter-spacing: 0.15em; 
    color: var(--text-muted); 
    min-width: 36px; 
    text-align: center; 
}

/* ───────────────────────────────────────────────────────────────
   SECTION: PORTFOLIO
───────────────────────────────────────────────────────────────── */
.section-portfolio {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(99,202,183,0.02) 40%, transparent);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }

.portfolio-card { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.portfolio-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.portfolio-card-title  { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.portfolio-card-cat    { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); }
.portfolio-icon        { width: 40px; height: 40px; background: var(--teal-faint); border: 1px solid var(--border-teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.portfolio-icon.blue   { background: rgba(96,165,250,0.07); border-color: rgba(96,165,250,0.25); color: var(--blue-400); }

.portfolio-browser      { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-base); }
.browser-bar            { height: 28px; background: rgba(13,13,20,0.98); display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.b-dot                  { width: 9px; height: 9px; border-radius: 50%; }
.b-dot.r                { background: rgba(255,95,87,0.7); }
.b-dot.y                { background: rgba(255,189,46,0.7); }
.b-dot.g                { background: rgba(40,200,64,0.7); }
.browser-url            { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-muted); margin: 0 auto; letter-spacing: 0.04em; }
.browser-img-wrap       { position: relative; padding-bottom: 50%; background: var(--bg-base); }
.browser-img-wrap img   { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.portfolio-features     { display: flex; flex-direction: column; gap: 8px; }
.portfolio-features li  { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-size: 0.82rem; color: var(--text-secondary); }
.portfolio-features li i{ color: var(--teal); font-size: 0.65rem; margin-top: 4px; flex-shrink: 0; }

.portfolio-btn          { justify-content: center; width: 100%; margin-top: auto; }

.portfolio-testimonial  { padding-top: 20px; border-top: 1px solid var(--border); }
.testimonial-quote      { font-family: var(--font-editorial); font-style: italic; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; text-align: center; margin-bottom: 8px; }
.testimonial-author     { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--teal); text-align: center; margin-bottom: 12px; }

.portfolio-card--cta    { border-color: var(--border-teal); background: rgba(99,202,183,0.03); }

/* ───────────────────────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────────────────────────── */
.stats-bar    { padding: 60px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(99,202,183,0.02); }
.stats-inner  { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; text-align: center; }
.stat-item    { padding: 0 20px; }
.stat-val     { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 6px; }
.stat-val.teal   { color: var(--teal); }
.stat-val.blue   { color: var(--blue-400); }
.stat-val.purple { color: var(--purple-400); }
.stat-val.pink   { color: var(--pink-400); }
.stat-label   { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE — homepage-specific rules only
───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .iso-grid-wrap  { width: 55vw; right: -2%; opacity: 0.7; }
  .hero-content   { padding-left: 24px; max-width: 560px; }
  .calc-grid      { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-section   { flex-direction: column; align-items: flex-start; padding-top: 100px; min-height: 100svh; }
  .iso-grid-wrap  { position: relative; right: auto; top: auto; transform: none; width: 90vw; max-width: 380px; margin: 0 auto 24px; opacity: 0.65 !important; animation: isoFloat 28s ease-in-out infinite; }
  .hero-content   { padding: 0 20px; text-align: center; max-width: 100%; }
  .hero-eyebrow,
  .hero-cta-row   { justify-content: center; }
  .hero-cta-row   { flex-direction: column; align-items: center; }
  .hero-promo     { position: relative; bottom: auto; left: auto; transform: none; margin: 24px 20px 0; flex-wrap: wrap; justify-content: center; }
  .hero-promo.animate-hero-6 { animation-name: heroInSimple; }

  .section-chat,
  .tools-section,
  .section-calculator,
  .section-portfolio { padding: 60px 0; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .calc-grid      { gap: 20px; }

  .stats-inner    { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat-divider   { display: none; }
  .chat-input { 
    font-size: 16px !important; 
  }
}

@media (max-width: 390px) {
  .hero-line-1,
  .hero-line-3    { font-size: 3.2rem; }
  .portfolio-card { padding: 16px; }
  .carousel-card  { padding: 20px; }
  .calc-terminal .calc-sliders { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .iso-cube .cube-top { animation: none; }
  .iso-grid-wrap      { animation: none; transform: translateY(-50%); }
  .animate-hero-1, .animate-hero-2, .animate-hero-3,
  .animate-hero-4, .animate-hero-5, .animate-hero-6 { opacity: 1; transform: none; animation: none; }
}


/* ───────────────────────────────────────────────────────────────
   WEBGL SHADER CANVAS (Hero Background)
───────────────────────────────────────────────────────────────── */
#shader-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    opacity: 0.85;
    mix-blend-mode: screen;
    pointer-events: none; 
    z-index: 0;

    /* Fades the canvas out at the bottom so it blends seamlessly into the particle background */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.shader-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 50% 50%, transparent 30%, var(--bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Hero Badge & Highlight Text ── */
.shader-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    padding: 10px 24px; 
    background: rgba(7, 7, 10, 0.6);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-teal);
    border-radius: 100px; 
    font-family: var(--font-mono); 
    font-size: 0.65rem;
    letter-spacing: 0.15em; 
    color: var(--teal); 
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.shader-badge i {
    animation: fg-pulse 2s infinite;
}

/* Gradient highlight for specific text (like "TOOL") */
.highlight {
    background: linear-gradient(90deg, #2d7a6f, var(--teal));
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
}


/* ── Κεντράρισμα του Hero Content ── */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* Κεντράρει τα στοιχεία (όπως το badge) οριζόντια */
    text-align: center;  /* Κεντράρει το κείμενο */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;      /* Κεντράρει το ίδιο το container στη μέση της οθόνης */
    padding: 0 24px;
}

/* Σιγουρεύουμε ότι οι γραμμές του τίτλου είναι στο κέντρο */
.hero-h1 {
    text-align: center;
    width: 100%;
    /* Αν έχει κάποιο margin-left από πριν, το μηδενίζουμε: */
    margin-left: 0; 
}

/* Κεντράρουμε τον υπότιτλο */
.hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Κεντράρουμε τα κουμπιά */
.hero-cta-row {
    display: flex;
    gap: 16px;
    justify-content: center; /* Κεντράρει τα κουμπιά οριζόντια */
    flex-wrap: wrap;
    width: 100%;
}



/* ───────────────────────────────────────────────────────────────
   MIC BUTTON STYLES
───────────────────────────────────────────────────────────────── */
.mic-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 10px; /* Large touch target for mobile */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
    outline: none;
}

.mic-button:hover {
    color: var(--teal);
}

/* Active listening state */
.mic-button.listening {
    color: #ff5f57; /* Red recording color */
    animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}