@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #34d399;
  --primary-dark: #10b981;
  --background: #0a1929; /* Changed to blue */
  --card-bg: rgba(5, 15, 35, 0.5); /* Adjusted for blue theme */
  --text: #f5f5f5;
  --text-secondary: #9ca3af;
  --border: #2d3748;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1050;
  background-color: var(--primary);
  color: black;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  background-color: var(--primary-dark);
}

/* Sidebar */
.sidebar {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.sidebar.show {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .sidebar {
    width: 250px;
    position: sticky;
    transform: translateX(0);
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Main Content */
.main-content {
  width: 100%;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .main-content {
    margin-left: 0;
    width: calc(100% - 250px);
  }
}

/* Profile Image */
.profile-img-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
}

/* Avatar Image */
.avatar-img {
  max-width: 150px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .avatar-img {
    max-width: 200px;
  }
}

/* Progress Bars */
.progress {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.progress-bar {
  background-color: var(--primary);
  border-radius: 4px;
}

/* Tech Badges */
.tech-badge {
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.tech-badge:hover {
  background-color: rgba(52, 211, 153, 0.2) !important;
}

/* Social Icons */
.social-icon {
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--primary) !important;
  transform: scale(1.1);
}

/* Max Width Container */
.max-width-container {
  max-width: 1200px;
}

/* Explore Button */
.explore-btn {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* Stat Cards */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  background-color: rgba(5, 15, 35, 0.5) !important; /* Adjusted for blue theme */
}

/* Cards */
.card {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
}

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
}

.text-light-gray {
  color: #d1d5db;
}

/* Expertise List */
.expertise-list {
  list-style-type: none;
  padding-left: 0;
}

.expertise-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.expertise-list li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
}

/* Vertical Navbar */
.navbar-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  padding: 1rem 0.5rem;
  background-color: rgba(5, 15, 35, 0.2); /* Adjusted for blue theme */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: color 0.3s ease;
}

.navbar-vertical:hover {
  color: var(--primary) !important;
}

/* Animated Background */
.animated-bg {
  background: linear-gradient(-45deg, #051525, #0a1929, #102a3d, #153a52); /* Changed to blue gradient */
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

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

/* Particles Container */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#particles-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* Z-index utilities */
.z-index-1 {
  z-index: 1;
}

/* Glow effects */
.glow {
  text-shadow: 0 0 5px rgba(52, 211, 153, 0.5), 0 0 10px rgba(52, 211, 153, 0.3);
}

.glow-border {
  box-shadow: 0 0 5px rgba(52, 211, 153, 0.5), 0 0 10px rgba(52, 211, 153, 0.3);
}

/* Responsive Typography */
@media (max-width: 767px) {
  h1.display-5 {
    font-size: 2rem;
  }

  .fs-4 {
    font-size: 1.1rem !important;
  }

  .fs-2 {
    font-size: 1.5rem !important;
  }

  .typing-effect {
    min-width: 120px;
  }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.show {
  display: block;
}
