/* ============================================
   STAND TOOLS - Official Website 2026
   Global Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --gold: #c9a84c;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #ddd;
  --dark-gray: #333;
  --text: #444;
  --text-light: #888;
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 5px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 70%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(22,33,62,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 900px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.hero-btn:hover {
  background: transparent;
  color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233,69,96,0.4);
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ---------- Sections General ---------- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-gray {
  background: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-dark .section-title h2 {
  color: var(--white);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 20px auto 0;
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.7);
}

/* ---------- Video Section ---------- */
.video-section {
  padding: 100px 0;
  background: var(--secondary);
  color: var(--white);
}

.video-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
}

.video-text {
  flex: 1;
}

.video-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
}

.video-text p {
  opacity: 0.85;
  line-height: 1.9;
}

.video-frame {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.video-frame img {
  width: 100%;
  border-radius: 12px;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- About Page ---------- */
.about-story {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-story.reverse {
  flex-direction: row-reverse;
}

.about-story-text {
  flex: 1;
}

.about-story-text h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-story-text p {
  line-height: 1.9;
  margin-bottom: 15px;
}

.about-story-img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-story-img img {
  width: 100%;
  border-radius: 12px;
  transition: var(--transition);
}

.about-story-img:hover img {
  transform: scale(1.03);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}

.timeline-content {
  background: var(--white);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 450px;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -47px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -47px;
}

.timeline-content h4 {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
}

/* ---------- Technology Page ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.tech-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.tech-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tech-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(transparent, rgba(26,26,46,0.6));
}

.tech-card-body {
  padding: 30px;
}

.tech-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.tech-card-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Lab Section */
.lab-section {
  background: var(--primary);
  color: var(--white);
  padding: 100px 0;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.lab-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 35px;
  transition: var(--transition);
}

.lab-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.lab-item h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.lab-item p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* ---------- Function / Product Page ---------- */
.product-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
}

.product-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 15px;
}

.product-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

.product-showcase {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.product-showcase.reverse {
  flex-direction: row-reverse;
}

.product-img {
  flex: 1;
  text-align: center;
}

.product-img img {
  max-width: 400px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

.product-info {
  flex: 1;
}

.product-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.product-info p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 15px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 8px;
  transition: var(--transition);
}

.feature-list-item:hover {
  background: rgba(233, 69, 96, 0.08);
  transform: translateX(5px);
}

.feature-list-item .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.feature-list-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.feature-list-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs-table thead {
  background: var(--primary);
  color: var(--white);
}

.specs-table th,
.specs-table td {
  padding: 15px 20px;
  text-align: left;
}

.specs-table tbody tr {
  border-bottom: 1px solid var(--medium-gray);
  transition: var(--transition);
}

.specs-table tbody tr:hover {
  background: var(--light-gray);
}

.specs-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ---------- Contact Page ---------- */
.contact-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 10px;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(233, 69, 96, 0.08);
  transform: translateX(5px);
}

.contact-item .icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.contact-item-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-item-text p {
  font-size: 1rem;
  color: var(--dark-gray);
}

.contact-item-text a {
  color: var(--accent);
}

.contact-item-text a:hover {
  color: var(--accent-light);
}

/* Contact Form */
.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 14px 50px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.submit-btn:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 45px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-contact-item .icon {
  font-size: 1rem;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* ---------- Page Header (Sub Pages) ---------- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(233,69,96,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .video-wrapper {
    flex-direction: column;
  }

  .about-story {
    flex-direction: column !important;
  }

  .product-showcase {
    flex-direction: column !important;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -47px;
  }

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

  .section-title h2 {
    font-size: 2rem;
  }

  .page-header h1,
  .contact-hero h1,
  .product-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 60px 0;
  }

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