 * {
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #195A9C 100%);
  min-height: 100vh;
}

.gradient-text {
  background: linear-gradient(135deg, #2B7BC7, #69b2fc, #0278ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-gradient-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 75%, #475569 100%);
}

.blue-gradient-bg {
  background: linear-gradient(135deg, #195A9C 0%, #144A7F 50%, #0F3A5F 100%);
}

.section-dark {
  background: linear-gradient(135deg, rgba(253, 254, 255, 0.9) 50%, rgba(234, 234, 234, 0.8) 100%);
}

.section-darker {
  background: linear-gradient(135deg, #0f172a 0%, #195A9C 100%);
}

.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-bg {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(25, 90, 156, 0.4) 100%), url('image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(25, 90, 156, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(43, 123, 199, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.card-glow {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(25, 90, 156, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(25, 90, 156, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(25, 90, 156, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(25, 90, 156, 0.4);
}

.card-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-light:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

.nav-blur {
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(230, 242, 255, 0.9) 0%, rgba(230, 242, 255, 0.8) 100%);
  border-bottom: 1px solid rgba(25, 90, 156, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.glass-effect {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.text-light {
  color: #f1f5f9;
}

.text-lighter {
  color: #e2e8f0;
}

.text-accent {
  color: #2B7BC7;
}

.text-primary {
  color: #195A9C;
}

.text-secondary {
  color: #144A7F;
}

.text-muted {
  color: #94a3b8;
}

.text-dark {
  color: #1e293b;
}

.text-blue-light {
  color: #E6F2FF;
}

.text-blue-accent {
  color: #195A9C;
}

.text-gradient {
  background: linear-gradient(135deg, #2B7BC7, #195A9C, #144A7F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, #195A9C 0%, #144A7F 50%, #0F3A5F 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(25, 90, 156, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 90, 156, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(25, 90, 156, 0.6);
  color: #2B7BC7;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: linear-gradient(135deg, rgba(25, 90, 156, 0.1) 0%, rgba(25, 90, 156, 0.2) 100%);
  border-color: #2B7BC7;
  color: #ffffff;
}

.skill-bar {
  position: relative;
  background: rgba(25, 90, 156, 0.1);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #195A9C, #2B7BC7);
  border-radius: 10px;
  transition: width 2s ease-in-out;
}

/* Problem Modal Styles */
.problem-modal {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
}

.problem-modal-content {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #195A9C #f1f1f1;
}

.problem-modal-content::-webkit-scrollbar {
  width: 6px;
}

.problem-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.problem-modal-content::-webkit-scrollbar-thumb {
  background: #195A9C;
  border-radius: 3px;
}

.problem-modal-content::-webkit-scrollbar-thumb:hover {
  background: #144A7F;
}

/* Floating Button Animations */
.floating-buttons {
  animation: slideInRight 0.5s ease-out;
}

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

.floating-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.floating-btn:hover::before {
  left: 100%;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
  transform: scale(0.95);
}

/* Form Validation Styles */
.form-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Loading Animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

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

/* Tooltip Styles */
.tooltip {
  position: relative;
}

.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  font-size: 12px;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Problem Form Section Styles */
.problem-section {
  border-left: 4px solid #195A9C;
  background: linear-gradient(135deg, rgba(25, 90, 156, 0.02) 0%, rgba(25, 90, 156, 0.05) 100%);
}

.problem-section h3 {
  color: #195A9C;
  font-weight: 600;
}

/* Status Badge Animations */
.status-badge {
  animation: fadeInUp 0.3s ease-out;
}

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

/* Line Clamp Utilities for Blog Cards */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 3em; /* 2 lines * 1.5 line-height */
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  max-height: 4.8em; /* 3 lines * 1.6 line-height */
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  
  .problem-modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .floating-btn {
    padding: 12px;
  }
  
  .floating-btn i {
    font-size: 18px;
  }
}