/* 
 * Wallpaper Engine Website - Main Stylesheet
 * Modern, responsive design optimized for SEO and performance
 */

/* Base Styles & Reset */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #9b59b6;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333333;
  --light-text: #ffffff;
  --gray-bg: #f9f9f9;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 15px;
}

section {
  padding: 80px 0;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.btn-primary:hover {
  background-color: var(--dark-color);
  color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-3px);
}

.btn-download {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 14px 28px;
}

.btn-download:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  z-index: 1000;
}

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

.logo {
  max-width: 240px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.inline-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  position: relative;
}

.inline-logo:before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  margin-right: 10px;
}

.logo-text-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.logo-text-secondary {
  color: var(--dark-color);
  margin-left: 5px;
}

.main-nav .nav-links {
  display: flex;
  list-style: none;
}

.main-nav .nav-links li {
  margin-left: 30px;
}

.main-nav .nav-links a {
  color: var(--dark-color);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  font-size: 1rem;
}

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  position: relative;
  transition: var(--transition);
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  transition: var(--transition);
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  top: 8px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  position: relative;
  overflow: hidden;
  color: var(--light-text);
  padding: 100px 0;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern.svg');
  opacity: 0.1;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  color: var(--light-text);
  font-size: 3.2rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.hero-image-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(800px) rotateY(-15deg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-image:hover .hero-image-placeholder {
  transform: perspective(800px) rotateY(-5deg) translateY(-10px);
}

.hero-animation-element {
  position: absolute;
  width: 100%;
  height: 60%;
  bottom: 0;
  background: linear-gradient(to top, #2ecc71, transparent);
  animation: wave 8s infinite ease-in-out;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

@keyframes wave {
  0%, 100% { transform: translateY(5%) scale(1.2, 1); }
  50% { transform: translateY(10%) scale(1.5, 0.8); }
}

/* Features Section */
.features {
  background-color: var(--light-color);
  position: relative;
}

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

.feature-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
}

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

.feature-icon {
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
}

.feature-animation {
  background: linear-gradient(135deg, #3498db, #9b59b6);
}

.feature-customize {
  background: linear-gradient(135deg, #2ecc71, #3498db);
}

.feature-create {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
}

.feature-mobile {
  background: linear-gradient(135deg, #9b59b6, #e74c3c);
}

.feature-icon i {
  position: relative;
  font-size: 32px;
  color: white;
}

/* Icon shapes using pseudo-elements */
.icon-animation::before {
  content: '▶';
}

.icon-customize::before {
  content: '⚙';
}

.icon-create::before {
  content: '✏';
}

.icon-mobile::before {
  content: '📱';
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 15px;
}

.feature-card p {
  color: #666;
}

/* Gaming Section */
.gaming-section {
  background-color: #fff;
  position: relative;
}

.gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.gaming-image {
  flex: 1;
}

.gaming-image-placeholder {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  background: linear-gradient(45deg, #3A0CA3, #F72585);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.gaming-image-placeholder::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  animation: moveLight 4s infinite linear;
}

@keyframes moveLight {
  0% { transform: translateX(-200px) rotate(30deg); }
  100% { transform: translateX(500px) rotate(30deg); }
}

.game-links {
  flex: 1;
}

.game-links h3 {
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--dark-color);
}

.resource-list {
  list-style: none;
}

.resource-list li {
  margin-bottom: 15px;
  padding: 12px 20px;
  background-color: var(--gray-bg);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.resource-list li:hover {
  transform: translateX(5px);
  background-color: rgba(52, 152, 219, 0.1);
}

.resource-list a {
  display: block;
  color: var(--dark-color);
  font-weight: 500;
}

.gaming-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gaming-image:hover {
  transform: scale(1.03);
}

/* Gallery Section */
.gallery {
  background-color: var(--gray-bg);
}

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

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% {transform: translateX(-200%) rotate(45deg);}
  100% {transform: translateX(300%) rotate(45deg);}
}

.space-theme {
  background: linear-gradient(45deg, #0D1B2A, #415A77);
}

.nature-theme {
  background: linear-gradient(45deg, #2D6A4F, #40916C);
}

.abstract-theme {
  background: linear-gradient(45deg, #7209B7, #3A0CA3);
}

.cityscape-theme {
  background: linear-gradient(45deg, #2A2A72, #009FFD);
}

.fantasy-theme {
  background: linear-gradient(45deg, #9D4EDD, #5A189A);
}

.gaming-theme {
  background: linear-gradient(45deg, #FF9E00, #FF0000);
}

.minimalist-theme {
  background: linear-gradient(45deg, #52796F, #84A98C);
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  transition: var(--transition);
}

.gallery-overlay h4 {
  color: #fff;
  margin-bottom: 5px;
}

.gallery-overlay .category {
  display: inline-block;
  font-size: 0.85rem;
  background-color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 15px;
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

/* Download Section */
.download-section {
  background-color: #fff;
  position: relative;
}

.download-options {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.download-card {
  flex: 1;
  max-width: 400px;
  background-color: var(--gray-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.platform-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon img {
  width: 40px;
  height: 40px;
}

.download-card h3 {
  margin-bottom: 10px;
}

.download-card p {
  margin-bottom: 25px;
  color: #666;
}

.system-requirements {
  margin-top: 30px;
  text-align: left;
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
}

.system-requirements h4 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.system-requirements ul {
  list-style: none;
}

.system-requirements li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
}

.system-requirements li:before {
  content: '\u2022';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
  background-color: var(--gray-bg);
}

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

.faq-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.faq-question h3 {
  font-size: 1.2rem;
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 30px 20px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

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

.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 30px;
}

.contact-form {
  flex: 1;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

input, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.info-item {
  background-color: var(--gray-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 30px;
  height: 30px;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-text-logo {
  margin-bottom: 20px;
  font-size: 22px;
}

.footer-icon-wrapper {
  margin-top: 10px;
}

.footer-favicon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
}

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

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container, 
  .gaming-content, 
  .download-options,
  .contact-container {
    flex-direction: column;
  }
  
  .hero-content, 
  .hero-image, 
  .gaming-image,
  .game-links,
  .download-card {
    max-width: 100%;
  }
  
  .hero-image {
    margin-top: 40px;
    order: 2;
  }
  
  .download-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .main-nav .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav .nav-links li {
    margin: 0;
    padding: 15px 30px;
  }
  
  .main-nav .nav-links a {
    display: block;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    margin-top: 30px;
    gap: 20px;
  }
  
  .footer-column {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-column {
    flex-basis: 100%;
  }
}
