/* AI DigiExpert - Global Styles */

:root {
  --primary: #0c4a6e;
  --primary-light: #0369a1;
  --primary-dark: #082f49;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --bg-soft: #f0f9ff;
  --text-main: #0f172a;
  --text-muted: #475569;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Animated gradient background */
.gradient-bg {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.gradient-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(12, 74, 110, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(12, 74, 110, 0.08);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.35);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Section titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(12, 74, 110, 0.1);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero section */
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Stats counter */
.stat-card {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.06);
  transition: transform 0.3s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* Course cards */
.course-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(12, 74, 110, 0.06);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(12, 74, 110, 0.14);
}

.course-tag {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Career cards */
.career-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border-left: 4px solid var(--primary-light);
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.06);
  transition: all 0.3s ease;
}

.career-card:hover {
  box-shadow: 0 12px 40px rgba(12, 74, 110, 0.12);
  transform: translateX(5px);
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.08);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 4rem;
  color: rgba(56, 189, 248, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* World records timeline */
.timeline-item {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--accent);
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--accent);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.875rem;
  }
}

/* Particle effect */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.3);
  pointer-events: none;
}

/* ========================
   CAREER PAGE STYLES
   ======================== */

/* Globe background */
.globe-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.2) 0%, rgba(12, 74, 110, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.globe-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 50% 50%, transparent 48%, rgba(56, 189, 248, 0.1) 49%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 68%, rgba(56, 189, 248, 0.08) 69%, transparent 70%);
  animation: rotateGlobe 20s linear infinite;
}

.globe-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseRing 4s ease-in-out infinite;
}

.globe-ring-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseRing 6s ease-in-out infinite reverse;
}

@keyframes rotateGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

/* Career opportunity cards */
.career-opportunity-card {
  background: white;
  border: 1px solid rgba(12, 74, 110, 0.06);
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.06);
  transition: all 0.3s ease;
}

.career-opportunity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(12, 74, 110, 0.12);
}

/* Job & Intern badges */
.job-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.intern-badge {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Career step */
.career-step {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Form styles */
.form-section {
  display: none;
  animation: fadeInSection 0.4s ease;
}

.form-section.active {
  display: block;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-file {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: white;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-file:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.form-file {
  padding: 0.65rem 1rem;
  cursor: pointer;
}

.form-file::file-selector-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-right: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-file::file-selector-button:hover {
  background: var(--primary-light);
}

/* Step indicators */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.step-indicator span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.step-indicator.active {
  border-color: var(--primary);
  color: var(--primary);
}

.step-indicator.active span {
  background: var(--primary);
  color: white;
}

.step-indicator.completed {
  border-color: #22c55e;
  color: #16a34a;
}

.step-indicator.completed span {
  background: #22c55e;
  color: white;
}

.step-line {
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Payment account cards */
.payment-account-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.payment-account-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.1);
  transform: translateY(-3px);
}

/* Floating avatars */
.avatar-orbit {
  animation: orbitAvatar 3s ease-in-out infinite;
}

.avatar-orbit:nth-child(2) {
  animation-delay: 0.5s;
}

.avatar-orbit:nth-child(3) {
  animation-delay: 1s;
}

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

/* Success screen */
.success-check {
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Shake animation for validation */
.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}

/* Admin panel tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.875rem;
}

.admin-table td {
  color: #475569;
  font-size: 0.875rem;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

.empty-state i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* ========================
   ABOUT PAGE STYLES
   ======================== */

.team-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.06);
  border: 1px solid rgba(12, 74, 110, 0.06);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(12, 74, 110, 0.12);
}

/* ========================
   ADMIN PANEL STYLES
   ======================== */

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-tab.active {
  box-shadow: 0 -4px 12px rgba(12, 74, 110, 0.1);
}

/* Modal scroll */
#preview-modal {
  overflow-y: auto;
}

/* Apply Now button in position cards */
.apply-now-btn {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Position admin card */
.position-admin-card {
  transition: all 0.3s ease;
}

.position-admin-card:hover {
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.1);
  border-color: var(--primary-light);
}
