:root {
  --background: #f0f2f5;
  --text: #333333;
  --primary: #1a73e8; /* Updated color */
  --secondary: #34a853; /* Updated color */
  --accent: #fbbc05; /* Updated color */
  --card-bg: #ffffff;
  --header-bg: #e0e0e0;
  --border-color: #dadce0; /* Updated color */
  --success: #88b04b; /* Green */
  --warning: #ff6f61; /* Coral */
  --error: #d62728; /* Red */
  --text-highlight: #6b5b95; /* Purple */
  --section-bg: #f9fafb;
  --blogs-bg: #f0f4f8;
  --github-ai-bg: #e8f0fe;
  --resume-contact-bg: #f3f4f6;
  --button-bg: #ea4335; /* Updated color */
  --quote-bg: linear-gradient(135deg, #f5363dae 0%, #20c0ff 100%); /* New color */
  --quote-text-color: #2c3e50; /* New color */
}

[data-theme="dark"] {
  --background: #121212;
  --text: #e0e0e0;
  --primary: #8ab4f8; /* Updated color */
  --secondary: #81c995; /* Updated color */
  --accent: #fdd663; /* Updated color */
  --card-bg: #1e1e1e;
  --header-bg: #1e1e1e;
  --border-color: #5f6368; /* Updated color */
  --success: #88b04b; /* Green */
  --warning: #ff6f61; /* Coral */
  --error: #d62728; /* Red */
  --text-highlight: #6b5b95; /* Purple */
  --section-bg: #1a1a1a;
  --blogs-bg: #1e1e1e;
  --github-ai-bg: #2a2a2a;
  --resume-contact-bg: #1f1f1f;
  --button-bg: #3B82F6; /* Updated color */
  --quote-bg: linear-gradient(135deg, #2a2a72 0%, #009ffd 100%); /* New color */
  --quote-text-color: #fff; /* New color */
}

[data-theme="dark"] .bg-gradient-to-br {
  background: linear-gradient(to bottom right, #1e1e1e, #121212) !important;
}

body {
  background-color: var(--background);
  color: var(--text);
  transition: all 0.3s ease;
}

header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
}

.bg-white {
  background-color: var(--card-bg) !important;
}

.bg-section {
  background-color: var(--section-bg) !important;
}

.bg-blogs {
  background-color: var(--blogs-bg) !important;
}

.bg-github-ai {
  background-color: var(--github-ai-bg) !important;
}

.bg-resume-contact {
  background-color: var(--resume-contact-bg) !important;
}

.bg-yellow-200,
.bg-purple-200,
.bg-blue-200,
.bg-gray-200 {
  background-color: var(--card-bg) !important;
}

.bg-yellow-400 {
  background-color: var(--button-bg) !important; /* Updated color */
  color: var(--text) !important;
}

.border-gray-400 {
  border-color: var(--border-color) !important;
}

.text-purple-600,
.text-blue-600,
.text-gray-600 {
  color: var(--primary) !important;
}

.sticky-header {
  position: sticky;
  top: 0;
  background-color: var(--background);
  z-index: 100;
}

.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 25px;
  background-color: var(--accent);
  color: var(--text);
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: var(--primary);
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

input,
textarea {
  background-color: var(--card-bg);
  color: var(--text);
  border-color: var(--border-color);
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.3); /* Coral */
}

input::placeholder,
textarea::placeholder {
  color: var(--secondary);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--primary);
}

p {
  line-height: 1.8;
  color: var(--text);
}

label,
.text-highlight {
  color: var(--text-highlight);
}

.quote-text {
  font-style: italic;
  color: var(--quote-text-color); /* Updated color */
  overflow: hidden; /* Prevent horizontal scrolling */
  white-space: normal; /* Allow wrapping */
  text-overflow: ellipsis; /* Keep ellipsis for overflow */
  font-size: 1.2rem; /* Adjust font size as needed */
}

.resume-button {
  transition: all 0.2s ease;
}

.resume-button:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }

  .w-1/3,
  .w-1/4,
  .w-1/2,
  .w-2/3 {
    width: 100%;
  }

  .space-x-4 {
    margin-bottom: 1rem;
  }
}

.cursor-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s ease;
  z-index: 9999;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary); /* Primary color */
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e63946; /* Darker primary color */
}

/* KPI Scrollbar styles */
.tableauPlaceholder::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.tableauPlaceholder::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.tableauPlaceholder::-webkit-scrollbar-thumb {
  background-color: var(--primary); /* Primary color */
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}

.tableauPlaceholder::-webkit-scrollbar-thumb:hover {
  background-color: #e63946; /* Darker primary color */
}

.quote-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto; /* Add horizontal scrollbar */
  white-space: nowrap; /* Prevent text from wrapping */
  background: var(--quote-bg); /* New style */
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quote-author {
  font-weight: bold;
  color: var(--quote-text-color); /* New style */
  margin-left: 10px;
}

.border-box {
  border: 1px solid var(--border-color); /* Subtle border with theme color */
  padding: 10px;
  border-radius: 8px;
}

.weather-icon {
  width: 24px;
  height: 24px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .flex {
      flex-direction: column;
  }
  .w-1/2 {
      width: 100%;
  }
  .text-2xl {
      font-size: 1.5rem;
  }
  .text-xl {
      font-size: 1.25rem;
  }
  .text-lg {
      font-size: 1rem;
  }
  .text-sm {
      font-size: 0.875rem;
  }
  .p-4 {
      padding: 1rem;
  }
  .mb-4 {
      margin-bottom: 1rem;
  }
  .mt-4 {
      margin-top: 1rem;
  }
  .space-x-4 {
      gap: 1rem;
  }
  .space-y-4 {
      gap: 1rem;
  }
  .space-y-6 {
      gap: 1.5rem;
  }
  .grid-cols-3 {
      grid-template-columns: 1fr;
  }
  header {
      padding: 0.5rem;
      position: static; /* Remove pinning */
  }
  header .flex {
      flex-direction: column;
      align-items: flex-start;
  }
  header .flex > div {
      margin-bottom: 0.5rem;
  }
  header .flex > div:last-child {
      margin-bottom: 0;
  }
  header img {
      width: 48px;
      height: 48px;
  }
  header .text-xl {
      font-size: 1rem;
  }
  header .text-lg {
      font-size: 0.875rem;
  }
  header .text-sm {
      font-size: 0.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3 {
      grid-template-columns: 1fr 1fr;
  }
}

/* Hover animations */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Scrolling effects */
.scroll-fade {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skeleton screens */
.skeleton {
  background-color: #e0e0e0;
  border-radius: 4px;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #e0e0e0;
  }
}

/* Whole page motion */
.page-motion {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-motion.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Storytelling motions */
.storytelling-motion {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.storytelling-motion.visible {
  opacity: 1;
  transform: translateX(0);
}
