:root {
  --bg-primary: #f9f9f9;
  --bg-secondary: #fff;
  --bg-nav: #34495e;
  --bg-header: #2c3e50;
  --bg-intro: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  --bg-contact: #eee;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-light: #495057;
  --accent-color: #3498db;
  --border-color: #e9ecef;
  --shadow: rgba(0,0,0,0.08);
  --shadow-hover: rgba(0,0,0,0.12);
  /* Drawer ribbon sizing */
  --ribbon-width: 56px;      /* visual width of blue ribbon */
  --ribbon-overlap: 1px;     /* overlap to cover card border */
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-nav: #2d2d2d;
  --bg-header: #1e1e1e;
  --bg-intro: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
  --bg-contact: #2a2a2a;
  --text-primary: #e5e5e5;
  --text-secondary: #b0b0b0;
  --text-light: #d0d0d0;
  --accent-color: #5dade2;
  --border-color: #404040;
  --shadow: rgba(0,0,0,0.3);
  --shadow-hover: rgba(0,0,0,0.4);
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  padding: 4rem 2rem 2rem 2rem;
  background: var(--bg-header);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.header-controls {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 1010;
}

#menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 0;
}

#menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.menu-icon {
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  font-weight: normal;
}

#menu-toggle.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

#menu-toggle.active .menu-icon {
  color: #fff;
}

.theme-toggle {
  position: relative;
}

.floating-controls {
  position: fixed;
  top: 1rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.floating-controls.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-controls #floating-theme-toggle,
.floating-controls #floating-menu-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 15px var(--shadow);
}

/* Make the floating theme toggle circular like the header toggle */
.floating-controls #floating-theme-toggle {
  border-radius: 50%;
}

.floating-controls #floating-theme-toggle:hover,
.floating-controls #floating-menu-toggle:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.floating-controls #floating-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 50px;
  height: 50px;
}

.floating-controls #floating-theme-toggle i {
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.floating-controls #floating-theme-toggle:hover i {
  color: #fff;
}

.floating-controls .menu-icon {
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  font-weight: normal;
}

.floating-controls #floating-menu-toggle:hover .menu-icon {
  color: #fff;
}

.floating-controls #floating-menu-toggle.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.floating-controls #floating-menu-toggle.active .menu-icon {
  color: #fff;
}

#theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

#theme-icon {
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100vh;
  background: var(--bg-nav);
  border-left: 1px solid var(--border-color);
  box-shadow: -5px 0 15px var(--shadow);
  transition: right 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.nav-menu.active {
  right: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 5rem 2rem 2rem 2rem;
}

.nav-list li {
  margin-bottom: 2rem;
}

.nav-link {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-link:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateX(10px);
}

.nav-link.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

/* Overlay for mobile */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

