/* Nexpetro - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #ffd118;
  --primary-dark: #e6bc00;
  --bg-dark: #28292c;
  --bg-darker: #1a1b1d;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --text-gray-light: #d1d5db;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--bg-darker);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo img {
  height: 50px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav a:hover, .nav a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), #facc15);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #facc15, var(--primary));
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(255, 209, 24, 0.3);
}

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

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

.btn-white {
  background: var(--bg-dark);
  color: white;
}

.btn-white:hover {
  background: var(--bg-darker);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26,27,29,0.95), rgba(26,27,29,0.7), rgba(26,27,29,0.4));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 209, 24, 0.1);
  border: 1px solid rgba(255, 209, 24, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--primary), #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray-light);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(90deg, var(--primary), #facc15, var(--primary));
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--bg-dark);
}

.stat-item p {
  font-size: 0.75rem;
  color: rgba(40, 41, 44, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Section Styles */
.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--bg-darker);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 209, 24, 0.1);
  border: 1px solid rgba(255, 209, 24, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-title .highlight {
  background: linear-gradient(90deg, var(--primary), #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.25rem;
  max-width: 600px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem;
  transition: all 0.5s;
}

.feature-card:hover {
  border-color: rgba(255, 209, 24, 0.3);
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 209, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 2rem;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--bg-dark);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.7s;
}

.product-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, var(--bg-darker), rgba(26,27,29,0.5), transparent);
}

.product-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.product-code::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--primary);
}

.product-card h3 {
  font-size: 1.5rem;
  transition: color 0.3s;
}

.product-card:hover h3 {
  color: var(--primary);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(90deg, var(--primary), #facc15, var(--primary));
  padding: 7rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 3.5rem;
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(40, 41, 44, 0.7);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--text-gray);
  margin: 1rem 0;
  line-height: 1.8;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-gray);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* Page Header */
.page-header {
  background: var(--bg-darker);
  padding: 8rem 0 4rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-darker), transparent);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

/* Product Detail Page */
.product-detail-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  margin-top: 70px;
  overflow: hidden;
}

.product-detail-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.data-table th {
  background: rgba(255, 209, 24, 0.1);
  border-bottom: 1px solid rgba(255, 209, 24, 0.2);
  padding: 1rem 1.5rem;
  text-align: left;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.data-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-gray-light);
}

.data-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.data-table .popular {
  background: rgba(255, 209, 24, 0.05);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-left: 0.75rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-gray-light);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s;
}

.about-image:hover img {
  filter: grayscale(0%);
}

.about-badge {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background: linear-gradient(135deg, var(--primary), #facc15);
  padding: 2rem;
  text-align: center;
}

.about-badge h3 {
  font-size: 3rem;
  color: var(--bg-dark);
}

.about-badge p {
  font-size: 0.75rem;
  color: rgba(40, 41, 44, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-left: 4px solid var(--primary);
  color: var(--text-gray-light);
}

.check-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--bg-darker);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 209, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-card h4 {
  margin-bottom: 0.5rem;
}

.contact-card p, .contact-card a {
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid, .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .check-list {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
