:root {
  /* Dark theme variables */
  --dark-bg: #1d1d1d;
  --darker-bg: #161616;
  --card-bg: #242424;
  --text-primary: #fff;
  --text-secondary: #8c8c8c;
  --accent-gold: #ffd700;
  --transition: all 0.3s ease;
}

/* Light theme variables */
[data-theme="light"] {
  --dark-bg: #f5f5f5;
  --darker-bg: #ffffff;
  --card-bg: #eaeaea;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent-gold: #1d1d1c;
}

/* Theme toggle button styles  */
.theme-toggle {
  background: var(--card-bg);
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}

.theme-toggle i {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--accent-gold);
}

.theme-toggle:hover i {
  color: var(--darker-bg);
}

html {
  scroll-behavior: smooth;
}

.scroll-top {
  opacity: 0.7;
}

.scroll-top:hover {
  opacity: 1;
}

button {
      background-color: white;
      color: black;
      border: 2px solid black;
      border-radius: 20%;
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #f0f0f0;
    }

/* Add smooth transition for active link color change */
.nav-links a {
  transition: color 0.3s ease;
}


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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styles */
.sidebar {
  width: 375px;
  background-color: var(--darker-bg);
  padding: 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;

  &::-webkit-scrollbar {
    display: none;
  }

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.profile-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
}

.avatar-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  background-color: var(--darker-bg);
  border-radius: 20px;
  padding: 10px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
}

.profile-info {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1rem;
}

.label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value i {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

/* Main Content Styles */
.main-content {
  flex: 1;
  padding: 2rem;
  /* overflow-y: auto; */
  overflow-x: hidden;
}

.navbar {
  margin-bottom: 3rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a:hover {
  color: var(--accent-gold);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background-color: var(--accent-gold);
}

.section-content {
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
}

.service-icon {
  font-size: 2rem;
}

.gold-icon {
  color: var(--accent-gold);
}

.timeline {
  position: relative;
  padding-left: 50px;
  margin-bottom: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--card-bg);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -54px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.timeline-period {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.portfolio-filter {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-filter.active {
  color: var(--accent-gold);
}

.portfolio-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-category {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* get in touch  */
.get-in-touch {
  position: relative;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 3rem;
}

.get-in-touch::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #00a2ff 0%, transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0.1;
  animation: float 8s infinite;
}

.get-in-touch::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #ff69b4 0%, transparent 70%);
  bottom: -75px;
  left: -75px;
  opacity: 0.1;
  animation: float 6s infinite reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, 20px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.get-in-touch-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.get-in-touch-left {
  text-align: left;
}

.get-in-touch h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-link {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--text-primary);
  transition: 0.3s;
}

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

/* ===== FORM STYLING ===== */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: var(--input-bg, #fff);
  color: #272626;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color, #00a2ff);
}

.btn-submit {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--accent-color, #00a2ff);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #0077cc;
}

/* Responsive */
@media (max-width: 768px) {
  .get-in-touch-content {
    grid-template-columns: 1fr;
  }
  .get-in-touch-left {
    text-align: center;
  }
}



/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    padding: 1rem;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .avatar-container {
    width: 100px;
    height: 100px;
  }

  .main-content {
    padding: 1rem;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

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


@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    padding: 1rem;
    height: auto;
    position: relative;
    background-color: var(--dark-bg);
  }

  .profile-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
  }

  .mobile-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--darker-bg);
    border-radius: 15px;
    padding: 5px;
  }

  .mobile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
  }

  .mobile-info {
    flex: 1;
  }

  .mobile-info h1 {
    font-size: 1.25rem;
    margin: 0;
  }

  .mobile-info .job-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .show-contacts {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 0.875rem;
    cursor: pointer;
  }

  .contact-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--darker-bg);
  }

  .contact-details.visible {
    display: block;
  }

  .avatar-container,
  .profile-info {
    display: none;
  }

  .mobile-header {
    display: flex;
  }
}



/* Desktop styles */
@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }

  .show-contacts {
    display: none;
  }
}

/* Show/Hide Contacts Button Mobile Only */
.show-contacts {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
}

@media (max-width: 768px) {
  .show-contacts {
    display: block;
  }

  .contact-details.hidden {
    display: none;
  }
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -34px;
  }

  .portfolio-filters {
    justify-content: center;
  }
}

.container-ai {
  /* position: fixed; */
  right: 8px;
  top: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

#micButton,
#stopButton {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: var(--transition);
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
}

#micButton:hover,
#stopButton:hover {
  background-color: var(--accent-gold);
  color: var(--darker-bg);
}

#micButton.listening {
  background-color: var(--accent-gold);
  color: var(--darker-bg);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

#popup {
  /* display: none; */
  position: fixed;
  bottom: 32px;
  right: 12px;
  width: 286px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
}

#transcript,
#response {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background-color: var(--darker-bg);
  font-size: 14px;
  color: var(--text-primary);
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .container-ai {
    top: auto;
    bottom: 20px;
  }

  #micButton,
  #stopButton {
    width: 45px;
    height: 45px;
    font-size: 23px;
  }
}