:root {
  --primary-color: #90292D; /* Exact Logo Color */
  --secondary-color: #b3393e;
  --bg-color: #f8fafc; /* Premium Light Gray */
  --card-bg: #ffffff; 
  --text-dark: #0f172a; 
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(144, 41, 45, 0.1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(144, 41, 45, 0.15);
  --shadow-glow: 0 0 20px rgba(144, 41, 45, 0.25);
  --radius: 12px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 { 
  font-size: 4rem; 
  color: var(--text-dark);
}

h2 { 
  font-size: 2.8rem; 
  margin-bottom: 1.5rem; 
  position: relative; 
  display: inline-block; 
}
h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 5px;
  background: var(--primary-color);
  bottom: -15px;
  left: 0;
  border-radius: 5px;
}

p { margin-bottom: 1.2rem; font-size: 1.1rem; color: var(--text-muted); }

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 8rem 0; }

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}



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

.logo img {
  height: 60px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  bottom: -8px;
  left: 0;
  transition: var(--transition);
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="%2390292D" d="M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.9-4.3-10.7-4.3-15-.8l-42.7 24.6c-18.3-14.6-39.2-26.4-61.6-34.9v-49.3c0-5.4-3.5-10.2-8.6-11.9-35.2-11.2-73-11.2-108.2 0-5.1 1.7-8.6 6.5-8.6 11.9v49.3c-22.4 8.5-43.3 20.3-61.6 34.9L89.1 87.2c-4.3-3.5-11.1-3.5-15 .8-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4 .6 11.2 5.5 14L67.5 221.2c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.9 4.3 10.7 4.3 15 .8l42.7-24.6c18.3 14.6 39.2 26.4 61.6 34.9v49.3c0 5.4 3.5 10.2 8.6 11.9 35.2 11.2 73 11.2 108.2 0 5.1-1.7 8.6-6.5 8.6-11.9v-49.3c22.4-8.5 43.3-20.3 61.6-34.9l42.7 24.6c4.3 3.5 11.1 3.5 15-.8 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s;
}

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

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

.nav-links a:hover::before, .nav-links a.active::before {
  opacity: 1;
  animation: menu-gear-spin 3s linear infinite;
}

