/*
Theme Name: Muggle Automation Theme
Theme URI: https://example.com/muggle-automation
Author: MuggleMike
Author URI: https://example.com
Description: A custom industrial western theme for Muggle Automation.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muggle-automation-theme
*/

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

:root {
  /* Industrial Western Palette - Friendly Update */
  --bg-color: #121212;         /* Soft Dark */
  --bg-secondary: #1E1E1E;     /* Medium Dark */
  --surface-color: #252525;    /* Lighter Dark */
  
  --primary-color: #D4AF37;    /* Classic Gold */
  --primary-dark: #AA8C2C;     /* Dark Gold */
  --accent-color: #558b2f;     /* Friendly Sage Green */
  --accent-glow: #7cb342;      /* Light Green Glow */
  
  --text-primary: #E0E0E0;     /* Soft White */
  --text-secondary: #B0B0B0;   /* Light Grey */
  --text-muted: #757575;       /* Muted Grey */
  
  --border-color: #333333;     /* Soft Border */
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.7);
  
  --font-heading: 'Roboto Slab', serif;
  --font-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-color);
  overflow-x: hidden;
  /* Subtle metal grain */
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 0) 0%, rgba(0, 0, 0, 0.6) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* View Container System */
#main-view-container {
    position: relative;
    min-height: 100vh;
}

.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.view-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Back Navigation */
.back-nav {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.btn-back {
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.home-hero {
    background: radial-gradient(circle at center, #1a1c20 0%, #0a0a0c 100%);
}

.product-hero {
    min-height: 90vh; /* Slightly shorter for product headers */
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  z-index: 10;
  position: relative;
}

/* Brand Icon */
.hero-icon-brand {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(192, 160, 98, 0.3));
}

.hero-icon-brand img {
    height: 15rem;
    width: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.hero-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
  border-bottom: 2px solid var(--primary-dark);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Product Selection Grid */
.product-grid-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .product-grid-selection {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: rgba(30, 32, 36, 0.8);
    border: 1px solid var(--border-color);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(192, 160, 98, 0.1);
}

.product-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.product-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-text {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(169, 60, 60, 0.2);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badge.syn-badge {
    background: transparent;
    border: none;
    color: var(--primary-color);
    box-shadow: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-glow);
  box-shadow: 0 0 15px rgba(85, 139, 47, 0.4);
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 25px rgba(85, 139, 47, 0.6);
}

.btn-pricing {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
    justify-content: center;
}

.btn-pricing:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Background Decoration */
.hero-decoration {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gear-icon {
    position: absolute;
    color: var(--bg-secondary);
    opacity: 0.3;
    font-size: 20rem;
    right: -5%;
    bottom: -10%;
    animation: spin 60s linear infinite;
}

.gear-icon.small {
    font-size: 10rem;
    right: 15%;
    bottom: 30%;
    animation: spinReverse 40s linear infinite;
}

@keyframes spin { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }
@keyframes spinReverse { from {transform: rotate(360deg);} to {transform: rotate(0deg);} }

.blueprint-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Content Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 6rem;
}

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

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--primary-dark);
    display: inline-block;
    padding-bottom: 1rem;
}

/* Features & Pricing */
.features-pricing-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Asymmetric grid */
    gap: 2rem;
}

@media (max-width: 900px) {
    .features-pricing-grid { grid-template-columns: 1fr; }
}

.features-block, .pricing-block {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Corner Accents */
.features-block::after, .pricing-block::after {
    content: "";
    position: absolute;
    top: -1px; right: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.features-block::before, .pricing-block::before {
    content: "";
    position: absolute;
    bottom: -1px; left: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.block-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(0,0,0,0.3);
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.feature-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pricing Card */
.pricing-card {
    background: rgba(30, 32, 36, 0.8);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(192, 160, 98, 0.1);
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    vertical-align: super;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.pricing-feature i {
    color: var(--primary-color);
}

/* Gallery - Film Strip Style */
.bot-gallery {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

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

.gallery-item {
    position: relative;
    cursor: pointer;
    border: 4px solid #111;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(40%) contrast(1.2);
    transition: all 0.5s;
}

.gallery-item:hover .gallery-image {
    filter: grayscale(0%) contrast(1);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem;
    text-align: center;
    background: var(--bg-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(192, 160, 98, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 10;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.scroll-arrow {
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Lightbox (Keep functional styles) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
