/*
================================================================================
  NEON ENERGY CORPORATION - STYLESHEET
  Production-Ready CSS
  
  Table of Contents:
  1. Global Styles & Reset
  2. Background & Overlay
  3. Header & Navigation
  4. Hero Section
  5. Content Cards
  6. Footer
  7. Contact Section
  8. Media Queries & Responsive Design
================================================================================
*//* ===============================
   1. GLOBAL STYLES & RESET
   Description: Base styles, fonts, colors, and smooth scrolling
   =============================== */
html {
  scroll-padding-top: 160px; /* Offset for sticky header when jumping to anchors */
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #161618;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("images/background1.png") center center / cover no-repeat;
  background-color: #e6d6b3; /* Fallback color */
  background-attachment: fixed; /* Parallax effect on desktop */
}

/* ===============================
   2. BACKGROUND & OVERLAY
   Description: Semi-transparent overlay and glassmorphism effects
   =============================== */

/* Fixed overlay that sits behind all content */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* Subtle dark overlay */
  z-index: -1;
}

/* Default glassmorphism styling for sections */
section,
footer,
header {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  -webkit-backdrop-filter: blur(0.5px); /* Safari support */
  backdrop-filter: blur(0.5px); /* Subtle blur effect */
  border-radius: 8px;
}

/* ===============================
   3. HEADER & NAVIGATION
   Description: Sticky header, logo, navigation menu, and hamburger menu
   =============================== */

/* Main header container - sticks to top on scroll */
header {
  background: rgba(255, 255, 255, 1); /* Solid white background */
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000; /* Stays above all content */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0 !important; /* Sharp corners, not rounded */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
}

/* Logo and company name - clickable link */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 10px;
}

.logo img {
  height: 80px;
  width: auto;
  border-radius: 12px;
  background: transparent;
  transition: transform 0.3s ease-in-out;
}

.logo img:hover {
  transform: scale(1.1); /* Slight zoom on hover */
}

/* Company name and slogan container */
.header-text {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
  flex-shrink: 1;
  min-width: 0;
}

.header-text:hover {
  transform: scale(1.06); /* Slight zoom on hover */
}

header h1 {
  font-size: 2em;
  margin: 0;
  color: #050605;
  white-space: normal;
}

.slogan {
  font-size: clamp(0.8rem, 2.5vw, 1em); /* Responsive font size */
  color: #555;
}

/* Navigation menu styling */
nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0px;
  padding: 10px 0;
}

.nav-links a {
  color: #0f0f0f;
  font-weight: 600;
  font-size: 1.05em;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* Animated underline effect on hover */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background: #ff9800; /* Orange accent color */
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #ff9800;
}

.nav-links a:hover::after {
  width: 100%; /* Underline expands on hover */
}

/* Hamburger menu icon (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  background: #111;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger transforms to X when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* Middle line disappears */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===============================
   4. HERO SECTION
   Description: Full-screen hero banner with background image, overlay, and CTA
   =============================== */

.hero {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("images/background1.png") center center / cover no-repeat;
  background-attachment: scroll; /* Better mobile performance */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

/* Dark overlay on hero image for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 20px 80px 20px; /* Bottom padding lifts content up */
  box-sizing: border-box;
}

.hero-text {
  max-width: 700px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 4rem); /* Responsive sizing */
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* Better readability */
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Call-to-action button */
.btn-primary {
  background: #ff9800; /* Orange brand color */
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #e68900; /* Darker orange on hover */
}

/* ===============================
   5. CONTENT CARDS
   Description: Main content sections with glassmorphism effect and hover animations
   =============================== */

.card {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  -webkit-backdrop-filter: blur(4px); /* Safari support */
  backdrop-filter: blur(4px); /* Glassmorphism effect */
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
  padding: 30px;
  margin: 40px auto;
  width: 80%; /* Universal width for all screen sizes */
  max-width: 1000px; /* Maximum width on large screens */
  color: #161414;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
}

