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

:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #161616;
  --bg-card-hover: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #707070;
  --border-color: #2a2a2a;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --verified-color: #3b82f6;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Light Theme Colors */
body.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3f5;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6c757d;
  --border-color: #e0e0e0;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --verified-color: #3b82f6;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  display: flex;
  justify-content: center;
}

.profile-section {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.profile-img-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.profile-img-default {
  opacity: 1;
  z-index: 1;
}

.profile-img-hover {
  opacity: 0;
  z-index: 2;
}

.profile-img-wrapper:hover .profile-img-hover {
  opacity: 1;
}

.profile-img-wrapper:hover .profile-img-default {
  opacity: 0;
}

.hero-info {
  flex: 1;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.verified-badge {
  color: var(--verified-color);
  font-size: 1.5rem;
}

.hero-location {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hero-location i {
  margin-right: 5px;
}

.hero-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.btn-primary {
  background: var(--bg-card);
}

.btn-secondary {
  background: var(--bg-card);
}

.btn-tertiary {
  background: var(--bg-card);
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  padding: 40px 20px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--text-muted);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-header i {
  margin-right: 10px;
  color: var(--text-secondary);
}

.card-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.view-all {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--text-primary);
}

.card-content {
  color: var(--text-secondary);
}

.card-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Education */
.education-item h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.university {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Tech Stack */
.tech-group {
  margin-bottom: 20px;
}

.tech-group:last-child {
  margin-bottom: 0;
}

.tech-group h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

/* Certifications */
.cert-item {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
}

.cert-item:last-child {
  margin-bottom: 0;
}

.cert-item h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.cert-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Hide extra certifications initially */
.cert-item.hidden-cert {
  display: none;
}

.card-content.show-all .cert-item.hidden-cert {
  display: block;
}

/* Hobbies */
.section-desc {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Hobbies Carousel */
.hobbies-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-top: 20px;
}

.hobbies-track {
  display: flex;
  gap: 12px;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.hobbies-track:hover {
  animation-play-state: paused;
}

.hobbies-track img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hobbies-track img:hover {
  transform: scale(1.05);
  border-color: var(--text-secondary);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.33%);
  }
}

/* Experience */
.experience-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: -24px;
  width: 2px;
  background: var(--border-color);
}

.experience-item:last-child::before {
  display: none;
}

.exp-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  margin-top: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.exp-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.company {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.exp-content .duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-secondary);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 16px;
}

.project-info h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.project-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--accent-hover);
}

/* Hide extra projects initially */
.project-card.hidden-project {
  display: none;
}

.projects-grid.show-all .project-card.hidden-project {
  display: block;
}

/* View All link active state */
.view-all.active {
  color: var(--text-primary);
}

/* Recommendations */

.recommendation {
  padding: 20px 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.recommendation.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.quote {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.7;
}

.author {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.pagination-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--text-primary);
}

/* Testimonials Slider */
.testimonials-slider {
  position: relative;
  min-height: 150px;
}

/* Contact */
.contact-card {
  background: var(--bg-card);
}

.contact-desc {
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-section {
  margin-bottom: 30px;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-section h4 {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-item a {
  text-decoration: none;
}

.contact-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  font-size: 20px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.contact-item .label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item .value {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

/* Chat Bubble */
.chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-bubble:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.chat-bubble i {
  font-size: 18px;
  color: var(--text-primary);
}

.chat-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Chat Modal */
#chatModal {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 550px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
  background: var(--bg-secondary);
}

.chat-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.close-chat {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.close-chat:hover {
  background: var(--bg-card-hover);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  align-self: flex-start;
}

.bot-message p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
}

.user-message {
  background: var(--accent-color);
  align-self: flex-end;
}

.user-message p {
  margin: 0;
  color: white;
  line-height: 1.5;
  font-size: 0.9rem;
}

.question-buttons {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border-radius: 0 0 16px 16px;
}

.question-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: left;
}

.question-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
  transform: translateX(4px);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

/* Chat Modal Responsive */
@media (max-width: 480px) {
  #chatModal {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 80px;
    height: 500px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-name {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}