html {
  scroll-behavior: smooth;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

header h1 {
  margin: 0 0 1rem 0;
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

/* Removed header micro-tagline */

header > p:last-child {
  font-size: 1.3rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* Removed old bottom-centered tagline */

.intro {
  padding: 3rem 2rem;
  background: var(--bg-intro);
}

.intro-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.intro > .intro-content > p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.service-item {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.service-item h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.service-item h3 i {
  color: var(--accent-color);
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.approach {
  font-size: 1.1rem;
  line-height: 1.7;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 2.5rem;
  border-left: 5px solid #3498db;
  border-radius: 8px;
  text-align: left;
  max-width: 900px;
  margin: 2.5rem auto 0 auto;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  color: #495057;
  font-weight: 500;
}

.team-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.team-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.team-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.team-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  margin: 0 auto;
  max-width: 1200px;
  flex-wrap: nowrap;
}

.member {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
}

.member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 4px solid var(--border-color);
}

.member h3 {
  margin: 0.5rem 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.member p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.linkedin {
  margin-top: 1rem;
}

.linkedin a {
  color: var(--accent-color);
  font-size: 1.5rem;
  text-decoration: none;
}

.contact {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.contact-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.contact-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input, .contact textarea, .contact button {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.contact textarea {
  resize: none;
  min-height: 120px;
}

.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact button {
  background: var(--accent-color);
  color: #fff;
  cursor: pointer;
  border: none;
}

.contact button:hover {
  background: var(--text-primary);
}

/* Form validation styles */
.contact input.error, .contact textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.contact input.valid, .contact textarea.valid {
  border-color: var(--accent-color);
}

.form-errors {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid #e74c3c;
  border-radius: 4px;
  color: #e74c3c;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.5rem;
}

.form-errors li {
  margin-bottom: 0.5rem;
}
/* Inline form success message */
.form-success {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #e6ffed;
  color: #046c4e;
  border: 1px solid #b7ebc6;
}

/* stack only on small screens */
@media (max-width: 900px) {
  .team {
    flex-wrap: wrap;
  }
  .member {
    flex: 100%;
    max-width: none;
  }
}

/* Technologies Section */
.technologies-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.tech-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.tech-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.tech-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px var(--shadow);
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
  border-color: var(--accent-color);
}

.tech-item i {
  font-size: 2.2rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.tech-item:hover i {
  transform: scale(1.05);
  color: var(--text-primary);
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
  }
  
  .tech-item {
    padding: 1.5rem 0.8rem;
  }
  
  .tech-item i {
    font-size: 2.5rem;
  }
  
  .tech-item span {
    font-size: 0.9rem;
  }
}

/* removed legacy floating PDF download button styles (.pdf-download-btn) */

/* Floating Checklist Popup - clean drawer style */
.floating-checklist-popup {
  position: fixed;
  bottom: 20px;
  left: 0; /* attach to left edge */
  background: var(--bg-primary);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 1.25rem 1.5rem; /* base padding; right gets extra via ribbon offset */
  max-width: 320px;
  transition: transform 0.45s cubic-bezier(.77,0,.18,1), opacity 0.3s ease;
  z-index: 990;
  border: 1px solid var(--border-color);
  cursor: pointer;
  overflow: visible;
  /* Closed (default) leaves exactly the ribbon visible without extra white sliver */
  transform: translateX(calc(-100% + (var(--ribbon-width) - var(--ribbon-overlap))));
}

.floating-checklist-popup.show {
  transform: translateX(0);
  cursor: default;
}

.popup-icon { color: var(--accent-color); font-size: 2rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: center; }

.popup-content h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.popup-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.popup-download-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  transition: all 0.3s ease;
}

.popup-download-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* Dark theme adjustments for popup */
[data-theme="dark"] .floating-checklist-popup {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .floating-checklist-popup {
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* FREE tab removed */

/* Popup header and close button */
.popup-header { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.popup-close {
  position: absolute; /* positioned against the popup container (fixed) */
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.popup-close:hover { color: var(--text-primary); }

/* Center popup content */
.popup-content { text-align: center; }

/* Internal vertical ribbon on the right with FREE (mirrored for left-docked drawer) */
.popup-ribbon {
  position: absolute;
  right: -1px; /* cover the card border for seamless edge */
  top: 0;
  bottom: 0;
  width: 56px; /* ribbon width */
  background: var(--accent-color);
  color: #fff;
  border-radius: 0 12px 12px 0; /* match popup corners when docked left */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  box-shadow: 0 6px 20px var(--shadow-hover);
  pointer-events: none; /* not clickable; popup click still toggles */
}

/* Ensure content doesn’t overlap ribbon */
.floating-checklist-popup .popup-header,
.floating-checklist-popup .popup-content {
  padding-right: calc(var(--ribbon-width) + 8px); /* ribbon width + breathing room on the right */
}

@media (max-width: 768px) {
  .floating-checklist-popup { transform: translateX(calc(-100% + (var(--ribbon-width) - var(--ribbon-overlap)))); }
  .floating-checklist-popup.show { transform: translateX(0); }
}

/* Animation for notifications */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* FAQ Section */
.faq-section {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.faq-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.faq-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.faq-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px var(--shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.faq-question i {
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* removed legacy CTA styles (.cta-container, .cta-button) */

@media (max-width: 768px) {
  /* keep FAQ spacing adjustments */
  .faq-question { padding: 1rem 1.5rem; }
  .faq-item.active .faq-answer { padding: 0 1.5rem 1rem 1.5rem; }
}

/* Footer Styles */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  position: relative; /* allow absolute-positioned tagline */
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-link i {
  font-size: 1.2rem;
}

.footer-tagline {
  color: var(--text-secondary);
  opacity: 0.55;
  font-size: 0.8rem; /* smaller than the rest */
  font-style: italic; /* quote-like */
  position: absolute;
  right: 1rem; /* towards the right */
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.footer-copyright p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin: 0;
}



@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-tagline {
    position: static;
    text-align: center;
    margin-top: 0.25rem;
    order: 3;
  }
}