/* Hover effect for desktop and touch devices */
.card:hover {
  transform: translateY(-8px) scale(1.05); /* Lifts up and scales */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); /* Deeper shadow */
}

/* Touch device support - triggers on tap */
.card:active {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Section headings with orange color and underline */
h2 {
  color: #ff9800; /* Brand orange */
  text-align: center;
  margin-bottom: 20px;
}

/* Decorative underline under h2 headings */
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ff9800;
  margin: 8px auto 0;
  border-radius: 3px;
}

/* ===============================
   6. FOOTER
   Description: Site footer with links and copyright information
   =============================== */

footer {
  background: #222; /* Dark background */
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 0.95em;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

footer a {
  color: #ffd700; /* Gold color for links */
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s;
}

footer a:hover {
  color: #ff9800; /* Orange on hover */
  text-decoration: underline;
}

/* ===============================
   7. CONTACT SECTION
   Description: Contact card with icons and information
   =============================== */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.2);
  padding: 30px;
  margin: 30px auto;
  border-radius: 14px;
  transition: transform 0.3s ease;
  max-width: 1000px;
  margin-top: 20px;
}

.contact-card h2::after {
  background: #ff9800;
}

.contact-card:hover {
  transform: translateY(-5px); /* Subtle lift on hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-right i {
  color: #ff9800; /* Orange icons */
  margin-right: 8px;
}

/* Scroll margin for anchor links - prevents content hiding under sticky header */
[id] {
  scroll-margin-top: 130px;
}

/* ===============================
   8. MEDIA QUERIES & RESPONSIVE DESIGN
   Description: Breakpoints for tablets, phones, and various screen sizes
   =============================== */

/* ===== TABLETS (1025px and below) ===== */
@media (max-width: 1025px) {
  /* Switch to scroll attachment for better mobile performance */
  body {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    transform: none !important;
  }
  
  /* Ensure hero displays properly */
  .hero {
    height: 100vh !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
  }

  .hero-overlay {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 6vw, 3rem) !important;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
  }
}

/* ===== LARGE DESKTOP (1025px and above) ===== */
@media (min-width: 1025px) {
  body {
    background-attachment: fixed; /* Parallax effect */
  }
}

/* ===== MOBILE NAVIGATION (900px and below) ===== */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 120px; /* Adjust for smaller header */
  }
  
  header {
    padding: 15px 20px;
    border-radius: 0;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
  }

  .logo img {
    height: 60px; /* Smaller logo on mobile */
  }

  header h1 {
    font-size: 1.4em;
  }

  .slogan {
    font-size: 0.9em;
  }

  /* Show hamburger menu */
  .hamburger {
    display: flex;
  }

  nav {
    width: 100%;
  }

  /* Mobile dropdown navigation */
  .nav-links {
    position: absolute;
    margin-top: 10px;
    top: 10px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    flex-direction: column;
    width: 100%;
    text-align: center;
    display: none; /* Hidden by default */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
  }

  .nav-links.show {
    display: flex; /* Show when hamburger is clicked */
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 1.1em;
  }
}

/* ===== PHONES (768px and below) ===== */
@media (max-width: 768px) {
  body {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
  }
  
  .hero {
    height: 100vh;
    background-position: center center;
    background-size: cover;
  }
  
  .hero-overlay {
    align-items: center;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* ===== SMALL PHONES (480px and below) ===== */
@media (max-width: 480px) {
  body {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
  }
  
  .hero {
    height: 55vh;
  }
  
  /* Reduced hover effect to prevent overflow on small screens */
  .card:hover,
  .card:active {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
}

/* ===== VERY SMALL PHONES (360px and below) ===== */
@media (max-width: 360px) {
  body {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  
  .hero {
    height: 50vh;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATION ===== */
/* Targets devices without hover capability (phones, tablets) */
@media (hover: none) and (pointer: coarse) {
  .card {
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
  }
  
  /* Touch-optimized hover effect */
  .card:active {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
}

/* ===== END OF STYLESHEET ===== */