/* styles.css - Machinor Systems Website */

:root {
  /* Color palette */
  --dark-main-backdrop: #0f111a;
  --dark-main-backdrop-text-or-backdrop: #090b10;
  --light_backdrop: #2a2d3a;
  --neon-blue-accent: #00f0ff;
  --neon-purple-main: #8a2be2;
  --neon-pink-high-energy-accent: #ff2a6d;
  --neon-yellow-emphasis: #ffd400;
  --light-text: #e6e6e6;
  --dim-text: #9ca3af;
  
  /* Fonts */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

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

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

body {
  background-color: var(--dark-main-backdrop);
  color: var(--light-text);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid background overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(9, 11, 16, 0.97) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 11, 16, 0.97) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center center;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--neon-blue-accent);
}

.accent {
  color: var(--neon-blue-accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Header & Navigation */
header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo img {
    max-height: 75px;
    width: auto;
}

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

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--neon-blue-accent);
  transition: width 0.3s ease;
}

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

.btn-contact {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--neon-blue-accent);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1), transparent 70%);
  z-index: -1;
}

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

.tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--neon-purple-main);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.description {
  font-size: 1.25rem;
  color: var(--dim-text);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--neon-blue-accent) 0%, var(--neon-purple-main) 100%);
  color: var(--dark-main-backdrop);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--neon-purple-main) 0%, var(--neon-blue-accent) 100%);
  color: var(--dark-main-backdrop);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--light-text);
  font-family: var(--font-heading);
  font-weight: 600;
  border: 1px solid var(--neon-blue-accent);
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  color: var(--neon-blue-accent);
}

/* Services Preview Section */
.services-preview {
  padding: 6rem 0;
  background-color: var(--dark-main-backdrop-text-or-backdrop);
  position: relative;
}

.services-preview h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.service-card {
  background-color: rgba(15, 17, 26, 0.7);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-blue-accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.icon-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue-accent);
}

.icon-placeholder svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--dim-text);
}

/* Expertise Section */
.expertise {
  padding: 6rem 0;
  position: relative;
}

.expertise h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.expertise-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.expertise-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.expertise-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--neon-blue-accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dim-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background-color: var(--dark-main-backdrop-text-or-backdrop);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-contact a {
  color: var(--neon-blue-accent);
  transition: text-shadow 0.3s ease;
}

.footer-contact a:hover {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

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

.footer-bottom p {
  color: var(--dim-text);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .expertise-stats {
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  header {
    padding: 1rem 0;
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .expertise-content p {
    font-size: 1rem;
  }
  
  .footer-links ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Hero Image Styles */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../images/hero-image-3.jpeg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.7; /* Adjust for desired transparency */
  mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Adjust hero content for image placement */
.hero-content {
  max-width: 60%;
  position: relative;
  z-index: 2;
}

/* Add this for an optional overlay effect */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 240, 255, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Responsive adjustments for the hero image */
@media (max-width: 992px) {
  .hero-image {
    width: 100%;
    opacity: 0.2; /* More transparent on mobile */
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

/* Updated styles for the about-image section with cyberpunk rectangular frame */
.about-image {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 16, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 8px;
    z-index: 0;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, transparent 20%, transparent 80%, rgba(138, 43, 226, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Adjust the about-content grid for better spacing */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Media query for responsive adjustment */
@media (max-width: 768px) {
    .about-image {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}