/* ===== MAIN CSS - Remote IT Helpdesk for Seniors ===== */

/* Color Variables - Pastel High-Contrast Palette */
:root {
  --primary-blue: #3b97ee;
  --primary-green: #78d535;
  --primary-purple: #960df4;
  --primary-orange: #f8a606;
  --primary-red: #e6ab21;
  
  /* Light/Dark Shades */
  --light-blue: #d4eaff;
  --dark-blue: #286283;
  --light-green: #F0FFED;
  --dark-green: #6fb60c;
  --light-purple: #f1dbff;
  --dark-purple: #7012ae;
  --light-orange: #fff2e6;
  --dark-orange: #dc830b;
  --light-red: #ffede2;
  --dark-red: #b78415;
  
  /* Neutral Colors */
  --text-dark: #374357;
  --text-light: #718685;
  --bg-light: #F8F9FA;
  --white: #FFFFFF;
}

/* Global Reset and Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header Styling */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-green) 100%);
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
    padding-top: 225px;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Section Headers */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* About Section */
.about-section {
  background-color: var(--bg-light);
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Services Section */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 1rem;
}

/* Price Plan Section */
.price-card {
  background: var(--white);
  border: 2px solid var(--light-blue);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.price-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 1rem 0;
}

/* Team Section */
.team-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--light-blue);
}

/* Reviews Section */
.review-card {
  background: var(--white);
  border-left: 4px solid var(--primary-green);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.review-author {
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 1rem;
}

/* FAQ Section */
.faq-card {
  background: var(--white);
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--text-light);
}

/* Process Section */
.process-step {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  position: relative;
}

.step-number {
  background: var(--primary-blue);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--light-blue);
}

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-control {
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(80, 145, 221, 0.25);
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer a {
  color: var(--light-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--white);
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Decorative Elements */
.decorative-shape {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: var(--primary-purple);
  border-radius: 50%;
  top: 10%;
  right: 10%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: var(--primary-orange);
  border-radius: 50%;
  bottom: 20%;
  left: 15%;
}

/* Timeline Section */
.timeline-item {
  background: var(--white);
  border-left: 4px solid var(--primary-purple);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 1rem;
  width: 12px;
  height: 12px;
  background: var(--primary-purple);
  border-radius: 50%;
}

/* Career Section */
.career-card {
  background: var(--white);
  border: 1px solid var(--light-purple);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.3s ease;
}

.career-card:hover {
  border-color: var(--primary-purple);
}

/* Case Study Section */
.case-study-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
}

/* Core Info Section */
.coreinfo-card {
  background: var(--white);
  border: 2px solid var(--light-orange);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.coreinfo-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-3px);
}

/* Blog Section */
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card-body {
  padding: 1.5rem;
}

/* Breadcrumb */
.breadcrumb-section {
  padding: 1rem 0;
  background-color: var(--bg-light);
}

.breadcrumb-img {
  width: 100%;
  max-width: 100px;
  height: auto;
}

/* Utilities */
.text-primary-blue { color: var(--primary-blue); }
.text-primary-green { color: var(--primary-green); }
.text-primary-purple { color: var(--primary-purple); }
.text-primary-orange { color: var(--primary-orange); }
.text-primary-red { color: var(--primary-red); }

.bg-primary-blue { background-color: var(--primary-blue); }
.bg-primary-green { background-color: var(--primary-green); }
.bg-primary-purple { background-color: var(--primary-purple); }
.bg-primary-orange { background-color: var(--primary-orange); }
.bg-primary-red { background-color: var(--primary-red); }

.bg-light-blue { background-color: var(--light-blue); }
.bg-light-green { background-color: var(--light-green); }
.bg-light-purple { background-color: var(--light-purple); }
.bg-light-orange { background-color: var(--light-orange); }
.bg-light-red { background-color: var(--light-red); } 


/* Team Social Links - Retro Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}

.social-link:hover {
    transform: translateX(3px) translateY(-3px);
    box-shadow: -3px 3px 0px currentColor;
    color: white;
}

.facebook-link {
    border-color: #1877f2;
    background: #1877f2;
}

.facebook-link:hover {
    background: transparent;
    color: #1877f2;
}

.linkedin-link {
    border-color: #0a66c2;
    background: #0a66c2;
}

.linkedin-link:hover {
    background: transparent;
    color: #0a66c2;
}

.instagram-link {
    border-color: #e4405f;
    background: #e4405f;
}

.instagram-link:hover {
    background: transparent;
    color: #e4405f;
}

.x-link {
    border-color: #000000;
    background: #000000;
    position: relative;
}

.x-link::after {
    content: 'X';
    font-weight: bold;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: transparent;
    color: #000000;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Image Loading Styles */
img {
    /* Prevent layout shift during loading */
    min-height: 1px;
    min-width: 1px;
    display: block;
}

/* Prevent animation flicker on images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Prevent transforms on images to fix rendering issues */
[data-sal="fade"] img,
[data-sal="slide-up"] img,
[data-sal="slide-down"] img,
[data-sal="slide-left"] img,
[data-sal="slide-right"] img,
[data-sal="zoom-in"] img,
[data-sal="zoom-out"] img {
    transform: none !important;
}

/* Fix for webp fallback */
.no-webp-support img[src$=".webp"],
.no-webp-support img[src$=".jpeg"],
.no-webp-support img[src$=".png"] {
    /* Ensure fallback images display properly */
    display: block;
    min-height: 1px;
}

/* Ensure lightbox images load properly */
.lightboxOverlay,
.lightbox {
    z-index: 9999;
}

.lightbox .lb-image {
    /* Fix for lightbox images */
    max-width: none;
    border-radius: 3px;
}

/* Image placeholder while loading */
.img-fluid:not(.loaded) {
    background-color: #f0f0f0;
    background-image: linear-gradient(
        to right,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: placeholderShimmer 1.5s linear infinite;
}

@keyframes placeholderShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Fix for image animations that might cause rendering issues */
img {
    backface-visibility: hidden;
}

/* Ensure Sal.js doesn't break image rendering */
body.sal-disabled [data-sal] {
    opacity: 1 !important;
    transform: none !important;
}

/* Fix team photos */
.team-photo {
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
}
