/*
        ------------------------------------------
        1. GLOBAL STYLES & TYPOGRAPHY
        ------------------------------------------
        */
:root {
  /* NEW COLOR PALETTE: White/Grey Professional */
  --dark-grey: #2c3e50;
  --mid-grey: #5d6d7e;
  --light-grey-bg: #f8f9fa;
  --white-bg: #ffffff;
  --border-grey: #e0e0e0;
  --card-bg: #f1f4f8;

  --accent-blue: #007bff;
  --accent-teal: #28a745;

  --font-display: "Space Mono", monospace;
  --font-body: "Inter", sans-serif;
  --font-code: "Fira Code", monospace;

  scroll-behavior: smooth;
}

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;600&display=swap");

body {
  font-family: var(--font-body);
  color: var(--mid-grey);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  background-color: var(--white-bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--dark-grey);
  margin-top: 0;
  line-height: 1.2;
}

h2 {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 1.5em;
  position: relative;
  color: var(--accent-blue);
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent-teal);
  margin: 15px auto 0;
  border-radius: 2px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

section {
  padding: 100px 0;
  min-height: 60vh;
  position: relative;
}

/* Unique Section Divider */
.section-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-grey),
    transparent
  );
  bottom: 0;
  opacity: 0.8;
}

/*
        ------------------------------------------
        2. BUTTONS & CTA
        ------------------------------------------
        */
.cta-button {
  display: inline-block;
  padding: 14px 35px;
  background-color: var(--accent-blue);
  color: var(--white-bg);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.cta-button:hover {
  background-color: var(--accent-teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Badge style for PoC projects */
.badge {
  display: inline-block;
  background-color: var(--accent-teal);
  color: var(--white-bg);
  padding: 4px 10px;
  font-size: 0.8em;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/*
        ------------------------------------------
        3. HEADER & NAVIGATION (Sticky)
        ------------------------------------------
        */
header {
  background: var(--white-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-grey);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
}

.logo img {
  height: 200px;
  width: auto;
  filter: none;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav a {
  color: var(--dark-grey);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.1em;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/*
        ------------------------------------------
        4. HERO SECTION - UPDATED MESSAGE
        ------------------------------------------
        */
#home {
  background: linear-gradient(
    135deg,
    var(--white-bg) 0%,
    var(--light-grey-bg) 100%
  );
  color: var(--dark-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

#home h1 {
  font-size: 4.5em;
  color: var(--dark-grey);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#home p {
  font-size: 1.7em;
  color: var(--mid-grey);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/*
        ------------------------------------------
        5. ABOUT SECTION
        ------------------------------------------
        */
#about {
  background-color: var(--light-grey-bg);
  color: var(--dark-grey);
  text-align: center;
}
#about h2 {
  color: var(--accent-teal);
}

.value-props {
  display: flex;
  justify-content: space-around;
  margin-top: 60px;
  gap: 30px;
  flex-wrap: wrap;
}

.value-prop {
  flex-basis: calc(33% - 40px);
  min-width: 280px;
  padding: 35px 25px;
  background: var(--white-bg);
  border-left: 4px solid var(--accent-blue);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-grey);
}
.value-prop h3 {
  color: var(--accent-teal);
  font-size: 1.6em;
  margin-bottom: 10px;
}

/*
        ------------------------------------------
        6. PROJECT HUB (Menu + Details) 
        ------------------------------------------
        */
#project-hub {
  background-color: var(--white-bg);
  padding: 100px 0;
}
#project-hub h2 {
  margin-bottom: 40px;
  color: var(--accent-blue);
}

.hub-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  min-height: 800px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-grey);
  overflow: hidden;
}

/* --- LEFT COLUMN: SEARCH & MENU --- */
.project-menu-panel {
  background-color: var(--white-bg);
  border-right: 1px solid var(--border-grey);
  padding: 25px 0;
  display: flex;
  flex-direction: column;
}

.search-container {
  padding: 0 25px 20px 25px;
  border-bottom: 1px solid var(--border-grey);
  margin-bottom: 20px;
}

