/* ============================================
   SQUARX - Main Stylesheet
   Professional, Clean Design
   ============================================ */
/* Color Palette */
:root {
  --sq-primary: #6B0E19;
  --sq-secondary: #B9141B;
  --sq-deep: #4A0A12;
  --sq-offwhite: #F3F3F3;
  --sq-white: #FFFFFF;
  --sq-dark: #1a1a1a;
  --sq-gray: #777777;
  --sq-light-gray: #f4f4f4;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', 'Montserrat', 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--sq-dark);
  background-color: var(--sq-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--sq-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--sq-dark);
}

.text-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--sq-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--sq-deep);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(74, 10, 18, 0.95);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sq-white);
  letter-spacing: 2px;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--sq-offwhite);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sq-secondary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--sq-white);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sq-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sq-deep) 0%, var(--sq-primary) 100%);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/banner.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--sq-secondary);
  margin-bottom: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--sq-white) 0%, var(--sq-offwhite) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--sq-offwhite);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--sq-secondary);
  color: var(--sq-white);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--sq-secondary);
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  border-color: var(--sq-secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(185, 20, 27, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--sq-white);
  color: var(--sq-white);
}

.btn-outline:hover {
  background: var(--sq-white);
  color: var(--sq-deep);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .brand {
  color: var(--sq-secondary);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--sq-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(107, 14, 25, 0.05);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(107, 14, 25, 0.15);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(107, 14, 25, 0.12);
  border-color: var(--sq-secondary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--sq-secondary);
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--sq-deep);
}

.feature-card p {
  color: var(--sq-dark);
  line-height: 1.8;
}

/* Product Showcase */
.product-showcase {
  background: var(--sq-dark);
  position: relative;
  overflow: hidden;
  color: var(--sq-white);
}

.product-showcase h1,
.product-showcase h2,
.product-showcase h3,
.product-showcase h4,
.product-showcase h5,
.product-showcase h6 {
  color: var(--sq-white);
}

.product-showcase p,
.product-showcase .section-title p {
  color: var(--sq-offwhite);
}

.product-image-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-container:hover .product-image {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(107, 14, 25, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image-container:hover .product-overlay {
  opacity: 1;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--sq-primary) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 0.3;
}

/* Specs Table */
.specs-table {
  background: rgba(107, 14, 25, 0.05);
  border-radius: 15px;
  overflow: hidden;
  margin-top: 2rem;
}

.product-showcase .specs-table,
.section-dark .specs-table {
  background: rgba(255, 255, 255, 0.05);
}

.section-dark {
  color: var(--sq-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--sq-white);
}

.section-dark p,
.section-dark .section-title p {
  color: var(--sq-offwhite);
}

.spec-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(107, 14, 25, 0.15);
  transition: background 0.3s ease;
}

.spec-row:hover {
  background: rgba(107, 14, 25, 0.08);
}

.product-showcase .spec-row,
.section-dark .spec-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.product-showcase .spec-row:hover,
.section-dark .spec-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--sq-secondary);
}

.product-showcase .spec-label,
.section-dark .spec-label {
  color: var(--sq-offwhite);
}

.spec-value {
  color: var(--sq-dark);
}

.product-showcase .spec-value,
.section-dark .spec-value {
  color: var(--sq-white);
}

.spec-row-highlight {
  background: var(--sq-primary);
  grid-template-columns: repeat(3, 1fr);
}

.spec-row-highlight .spec-label,
.spec-row-highlight .spec-value {
  color: var(--sq-white);
}

/* Footer */
.footer {
  background: var(--sq-dark);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--sq-white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--sq-offwhite);
  display: block;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--sq-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sq-gray);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--sq-secondary);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--sq-deep);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .section {
    padding: 50px 0;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Contact Page Responsive */
@media (max-width: 968px) {
  .contact-form,
  .contact-info-card {
    margin-bottom: 2rem;
  }
  
  section .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Smooth Image Loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

