/* CSS Variables - Tetrad Color Scheme */
:root {
  /* Primary Tetrad Colors */
  --color-primary: #FF6B35;
  --color-secondary: #35C7FF;
  --color-tertiary: #35FF6B;
  --color-quaternary: #C735FF;
  
  /* Supporting Colors */
  --color-dark: #1a1a1a;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --color-gray-light: #e9ecef;
  --color-gray-dark: #343a40;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, #FF6B35, #FF8A65);
  --gradient-secondary: linear-gradient(135deg, #35C7FF, #64D9FF);
  --gradient-hero: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(53, 199, 255, 0.9));
  --gradient-dark: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(52, 58, 64, 0.95));
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

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

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

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

/* Adaptive Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  margin-bottom: var(--spacing-sm);
}

/* Global Button Styles */
.btn,
button,
.button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.btn:hover,
button:hover,
.button:hover,
input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary,
.button.is-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.btn-secondary,
.button.is-secondary {
  background: var(--gradient-secondary);
  color: var(--color-white);
}

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

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

/* Read More Links */
.read-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--color-secondary);
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-gray-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  transition: var(--transition);
}

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.navbar-item {
  color: var(--color-dark);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-item:hover {
  color: var(--color-primary);
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

/* Hero Section */
.hero {
  background: var(--gradient-hero), url('image/oil-industry-hero-background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
  font-weight: 400;
  opacity: 0.9;
}

/* Particle Animation Background */
.particles-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particles-background::before,
.particles-background::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-white);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

.particles-background::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particles-background::after {
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

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

/* Sections */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
}

.section.has-background-light {
  background-color: var(--color-light);
}

.section.has-background-dark {
  background: var(--gradient-dark);
  color: var(--color-white);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image .image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  margin: 0 auto;
}

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

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Image Containers */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  margin: 0 auto;
}

.image-container:hover img {
  transform: scale(1.02);
}

/* Grid Layouts */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: 0 -var(--spacing-sm);
}

.column {
  flex: 1;
  min-width: 300px;
  padding: 0 var(--spacing-sm);
}

.column.is-half {
  flex: 0 0 calc(50% - var(--spacing-md));
}

.column.is-one-third {
  flex: 0 0 calc(33.333% - var(--spacing-md));
}

.column.is-two-thirds {
  flex: 0 0 calc(66.666% - var(--spacing-md));
}

.column.is-one-quarter {
  flex: 0 0 calc(25% - var(--spacing-md));
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.field {
  margin-bottom: var(--spacing-md);
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  display: block;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Accordion */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

.accordion-header {
  background: var(--color-light);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--color-gray-light);
}

.accordion-content {
  padding: var(--spacing-md);
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
  animation: slideDown 0.3s ease;
}

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

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-md);
}

.footer a {
  color: var(--color-light);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Social Media Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
  color: var(--color-white);
}

.success-content {
  padding: var(--spacing-xl);
  max-width: 600px;
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

/* Utility Classes */
.has-text-centered { text-align: center; }
.has-text-left { text-align: left; }
.has-text-right { text-align: right; }

.has-text-white { color: var(--color-white) !important; }
.has-text-dark { color: var(--color-dark) !important; }
.has-text-light { color: var(--color-light) !important; }
.has-text-primary { color: var(--color-primary) !important; }

.mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }
.mb-6 { margin-bottom: calc(var(--spacing-xl) * 1.5) !important; }

.mt-1 { margin-top: var(--spacing-xs) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }
.mt-6 { margin-top: calc(var(--spacing-xl) * 1.5) !important; }

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

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

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

.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .columns {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .column {
    flex: 1 1 100%;
    min-width: auto;
  }
  
  .hero-body {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
  }
  
  .contact-form {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .card-content {
    padding: var(--spacing-sm);
  }
  
  .btn,
  button,
  .button {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #FF4500;
    --color-secondary: #0080FF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .particles-background::before,
  .particles-background::after {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-dark: #ffffff;
    --color-white: #1a1a1a;
    --color-light: #2d2d2d;
    --color-gray-light: #404040;
  }
  
  body {
    background-color: var(--color-white);
    color: var(--color-dark);
  }
  
  .navbar {
    background: rgba(26, 26, 26, 0.95);
  }
  
  .card {
    background: var(--color-light);
    color: var(--color-dark);
  }
}