/* ===== Variables ===== */
:root {
  --brand-yellow: #ffc800;
  --brand-black: #1a1a1a;
  --brand-dark: #121212;
  --brand-gray: #333333;
  --brand-red: #d92525;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Heebo", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
}

/* ===== Navbar ===== */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: var(--brand-black) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo-box {
  width: 50px;
  height: 50px;
  background: var(--brand-yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand-black);
  transition: var(--transition);
}

.logo-box:hover {
  transform: rotate(5deg) scale(1.1);
}

/* Logo Image Styles */
.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 120px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(255, 200, 0, 0.3));
}

.navbar-logo:hover {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(255, 200, 0, 0.6));
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-yellow);
}

.nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 0;
  height: 3px;
  background: var(--brand-yellow);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 80%;
  right: 10%;
}

.nav-link:hover {
  color: var(--brand-yellow) !important;
}

/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--brand-black) 0%,
    var(--brand-dark) 100%
  );
  background-image: url("../images/hero_construction.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(18, 18, 18, 0.7) 100%
  );
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 200, 0, 0.03) 10px,
    rgba(255, 200, 0, 0.03) 20px
  );
  z-index: 2;
}

.container {
  position: relative;
  z-index: 3;
}

.hero-content {
  background: rgba(26, 26, 26, 0.9);
  padding: 3rem;
  border-right: 8px solid var(--brand-yellow);
  animation: slideInRight 1s ease;
}

.hero-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 200, 0, 0.1);
  border: 3px solid var(--brand-yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--brand-yellow);
  animation: pulse 2s infinite;
}

/* Hero Logo Image Styles */
.hero-logo-container {
  display: inline-block;
}

.hero-logo-img {
  width: auto;
  height: 120px;
  max-width: 200px;
  filter: drop-shadow(0 4px 16px rgba(255, 200, 0, 0.5));
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 4.5rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  display: block;
  color: var(--brand-yellow);
  font-size: 3rem;
  margin-top: 0.5rem;
  animation: fadeInUp 1s ease 0.5s backwards;
}

.hero-legal {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--brand-black);
  padding: 1rem 2rem;
  font-weight: 900;
  font-size: 1.5rem;
  transform: skewX(-12deg);
  animation: zoomIn 1s ease 1s backwards;
}

.hero-badge span {
  display: block;
  transform: skewX(12deg);
}

.hero-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  opacity: 0.5;
}

.hero-dots::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--brand-yellow);
  border-radius: 50%;
  animation: blink 3s infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 2rem;
  color: var(--brand-yellow);
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* ===== Section Styling ===== */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-black);
  margin-bottom: 1.5rem;
}

.red-line {
  width: 80px;
  height: 4px;
  background: var(--brand-red);
  margin-bottom: 2rem;
}

.white-line {
  width: 120px;
  height: 4px;
  background: #fff;
}

/* ===== About Section ===== */
.about-image-wrapper {
  position: relative;
}

.image-border {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--brand-yellow);
  z-index: 0;
}

.about-image-wrapper img {
  position: relative;
  z-index: 1;
  filter: grayscale(100%);
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-image-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.about-text p {
  margin-bottom: 1rem;
}

/* ===== Certifications Section ===== */
.bg-yellow-light {
  background: linear-gradient(
    135deg,
    rgba(255, 200, 0, 0.1) 0%,
    rgba(255, 200, 0, 0.05) 100%
  );
}

.cert-box {
  background: var(--brand-yellow);
  padding: 3rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cert-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 200px;
  opacity: 0.1;
  color: var(--brand-black);
}

.cert-title {
  font-size: 2.5rem;
  color: var(--brand-black);
  position: relative;
  z-index: 10;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.cert-list li:hover {
  transform: translateX(-10px);
}

.cert-list i {
  font-size: 2rem;
  color: var(--brand-black);
  background: #fff;
  padding: 0.5rem;
  border-radius: 50%;
}

/* ===== Companies Section ===== */
.company-card {
  background: #fff;
  border-bottom: 4px solid var(--brand-yellow);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  overflow: hidden;
}

.company-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.company-image {
  height: 200px;
  overflow: hidden;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.company-card:hover .company-image img {
  transform: scale(1.1);
}

.company-content {
  padding: 1.5rem;
}

.company-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--brand-black);
}

.company-content p {
  color: #666;
  line-height: 1.6;
}

/* ===== Why Us Section ===== */
.bg-black {
  background: var(--brand-black) !important;
  position: relative;
}

.diagonal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 33%;
  height: 100%;
  background: rgba(255, 200, 0, 0.1);
  transform: skewX(-12deg);
  transform-origin: top;
}

