@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 135, 90, 0.2);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-emblem {
    height: 6rem;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #00875A;
    font-family: 'Merriweather', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #00875A;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    list-style: none;
    padding: 1rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    min-width: 200px;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #2a2a2a;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-bar {
    background-color: #2a2a2a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: #ffffff;
    width: 300px;
    font-size: 0.9rem;
    font-family: 'Merriweather', serif;
}

.search-bar::placeholder {
    color: #888;
    font-family: 'Merriweather', serif;
}

.cta-button {
    background-color: #00875A;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #00a572;
}

.button {
  position: relative;
  padding: 0;
  width: 280px;
  height: 60px;
  border: 4px solid #00875A;
  outline: none;
  background-color: #1a1a1a;
  border-radius: 50px;
  box-shadow: -4px -4px 10px rgba(42,42,42,0.5), 4px 4px 10px rgba(0,0,0,0.7), 0 0 15px rgba(0,135,90,0.3);
  transition: .13s ease-in-out;
  cursor: pointer;
  display: block;
  margin: 3rem auto;
}

.button:active {
  box-shadow: none;
}

.button:active .button__content {
  box-shadow: none;
}

.button:active .button__content .button__text, .button:active .button__content .button__icon {
  transform: translate3d(0px, 0px, 0px);
}

.button__content {
  position: relative;
  display: grid;
  padding: 10px;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr;
  box-shadow: inset 0px -4px 0px #2a2a2a, 0px -4px 0px #1a1a1a;
  border-radius: 50px;
  transition: .13s ease-in-out;
  z-index: 1;
}

.button__icon {
  position: relative;
  display: flex;
  transform: translate3d(0px, 0px, 0px);
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: 24px;
  height: 24px;
  transition: .13s ease-in-out;
}

.button__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #00875A;
}

.button__text {
  position: relative;
  transform: translate3d(0px, 0px, 0px);
  margin: 0;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  text-align: center;
  font-size: 18px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  background-color: #00875A;
  color: transparent;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  transition: .13s ease-in-out;
}

/* Main Content */
main {
    margin-top: 120px;
    min-height: 100vh;
}

.hero-section {
    padding: 4rem 2rem 3rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    margin-bottom: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-text {
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #00875A;
    max-width: 900px;
    font-family: 'Merriweather', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    max-width: 700px;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    line-height: 1.8;
}

/* Main Container Layout */
.main-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 2rem;
    justify-content: flex-end;
}

/* Selection Panel */
.selection-panel {
    flex: 0 0 500px;
    max-width: 500px;
}

.selection-panel h3 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    color: #00875A;
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.checkbox-item {
    background-color: #1a1a1a;
    padding: 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.checkbox-item:hover {
    background-color: #2a2a2a;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked {
    accent-color: #00875A;
}

.checkbox-item span {
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.continue-button {
    background-color: #00875A;
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 200px;
}

.continue-button:hover {
    background-color: #00a572;
}

/* Carousel Section - UPDATED FOR SMOOTH SCROLL */
.carousel-section {
    flex: 0 0 900px;
    position: relative;
    height: 750px;
    max-width: 900px;
    overflow: hidden;
}

.image-carousel {
    height: 100%;
    width: 100%;
}

.carousel-container {
    height: 100%;
    width: 100%;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    padding-right: 1rem;
}

.carousel-grid.animate-scroll {
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-1 * var(--scroll-height)));
    }
}

.carousel-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    height: 280px;
    width: 100%;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #ffffff;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: 'Merriweather', serif;
    text-align: left;
    width: 100%;
}

/* Pillars Preview */
.pillars-preview {
    margin-top: 5rem;
    text-align: center;
}

.pillars-preview h3 {
    font-size: 2.25rem;
    color: #00875A;
    margin-bottom: 2rem;
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pillar-card {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-card h4 {
    color: #00875A;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.pillar-card p {
    color: #cccccc;
    line-height: 1.6;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

/* Footer */
.main-footer {
    background-color: #0a0a0a;
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.footer-content p {
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00875A;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-section {
        max-width: 700px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 100px;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-emblem {
        height: 2rem;
    }

    .main-container {
        flex-direction: column;
    }

    .selection-panel {
        flex: 1;
        max-width: 100%;
    }

    .carousel-section {
        width: 100%;
        height: 800px;
        max-width: 100%;
    }

    .carousel-grid {
        gap: 0.8rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .search-bar {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .button {
        width: 220px;
        height: 50px;
    }

    .button__text {
        font-size: 16px;
    }

    .button__icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Custom Flip Button Styles */
.button-right {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 0;
}

.flip-button {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    border-radius: 20px;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.flip-button:active {
    transform: translateY(4px);
}

.flip-button-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 1px 2px 10px rgba(0,0,0,0.05);
}

.flip-button:hover .flip-button-inner {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    opacity: 1;
    transition: opacity 0.5s;
}

.front {
    background-color: #ffffff;
    color: #00875A;
}

.back {
    background-color: #00875A;
    color: #ffffff;
    transform: rotateY(180deg);
}

.front img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.front p, .back p {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    margin: 0 0;
}