/* 
 * MarcoMetal - Main Stylesheet
 * Modern industrial design theme 
 */

:root {
  --color-dark: #2D3142;
  --color-darker: #1B1E2B;
  --color-light: #EAF0F6;
  --color-accent: #EF8354;
  --color-metal: #BFC0C0;
  --color-metal-dark: #929396;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background-color: #f7f7f7;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

.section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  background-color: var(--color-accent);
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid var(--color-accent);
}

.btn:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: white;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: var(--color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
}

.logo img {
  width: 40px;
  margin-right: 10px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: white;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

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

.mobile-nav-toggle {
  display: none;
  color: white;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('hero-bg.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(27, 30, 43, 0.7), rgba(27, 30, 43, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s 0.3s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s 0.6s ease both;
}

/* About Section */
.about-section {
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-dark);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

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

.section-header p {
  font-size: 1.1rem;
  color: var(--color-metal-dark);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.about-content p {
  margin-bottom: 1rem;
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(239, 131, 84, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--color-accent);
  font-weight: bold;
}

/* Services Section */
.services-section {
  background-color: #f7f7f7;
}

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

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(239, 131, 84, 0.1);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-accent);
}

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

/* Project Section */
.projects-section {
  background-color: white;
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-button {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--color-dark);
  background: transparent;
  color: var(--color-dark);
  margin: 0 0.5rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  font-weight: 500;
}

.filter-button.active,
.filter-button:hover {
  background-color: var(--color-dark);
  color: white;
}

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

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 200px;
  width: 100%;
  background-color: var(--color-metal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: 1.5rem;
}

.project-content {
  padding: 1.5rem;
  background-color: white;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-category {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Games Section */
.games-section {
  background-color: var(--color-dark);
  color: white;
  padding: 4rem 0;
}

.games-section .section-header h2 {
  color: white;
}

.games-section .section-header p {
  color: var(--color-metal);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
}

.game-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.game-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.game-item a {
  color: var(--color-light);
  font-weight: 500;
  display: block;
}

.game-item a:hover {
  color: var(--color-accent);
}

/* Testimonials Section */
.testimonials-section {
  background-color: #f7f7f7;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-dark);
}

.testimonial-position {
  color: var(--color-metal-dark);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-metal);
  border-radius: 4px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-accent);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  width: 40px;
  height: 40px;
  background-color: rgba(239, 131, 84, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
}

.info-details h4 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--color-metal);
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-metal);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--color-metal);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--color-accent);
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-metal);
  font-size: 0.9rem;
}

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-container,
  .contact-container,
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    background-color: var(--color-dark);
    width: 80%;
    height: 100vh;
    padding: 2rem;
    transition: var(--transition);
    z-index: 999;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .services-grid,
  .projects-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media screen and (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
}
