/* Base & CSS Variables */
:root {
  --bg-color: #0d0d0d;
  --text-color: #ffffff;
  --text-muted: #a1a1a1;
  --card-bg: #161616;
  --border-color: #262626;
  --accent-purple: #6366f1;
  --font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --nav-height: 80px;
}

body.light-theme {
  --bg-color: #ffffff;
  --text-color: #0d0d0d;
  --text-muted: #666666;
  --card-bg: #f5f5f7;
  --border-color: #e5e5e5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  transition:
    background-color 0.3s,
    color 0.3s;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: white;
}

/* Fixed Header / Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 60px;
  max-width: 1300px;
  height: var(--nav-height);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast {
  visibility: hidden;
  min-width: 280px;
  background-color: #0d0d0d;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px 20px;
  position: fixed;
  z-index: 1000;
  bottom: 30px;
  right: 30px;
  font-size: 0.95rem;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  transform: translateY(20px);
  border-left: 4px solid #3b82f6;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast.warning {
  border-left-color: #086bce;
}

.toast.success {
  border-left-color: #10b981;
}

.circle-icon {
  width: 22px;
  height: 22px;
  border: 5px solid var(--text-color);
  border-radius: 50%;
}

.img {
  width: 100%; /* Changed to 100% so images stay responsive within cards */
  max-width: 450px;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-outline {
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.btn-outline:hover {
  background-color: var(--card-bg);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
}

/* Common Section Layout & Precise Anchor Navigation Scroll-Offset */
.hero,
.section {
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 60px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(
    --nav-height
  ); /* Fixes section header being covered by navbar when navigating */
}

/* Floating Animation Keyframes */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Hero Section with Floating Effects */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-color);
  padding: 6px 16px 6px 6px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  cursor: pointer;
  align-self: flex-start;
  animation: float 5s ease-in-out infinite;
}

.pill-new {
  background-color: var(--accent-purple);
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.3s;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 580px;
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.6s;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 24px;
  width: 100%;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 12px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.placeholder-img {
  width: 100%;
  height: 200px;
  background-color: var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Contact Section & Info */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.company-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.company-info > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.info-item strong {
  color: var(--text-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

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

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Honeypot field: visually hidden but still present in the DOM/tab order-free,
   so real screen-reader/keyboard users never encounter it, only bots that
   auto-fill every input do. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  left: -9999px;
}

/* WhatsApp direct link in contact info */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color);
  font-weight: 600;
  width: fit-content;
  transition:
    color 0.2s,
    opacity 0.2s;
}

.whatsapp-link::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25d366;
  flex-shrink: 0;
}

.whatsapp-link:hover {
  color: var(--accent-purple);
  opacity: 0.9;
}

/* Delivery method checkboxes (Email / WhatsApp) in the contact form */
.delivery-choice {
  display: none;
}

.delivery-choice legend {
  padding: 0 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.delivery-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
}

.delivery-choice input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

@media (max-width: 480px) {
  .delivery-choice {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }

  .navbar {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section {
    min-height: auto;
    padding: calc(var(--nav-height) + 20px) 24px 60px;
    scroll-margin-top: 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* ===========================================================
   Developer Details Section Styling with Tags & Socials
   =========================================================== */
/* ===========================================================
   Developer Details Section (Using Your Custom CSS Variables)
   =========================================================== */

/* Section Layout */
#developers.section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
}

#developers h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}

/* Grid Layout with Medium Card Proportions */
.grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 310px));
  gap: 24px;
  width: 100%;
  justify-content: center;
}

/* Dark Card Container */
#developers .card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Medium Proportional Image Container */
#developers .img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
}

#developers .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Typography Inside Card */
#developers .card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2px;
}

#developers .role-title {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--accent-purple);
  margin-bottom: 10px;
  display: block;
}

#developers .card p {
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Skill Tags Container */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--accent-purple);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Social Icons Container */
.card-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.card-socials a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.card-socials a:hover {
  color: var(--text-color);
  border-color: var(--accent-purple);
}

.card-socials svg {
  width: 15px;
  height: 15px;
}
