/* Custom CSS for Frontend with Bootstrap 5 and Tailwind-inspired utilities */

:root {
  --primary-color: #0062E6;
  --secondary-color: #17a2b8;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --font-family: 'Prompt', 'Source Sans Pro', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
  background : var(--dark-color);
  min-height: 100vh;
  position: relative;
  background-attachment: fixed;
}

/* Background overlay for better readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Login/Register Page Styles */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.6s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.auth-logo a {
  display: inline-block;
  text-align: center;
}

.auth-logo img {
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  display: block;
  margin: 0 auto;
}

.auth-box {
  width: 100%;
  max-width: 450px;
  animation: fadeInUp 0.6s ease-out;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
  border-bottom: none;
}

.auth-card-header h4 {
  margin: 0;
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 1px;
}

.auth-card-body {
  padding: 40px 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 98, 230, 0.25);
  outline: none;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group .form-control {
  border-radius: 10px 0 0 10px;
  border-right: none;
}

.input-group .form-control:focus {
  border-right: 2px solid var(--primary-color);
}

/* Button Styles */
.btn {
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 98, 230, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Alert Styles */
.alert {
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.5s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.alert-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #212529;
}

/* Checkbox Styles */
.form-check {
  margin-bottom: 1rem;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  margin-left: 10px;
  cursor: pointer;
  color: var(--dark-color);
}

/* Social Auth Buttons */
.social-auth-links {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.social-auth-links p {
  margin-bottom: 20px;
  color: #6c757d;
  font-weight: 500;
}

.social-btn {
  margin-bottom: 15px;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Text */
.auth-footer {
  text-align: center;
  margin-top: 30px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-footer p {
  margin: 5px 0;
  font-size: 0.9rem;
}

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .auth-card-body {
    padding: 30px 20px;
  }
  
  .auth-card-header h4 {
    font-size: 1.5rem;
  }
  
  .form-control {
    font-size: 0.95rem;
  }
}

/* Utility Classes (Tailwind-inspired) */
.shadow-lg {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.rounded-xl {
  border-radius: 20px !important;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

.transition-all {
  transition: all 0.3s ease;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.focus\:ring:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 98, 230, 0.25);
}

/* Skills Section Styles */
#skills {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(0,98,230,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

#skills .container {
  position: relative;
  z-index: 1;
}

.skills-content {
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateX(5px);
}

.skill-name {
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
}

.skill-name i {
  font-size: 1.5rem;
}

.skill-percent {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.progress {
  position: relative;
  overflow: visible;
}

.progress-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  transition: width 1.5s ease-in-out;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.15) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.15) 50%, 
    rgba(255, 255, 255, 0.15) 75%, 
    transparent 75%, 
    transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }
  100% {
    background-position: 0 0;
  }
}

.skill-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Responsive Design for Skills */
@media (max-width: 768px) {
  .skill-name {
    font-size: 1rem;
  }
  
  .skill-name i {
    font-size: 1.3rem;
  }
  
  .skill-percent {
    font-size: 1rem;
  }
  
  .progress {
    height: 22px !important;
  }
  
  .progress-bar {
    font-size: 0.85rem;
    padding-right: 10px;
  }
}

