/* ===================================
   MASONIC SHIRTS - CUSTOM STYLES
   Premium Design System
   =================================== */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap");

/* ===================================
   CSS CUSTOM PROPERTIES
   =================================== */
:root {
  /* Colors - Masonic Inspired Palette */
  --color-primary: #0a1628;
  --color-secondary: #1e3a8a;
  --color-accent: #d4af37;
  --color-accent-light: #f4e4c1;
  --color-gold-gradient-start: #d4af37;
  --color-gold-gradient-end: #f9d77e;
  --color-neutral-dark: #2d3748;
  --color-neutral-medium: #4a5568;
  --color-neutral-light: #f7fafc;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 22, 40, 0.1);
  --shadow-md: 0 4px 6px rgba(10, 22, 40, 0.15);
  --shadow-lg: 0 10px 25px rgba(10, 22, 40, 0.2);
  --shadow-xl: 0 20px 40px rgba(10, 22, 40, 0.3);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* ===================================
   GLOBAL STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(
    135deg,
    var(--color-neutral-light) 0%,
    #e2e8f0 100%
  );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

/* ===================================
   ANIMATIONS & KEYFRAMES
   =================================== */
@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(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease forwards;
}

/* ===================================
   HEADER STYLES
   =================================== */
header {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideInLeft 0.6s ease;
}

header h1 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header nav ul li a {
  position: relative;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
  padding-bottom: 4px;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-light)
  );
  transition: width var(--transition-normal);
}

header nav ul li a:hover {
  color: var(--color-accent-light);
}

header nav ul li a:hover::after {
  width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 50%,
    #2563eb 100%
  );
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(212, 175, 55, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(212, 175, 55, 0.1) 0%,
      transparent 50%
    );
  animation: float 6s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 22, 40, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--spacing-xl);
  animation: fadeInUp 1s ease;
}

.hero-content h2 {
  color: var(--color-white);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-content p {
  color: var(--color-accent-light);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-gold-gradient-end) 100%
  );
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  animation: fadeInUp 1s ease 0.6s backwards;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ===================================
   SECTION STYLES
   =================================== */
section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-gold-gradient-end)
  );
  border-radius: var(--radius-full);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
  background: var(--color-white);
  position: relative;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(247, 250, 252, 0.9)
  );
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-neutral-medium);
  margin-bottom: var(--spacing-md);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* ===================================
   PRODUCT CARDS
   =================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(30, 58, 138, 0.1)
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: var(--color-neutral-light);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-gold-gradient-end)
  );
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.product-info {
  padding: var(--spacing-md);
  position: relative;
  z-index: 2;
}

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

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.product-link {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-normal);
}

.product-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: margin-left var(--transition-normal);
}

.product-link:hover {
  color: var(--color-accent);
}

.product-link:hover::after {
  margin-left: 1rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  background: linear-gradient(
    135deg,
    var(--color-neutral-light) 0%,
    #e2e8f0 100%
  );
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.contact-intro p {
  font-size: 1.125rem;
  color: var(--color-neutral-medium);
  max-width: 700px;
  margin: 0 auto;
}

.form-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-gold-gradient-end)
  );
  color: var(--color-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.popup-form-btn:hover,
.popup-form-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-note {
  margin-top: var(--spacing-md);
  color: var(--color-neutral-medium);
  font-size: 0.95rem;
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-gold-gradient-end),
    var(--color-accent)
  );
}

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

footer p {
  color: var(--color-accent-light);
  font-size: 1rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  header h1 {
    font-size: 1.5rem;
  }
}
