/* ====================================
   ONLINE CODE REVIEW & MENTORING PLATFORM
   Main Stylesheet - Bootstrap 5 Integration
   ==================================== */

/* Bootstrap 5 CDN Integration */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties - Color Palette */
:root {
  /* Primary Colors */
  --primary-blue: #256cda;
  --primary-purple: #6430e9;
  --primary-teal: #11a7ba;
  --primary-emerald: #04987a;
  --primary-orange: #d45300;
  
  /* Light Shades */
  --light-blue: #c3cfe7;
  --light-purple: #f4edff;
  --light-teal: #bce3e5;
  --light-emerald: #b8f1cf;
  --light-orange: #ffe0a5;
  
  /* Dark Shades */
  --dark-blue: #2d51a6;
  --dark-purple: #612c9d;
  --dark-teal: #147884;
  --dark-emerald: #00906f;
  --dark-orange: #ad430a;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #eef6fe;
  --gray-300: #dde2eb;
  --gray-600: #5d6576;
  --gray-800: #1b2a38;
  --gray-900: #181c2e;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  --gradient-secondary: linear-gradient(135deg, var(--primary-teal), var(--primary-emerald));
  --gradient-accent: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
  
  /* Conservative Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); }
h6 { font-size: var(--fs-sm); }

p {
  margin-bottom: 1rem;
  font-size: var(--fs-base);
}

/* Header & Navigation */
.navbar {
  background: var(--white);
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: var(--fs-lg);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-600);
  margin: 0 1rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue);
}

/* Bootstrap Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 116, 231, 0.25);
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.navbar-toggler.active .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section h1 {
    padding-top: 150px;
}

.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.1;
  top: -50%;
  left: -50%;
}

.hero-content {
  padding-top: 50px !important;
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--white);
  font-size: var(--fs-4xl);
  font-weight: 700;
  margin-bottom: 1.57rem;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-base);
  margin-bottom: 2rem;
}

/* Decorative Shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Section Styles */
.section {
  padding: var(--section-padding);
}

.section-title {
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--primary-blue);
  text-align: center;
  font-size: var(--fs-lg);
  margin-bottom: 0.70rem;
}

.section-desc {
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

/* Services Section */
.services-item {
  margin-bottom: 2rem;
}

.services-item .card-img-top {
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.services-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.services-features {
  list-style: none;
  padding: 0;
}

.services-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.services-features li:last-child {
  border-bottom: none;
}

.services-features li i {
  color: var(--primary-emerald);
  margin-right: 0.5rem;
}

/* Team Section */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 5px solid var(--light-blue);
}

.team-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.65rem;
}

.team-role {
  color: var(--primary-blue);
  font-size: var(--fs-sm);
}

/* Reviews/Testimonials */
.reviews-slider {
  position: relative;
}

.review-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.review-author {
  font-weight: 600;
  color: var(--gray-900);
}

/* FAQ Section */
.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 11px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.faq-question:hover {
  background: var(--light-blue);
}

.faq-question.active {
  background: var(--light-blue);
  border-color: var(--primary-blue);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.61rem;
  font-weight: bold;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 1rem;
  border-left: 3px solid var(--primary-blue);
  background: var(--white);
  margin-top: 0.60rem;
  border-radius: 0 8px 8px 0;
  display: none;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Contact Form */
.contact-form {
  background: var(--gray-50);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  transition: border-color 0.3s ease;
  width: 100%;
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: none;
  outline: none;
}

.form-control::placeholder {
  color: var(--gray-600);
  opacity: 0.7;
}

/* Form Check Elements */
.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.20rem;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  margin-left: -1.5em;
  vertical-align: top;
  background-color: var(--white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid var(--gray-300);
  appearance: none;
  color-adjust: exact;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  border-color: var(--primary-blue);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(43, 100, 221, 0.25);
}

.form-check-label {
  color: var(--gray-700);
  cursor: pointer;
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 600;
  line-height: 1.5;
  color: var(--gray-900);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: var(--fs-base);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 72, 234, 0.30);
  color: var(--white);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(17, 79, 216, 0.50);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 10px rgba(24, 78, 220, 0.30);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer h5 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-blue);
}

.footer-copyright {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--gray-400);
}

/* Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb-item img {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

/* Blog Section */
.blog-item {
  margin-bottom: 2rem;
}

.blog-excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Price Plan */
.priceplan-item {
  position: relative;
  margin-bottom: 2rem;
}

.priceplan-item.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-blue);
}

.priceplan-price {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 1rem;
}

.priceplan-features {
  list-style: none;
  padding: 0;
}

.priceplan-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.priceplan-features li i {
  color: var(--primary-emerald);
  margin-right: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(61, 105, 240, 0.30);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 115, 244, 0.40);
}

.back-to-top i {
  font-size: 1.26rem;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Focus Styles for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  z-index: 100000;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Link Styles */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* List Styles */
.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Bootstrap Grid Improvements */
.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-md, .col-lg, .col-xl {
  padding-left: 15px;
  padding-right: 15px;
}

/* Text Alignment Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin and Padding Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.38rem; }
.mb-2 { margin-bottom: 0.58rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.60rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.44rem; }
.mt-2 { margin-top: 0.70rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.68rem; }
.mt-5 { margin-top: 3rem; }

/* Background Utilities */
.bg-light { background-color: var(--gray-50) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-primary { background-color: var(--primary-blue) !important; }

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .back-to-top,
  .progress-bar {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto !important;
    page-break-after: always;
  }
} 


/* Team Social Links - Rounded Style */
.team-social-links {
    margin-top: 20px;
    padding: 15px 0;
}

.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.facebook-link:hover {
    background: linear-gradient(135deg, #0d6efd, #1877f2);
}

.linkedin-link {
    background: linear-gradient(135deg, #0a66c2, #2196f3);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, #084a8a, #0a66c2);
}

.x-link {
    background: linear-gradient(135deg, #000000, #333333);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 20px;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #000000);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
