/* --- Existing :root variables --- */
:root {
  --hour-blue: #0b2545; /* blackish for titles */
  --hour-blue-light: #228B22; /* forest green */
  --light-grey: #e6e8f0;
  --text-dark: #16213e;
  --text-light: #f0f4f8;
  --border-radius: 10px;
  --transition-speed: 0.3s;

  /* New colors for dark navy content background */
  --dark-navy: #2c3e50; /* dark navy or muted green */
  --content-box-bg: #34495e; /* muted green tone */
  --content-text-blue: #32CD32; /* lime green for highlights */
}

/* --- Global box-sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* --- Base styles --- */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: linear-gradient(160deg, #0b2545 0%, #2c3e50 50%, #000000 100%);
  background-attachment: fixed;
  color: var(--text-light);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Subtle cyber grid overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

p {
  text-align: center;
}

/* --- Sections --- */
#contact, #about, #services, #proof, #social-proof, #founder-story {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

#contact p, #about p, #services p, #services ul, #proof p, #social-proof p, #founder-story p {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  text-align: center;
}

section {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 30px;
  background: var(--content-box-bg);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

section:hover {
  transform: translateY(-8px);
}

/* --- Section Headings (consistent size for all sections) --- */
section h2 {
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

/* === FIXED RESPONSIVE HEADER & LOGO === */

/* --- Base header styles --- */
header {
  position: relative;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--hour-blue-light) 0%, var(--hour-blue) 100%);
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  box-shadow: 0 4px 15px rgba(34, 139, 34, 0.5);
  color: var(--text-light);
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

/* --- Desktop: Logo in top-left corner --- */
@media (min-width: 1025px) {
  header {
    display: block;
    padding: 20px 40px;
    text-align: center;
  }
  
  #logo {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 300px; /* Increased from 200px */
    margin: 0;
    transition: all 0.3s ease;
    max-height: 120px; /* Increased from 80px */
    object-fit: contain;
  }
  
  #header-text {
    margin: 0 auto;
    max-width: 800px;
  }
  
  #header-text h1,
  #header-text h2,
  #header-text p {
    text-align: center;
  }
  
  .cta-buttons {
    justify-content: center;
  }
}

/* --- Tablet: Logo above text (no overlap) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  header {
    display: block;
    padding: 30px 20px;
  }
  
  #logo {
    position: relative;
    width: 250px; /* Increased from 180px */
    margin: 0 auto 15px auto;
    transition: all 0.3s ease;
    max-height: 100px; /* Increased from 80px */
    object-fit: contain;
  }
  
  #header-text {
    text-align: center;
  }
  
  #header-text h2 {
    font-size: 2rem;
  }
}

/* --- Mobile: Logo above text --- */
@media (max-width: 768px) {
  header {
    display: block;
    padding: 25px 15px;
  }
  
  #logo {
    position: relative;
    width: 220px; /* Increased from 160px */
    margin: 0 auto 10px auto;
    transition: all 0.3s ease;
    max-height: 90px; /* Increased from 80px */
    object-fit: contain;
  }
  
  #header-text h2 {
    font-size: 1.6rem;
  }
}

/* --- Logo base styles --- */
#logo {
  display: block;
}

#logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Header text container --- */
#header-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

header h1 {
  font-weight: 700;
  font-size: 2.8rem;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(50, 205, 50, 0.5);
}

/* CTA buttons container */
.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Call To Action Button --- */
.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--hour-blue-light);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  border-radius: 35px;
  box-shadow: 0 8px 20px rgba(50, 205, 50, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: fit-content;
}
.cta-button:hover {
  background: #176817;
  box-shadow: 0 0 12px rgba(50, 205, 50, 0.7),
              0 0 25px rgba(50, 205, 50, 0.5);
}

/* --- Lists --- */
ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
ul li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 1.1rem;
}
ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--content-text-blue);
  font-weight: bold;
  font-size: 1.2rem;
}
.service-item ul {
  color: var(--text-dark);
  padding-left: 0;
  text-align: left;
}

/* --- Contact links --- */
.contact-info {
  color: white;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.contact-info:hover {
  color: var(--content-text-blue);
  text-shadow: 0 0 8px rgba(50, 205, 50, 0.8), 0 0 15px #145214;
  text-decoration: underline;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 30px 15px;
  background: var(--hour-blue);
  color: var(--hour-blue-light);
  font-weight: 600;
  letter-spacing: 1.1px;
}

/* --- Forms --- */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 450px;
  margin: 0 auto;
}
input, textarea {
  padding: 15px 18px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--dark-navy);
  color: var(--text-light);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
  resize: vertical;
}
input:focus, textarea:focus {
  outline: none;
  background: var(--content-box-bg);
  box-shadow: 0 0 8px 2px var(--hour-blue-light);
}
button {
  padding: 14px;
  background: var(--hour-blue);
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
  background: var(--hour-blue-light);
  box-shadow: 0 0 12px rgba(34, 139, 34, 0.7),
              0 0 25px rgba(34, 139, 34, 0.5);
}

