/* ============================================
   JABANA.TECH - Brown & Blue Tech Theme
   Converted from Next.js Tailwind to Vanilla CSS
   ============================================ */

/* ============================================
   CSS VARIABLES - Theme Colors
   ============================================ */
:root {
  /* Blue Family */
  --color-blue-50: #e6f3ff;
  --color-blue-100: #cce7ff;
  --color-blue-200: #99cfff;
  --color-blue-300: #66b7ff;
  --color-blue-400: #339fff;
  --color-blue-500: #0087ff;
  --color-blue-600: #006ecc;
  --color-blue-700: #005299;
  --color-blue-800: #003766;
  --color-blue-900: #001b33;

  /* Brown Family */
  --color-brown-50: #faf6f3;
  --color-brown-100: #f5ede7;
  --color-brown-200: #ebdbcf;
  --color-brown-300: #d4b5a0;
  --color-brown-400: #bd8f71;
  --color-brown-500: #a67c52;
  --color-brown-600: #8b6a45;
  --color-brown-700: #6e5538;
  --color-brown-800: #52402a;
  --color-brown-900: #352a1c;

  /* Accent Colors */
  --color-cyan: #00d9ff;
  --color-orange: #ff6b35;
  --color-tech-green: #00ff88;

  /* Background Gradients */
  --bg-gradient-dark: linear-gradient(135deg, #0a1128 0%, #1e3a5f 50%, #0f1c2e 100%);
  --bg-gradient-code: linear-gradient(to bottom, rgba(10, 17, 40, 0.95), rgba(30, 58, 95, 0.95));

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: #374151;
}

body {
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  background: var(--bg-gradient-dark);
  color: #f3f4f6;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: var(--color-blue-500);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-brown-900);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-blue-600), var(--color-brown-600));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-blue-500), var(--color-brown-500));
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-blue-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.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;
}

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

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-blue-400);
  box-shadow: 0 10px 30px rgba(0, 135, 255, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-800));
  color: white;
  border: 2px solid var(--color-blue-500);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(0, 135, 255, 0.5);
  border-color: var(--color-blue-400);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-brown-600), var(--color-brown-800));
  color: white;
  border: 2px solid var(--color-brown-500);
}

.btn-secondary:hover {
  box-shadow: 0 10px 30px rgba(166, 124, 82, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  border: 2px solid #ef4444;
}

.btn-danger:hover {
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-outline {
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-blue-500);
  color: var(--color-blue-400);
}

.btn-outline:hover {
  background: var(--color-blue-500);
  color: white;
  box-shadow: 0 0 20px rgba(0, 135, 255, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================
   FORMS
   ============================================ */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
}

.textarea {
  border-radius: 1rem;
  resize: vertical;
  min-height: 120px;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-blue-500);
  box-shadow: 0 0 20px rgba(0, 135, 255, 0.3);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.error-message {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Only apply border/shadow effects on larger screens (laptop/desktop) */
@media (min-width: 1024px) {
  .card:hover {
    box-shadow: 0 15px 50px rgba(0, 135, 255, 0.2);
    border-color: rgba(0, 135, 255, 0.3);
  }
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-blue-500), var(--color-brown-500), var(--color-blue-500));
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  filter: blur(10px);
}

/* Only apply glow effect on larger screens (laptop/desktop) */
@media (min-width: 1024px) {
  .card-glow:hover::before {
    opacity: 1;
  }
}

.tech-card {
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 135, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   GLASS EFFECT
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.table {
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
}

.table thead {
  background: linear-gradient(135deg, rgba(0, 135, 255, 0.1), rgba(166, 124, 82, 0.1));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-blue-300);
}

.table th {
  padding: 1rem 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-blue-500);
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.table tbody tr:hover {
  transform: scale(1.01);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.badge-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: var(--color-tech-green);
  border-color: var(--color-tech-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.badge-warning {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
  color: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.badge-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: #f87171;
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
}

.badge-info {
  background: linear-gradient(135deg, rgba(0, 135, 255, 0.2), rgba(0, 135, 255, 0.1));
  color: var(--color-blue-400);
  border-color: var(--color-blue-400);
  box-shadow: 0 0 10px rgba(0, 135, 255, 0.3);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue-500), transparent);
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-brown {
  background: linear-gradient(135deg, var(--color-brown-400), var(--color-brown-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-mix {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400), var(--color-blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LINKS
   ============================================ */
.tech-link {
  position: relative;
  display: inline-block;
  color: var(--color-blue-400);
  transition: color 0.3s;
}

.tech-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-500), var(--color-brown-500));
  transition: width 0.3s;
}

.tech-link:hover {
  color: var(--color-blue-300);
}

.tech-link:hover::after {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.header.scrolled {
  background: rgba(10, 17, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  color: #f3f4f6;
  transition: color 0.3s;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--color-blue-400);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 17, 40, 1);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid var(--glass-border);
  z-index: 1001;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: #f3f4f6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-blue-400);
  padding-left: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(10, 17, 40, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h3 {
  color: var(--color-blue-400);
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer a:hover {
  color: var(--color-blue-400);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-logo {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 135, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 135, 255, 0.8);
  }
}

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

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

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

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

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

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-blue-500);
  animation: spin 1s ease-in-out infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 17, 40, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 1rem;
}

.modal {
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue-400);
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--color-blue-400);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1rem;
  z-index: 9999;
  max-width: 400px;
}

.toast {
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.toast-success {
  border-left: 4px solid var(--color-tech-green);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-warning {
  border-left: 4px solid #fbbf24;
}

.toast-info {
  border-left: 4px solid var(--color-blue-500);
}
