/* ==========================================================================
   CSS Variables and Font Imports
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  /* Colors - Modern Industrial */
  --color-primary: #0B5ED7;
  --color-primary-dark: #0A2540;
  --color-secondary: #0A2540;
  --color-secondary-hover: #113B66;
  --color-bg: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-border: #E0E4EC;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --section-padding: 80px 0;
  --border-radius: 8px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
}

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

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

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

/* Image Placeholders */
.img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Custom CSS Logo */
.css-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.css-logo__icon {
  width: 30px;
  height: 30px;
  position: relative;
  animation: spin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drawing a turbine with CSS elements */
.css-logo__icon::before,
.css-logo__icon::after,
.css-logo__icon span {
  content: '';
  position: absolute;
  width: 6px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: 3px 3px 0 0;
  top: 50%;
  left: 50%;
  transform-origin: 50% 0;
}

.css-logo__icon::before {
  transform: translate(-50%, 0) rotate(0deg);
}

.css-logo__icon::after {
  transform: translate(-50%, 0) rotate(120deg);
}

.css-logo__icon span {
  transform: translate(-50%, 0) rotate(240deg);
}

.css-logo__icon .center-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary-dark);
  border-radius: 50%;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* override the blade span styling */
  transform-origin: center;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.css-logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}


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

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Classes & Glassmorphism
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark {
  background: rgba(10, 37, 64, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Using Glassmorphism for header */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  transition: transform var(--transition-normal), padding var(--transition-normal);
  padding: 15px 0;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

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

.logo img {
  height: 40px;
}

.nav__list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-normal);
}

.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link svg {
  fill: var(--color-secondary);
  width: 20px;
  height: 20px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  color: white;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 60, 93, 0.4), rgba(7, 41, 66, 0.5));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero__title {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeUp 1s ease 0.4s both;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 1s ease 0.6s both;
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  background-color: var(--color-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.1;
  z-index: 1;
}

.about__content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about__content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* Stats Counters */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  text-align: center;
  padding: 30px;
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  border-bottom: 4px solid var(--color-secondary);
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat__label {
  font-weight: 600;
  color: var(--color-text-light);
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners {
  background-color: var(--color-surface);
  padding: 60px 0;
}

.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.partner-logo {
  height: 60px;
  filter: grayscale(100%) opacity(0.7);
  transition: all var(--transition-normal);
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.products {
  background-color: var(--color-bg);
}

.products__filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary);
  color: white;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.product__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product__content {
  padding: 25px;
}

.product__category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 10px;
  display: block;
}

.product__title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.product__desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 80px 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer__about .logo img {
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer__about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-secondary);
}

.social-link svg {
  fill: white;
  width: 20px;
  height: 20px;
}

.footer__title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--color-secondary);
}

.footer__links li {
  margin-bottom: 12px;
}

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

.footer__links a:hover {
  color: var(--color-secondary);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact svg {
  fill: var(--color-secondary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}
