/* Modern CSS Reset and Base Styles */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #5e5e5e;
  --bg-color: #ffffff;
  --accent-color: #000000;
  --text-color: #1a1a1a;
  --muted-color: #7f7f7f;
  --font-main: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

/* Header & Nav */
header {
  padding: 30px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 22px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 20px;
  border-radius: 44px;
  font-weight: 300;
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: var(--accent-color);
  color: #ffffff;
}

/* Dropdown */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 140px;
  display: block;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 100;
  transition: all 0.3s ease;
  transform: translateY(10px);
}

.nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  padding: 8px 15px;
  display: block;
}

.sub-menu li a:hover {
  background: #323030;
  color: #ffffff;
}

/* Mobile Menu Toggle */
.btn-navbar {
  display: none;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 300;
  color: var(--secondary-color);
  letter-spacing: -1px;
}

h1 {
  font-size: 70px;
  line-height: 1.1;
  color: var(--accent-color);
}

h2 {
  font-size: 50px;
  line-height: 1.1;
}

h3 {
  font-size: 30px;
  margin: 30px 0 15px;
}

/* Components */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #323030;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ffffff;
  color: #1a1a1a;
  outline: 1px solid #1a1a1a;
}

/* Home Specific */
/* Slider */
.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.slides {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  min-height: 250px;
  /* Minimum height to prevent collapse */
}

.slides li {
  grid-area: 1 / 1;
  /* All slides occupy the same space */
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slides li.active {
  opacity: 1;
  z-index: 2;
}

.slides img {
  width: 100%;
  height: auto;
  display: block;
}

.bg-content {
  background: url(../../img/bg-content.jpg) center/cover;
}

.block-slogan {
  display: flex;
  gap: 40px;
  padding: 0 0 30px;
}

.block-slogan h2 {
  flex-shrink: 0;
}

.block-slogan p {
  border-left: 1px solid var(--accent-color);
  padding-left: 26px;
}

.works-sections {
  background: #000000;
  padding: 40px 0;
}

.works-header {
  text-align: center;
  padding: 0 0 30px;
  margin: 0;
  color: #ffffff;
  font-size: 50px;
  line-height: 1.1;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 40px;
  color: #ffffff;
}

/* Work Card Styling */
.work-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card img {
  margin-bottom: 15px;
}

.work-card section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card section strong {
  display: block;
  margin-bottom: 10px;
}

.work-card section p {
  margin-bottom: 20px;
}

.work-card .btn {
  display: block;
  width: 100%;
  border-radius: 50px;
  text-align: center;
  padding: 12px 0;
  margin-top: auto;
}

.work-card h3 {
  color: #ffffff;
  margin-bottom: 25px;
}

/* Achievement List */
.achievement-layout {
  display: flex;
  gap: 30px;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.achievement-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  list-style: none;
  width: 100%;
}

.achievement-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-color);
}

.achievement-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer (Unified) */
footer {
  background: #f4f4f4;
  padding: 30px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-social {
  display: flex;
  gap: 15px;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 50px;
  }

  h2,
  .works-header {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 30px 0;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-collapse {
    width: 100%;
    order: 3;
    display: none;
    margin-top: 20px;
  }

  .nav-collapse.show {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
  }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 0;
    display: none;
    text-align: center;
  }

  .nav-item:hover .sub-menu {
    display: block;
  }

  .btn-navbar {
    display: block;
    order: 2;
  }

  .row {
    flex-direction: column;
  }

  .block-slogan {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 10px 30px;
  }

  .block-slogan p {
    border-left: none;
    border-top: 1px solid var(--accent-color);
    padding: 20px 10px;
  }

  .achievement-layout {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .work-card {
    text-align: center;
  }

  .work-card img {
    margin: 0 auto 15px auto;
    display: block;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 36px;
  }

  h2,
  .works-header {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  .brand img {
    height: 40px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .achievement-list {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 15px;
  }
}