/* 
  SMTWISE Tech - Premium Tech & PCB Design System
*/

:root {
  /* Core Colors */
  --bg-deep: #f8f6f0;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  
  /* Accents */
  --accent-cyan: #0284c7;
  --accent-blue: #0369a1;
  --accent-orange: #d97706;
  --accent-orange-glow: rgba(217, 119, 6, 0.2);
  
  /* Gradients */
  --neon-trace: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --gold-glow: linear-gradient(135deg, #f6d365 0%, var(--accent-orange) 100%);
  
  /* Effects */
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  --backdrop-blur: blur(16px);
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-tech: 'Roboto Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.section {
  padding: 4rem 2%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.content-block {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}




/* Background PCB Grid Effect */
.pcb-grid {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--neon-trace);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-tag {
  font-family: var(--font-tech);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-tech);
}

.btn-primary {
  background: var(--accent-orange);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
  background: #ffb732;
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Navigation */
nav {
  position: fixed;
  top: 0; width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 246, 240, 0.95);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: var(--glass-border);
  z-index: 1000;
  transition: all 0.4s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.logo-highlight {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  font-family: var(--font-tech);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: #f8f6f0;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 10s ease-out;
  transform: scale(1.1);
}
.hero-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(248, 246, 240, 0.95) 0%, rgba(248, 246, 240, 0.7) 100%);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Sections */
.section {
  padding: 6rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.tech-card {
  background: var(--bg-card);
  border: var(--glass-border);
  padding: 2.5rem;
  border-radius: 8px;
  backdrop-filter: var(--backdrop-blur);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--neon-trace);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tech-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: var(--bg-surface);
  border-top: var(--glass-border);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-tech);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  color: var(--accent-cyan);
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .menu-toggle { display: block; margin-right: 15px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(248, 246, 240, 0.98);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(0,0,0,0.1);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  .nav-links a {
    display: block;
    width: 100%;
  }
}

/* Particles Background */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}


/* =========================================
   NEW CLASSES TO REPLACE INLINE STYLES
   ========================================= */

/* Hero Backgrounds */
.bg-smt-machine { background-image: url('assets/smt_machine.png'); }
.bg-reverse-engineering { background-image: url('assets/reverse_engineering.png'); }

/* Sub-page Heros */
.hero-sub { height: auto; min-height: fit-content; padding-top: 160px; padding-bottom: 60px; align-items: center; }
.hero-tall { height: auto; min-height: fit-content; padding-top: 160px; padding-bottom: 60px; align-items: center; }
.page-header { padding: 150px 5% 80px; text-align: center; border-bottom: var(--glass-border); }
.page-header .page-title { font-size: 3.5rem; margin-bottom: 1.5rem; }
.page-header p { color: var(--text-secondary); max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }

/* Logo sizing classes */
.logo-img { height: 60px; width: auto; object-fit: contain; transform: scale(1.45); transform-origin: left center; transition: all 0.3s ease; }
.logo { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-flex; align-items: center; }
.logo:hover { transform: scale(1.05) translateY(-2px); }

/* Content Block for pages */
.content-block h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.content-block h3 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--accent-cyan); font-family: var(--font-tech); }
.content-block h4 { font-size: 1.1rem; margin: 1.5rem 0 0.8rem; color: var(--accent-orange); }
.content-block p { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.content-block ul { color: var(--text-secondary); margin-left: 1.5rem; margin-bottom: 1.5rem; line-height: 1.8; }
.content-block ul li { margin-bottom: 0.5rem; }

.topic-divider { border: 0; border-top: 1px solid rgba(0, 242, 254, 0.1); margin: 4rem 0; }
.section-divider { border: 0; border-top: 2px solid rgba(252, 163, 17, 0.3); margin: 5rem 0; }
.info-box { background: var(--bg-card); border-left: 4px solid var(--accent-cyan); padding: 1.5rem 2rem; margin: 2rem 0; border-radius: 0 8px 8px 0; }
.info-box p { margin-bottom: 0; }

/* Section Backgrounds & Layout */
.section-alt { background: rgba(255, 255, 255, 0.6); }
.section-dark { background: rgba(248, 246, 240, 0.6); }
.section-bordered { border-top: var(--glass-border); }
.section-py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* CTA Section */
.section-cta { background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(255, 255, 255, 1) 100%); border-top: var(--glass-border); text-align: center; }
.cta-content { max-width: 800px; margin: 0 auto; padding: 2rem 5%; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.cta-content p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.8; }
.cta-content .btn { font-size: 1.1rem; padding: 1rem 3rem; }
.cta-content .btn.mt-2 { margin-top: 2rem; }

/* SMTWISE Advantage / Highlight */
.highlight-box { background: var(--bg-card); padding: 3rem; border: var(--glass-border); border-radius: 8px; border-left: 4px solid var(--accent-orange); }
.highlight-box h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.highlight-item h4 { color: var(--accent-orange); margin-bottom: 0.5rem; font-family: var(--font-tech); font-size: 1.1rem; }
.highlight-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* Read More Links in Cards */
.tech-card a { color: var(--accent-cyan); text-decoration: none; font-family: var(--font-tech); font-size: 0.9rem; }

/* Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Utilities */
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.text-cyan { color: var(--accent-cyan); }
.font-tech { font-family: var(--font-tech); }

