/* Custom CSS for EmployeeHub */

:root {
  --primary-color: #2563eb;
  --secondary-color: #f59e0b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
}

/* Global Styles */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.3);
  min-height: 100vh;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: #fff;
}

.about-image {
  position: relative;
  padding: 20px;
}

.image-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.image-overlay {
  background: rgba(37, 99, 235, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(3px);
}

.about-image:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.about-image:hover .overlay-content {
  transform: translateY(0);
}

.image-frame::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--primary-color);
  z-index: -1;
  border-radius: 1rem;
}

.experience-badge {
  position: absolute;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(135deg, var(--primary-color), #1e40af);
  color: white;
  padding: 25px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  transform: rotate(-5deg);
  transition: all 0.3s ease;
  border: 3px solid white;
  min-width: 140px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.experience-badge:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.experience-badge .number {
  display: block;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #fff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.experience-badge .text {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.animate-up:nth-child(2) { animation-delay: 0.2s; }
.animate-up:nth-child(3) { animation-delay: 0.4s; }
.animate-up:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.founder-name-container {
  margin: 20px 0;
  perspective: 1000px;
}

.founder-name {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  position: relative;
  display: inline-block;
}

.founder-name .highlight-text {
  background: linear-gradient(45deg, 
    var(--primary-color) 0%, 
    #4f46e5 25%, 
    var(--secondary-color) 50%, 
    #4f46e5 75%, 
    var(--primary-color) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s ease infinite, popIn 1s ease-out;
  padding: 10px 0;
  display: inline-block;
  position: relative;
}

.founder-name .highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.founder-name:hover .highlight-text::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes popIn {
  0% { 
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% { 
    transform: scale(1);
    opacity: 1;
  }
}

.typed-text {
  font-size: 1.5rem;
  margin-top: 15px;
  display: block;
}

.typed-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.achievement-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.business-focus {
  border-left: 4px solid var(--primary-color);
}

.business-focus li {
  transition: transform 0.3s ease;
}

.business-focus li:hover {
  transform: translateX(5px);
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Floating Cards Animation */
.floating-cards {
  position: relative;
  height: 300px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  color: white;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.card-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.card-2 {
  top: 80px;
  right: 30px;
  animation-delay: 2s;
}

.card-3 {
  bottom: 40px;
  left: 50px;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
  font-size: 3rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Step Items */
.step-item {
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

/* Login/Signup Pages */
.login-page,
.signup-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.login-card,
.signup-card {
  border-radius: 20px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.login-icon i,
.signup-icon i {
  font-size: 3rem;
  color: var(--primary-color);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-pills .nav-link {
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.input-group-text {
  background: var(--light-color);
  border: 1px solid #e2e8f0;
}

.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Dashboard Styles */
.dashboard-page {
  background-color: #f8fafc;
}

.sidebar {
  min-height: calc(100vh - 56px);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
  color: #64748b;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 5px 10px;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateX(5px);
}

.content-section {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Card Hover Effects */
.card {
  border-radius: 15px;
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-marker {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e2e8f0;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animations */
.animate-fade-in {
  animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.animate-slide-in {
  animation: slideInRight 1s ease-out 0.5s both;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .floating-cards {
    display: none;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .sidebar {
    min-height: auto;
  }
}

/* Button Styles */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Table Styles */
.table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.table thead th {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.05);
  transform: scale(1.01);
}

/* Badge Styles */
.badge {
  border-radius: 20px;
  padding: 8px 15px;
  font-weight: 600;
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  border-radius: 20px 20px 0 0;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 20px 20px;
}
