/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.scale-in {
  animation: scaleIn 0.6s ease-out forwards;
  opacity: 0;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

/* Stagger animations */
.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in-up:nth-child(5) {
  animation-delay: 0.5s;
}
.fade-in-up:nth-child(6) {
  animation-delay: 0.6s;
}
.fade-in-up:nth-child(7) {
  animation-delay: 0.7s;
}

.fade-in-down:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-down:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-down:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-down:nth-child(4) {
  animation-delay: 0.4s;
}

/* Hero Section */
.hero-section {
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-image {
  background: linear-gradient(135deg, #007bff15 0%, #0dcaf015 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  border-color: #007bff !important;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(0, 123, 255, 0.2);
  transform: scale(1.1);
}

/* Portfolio Cards */
.portfolio-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15) !important;
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Filter Buttons */
.filter-btn {
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.filter-btn.active {
  animation: pulse 1s ease-in-out infinite;
}

/* Team Cards */
.team-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15) !important;
}

.team-image-wrapper {
  overflow: hidden;
}

.team-image {
  transition: transform 0.4s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

/* Contact Cards */
.contact-card {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 255, 0.15) !important;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(0, 123, 255, 0.2);
  animation: glow 1.5s ease-in-out infinite;
}

/* Hover Effects */
.hover-primary:hover {
  color: #007bff !important;
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* Sections */
section {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-image {
    min-height: 300px;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.8rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    margin-bottom: 20px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}


:root {
    --primary-color: rgb(3, 98, 161);
    --secondary-color: #00d2ff; /* Turquoise from your logo gradient */
    --bg-light: #f8f9fa;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
}

.auth-bg {
    /* Gradient Background matching the LoopNexio identity */
    background: radial-gradient(circle at top right, var(--secondary-color), transparent),
                radial-gradient(circle at bottom left, var(--primary-color), transparent);
    background-color: #f0f4f8;
}

.auth-card {
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(3, 98, 161, 0.3);
}

.color-primary { color: var(--primary-color); }
.color-secondary { color: var(--primary-color); font-weight: 600; }

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(3, 98, 161, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: #024b7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 98, 161, 0.2);
}

.cursor-pointer { cursor: pointer; }
/* Sidebar Styles */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.content-wrapper {
    margin-left: 280px;
    min-height: 100vh;
}

.list-group-item {
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px !important;
    margin-bottom: 5px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
}

.list-group-item:hover, .list-group-item.active {
    background-color: rgba(3, 98, 161, 0.1) !important;
    color: var(--primary-color) !important;
}

.brand-logo.sm { width: 40px; height: 40px; font-size: 1rem; }

/* Stat Cards */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-primary-light { background-color: rgba(3, 98, 161, 0.1); }
.text-primary { color: var(--primary-color) !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .content-wrapper { margin-left: 0; }
}
.portfolio-card {
    transition: transform 0.3s ease, border 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--primary-color) !important;
}

.form-select-lg {
    font-size: 1.1rem;
    font-weight: 600;
}
/* Container for the Portfolio Grid */
#portfolioList {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Consistent spacing between cards */
}

/* Portfolio Card Styling for a Perfect Fit */
.portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row have the same height */
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
}

.portfolio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(3, 98, 161, 0.1);
    transform: translateY(-4px);
}

.portfolio-card img {
    height: 180px;
    object-fit: cover; /* Prevents image stretching */
    border-bottom: 1px solid #f0f0f0;
}

/* Specific button style from your brand colors */
.btn-style-select {
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 8px 16px;
}

.btn-style-select:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Right Side Sticky Form Logic */
.requirements-card {
    position: sticky;
    top: 20px; /* Keeps the form visible while scrolling through portfolio items */
    border-radius: 16px;
    background: #ffffff;
}
/* --- GLOBAL THEME SYNC --- */
:root {
    --loopnexio-blue: rgb(3, 98, 161);
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --border-color: #eef2f7;
}

/* --- MY ORDERS PAGE STYLES --- */
/* Status Badges - Matches Dashboard */
.badge-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-in-progress {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-active {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.order-table-card {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* --- PAYMENTS PAGE STYLES --- */
.billing-card-premium {
    background: linear-gradient(135deg, var(--loopnexio-blue) 0%, #024b7a 100%);
    color: white;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Decorative glass effect for billing card */
.billing-card-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.invoice-item {
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.invoice-item:hover {
    background-color: #f8f9fa;
    border-left: 3px solid var(--loopnexio-blue);
}

/* --- PROFILE PAGE STYLES --- */
.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-section-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--loopnexio-blue);
}

/* Form Styling - Matches Project Requirements */
.form-control-profile {
    border: 1.5px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-control-profile:focus {
    border-color: var(--loopnexio-blue);
    box-shadow: none;
}