/* ==================================================
   REMOTE HARDWARE PROTOTYPING LAB - MAIN STYLES
   ================================================== */

/* CSS VARIABLES - Color Palette */
:root {
  --primary-color: #8164d4;
  --primary-light: #9587ff;
  --primary-dark: #7148d8;
  
  --secondary-color: #00b8a6;
  --secondary-light: #41f3d7;
  --secondary-dark: #00a376;
  
  --accent-color: #ec6297;
  --accent-light: #ffd066;
  --accent-dark: #f53fb4;
  
  --neutral-color: #5a5f62;
  --neutral-light: #c5c9cb;
  --neutral-dark: #1b2424;
  
  --highlight-color: #63bfff;
  --highlight-light: #98ecf7;
  --highlight-dark: #0563ce;
  
  --background-light: #f8f9fa;
  --background-dark: #292f34;
  --text-primary: #212a2b;
  --text-secondary: #788283;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* GLOBAL TYPOGRAPHY */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.63rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.85rem; }
h4 { font-size: 1.58rem; }
h5 { font-size: 1.37rem; }
h6 { font-size: 1.17rem; }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.text-muted {
  color: var(--text-secondary) !important;
}

/* HEADER & NAVIGATION */
.navbar-brand {
  font-weight: 700;
  font-size: 1.57rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--highlight-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
    padding-top: 250px;
}

.hero-decorative {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: 20%;
  right: 10%;
  z-index: 1;
}

.hero-decorative::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  top: -50px;
  left: -50px;
}

/* SECTIONS */
.section {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-subtitle {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1.25rem;
}

.section-desc {
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

/* ABOUT SECTION */
.about-feature {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 7px 20px var(--shadow);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.about-feature:hover {
  transform: translateY(-5px);
}

.about-feature i {
  font-size: 2.64rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* SERVICES SECTION */
.services-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 7px 20px var(--shadow);
  text-align: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.services-item:hover {
  transform: translateY(-5px);
}

.services-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.63rem;
}

.services-price {
  font-size: 1.52rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1rem;
}

/* FEATURES SECTION */
.features-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.features-item:hover {
  transform: translateY(-5px);
}

.features-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* PRICE PLAN SECTION */
.priceplan-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 7px 20px var(--shadow);
  text-align: center;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  position: relative;
}

.priceplan-item:hover {
  transform: translateY(-5px);
}

.priceplan-item:nth-child(2) {
  border: 3px solid var(--primary-color);
}

.priceplan-item:nth-child(2)::before {
  content: 'Popular';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.priceplan-price {
  font-size: 2.60rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.priceplan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.priceplan-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.priceplan-features li i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* TEAM SECTION */
.team-member {
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 20px var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.56rem;
}

.team-member-role {
  color: var(--text-secondary);
  font-style: italic;
}

/* REVIEWS SECTION */
.reviews-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.reviews-item:hover {
  transform: translateY(-5px);
}

.reviews-text {
  font-style: italic;
  margin-bottom: 1.60rem;
  color: var(--text-secondary);
}

.reviews-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* CASE STUDY SECTION */
.casestudy-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 7px 20px var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.casestudy-item:hover {
  transform: translateY(-5px);
}

/* PROCESS SECTION */
.process-item {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.52rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* TIMELINE SECTION */
.timeline-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px var(--shadow);
  margin-bottom: 2rem;
  border-left: 6px solid var(--primary-color);
}

/* CAREER SECTION */
.career-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 9px 20px var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.career-item:hover {
  transform: translateY(-5px);
}

.career-role {
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.57rem;
}

/* CORE INFO SECTION */
.coreinfo-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 7px 20px var(--shadow);
  margin-bottom: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.coreinfo-item:hover {
  transform: translateY(-5px);
}

.coreinfo-item i {
  font-size: 2.61rem;
  color: var(--highlight-color);
  margin-bottom: 1rem;
}

/* CONTACT FORM */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 8px 20px var(--shadow);
}

.form-control {
  border: 2px solid #d7d9dc;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(84, 89, 250, 0.25);
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.contact-info {
  background: var(--background-light);
  border-radius: 12px;
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.70rem;
}

.contact-info-item i {
  font-size: 1.57rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 30px;
}

/* BLOG SECTION */
.blog-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px var(--shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 2rem;
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.blog-link:hover {
  text-decoration: underline;
}

/* FAQ SECTION */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 9px 20px var(--shadow);
  margin-bottom: 1.56rem;
}

.faq-question {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-secondary);
}

/* GALLERY SECTION */
.gallery-item {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* FOOTER */
.footer {
  background: var(--neutral-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer a {
  color: #aec2d5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid #373f43;
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: #a0afbf;
}

/* UTILITY CLASSES */
.section-bg {
  background: var(--background-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* PERFORMANCE OPTIMIZATIONS */
* {
  box-sizing: border-box;
}

.services-item,
.features-item,
.priceplan-item,
.team-member,
.reviews-item,
.casestudy-item,
.career-item,
.coreinfo-item,
.about-feature,
.timeline-item,
.faq-item,
.blog-item,
.gallery-item {
  will-change: transform;
  backface-visibility: hidden;
}

/* ANIMATION SUPPORT */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .services-item,
  .features-item,
  .priceplan-item,
  .team-member,
  .reviews-item,
  .casestudy-item,
  .career-item,
  .coreinfo-item,
  .about-feature,
  .timeline-item,
  .faq-item,
  .blog-item,
  .gallery-item {
    will-change: auto;
  }
}

/* BREADCRUMBS */
.breadcrumbs {
  padding: 1rem 0;
}

.breadcrumb-image {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.breadcrumb-image:hover {
  opacity: 1;
}

/* IMAGE FALLBACK HANDLING */
img {
  max-width: 100%;
  height: auto;
  background: var(--background-light);
  border-radius: 4px;
}

img[src*=".webp"] {
  background-image: linear-gradient(45deg, 
    var(--background-light) 25%, transparent 25%, transparent 75%, 
    var(--background-light) 75%, var(--background-light)),
    linear-gradient(45deg, 
    var(--background-light) 25%, transparent 25%, transparent 75%, 
    var(--background-light) 75%, var(--background-light));
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  min-height: 100px;
  min-width: 100px;
  display: block;
  position: relative;
  object-fit: cover;
  will-change: transform;
}

img[src*=".webp"]::after {
  content: "ð·";
  font-size: 2rem;
  opacity: 0.3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* IMAGE LOADING STATES */
img.loading {
  opacity: 0.5;
  animation: pulse 1.5s ease-in-out infinite;
}

img.loaded {
  opacity: 1;
  animation: none;
}

img.image-error {
  opacity: 0.3;
  filter: grayscale(100%);
}

img.image-error::after {
  content: "â ï¸ Image not available";
  font-size: 0.90rem;
  color: var(--text-secondary);
  background: var(--background-light);
  padding: 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* SPACE PAGE */
#space {
  min-height: 60vh;
  background: var(--background-light);
  border-radius: 12px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#space::after {
  content: "Space Content Area";
  font-size: 1.59rem;
  color: var(--text-secondary);
  opacity: 0.5;
  text-align: center;
} 


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