.text-yellow {
  color: var(--brand-yellow) !important;
}

.why-card {
  background: rgba(51, 51, 51, 0.5);
  padding: 2rem;
  border-radius: 8px;
  border-right: 4px solid var(--brand-yellow);
  transition: var(--transition);
}

.why-card:hover {
  background: var(--brand-gray);
  transform: scale(1.05);
}

.why-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.why-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Achievements Section ===== */
.achievement-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.achievement-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}

.achievement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 200, 0, 0.85) 0%,
    rgba(255, 200, 0, 0.7) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: var(--transition);
}

.achievement-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.achievement-card:hover .achievement-overlay {
  opacity: 0.8;
}

.achievement-content {
  text-align: center;
  border: 4px solid #fff;
  padding: 3rem;
}

.achievement-value {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.achievement-label {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

/* ===== Vision Section ===== */
.vision-text {
  font-size: 1.3rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.vision-card {
  background: #fff;
  padding: 3rem;
  border-top: 8px solid var(--brand-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: var(--transition);
}

.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.vision-icon {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 40px;
  color: var(--brand-black);
}

.vision-card h3 {
  font-size: 1.8rem;
  color: var(--brand-black);
}

/* ===== Gallery Section ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay span {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid #fff;
  padding: 0.8rem 1.5rem;
}

/* ===== Contact Section ===== */
.yellow-corner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 200px 200px;
  border-color: transparent transparent var(--brand-yellow) transparent;
  opacity: 0.3;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 32px;
  color: var(--brand-black);
  transition: var(--transition);
}

.contact-icon:hover {
  background: var(--brand-yellow);
  transform: scale(1.1) rotate(5deg);
}

.contact-info {
  font-size: 1.2rem;
  color: var(--brand-black);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #666;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--brand-red);
  transform: scale(1.1);
}

.decorative-dots {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  opacity: 0.3;
}

.decorative-dots::before,
.decorative-dots::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
  animation: blink 2s infinite;
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--brand-yellow);
  color: var(--brand-black);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 200, 0, 0.5);
}

/* ===== Animations ===== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .navbar {
    background-color: var(--brand-black) !important;
  }

  .navbar-collapse {
    background-color: var(--brand-black);
  }

  .hero-section {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-legal {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content {
    padding: 2rem;
    animation: none;
  }

  .hero-badge {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
  }

  .image-border {
    display: none;
  }

  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Division Dividers (Construction / Steel chapters) ===== */
.division-divider {
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.division-divider-yellow {
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #ffe066 100%);
    color: var(--brand-black);
    border-top: 4px solid var(--brand-black);
    border-bottom: 4px solid var(--brand-black);
}
.division-divider-black {
    background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-gray) 100%);
    color: #fff;
    border-top: 4px solid var(--brand-yellow);
    border-bottom: 4px solid var(--brand-yellow);
}
.division-divider .division-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.75rem 0 0;
    letter-spacing: 0.5px;
}
.division-divider-black .division-title {
    color: #fff;
}
.badge-chapter {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    background: var(--brand-black);
    color: var(--brand-yellow);
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.division-divider-black .badge-chapter {
    background: var(--brand-yellow);
    color: var(--brand-black);
}

/* ===== Anchor Aliases (backward-compat IDs hidden for scroll-offset) ===== */
.anchor-alias {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
    height: 0;
}

/* ===== Steel Placeholder Card (for projects without images yet) ===== */
.project-image-steel-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-yellow);
    font-size: 64px;
}
