/* Modern CSS with Flexbox */
:root {
  --primary-color: #007bff;
  --primary-dark: #004ea1;
  --turquoise: #00c6ff;
  --navy-blue: #0041aa;
  --white: #ffffff;
  --max-width: 1200px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--white);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 3px solid var(--white);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(45deg, var(--navy-blue), var(--turquoise));
  line-height: 1.6;
  min-height: 100vh;
}

/* Header Styles */
header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 2rem;
}

.logo {
  z-index: 11;
}

.logo a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0.25rem 1rem;
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--light-bg);
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: center;
}

.hamburger.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 12rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
  width: 100%;
}

.hero__content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Section 1 */
.section1 {
  background-color: var(--white);
  padding: 4rem 2rem;
}

.section1__content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.content-wrapper img {
  width: 45%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.text-content {
  flex: 1;
  min-width: 300px;
}

.text-content p {
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  text-align: justify;
}

/* Cards Section */
.cards-section {
  background: linear-gradient(135deg, var(--navy-blue), var(--turquoise));
  padding: 4rem 2rem;
}

.cards-section__content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 198, 255, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(128, 228, 255, 0.5);
}

.card img {
  width: 100%;
  height: 65%;
  object-fit: cover;
  flex: 0 0 auto;
}

.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--primary-dark);
  color: var(--white);
}

.card-content h3 {
  margin-bottom: 0.3rem;
  color: var(--white);
  font-size: 1.2rem;
  text-align: center;
}

.card-content p {
  color: var(--white);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.9;
  line-height: 1.4;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 2.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pagination-btn:disabled {
  background: var(--white);
  color: var(--primary-color);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__content {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transition: right 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    margin: 0;
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    padding: 1rem;
    font-size: 1.2rem;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .content-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .content-wrapper img {
    width: 100%;
    margin: 0 auto 2rem;
  }

  .text-content {
    padding: 0;
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}

footer {
  background-color: var(--primary-dark);
  width: 100%;
  padding: 2rem;
}

.no-scroll {
  overflow: hidden;
}