@keyframes menu-gear-spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at right center, rgba(144, 41, 45, 0.05) 0%, var(--bg-color) 70%);
  padding-top: 90px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 50%;
  background: url('assets/images/Photo from gst.jpg') center/cover no-repeat;
  mask-image: linear-gradient(to right, transparent, black 50%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 50%);
  z-index: 0;
  opacity: 0.7; 
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  animation: slideInLeft 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 3rem;
  animation: slideInLeft 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
  opacity: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: 2px solid var(--primary-color);
  animation: zoomIn 1s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.btn:hover {
  color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Animations */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Grid Layouts */
.grid { display: grid; gap: 3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards & Images */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(144, 41, 45, 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.img-feature {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  object-fit: cover;
  display: block;
}

.img-feature:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
  background: #0f172a;
  color: #f1f5f9;
  border-top: 5px solid var(--primary-color);
  padding: 6rem 0 2rem;
}

.footer-grid { margin-bottom: 3rem; }
.footer-grid h3 { color: #fff; }
.footer-grid p { color: #cbd5e1; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}

.footer-bottom strong { color: var(--primary-color); }

/* Responsive */
@media (max-width: 992px) {
  .hero::after { display: none; }
  .hero h1 { font-size: 3.5rem; }
  .nav-links {
    position: fixed;
    top: 90px;
    right: -100%;
    height: calc(100vh - 90px);
    width: 300px;
    background: var(--card-bg);
    flex-direction: column;
    padding: 3rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.active { right: 0; }
  .hamburger { display: block; }
}

/* WhatsApp Float */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid white;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    animation: none;
}
.whatsapp-icon {
    width: 38px;
    height: 38px;
    fill: white;
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* SVG Animations */
@keyframes gear-spin {
    100% { transform: rotate(360deg); }
}
@keyframes gear-spin-reverse {
    100% { transform: rotate(-360deg); }
}
.animated-gear {
    animation: gear-spin 15s linear infinite;
    transform-origin: center center;
    transform-box: fill-box;
}
.animated-gear.reverse {
    animation: gear-spin-reverse 20s linear infinite;
}

/* Feature Icons & CNC Animations */
.feature-icon-container {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: rgba(144, 41, 45, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Drafting Compass */
@keyframes compass-swing {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(-30deg); }
}
.icon-compass .leg-left {
    transform-origin: 25px 10px;
    animation: compass-swing 1.5s ease-in-out infinite alternate;
}

/* Measurement Caliper */
@keyframes caliper-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
.icon-caliper .jaw { animation: caliper-slide 3s ease-in-out infinite; }

/* CNC Spindle */
@keyframes cnc-move {
    0% { transform: translate(0, 0); }
    25% { transform: translate(12px, 0); }
    40% { transform: translate(12px, 5px); }
    60% { transform: translate(-12px, 5px); }
    75% { transform: translate(-12px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes bit-spin {
    100% { transform: rotate(360deg); }
}
.icon-cnc .spindle { animation: cnc-move 4s ease-in-out infinite; }
.icon-cnc .bit { animation: bit-spin 0.1s linear infinite; transform-origin: 25px 20px; }

/* Global Background Particles & Floating Effects */
@keyframes float-particle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
.particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}
.particle {
    position: absolute;
    bottom: -10%;
    background: rgba(144, 41, 45, 0.08);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}
.particle:nth-child(1) { left: 10%; animation-duration: 25s; width: 40px; height: 40px; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; width: 25px; height: 25px; animation-delay: 2s; }
.particle:nth-child(3) { left: 45%; animation-duration: 20s; width: 80px; height: 80px; animation-delay: 5s; }
.particle:nth-child(4) { left: 65%; animation-duration: 18s; width: 35px; height: 35px; animation-delay: 1s; }
.particle:nth-child(5) { left: 85%; animation-duration: 30s; width: 60px; height: 60px; animation-delay: 8s; }

/* Continuous Float Bob */
@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float-element {
    animation: float-bob 6s ease-in-out infinite;
}

/* CNC Laser Scanning Animation overlay */
@keyframes laser-scan-y {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.laser-scanner-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    display: inline-block;
    width: 100%;
}
.laser-beam {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff2a2a;
    box-shadow: 0 0 25px 8px rgba(255, 42, 42, 0.9), 0 0 10px 2px #ffffff;
    animation: laser-scan-y 2.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

/* CNC Laser Toolpath Draw Animation */
@keyframes laser-draw {
    0% { stroke-dashoffset: 2500; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -2500; }
}
.laser-trail {
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: laser-draw 6s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255,42,42,0.9));
}
.cnc-laser-path {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Base Footer Adjustment for Global SVG */
footer {
    position: relative;
    overflow: hidden;
}

/* Global Footer CNC SVG Background Animation */
.cnc-footer-bg {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}
.animated-spindle {
    animation: cnc-machine-move 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes cnc-machine-move {
    0% { transform: translate(0, 0); }
    15% { transform: translate(150px, 0); }  
    20% { transform: translate(150px, 40px); } 
    35% { transform: translate(-50px, 40px); } 
    40% { transform: translate(-50px, 0); }  
    55% { transform: translate(-150px, 0); } 
    60% { transform: translate(-150px, 30px); } 
    75% { transform: translate(50px, 30px); } 
    80% { transform: translate(50px, 0); } 
    100% { transform: translate(0, 0); } 
}
.spinning-bit-footer {
    animation: dash-spin 0.2s linear infinite;
}
@keyframes dash-spin {
    to { stroke-dashoffset: -12; }
}

/* Global Laser Engraver Divider */
.laser-divider {
    width: 100%;
    height: 40px;
    position: relative;
    margin: 4rem 0;
    overflow: hidden;
}
.laser-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #ff2a2a;
    box-shadow: 0 0 10px 2px rgba(255,42,42,0.8);
    width: 0%;
    z-index: 1;
    animation: laser-engrave-line 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.laser-head-wrapper {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 2;
    animation: laser-engrave-move 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.laser-head-flare {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #ffffff 0%, #ff2a2a 40%, #90292D 70%, transparent 100%);
    border-radius: 50%;
    animation: flare-pulse 0.05s infinite alternate;
}
@keyframes flare-pulse {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 1; }
}
@keyframes laser-engrave-line {
    0% { width: 0%; left: 0; opacity: 1; }
    45% { width: 100%; left: 0; opacity: 1; }
    50% { width: 100%; left: 0; opacity: 0; }
    100% { width: 0%; left: 0; opacity: 0; }
}
@keyframes laser-engrave-move {
    0% { left: 0%; opacity: 1; }
    45% { left: 100%; opacity: 1; }
    50% { left: 100%; opacity: 0; }
    100% { left: 0%; opacity: 0; }
}

/* Social Media Footer */
.social-links a .social-icon {
    transition: var(--transition);
}
.social-links a:hover .social-icon {
    fill: var(--primary-color) !important;
    transform: translateY(-3px);
}
