/* ============================================
   WARSUN Brand Website - Main Stylesheet
   Brand Colors: Red #D42027, White #FFF, Dark #1a1a1a
   ============================================ */

/* --- CSS Variables --- */
:root {
  --warsun-red: #D42027;
  --warsun-red-dark: #B01B21;
  --warsun-red-light: #E8444A;
  --warsun-black: #1a1a1a;
  --warsun-dark: #2d2d2d;
  --warsun-gray: #6b7280;
  --warsun-light: #f5f5f5;
  --warsun-white: #ffffff;
  --warsun-yellow: #FFD100;
  --warsun-green: #1B5E20;
  
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--warsun-dark);
  background: var(--warsun-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--warsun-black);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--warsun-black);
  letter-spacing: 1px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--warsun-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--warsun-dark);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--warsun-red);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--warsun-red); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--warsun-red);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--warsun-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212,32,39,0.3);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--warsun-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 50%, #e8e8e8 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80vw;
  height: 200vh;
  background: var(--warsun-red);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 60% 100%);
  opacity: 0.06;
  transform: rotate(-5deg);
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,32,39,0.1);
  color: var(--warsun-red);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--warsun-red);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--warsun-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--warsun-red);
  color: white;
  box-shadow: 0 4px 20px rgba(212,32,39,0.25);
}

.btn-primary:hover {
  background: var(--warsun-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,32,39,0.35);
}

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

.btn-outline:hover {
  background: var(--warsun-black);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s backwards;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  aspect-ratio: 4/3;
  background: #e0e0e0;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--warsun-red);
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 15px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(212,32,39,0.3);
}

/* --- Section Common --- */
.section {
  padding: 6rem 2rem;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-label {
  display: inline-block;
  color: var(--warsun-red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--warsun-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-image {
  aspect-ratio: 16/10;
  background: #f0f0f0;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--warsun-red);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 1.5rem;
}

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

.product-desc {
  color: var(--warsun-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-feature {
  background: var(--warsun-light);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--warsun-dark);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--warsun-red);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.product-link:hover {
  gap: 0.8rem;
}

/* --- Why WARSUN (Features) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: center;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(212,32,39,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.feature-icon svg {
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--warsun-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- About / Brand Story --- */
.about {
  background: var(--warsun-black);
  color: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

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

.about h2, .about h3 {
  color: white;
}

.about-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--warsun-red);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--warsun-red);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--warsun-red) 0%, var(--warsun-red-dark) 100%);
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: white;
  color: var(--warsun-red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta .btn-primary:hover {
  background: var(--warsun-black);
  color: white;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* --- Footer --- */
.footer {
  background: var(--warsun-black);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.8rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul li a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: var(--warsun-red);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--warsun-red);
  color: white;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about .section-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