.project-search {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-grey);
  border-radius: 6px;
  font-size: 1em;
  color: var(--dark-grey);
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}
.project-search:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.project-menu {
  overflow-y: auto;
  flex-grow: 1;
  padding: 0 15px 15px 15px;
}

.menu-item {
  display: block;
  background: var(--white-bg);
  padding: 15px 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.menu-item:hover,
.menu-item.active {
  background: var(--light-grey-bg);
  border-color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}
.menu-item h4 {
  font-size: 1.3em;
  color: var(--dark-grey);
  margin-bottom: 4px;
}
.menu-item p {
  font-size: 0.9em;
  color: var(--mid-grey);
  margin: 0;
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
}

/* --- RIGHT COLUMN: DETAIL VIEW --- */
.project-detail-view {
  padding: 40px;
  overflow-y: auto;
  background: var(--card-bg);
}

.detail-header {
  margin-bottom: 30px;
}
.detail-header h3 {
  font-size: 2.2em;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.project-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-content h4 {
  font-size: 1.5em;
  color: var(--dark-grey);
  margin-top: 25px;
  border-bottom: 2px solid var(--border-grey);
  padding-bottom: 5px;
}

.detail-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}
.detail-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--dark-grey);
  font-size: 1em;
}
.detail-content ul li::before {
  content: "›";
  color: var(--accent-teal);
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
  top: 0;
  font-weight: bold;
}
.detail-actions {
  padding-top: 20px;
  border-top: 1px solid var(--border-grey);
}

.detail-actions .cta-button {
  margin-right: 15px;
  padding: 12px 30px;
  font-size: 0.9em;
}
.detail-actions .cta-button.secondary {
  background-color: var(--white-bg);
  color: var(--dark-grey);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-grey);
}
.detail-actions .cta-button.secondary:hover {
  background-color: var(--border-grey);
}

/* --- Initial Detail State (No Project Selected) --- */
#initial-detail-message {
  text-align: center;
  padding-top: 200px;
  color: var(--mid-grey);
  font-size: 1.4em;
  font-weight: 500;
}

/*
        ------------------------------------------
        7. CONTACT SECTION - UPDATED TO CTA LINK
        ------------------------------------------
        */
#contact {
  background-color: var(--light-grey-bg);
  color: var(--dark-grey);
  text-align: center;
  min-height: 40vh; /* Reduced height as form is replaced */
}
#contact h2 {
  color: var(--accent-blue);
}

.form-cta-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-grey);
}

.form-cta-wrapper p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--dark-grey);
}

/*
        ------------------------------------------
        8. MEDIA QUERIES (Mobile Responsiveness)
        ------------------------------------------
        */
@media (max-width: 1024px) {
  .hub-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  .project-menu-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-grey);
  }
  .project-menu {
    max-height: 400px;
  }
  .project-detail-view {
    padding: 25px;
  }
  #initial-detail-message {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .value-prop {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.8em;
  }
  h2 {
    font-size: 2.2em;
  }
  header .container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }
  nav {
    margin-top: 15px;
    padding-bottom: 10px;
  }
  nav a {
    margin: 0 12px;
  }
  #home {
    height: 80vh;
  }
}

/* --- Footer Styles --- */

/* Style for the main container */
footer {
  width: 100%;
  padding: 30px 20px;
  margin-top: 60px; /* Generous space above the footer */
  text-align: center;
}

/* Ensure the text is centered and clearly readable */
footer p {
  margin: 10px 0 0; /* Adds space above the copyright if social links are present */
  font-size: 0.95rem;
  font-weight: 400;
}

/* Optional: Social Media Links */
.social-links {
  margin-bottom: 15px;
}

.social-links a {
  color: #ecf0f1; /* Match text color */
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0 12px;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.social-links a:hover {
  color: #3498db; /* Accent color on hover */
  opacity: 1;
}

/* Optional: If you want to use a two-column layout for links/info */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Default stack items */
  align-items: center;
}

/* Media query for wider screens to align content */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}
