/* ==========================================================================
   EECTERCUME - Perada Theme Concept
   ========================================================================== */

/* --- Variables --- */
:root {
  /* Colors */
  --color-primary: #FFB300;
  /* Sharp Yellow */
  --color-primary-dark: #e09d00;
  --color-secondary: #0B132B;
  /* Navy Blue / Midnight Blue */
  --color-secondary-light: #1c2541;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-border: #EEEEEE;

  /* Typography */
  --font-family-base: 'Montserrat', sans-serif;
  --font-family-heading: 'Montserrat', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 90px;
  --header-height-sticky: 70px;

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

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

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

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

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

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

ul {
  list-style: none;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography Utilities --- */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-family-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 179, 0, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(11, 19, 43, 0.3);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  transition: all var(--transition-normal);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.site-header.sticky {
  background-color: var(--color-bg);
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

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

.logo {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  /* Maintains nav vertical alignment */
  z-index: 1005;
}

.logo a {
  display: block;
}

.logo img {
  height: 80px;
  /* Enlarge to force overhang */
  width: auto;
  max-width: none;
  position: absolute;
  top: -10px;
  /* Adjust top so the tail drops out of header */
  transform: translateY(0);
  transition: all var(--transition-normal);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  /* Make overhang pop against background */
}

/* Adjust logo size on sticky scroll */
.site-header.sticky .logo img {
  height: 80px;
  top: -15px;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-secondary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  transition: all var(--transition-fast);
}

/* --- Hero Slider (Full Screen) --- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  /* Slight zoom for animation potential */
  transition: transform 6s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

/* Overlay to ensure text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 19, 43, 0.8), rgba(11, 19, 43, 0.4));
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-bg);
  max-width: 800px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 1s ease 0.5s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero h1 {
  color: var(--color-bg);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 1rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-primary);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

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

/* --- Hexagon Shapes (Perada Theme Detail) --- */
.hex-icon {
  width: 80px;
  height: 92px;
  background-color: var(--color-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-secondary);
  font-size: 2rem;
  transition: all var(--transition-normal);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-bg);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--color-primary);
}

.service-card:hover .hex-icon {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transform: rotate(180deg);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Counters Section --- */
.counters-section {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 4rem 0;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.counter-item h4 {
  color: var(--color-primary);
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.counter-item p {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- CTA / Quote Section --- */
.cta-section {
  background-color: var(--color-primary);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- Inner Page Header --- */
.page-header {
  background-color: var(--color-secondary);
  padding: 150px 0 80px;
  text-align: center;
  color: var(--color-bg);
}

.page-header h1 {
  color: var(--color-bg);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

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

/* --- Footer --- */
.site-footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

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

.footer-widget h4 {
  color: var(--color-bg);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-widget ul li {
  margin-bottom: 0.8rem;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-widget a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-links a:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

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

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-bg);
    padding: 80px 2rem 2rem;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }
}