/* --- Services Containers - Better alignment --- */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Service Item - FIXED SIZES --- */
.service-item {
  flex: 0 0 300px;
  background-color: var(--light-grey);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: var(--text-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 320px;
  height: auto;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Ensure all service items have consistent content alignment */
.service-item h3 {
  color: var(--hour-blue);
  margin-bottom: 15px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item p, 
.service-item ul {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-item ul {
  text-align: left;
  margin-top: 10px;
}

.service-item:hover {
  box-shadow: 0 0 12px rgba(34, 139, 34, 0.5),
              0 0 25px rgba(34, 139, 34, 0.3);
  transform: translateY(-5px) scale(1.02);
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  section { 
    padding: 30px 20px; 
    margin: 20px 15px;
    border-radius: 15px;
    max-width: 100%;
  }
  .cta-button,
  button {
    width: 100%;
    max-width: 100%;
  }
  .services-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  section h2 { font-size: 1.3rem; }
  section p, ul li { font-size: 1rem; }
  .service-item {
    flex: 0 0 90%;
    max-width: 350px;
    min-height: 280px;
    margin-bottom: 15px;
  }
  .service-item ul {
    text-align: center;
    list-style-position: inside;
  }
  .service-item h3 {
    font-size: 1.2rem;
  }
  .service-item li {
    font-size: 1rem;
  }
}

/* === SECURITY ENHANCEMENTS === */

/* Form security visual indicators */
input[type="password"] {
  font-family: sans-serif;
  letter-spacing: 2px;
}

/* Secure field validation indicators */
input:valid {
  border-left: 3px solid var(--hour-blue-light);
}

input:invalid:not(:focus):not(:placeholder-shown) {
  border-left: 3px solid #ff4444;
}

/* Security status badges */
.security-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.security-status.secure {
  background-color: var(--hour-blue-light);
  color: white;
}

.security-status.insecure {
  background-color: #ff4444;
  color: white;
}

/* Secure loading states */
.loading-security {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading-security::after {
  content: "🔒";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  animation: security-pulse 1.5s infinite;
}

@keyframes security-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* HTTPS secure link indicators */
a[href^="https://"]::after {
  content: " 🔒";
  font-size: 0.8em;
  opacity: 0.7;
}

/* Enhanced focus for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--content-text-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Secure file upload styling */
input[type="file"]:valid {
  border: 2px dashed var(--hour-blue-light);
  background-color: rgba(34, 139, 34, 0.1);
}

input[type="file"]:invalid {
  border: 2px dashed #ff4444;
}

/* Security warning banners */
.security-warning {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  margin: 10px 0;
  text-align: center;
  font-weight: 600;
}

.security-success {
  background: linear-gradient(135deg, var(--hour-blue-light) 0%, #145214 100%);
  color: white;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  margin: 10px 0;
  text-align: center;
  font-weight: 600;
}

.field-error {
  font-size: 0.8rem;
  margin-top: 5px;
  padding: 5px 10px;
}

/* === CASE STUDIES SECTION === */
#case-studies {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

#case-studies .container {
  max-width: 900px;
  margin: 0 auto;
}

#case-studies h2 {
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

.case-study {
  background-color: var(--light-grey);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: var(--text-dark);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.case-study:hover {
  box-shadow: 0 0 12px rgba(34, 139, 34, 0.5),
              0 0 25px rgba(34, 139, 34, 0.3);
  transform: translateY(-5px) scale(1.02);
}

.case-study h3 {
  color: var(--hour-blue);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.case-study p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Impact Metrics Grid */
.impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.metric-item {
  text-align: center;
  padding: 20px 15px;
  background: var(--content-box-bg);
  border-radius: var(--border-radius);
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-3px);
}

.metric-item h4 {
  color: var(--content-text-blue);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.metric-item p {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

/* Case Study CTA */
.case-study-cta {
  margin-top: 25px;
  text-align: center;
}

/* Responsive adjustments for case studies */
@media (max-width: 768px) {
  .impact-metrics {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .case-study {
    padding: 20px 15px;
    margin: 0 10px 20px 10px;
  }
  
  .case-study h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .case-study p {
    font-size: 1rem;
  }
  
  .metric-item {
    padding: 15px 10px;
  }
}

/* === NEW SOCIAL PROOF SECTION === */
#social-proof {
  text-align: center;
}

#social-proof h2 {
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

#social-proof p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

#social-proof ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

#social-proof li {
  margin-bottom: 20px;
  padding: 15px;
  background: #2c3e50;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#social-proof li:hover {
  transform: translateY(-3px);
}

#social-proof strong {
  color: #32CD32;
}

/* === SERVICE PRICING === */
.service-pricing {
  background: #2c3e50;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  color: white;
  text-align: center;
}

.service-pricing strong {
  color: #32CD32;
  font-size: 1.1rem;
}

.service-pricing p {
  margin: 5px 0 0 0;
  font-size: 0.9em;
}

/* === FOUNDER STORY SECTION === */
#founder-story {
  text-align: center;
}

#founder-story h2 {
  font-size: 2rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

.founder-content {
  background: #2c3e50;
  padding: 30px;
  border-radius: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
}

.founder-content p {
  margin-bottom: 20px;
  text-align: left;
}

.founder-signature {
  text-align: center;
  font-style: italic;
  margin: 0;
}

.founder-signature strong {
  color: #32CD32;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  #social-proof li {
    padding: 12px 10px;
  }
  
  .founder-content {
    padding: 20px 15px;
  }
  
  .service-pricing {
    padding: 12px 10px;
  }
}

/* === NEW ADDITIONS FOR LATEST ELEMENTS === */

/* === FOUNDER-LED BADGE === */
.founder-led-badge {
  background: #2c3e50;
  color: #32CD32;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 15px auto;
  max-width: 500px;
  border: 2px solid #32CD32;
  text-align: center;
}

/* === GUARANTEE BANNER === */
.guarantee-banner {
  background: linear-gradient(135deg, #228B22 0%, #145214 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin: 0 auto 30px auto;
  max-width: 600px;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.guarantee-banner strong {
  color: white;
}

/* === ENTERPRISE CONTACT === */
.enterprise-contact {
  background: #2c3e50;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  text-align: center;
  border-left: 4px solid #32CD32;
}

.enterprise-contact p {
  margin: 0;
  font-size: 1rem;
}

.enterprise-contact strong {
  color: #32CD32;
}

/* === SERVICES MATRIX STYLES === */

.services-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.business-category {
  border: 2px solid #34495e;
  border-radius: 15px;
  padding: 2rem;
  background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.business-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #228B22, #32CD32);
}

.business-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.category-header h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.category-subtitle {
  font-style: italic;
  color: #32CD32;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

.service-options {
  margin-bottom: 1.5rem;
}

.service-option {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #4a5f7a;
}

.service-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-option h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
}

.service-pricing {
  font-size: 1.3rem;
  font-weight: bold;
  color: #32CD32;
  margin-bottom: 0.5rem;
  text-align: center;
}

.service-description {
  color: #bdc3c7;
  font-style: italic;
  text-align: center;
  margin: 0;
}

.category-cta {
  text-align: center;
  margin-top: 1rem;
}

/* Category-specific accent colors */
#startup::before { background: linear-gradient(90deg, #FF6B35, #FF8E53); }
#small-business::before { background: linear-gradient(90deg, #4ECDC4, #44A08D); }
#medium-business::before { background: linear-gradient(90deg, #45B7D1, #96C93D); }
#non-profit::before { background: linear-gradient(90deg, #FF9A8B, #FF6B6B); }

/* Responsive adjustments for services matrix */
@media (max-width: 768px) {
  .services-matrix {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .business-category {
    padding: 1.5rem;
  }
  
  .service-option h4 {
    font-size: 1rem;
  }
  
  .service-pricing {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .business-category {
    padding: 1rem;
  }
  
  .category-header h3 {
    font-size: 1.3rem;
  }
  
  .service-option {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .founder-led-badge {
    font-size: 1rem;
    padding: 10px 15px;
    margin: 10px 15px;
  }
  
  .guarantee-banner {
    font-size: 1.1rem;
    padding: 15px;
    margin: 0 15px 25px 15px;
  }
  
  .enterprise-contact {
    margin: 15px 10px;
  }
}

@media (max-width: 600px) {
  .founder-led-badge {
    font-size: 0.9rem;
  }
  
  .guarantee-banner {
    font-size: 1rem;
  }
}