/* =============================================
   CONVERTERS-STYLE.CSS â€” CYAN LUXURY THEME
   ============================================= */

:root {
  --primary: var(--accent); /* Electric Indigo */
  --primary-light: var(--accent-2);
  --primary-soft: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.3);
  --radius: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero-wrapper {
  background: var(--bg);
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: left; /* Enforce left align */
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.hero-breadcrumb {
  padding-bottom: 0;
  margin-bottom: -0.5rem;
}

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  justify-items: flex-start; /* Ensure left alignment */
  gap: 2rem;
  min-height: 400px;
}

.hero-content {
  max-width: 650px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: transparent !important; /* Force transparent */
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem); /* More responsive */
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  text-transform: none;
  text-align: left;
}

.hero-title span:first-child {
    color: white;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(to right, var(--accent), var(--accent-2), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  font-weight: 400;
  text-align: left;
}

/* Converter Visual Composition */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(50px);
    animation: pulseGlow 4s infinite alternate;
}

.converter-visual-composition {
  position: relative;
  width: 280px; /* Reduced from 320 */
  height: 280px; /* Reduced from 320 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-circle-bg {
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border-solid);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), var(--shadow-lg);
}

.doc-container {
  position: relative;
  width: 200px;
  height: 200px;
  z-index: 2;
}

.doc {
  position: absolute;
  width: 70px;
  height: 90px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

/* Dog-ear effect */
.doc::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: 6px;
}

.doc-1 {
  top: 10%;
  left: 10%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: floatDoc1 5s infinite ease-in-out;
}

.doc-2 {
  bottom: 10%;
  right: 10%;
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: var(--bg);
  animation: floatDoc2 5s infinite ease-in-out;
}

.arrow-orbit {
  position: absolute;
  font-size: 2.5rem;
  color: white;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.arrow-1 {
  top: 5%;
  right: 15%;
  transform: rotate(45deg);
  animation: arrowPulse 3s infinite alternate;
}

.arrow-2 {
  bottom: 5%;
  left: 15%;
  transform: rotate(45deg);
  animation: arrowPulse 3s infinite alternate-reverse;
}

@keyframes floatDoc1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(-5px, -8px) rotate(1deg); }
}

@keyframes floatDoc2 {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  50% { transform: translate(5px, 8px) rotate(-1deg); }
}

@keyframes arrowPulse {
  from { opacity: 0.4; transform: scale(0.9) rotate(45deg); }
  to { opacity: 1; transform: scale(1.1) rotate(55deg); }
}

/* Category Sections */
.category-title {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  gap: 0.7rem;
  line-height: 1.2;
  background: var(--surface);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.6rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.calc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.calc-card:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}

.category-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.calc-card:hover .category-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(1.1); /* Removed rotate */
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--bg-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.unit-orb {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    z-index: 2;
}

.calc-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--accent);
  color: white;
}

.calc-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  transition: color 0.3s ease;
}

.calc-card:hover h3 {
  color: var(--accent-2);
}

.calc-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  padding-right: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 1200px) {
  .breadcrumb {
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3.5rem 1.5rem;
    gap: 2rem;
  }
  .hero-content {
    margin: 0 auto;
    max-width: 800px;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 0.35rem 3rem !important;
  }
  
  .breadcrumb {
    width: 92%;
    max-width: 92%;
    margin: 0 auto;
    font-size: 0.7rem;
    padding-top: 1rem;
  }

  .hero {
    padding: 1.25rem 0;
    width: 92%;
    max-width: 92%;
    margin: 0 auto;
    text-align: left;
    min-height: auto;
  }

  .hero-content {
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(1.1rem, 5.5vw, 1.5rem);
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 100%;
    text-align: left;
    margin: 0;
  }

  .hero-eyebrow {
    font-size: 0.6rem;
    padding: 0.35rem 0.8rem;
    justify-content: flex-start;
    width: fit-content;
    white-space: nowrap;
    max-width: none;
    margin-bottom: 1rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .calc-card {
    padding: 1rem 1.25rem;
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "desc desc";
    align-items: center;
    gap: 0.25rem 0.85rem;
    border-radius: 12px;
    position: relative;
  }

  .category-icon {
    grid-area: icon;
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .calc-card h3 {
    grid-area: title;
    font-size: 0.95rem;
    margin-bottom: 0 !important;
    color: var(--accent);
  }

  .calc-card p {
    grid-area: desc;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.25rem;
    color: var(--text-secondary);
  }

  .calc-card .card-arrow {
    display: none;
  }

  .category-title {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    margin-top: 1rem;
    gap: 0.7rem;
    line-height: 1.2;
    background: var(--surface);
    border-left: 6px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.6rem 1.2rem;
    box-shadow: var(--shadow-sm);
  }
}

/* =============================================
   ULTRA-MOBILE OPTIMIZATION (STUNNING AESTHETICS)
   ============================================= */
@media (max-width: 500px) {
    /* HERO TITLE - Maximum Impact */
    h1, .hero-title, .card-title, .hero-title span { font-size: 2.1rem !important; letter-spacing: -0.03em !important; line-height: 1.1 !important; }
    .hero-subtitle { font-size: 1.05rem !important; line-height: 1.6 !important; opacity: 1; }
    .hero-eyebrow { font-size: 0.9rem !important; font-weight: 700 !important; }

    /* Other Typography (Balanced) */
    h2, .section-title, .category-title { font-size: 1.4rem !important; letter-spacing: -0.01em !important; }
    h3 { font-size: 1.2rem !important; }
    h4 { font-size: 1.05rem !important; }
    p, .footer-brand p, .calc-card p, .card-desc { font-size: 0.9rem !important; line-height: 1.6 !important; opacity: 1; }
    a, .nav-links a, .footer-col a, label, .input-label, .form-label, span, .breadcrumb { font-size: 0.85rem !important; }

    /* Spacing & Layout Optimization */
    .container, .navbar-inner, .hero, .footer-inner, .faq-section-wrap, .tool-container, .card {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero { padding-top: 2rem !important; padding-bottom: 2rem !important; min-height: auto !important; }
    .calc-grid, .grid, .calc-form { gap: 1rem !important; }
    .form-group { gap: 0.4rem !important; }
    
    /* Card & Component Refinement */
    .calc-card, .card, .tool-container, .result-box, .result-main, .result-item {
        padding: 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 0.85rem !important;
    }
    
    .card-header { margin-bottom: 1.25rem !important; }
    .result-box { margin-top: 1.5rem !important; padding-top: 1.5rem !important; }

    /* Form Elements */
    .input-field, .search-bar, select {
        height: 44px !important;
        font-size: 0.95rem !important;
        padding: 0 0.85rem !important;
        border-radius: 10px !important;
    }

    .btn-primary, .btn-ghost, .btn-calculate, .btn-premium {
        height: 46px !important;
        padding: 0 1.25rem !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 0.4rem !important;
    }

    /* Icon & Visual Scaling */
    .category-icon, .card-icon-wrap, .logo-icon, .divider-icon-box, .feature-icon-wrap, .step-num {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 1rem !important;
    }
    
    .logo-text { font-size: 1.1rem !important; }
    
    /* Result Specifics */
    .result-value { font-size: 2.2rem !important; }
    .result-label, .res-label { font-size: 0.75rem !important; }
}