/* PCB Guide TOC */
.toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 2rem auto; padding: 0 5%; }
.toc-card { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 242, 254, 0.1); padding: 1.5rem; border-radius: 8px; transition: transform 0.3s ease, border-color 0.3s ease; }
.toc-card:hover { transform: translateY(-3px); border-color: var(--accent-cyan); }
.toc-card h4 { color: var(--accent-cyan); font-family: var(--font-tech); margin-bottom: 0.5rem; font-size: 1rem; }
.toc-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin: 0; }
.toc-card a { color: var(--accent-cyan); text-decoration: none; font-size: 0.8rem; font-family: var(--font-tech); }

/* R&D Feature */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 4rem; }
.feature-img { width: 100%; border-radius: 8px; border: var(--glass-border); box-shadow: var(--glass-shadow); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }


/* =========================================
   AUTO-EXTRACTED INLINE STYLES
   ========================================= */
.auto-style-1 { height: 60px; width: auto; object-fit: contain; transform: scale(1.45); transform-origin: left center; transition: all 0.3s ease; }
.auto-style-2 { background-image: url('assets/smt_machine.png'); }
.auto-style-3 { grid-template-columns: 1fr; }
.auto-style-4 { margin-top: 2rem; }
.auto-style-5 { color: var(--accent-cyan); font-family: var(--font-tech); margin-bottom: 1rem; }
.auto-style-6 { background-image: url('assets/hero_pcb.png'); }
.auto-style-7 { color: var(--text-secondary); text-decoration: none; }
.auto-style-8 { margin-top: 3rem; }
.auto-style-9 { border:0; border-radius: 8px; filter: grayscale(50%) contrast(1.2); }
.auto-style-10 { background: rgba(255, 255, 255, 0.6); border-bottom: var(--glass-border); }
.auto-style-11 { max-width: 100%; margin: 0 auto; text-align: center; }
.auto-style-12 { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }
.auto-style-13 { display: flex; justify-content: center; gap: 4rem; margin-top: 3rem; }
.auto-style-14 { font-size: 2.5rem; color: var(--accent-orange); font-family: var(--font-tech); }
.auto-style-15 { color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.auto-style-16 { color: var(--text-secondary); max-width: 100%; margin: 0 auto; }
.auto-style-17 { background: rgba(248, 246, 240, 0.95); }
.auto-style-18 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 100%; margin: 0 auto; padding: 0 5%; }
.auto-style-19 { background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.05); padding: 2.5rem 2rem; border-radius: 8px; text-align: center; transition: transform 0.3s ease; }
.auto-style-20 { color: var(--accent-cyan); margin-bottom: 1rem; font-family: var(--font-tech); letter-spacing: 1px; }
.auto-style-21 { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.auto-style-22 { color: var(--accent-orange); margin-bottom: 1rem; font-family: var(--font-tech); letter-spacing: 1px; }
.auto-style-23 { color: var(--accent-orange); margin-bottom: 1rem; font-family: var(--font-tech); font-size: 1.1rem; }
.auto-style-24 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 100%; margin: 0 auto; padding: 0 5%; }
.auto-style-25 { background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 242, 254, 0.1); padding: 2rem; border-radius: 8px; }
.auto-style-26 { color: var(--text-primary); margin-bottom: 1.5rem; font-size: 1.2rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.5rem; }
.auto-style-27 { list-style: none; padding: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }
.auto-style-28 { margin-bottom: 0.5rem; }
.auto-style-29 { margin-top: 1rem; }
.auto-style-30 { text-align: center; margin-top: 4rem; }
.auto-style-31 { padding: 1rem 3rem; }
.auto-style-32 { background: linear-gradient(135deg, rgba(0, 242, 254, 0.05) 0%, rgba(255, 255, 255, 1) 100%); border-top: var(--glass-border); border-bottom: var(--glass-border); text-align: center; }
.auto-style-33 { color: #94a3b8; margin-bottom: 30px; }
.auto-style-34 { color: white; }
.auto-style-35 { background: rgba(255, 255, 255, 0.6); }


/* Slider Backgrounds */
.bg-slide-1 { background-image: url('../assets/hero_pcb.png'); }
.bg-slide-2 { background-image: url('../assets/slider_bg_1.png'); } /* pcb_closeup_1 */
.bg-slide-3 { background-image: url('../assets/slider_bg_new.png'); } /* pcb_blueprint */
.bg-slide-4 { background-image: url('../assets/slider_bg_3.png'); } /* pcb_macro_2 */
.bg-slide-5 { background-image: url('../assets/slider_bg_4.png'); } /* pcb_abstract_1 */


/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 5%;
    }
    .logo-img {
        height: 50px;
        transform: scale(1);
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-content {
        width: 100%;
        padding: 0 5%;
        box-sizing: border-box;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .page-header {
        padding: 120px 5% 50px;
    }
    .page-header .page-title {
        font-size: 2.2rem;
        word-wrap: break-word;
    }
    .page-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }
}


.hero-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(248, 246, 240, 0.15);
  z-index: 1;
}
.hero-content {
  z-index: 2;
}

/* Box behind hero text to improve readability against bright images */
.hero:not(.hero-sub) .hero-content {
    background: rgb(248 246 240 / 69%);
    padding: 3rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 850px;
    margin-left: 5%; /* Aligns the box nicely to the left like the navbar */
}

@media (max-width: 768px) {
    .hero:not(.hero-sub) .hero-content {
        margin: 0 auto;
        padding: 2rem;
        width: 90%;
    }
}
