body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #fafafa;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.header .container {
    display: flex;
    align-items: center;      /* vertical centering */
    justify-content: space-between;  /* logo left, nav right */
}

.nav a {
    margin-left: 24px;        /* spacing between menu items */
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.logo img {
    height: 48px;             /* adjust size as needed */
    width: auto;
}


.hero {
    background: url("desertrig.png") center/cover no-repeat;
    color: white;
    padding: 50px 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* darken for readability */
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Layout: text left, code right */
.hero-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.hero-text {
    flex: 1 1 280px;
    min-width: 260px;
}

.hero-code {
    flex: 1 1 320px;
    min-width: 280px;
}

/* Code block styling */
.hero-code pre {
    margin: 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05); /* subtle transparent background */
    border-radius: 6px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(230, 243, 255, 0.85); /* slightly transparent text */
    max-height: 260px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px); /* optional: adds soft glass effect */
}


.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #2f7d32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.content h2 {
    margin-top: 40px;
    font-size: 26px;
}

.content ul {
    margin-left: 20px;
}

.rigflex-section {
    padding: 40px 0;
}

.rigflex-section + .rigflex-section {
    padding-top: 10px;
    margin-top: -20px;
}



.rigflex-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.rigflex-text {
    flex: 1 1 400px;
}

.rigflex-text h2 {
    font-size: 32px;
    color: #2f7d32;
    margin-bottom: 10px;
}

.rigflex-text p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.rigflex-text ul {
    margin-left: 20px;
    color: #444;
    line-height: 1.6;
}

.rigflex-image {
    flex: 1 1 500px;
    text-align: center;
}

.rigflex-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.rigflex-gallery {
    flex: 1 1 500px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.gallery-track {
    display: inline-flex;
    width: max-content;
    gap: 12px; /* replaces margin-right for cleaner spacing */
}

.gallery-track img {
    will-change: transform;
    height: 225px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    object-fit: cover;
    scroll-snap-align: start;
    scroll-snap-type: x mandatory;
}


  
  

.gallery-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
  }
  


  .gallery-item img {
    height: 225px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    object-fit: cover;
  }
  
  .caption {
    margin-top: 6px;
    font-size: 14px;
    color: #2f7d32; /* your green accent */
    text-align: center;
  }
  

.contact-section {
    padding: 40px 0;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.contact-section h2 {
    font-size: 28px;
    color: #2f7d32;
    margin-bottom: 20px;
    text-align: center;
}

.contact-section form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-section label {
    font-weight: 500;
    color: #333;
}

.contact-section input,
.contact-section textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.contact-section button {
    background: #2f7d32;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.contact-section button:hover {
    background: #256628;
}



.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}
