body {
  font-family: Arial, sans-serif;
  background: #1e293b; /* Black background for the entire page */
  color: #edeae1; /* White text for contrast */
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  min-height: 100vh; /* Ensures full-page height */
  
}

.main-container { /* The wrapper for your content */
flex-grow: 1; /* Pushes the ticker to the bottom */
}

/* Universal Section Styling */
.section {
padding: 40px 20px;
text-align: center;
color: #1e293b; /* Dark text for sections */
}



/* Hero section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;    
  padding: 10px 10px 10px; /* Reduce bottom padding from, say, 80px to 20px */
  margin-top: 0px; /* Adjust as needed */
  margin-bottom: 10px;    
}

/* ===== Hero Content ===== */
.hero-content {
  position: relative;  /* Added: container for absolute overlay */
  background: url('../images/rik-dev-hero.png') no-repeat left center;
  background-size: cover;
  min-height: 500px;
  border: none;
  outline: 3px solid #edeae1;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: center;
  color: #edeae1;
  overflow: hidden; /* Optional but helps contain overflow */
}

/* Overlay */
.hero-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  z-index: 0;
}

/* Make sure children are above overlay */
.hero-content > * {
  position: relative;
  z-index: 1;
}



.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-top: -10px;
  margin-bottom: 0px;
  color: #CC7700 ; /* Bright blue heading */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white; /* Cooler gray text */
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.hero-btn {
  text-decoration: none;
  color: #edeae1;
  background: #CC7700 ; /* Dev-focused blue */
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
}

.hero-btn:hover {
  background: #cc7700; /* Slightly lighter hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content {
    background-position: center center;
    background-size: cover;
    min-height: 400px;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-btn {
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .hero-content {
    min-height: 300px;
    padding: 15px;
    background-position: center top;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-btn {
    font-size: 0.95rem;
  }
}



/* Rik Dashboard */
.rik-dashboard {
  padding: 40px 20px;
  background-color: #1e293b;
  text-align: center;
}

.rik-dashboard h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color : #edeae1;
}

.btn-discuss-x {
  display: inline-block;
  background-color: black;
  color: #CC7700;
  padding: 10px 16px;
  border-radius: 6px;
  outline: 3px solid #CC7700; 
  text-decoration: none;
  font-weight: 500;
  margin: 10px 0 30px;
  transition: background-color 0.3s ease;
}

.btn-discuss-x:hover {
  background-color: #edeae1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #edeae1;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.project-card h3 {
  font-size: 1.4em;
  color: #CC7700;
  margin-bottom: 15px;
}

.project-card p {
  font-size: 0.95em;
  color: #1e293b;
  margin-bottom: 12px;
}

.btn-contact {
  display: inline-block;
  background-color: #CC7700;
  color: #EDEAE1;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-contact:hover {
  background-color: #1e293b;
}

/* Mobile responsiveness for Rik Dashboard */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr; /* Single column on tablets and below */
    gap: 20px;
    padding: 0 10px;
  }

  .rik-dashboard {
    padding: 30px 10px;
  }

  .rik-dashboard h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .project-card {
    padding: 15px;
  }

  .project-card h3 {
    font-size: 1.2em;
  }

  .project-card p {
    font-size: 0.9em;
  }

  .btn-discuss-x, .btn-contact {
    padding: 12px 18px;
    font-size: 1rem;
    width: 80%; /* Full width buttons on mobile for easy tap */
    box-sizing: border-box;
  }

  .btn-discuss-x {
    margin-bottom: 20px;
  }
}




/* How I Built RiK Section */
.how-i-built {
  background-color: #222;
  padding: 4rem 1rem;
}

.how-i-built .container {
  background-color: #EDEAE1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  text-align: center;
}

.how-i-built h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #3A1C0E;
}

.how-i-built .image img {
  max-width: 300px;
  width: 100%;
  margin-top: -10px;  
  height: auto;
  border-radius: 10px;
  margin-bottom: 0rem;
}

.how-i-built .text p {
  font-size: 1rem;
  color: #3A1C0E;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: left;
}

.how-i-built .text code {
  background-color: #f0f0f0;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .how-i-built .container {
    padding: 2rem 1rem;
  }

  .how-i-built h2 {
    font-size: 1.6rem;
  }

  .how-i-built .text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .how-i-built .text code {
    font-size: 0.85rem;
  }
}





/* Modular Architecture Section */
.modular-architecture {
  background-color: #222;
  padding: 4rem 1rem;
  color: #EDEAE1;
  margin-top: -30px; /* Adjust as needed */
}

.modular-architecture .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.modular-architecture h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modular-architecture .subtitle {
  font-size: 1.1rem;
  color: #EDEAE1;
  margin-bottom: 2rem;
}

.modular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.module-card {
  background-color: #EDEAE1;
  color: #222;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.module-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #3A1C0E;
}

.module-card p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.module-card small {
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 360px) {
  .modular-architecture {
    padding: 2rem 0.5rem;
  }

  .module-card {
    padding: 1rem;
  }

  .module-card h3 {
    font-size: 1rem;
  }

  .module-card p,
  .module-card small {
    font-size: 0.85rem;
  }
}


/* Site Structure Flowchart Section */
.rik-module-grid {
  padding: 4rem 1rem;
  text-align: center;
  color: #3A1C0E;
  background: #222; /* Let body background show */
}

.outer-wrapper {
  background: rgba(255, 255, 255, 0.9); /* white with slight transparency */
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: 0 auto;
}

.rik-module-grid h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #3A1C0E;
}

.rik-module-grid .subtitle {
  color: #3A1C0E;
  margin-bottom: 2rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.module-card {
  background: #fdf6f1;
  border: 1px solid #e0d5ce;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(58, 28, 14, 0.2);
}

.module-card a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3A1C0E;
  text-decoration: none;
}

.module-card p {
  color: #5a3c2a;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .outer-wrapper {
    padding: 1.5rem 1rem;
  }

  .module-card {
    padding: 1.2rem;
  }

  .module-card a {
    font-size: 1rem;
  }

  .module-card p {
    font-size: 0.85rem;
  }
}

