/* ========================================
   Component Styles
   ======================================== */

/* Navigation */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.sticky {
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}


.navbar.sticky .container {
  min-height: 66px;
  padding: 0.55rem 24px;
}



.logo:hover {
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
  margin-left: auto;
  order: 2;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  padding: 0.6rem 0;
  position: relative;
}

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

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary).active::after {
  width: 100%;
}

.nav-links .btn-primary {
  min-height: 42px;
  padding: 9px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  order: 4;
}

.mobile-menu-toggle:hover {
  background: rgba(var(--primary-rgb), 0.08);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition-smooth);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--primary-color);
  position: relative;
  transition: var(--transition-smooth);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: scale(1.08) rotate(3deg);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.service-title {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 700;
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  text-align: left;
  margin-top: 1.5rem;
  width: 100%;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Portfolio Grid */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  min-height: 44px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-speed);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(49, 46, 129, 0.94) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed);
  padding: 2rem;
  color: white;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  color: white;
}

.portfolio-overlay p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.view-project-btn {
  background: white;
  color: var(--primary-color);
  min-height: 44px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.view-project-btn:hover {
  transform: scale(1.05);
}

/* Contact Form */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-md);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
  outline: none;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error-color);
  background: rgba(239, 68, 68, 0.02);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group .error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
  min-height: 1.2em;
  padding: 0;
  background: transparent;
  border: 0;
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
}

.contact-form button[type="submit"]:disabled,
.newsletter-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Testimonials Carousel */
.testimonials-section {
  background: var(--bg-gray);
}

.testimonials-carousel {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  background: var(--bg-card);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-md);
  text-align: center;
  position: relative;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-text::before {
  content: '“';
  font-family: var(--font-headings);
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.15;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.testimonial-author img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: var(--box-shadow);
}

.author-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 700;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.carousel-controls button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--text-dark);
  box-shadow: var(--box-shadow);
}

.carousel-controls button:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--box-shadow-glow);
  transform: translateY(-2px);
}

.carousel-dots {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0;
}

.dot.active {
  background: var(--primary-color);
  width: 28px;
  box-shadow: var(--box-shadow-glow);
}

/* Footer */
.footer {
  background: #080c17;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed);
}

.footer-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-speed);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
}

.newsletter-form button {
  min-height: 44px;
  padding: 10px 18px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-speed);
}

.newsletter-form button:hover {
  background: var(--secondary-color);
}

.newsletter-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.newsletter-status[data-type="success"] {
  color: #86efac;
}

.newsletter-status[data-type="error"] {
  color: #fca5a5;
}

main .newsletter-status[data-type="success"] {
  color: #dcfce7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  padding: 0.25rem 0;
  display: inline-block;
}

/* Underline effect on hover */
.legal-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-links a:hover {
  color: var(--primary);
}

.legal-links a:hover::after {
  width: 100%;
}

.legal-links a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--primary);
}

/* Visual separator - using span.separator in HTML */
.legal-links .separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 1rem;
  font-weight: 300;
  display: inline-block;
  line-height: 1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--box-shadow-lg);
  animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.75rem 2.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition-smooth);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-dark);
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.25);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.25rem;
}

.modal-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
}

.modal-body > p {
  padding: 0.75rem 0;
  margin: 0;
  border-bottom: 1px solid var(--border-color);
}

.modal-body > p:last-of-type {
  border-bottom: 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-speed);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin-bottom: 0.5rem;
}

.team-info .role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-info .bio {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  width: 35px;
  height: 35px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition-speed);
}

.team-social a:hover {
  background: var(--primary-color);
  color: white;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all var(--transition-speed);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.blog-content h3 {
  margin-bottom: 0.75rem;
}

.blog-content p {
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  gap: 0.75rem;
}

/* Job Listings */
.job-listings {
  max-width: 800px;
  margin: 0 auto;
}

.job-card {
  background: var(--bg-card);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-header h3 {
  margin: 0;
}

.job-type {
  display: inline-block;
  padding: 5px 15px;
  background: var(--bg-gray);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.job-card p {
  margin-bottom: 1rem;
}

.job-requirements {
  margin-top: 1rem;
}

.job-requirements h4 {
  margin-bottom: 0.5rem;
}

.job-requirements ul {
  list-style-position: inside;
  color: var(--text-light);
}

/* Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.feature-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) translateY(-4px);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Technologies Section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
  align-items: center;
}

.tech-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.tech-icon {
  font-size: 3.25rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

.tech-item:hover .tech-icon {
  transform: scale(1.15) rotate(8deg);
}

.tech-item p {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-headings);
  color: var(--text-dark);
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.75rem;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
}

.contact-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--text-dark);
  margin-left: 0;
  margin-right: 0rem;
  box-shadow: var(--box-shadow);
  position: relative;
  order: 3;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.25);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.theme-toggle svg {
  stroke: currentColor;
}

/* Icon visibility based on theme */
.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Fallback if prefers dark mode without data-theme attribute */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun-icon {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon-icon {
    display: none;
  }
}

/* SVG Icon adjustments for Lucide */
.service-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
  transition: var(--transition-smooth);
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.75px;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon svg {
  color: var(--secondary-color);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
}

.social-links svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

.team-social svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.tech-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5px;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.tech-item:hover .tech-icon svg {
  color: var(--secondary-color);
}

/* Shared page polish */
body[data-page="privacy"] main > section > .container > div,
body[data-page="terms"] main > section > .container > div {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color);
}

body[data-page="privacy"] main li,
body[data-page="terms"] main li {
  color: var(--text-light) !important;
  margin-bottom: 0.35rem;
}

.service-card,
.feature-card,
.contact-card,
.tech-item,
.team-member,
.blog-card,
.job-card,
.portfolio-card,
.testimonial-content,
.contact-form {
  isolation: isolate; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform-origin: center bottom;
}

.service-card::after,
.feature-card::after,
.contact-card::after {
  content: '';
  position: absolute;
  inset: auto -55px -65px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.feature-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.read-more {
  min-height: 44px;
  padding: 8px 0;
}
