/* style.css */

html {
  scroll-behavior: smooth;
}

:root {
  --primary-red: #D32F2F;
  --primary-red-glow: rgba(211, 47, 47, 0.4);
  --dark-grey: #121212;
  --medium-grey: #2C2C2C;
  --text-main: #FFFFFF;
  --text-muted: #B0B0B0;
  --tech-cyan: #00E5FF;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-grey);
  background: radial-gradient(circle at 50% 10%, #202020 0%, #050505 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* Technical Grid Background */
.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}

/* Floating Particles Container */
#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background-color: var(--primary-red);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 8px var(--primary-red);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-10vh) scale(0.5);
    opacity: 0;
  }
}

/* Main Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 3rem;
  max-width: 1200px;
  width: 100%;
  min-height: 100vh;
  animation: fadeIn 1.5s ease-out forwards;
}

/* SVG Logo Styling */
.brand-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.dynamic-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
}

/* Unified Gear Animation: Paths 0, 1, 2, 13 grouped */
.main-gear-rotate {
  transform-origin: 289.73px 471.14px;
  animation: spin-gear-cw 20s linear infinite;
}

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

/* Text & Typography Side */
.hero-text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.main-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.main-title .highlight {
  color: var(--primary-red);
  text-shadow: 0 0 20px var(--primary-red-glow);
}

.sub-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-red);
  padding-left: 1rem;
}

.description {
  font-size: 1.1rem;
  font-weight: 400;
  color: #999;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--primary-red);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px var(--primary-red-glow);
  background-color: #e53935;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Industrial Loading Bar */
.loader-container {
  width: 100%;
  max-width: 400px;
}

.loader-track {
  width: 100%;
  height: 6px;
  background-color: #222;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.loader-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #b71c1c, #ff5252);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--primary-red);
  animation: loadingScan 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes loadingScan {
  0% {
    width: 10%;
    left: 0;
  }

  100% {
    width: 40%;
    left: 60%;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Layout */
@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .brand-container {
    justify-content: center;
    width: 100%;
  }

  .dynamic-logo {
    max-width: 400px;
  }

  .hero-text-container {
    align-items: center;
    text-align: center;
  }

  .sub-title {
    border-left: none;
    border-bottom: 2px solid var(--primary-red);
    padding-left: 0;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 3rem;
  }

  .sub-title {
    font-size: 1.5rem;
  }

  .dynamic-logo {
    max-width: 300px;
  }
}

/* Footer Styles */
.site-footer {
    width: 100%;
    padding: 80px 40px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(211, 47, 47, 0.3);
    z-index: 10;
    display: flex;
    justify-content: center;
}

.footer-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.contact-text strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    filter: grayscale(0.9) invert(0.93) hue-rotate(180deg) brightness(0.9) contrast(1.1);
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-wrapper:hover {
    filter: none;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .map-wrapper {
        height: 350px;
    }
}
