/* Arcenol Energy Solutions - Main Stylesheet */

/* Import Google Fonts - Essential fonts for all pages */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap");

/* CSS Variables */
:root {
  /* Brand Colors */
  --primary-red: #f30000;
  --primary-black: #121516;
  --complementary-gray: #808285;

  /* Theme Colors (Light Default) */
  --background: #ffffff;
  --text-color: #121516;
  --header-bg: #ffffff;
  --header-text: #121516;
  --footer-bg: #121516;
  --footer-text: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;

  /* Additional UI Colors */
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #303030;
  --white: #ffffff;

  /* Gradients */
  --red-gradient: linear-gradient(135deg, #f30000 0%, #990000 100%);
  --black-gradient: linear-gradient(135deg, #121516 0%, #2a3035 100%);

  /* Text */
  --heading-font: "Orbitron", sans-serif;
  --body-font: "Montserrat", sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  --space-xxxl: 7rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden;
  transition: background-color var(--transition-medium),
    color var(--transition-medium);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--dark-gray);
}

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

button,
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
}

button:hover,
.btn:hover {
  background: var(--red-gradient);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--primary-black);
  color: var(--white);
}

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

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-red);
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  color: var(--complementary-gray);
}

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

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-medium);
  height: 80px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 0;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 var(--space-sm);
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  color: var(--header-text);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-red);
}

.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--header-text);
  transition: all var(--transition-medium);
}

/* Body class to prevent scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Footer Styles */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: var(--space-md);
  /* Apply filters to make the logo appear white */
  filter: brightness(0) invert(1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.footer-info img {
  /* Remove fixed height from this rule as it's causing stretching */
  width: auto;
  max-width: 180px;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  margin-top: var(--space-md);
  gap: 8px;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  transition: all var(--transition-medium);
  font-size: 12px;
}

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

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer-contact i {
  color: var(--primary-red);
  margin-right: var(--space-sm);
  width: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Common Section Styles */
.page-header {
  background: var(--black-gradient);
  color: var(--white);
  padding: calc(var(--space-xxl) + 80px) 0 var(--space-xxl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/pattern-bg.svg") repeat;
  opacity: 0.1;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-red);
}

.breadcrumbs {
  margin-top: var(--space-md);
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--white);
}

/* Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .header-container {
    padding: 0 var(--space-md);
  }

  .logo img {
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }

  .logo img {
    max-height: 45px;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--background);
    box-shadow: var(--shadow-lg);
    padding-top: 100px;
    transition: all var(--transition-medium);
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 0 var(--space-lg);
  }

  .nav-item {
    margin: var(--space-md) 0;
    width: 100%;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: var(--space-md);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: var(--space-sm) 0;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 600;
  }

  .nav-link::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .page-header {
    padding-top: calc(var(--space-xxl) + 70px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-md) 0;
  }
}

/* Dark overlay when menu is open */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Footer social icons - proper size and white color */
.footer .footer-social {
  display: flex;
  gap: 12px !important;
  margin-top: 1rem !important;
}

.footer .footer-social .social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important; /* Bigger size */
  height: 32px !important; /* Bigger size */
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  color: var(--white) !important; /* White color */
  transition: all 0.3s ease !important;
  font-size: 14px !important; /* Bigger icon */
}

.footer .footer-social .social-link:hover {
  background-color: var(--primary-red) !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
}

/* Other footer social styles remain unchanged */
