
/* Base Styles */
:root {
  --primary: #8a6bc1;       /* Lavender primary */
  --primary-dark: #6a4c9f;  /* Darker lavender */
  --primary-light: #b195e4; /* Lighter lavender */
  --secondary: #dcd0ff;     /* Very light lavender */
  --accent: #c8a2c8;        /* Lilac accent */
  --dark: #2d2d3a;          /* Dark background */
  --light: #f8f6ff;         /* Light background */
  --text: #3a3a4c;          /* Text color */
  --text-light: #6e6e87;    /* Light text */
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(138, 107, 193, 0.1);
  --transition: all 0.3s ease;
}

.dark-theme {
  --primary: #a78bda;        /* Brighter lavender for dark mode */
  --primary-dark: #9370db;   /* Medium purple */
  --primary-light: #c9b6f0;  /* Light purple */
  --secondary: #433863;      /* Dark purple */
  --accent: #d8bfd8;         /* Thistle */
  --dark: #14141a;           /* Very dark background */
  --light: #222232;          /* Dark purple background */
  --text: #e0e0e0;           /* Light text */
  --text-light: #b8b8c8;     /* Medium light text */
  --white: #2d2d3a;          /* Dark card background */
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.3s ease;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Side Navigation */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 70px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  z-index: 100;
  transition: width 0.3s ease, background-color 0.3s ease;
  overflow: hidden; /* Prevent content from protruding */
}

.side-nav:hover {
  width: 180px;
}

.logo {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(138, 107, 193, 0.3);
}

.logo span {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.nav-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  margin: 5px 0;
  position: relative;
  transition: var(--transition);
  width: 100%;
  color: var(--text);
}

.nav-link i {
  font-size: 1.1rem;
  min-width: 30px;
  display: flex;
  justify-content: center;
}

.nav-link span {
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  font-size: 0.95rem;
}

.side-nav:hover .nav-link span {
  opacity: 1;
  visibility: visible;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  transform: scaleY(0);
  transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scaleY(1);
}

.nav-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}

.social-links {
  display: flex;
  gap: 8px;
  justify-content: center; /* Center the social icons */
  width: 100%; /* Make it take full width of parent */
  flex-wrap: wrap; /* Allow wrapping if needed */
}

/* Make social icons smaller in collapsed state */
.side-nav:not(:hover) .social-links {
  max-width: 60px; /* Limit max width when sidebar is collapsed */
}

.social-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

/* Adjust size for collapsed sidebar */
.side-nav:not(:hover) .social-link {
  width: 26px; /* Slightly smaller */
  height: 26px; /* Slightly smaller */
  font-size: 0.8rem; /* Smaller icon */
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--secondary);
}

.theme-toggle:hover {
  color: var(--primary);
  transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 101;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hamburger {
  width: 20px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  margin: 4px 0;
  transition: var(--transition);
}

.menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
.main-content {
  margin-left: 70px;
  transition: margin-left 0.3s ease;
}

/* Home Section */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 0;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.home-text {
  flex: 1;
}

.name {
  font-size: 3.2rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 500;
}

.bio {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.home-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-container {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(138, 107, 193, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(138, 107, 193, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* About Section */
.about-section {
  background-color: var(--white);
  transition: background-color 0.3s ease;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.detail-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.detail-item p {
  margin-bottom: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 60%;
  height: 60%;
  border: 3px solid var(--primary);
  border-radius: 10px;
  z-index: -1;
  opacity: 0.3;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.skill-category {
  background-color: var(--white);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease, background-color 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(138, 107, 193, 0.15);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.skill-header i {
  font-size: 1.2rem;
  margin-right: 15px;
  color: var(--primary);
  background-color: var(--secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-header h3 {
  font-size: 1.2rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.progress-bar {
  height: 6px;
  background-color: var(--secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  width: 0;
  transition: width 1.3s ease-out;
}

.languages {
  background-color: var(--white);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;
}

.languages h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.language-item {
  background-color: var(--secondary);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.language-name {
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text);
}

.language-level {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Projects Section */
.projects-section {
  background-color: var(--light);
  transition: background-color 0.3s ease;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 6px 18px;
  border-radius: 20px;
  background-color: var(--white);
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease, background-color 0.3s ease;
  color: var(--text);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(138, 107, 193, 0.15);
}

.project-img {
  height: 180px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.tag {
  background-color: var(--secondary);
  color: var(--primary);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 15px;
}

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

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.project-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.project-link:hover i {
  transform: translateX(5px);
}

/* Experience Section */
.experience-section {
  background-color: var(--white);
  transition: background-color 0.3s ease;
}

.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--secondary);
  top: 0;
  bottom: 0;
  left: 12px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

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

.timeline-marker {
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  z-index: 1;
}

.timeline-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease, background-color 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(138, 107, 193, 0.15);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 3px 10px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--light);
  transition: background-color 0.3s ease;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  font-size: 1rem;
  color: var(--primary);
  background-color: var(--secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

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

.social-media h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(138, 107, 193, 0.2);
  border-radius: 5px;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 107, 193, 0.1);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
  background-color: var(--dark);
  border-color: rgba(138, 107, 193, 0.3);
}

/* Footer */
.footer {
  background-color: var(--light);
  color: var(--text);
  padding: 30px 0 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-top: 2px solid var(--secondary);
}

.dark-theme .footer {
  background-color: var(--light);
  color: var(--text);
  border-top: 2px solid var(--secondary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

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

.dark-theme .footer p {
  color: var(--text);
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.social-footer {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.social-footer a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-footer a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(138, 107, 193, 0.3);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(138, 107, 193, 0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  .home-content {
      flex-direction: column-reverse;
      text-align: center;
  }
  
  .cta-buttons {
      justify-content: center;
  }
  
  .about-content {
      grid-template-columns: 1fr;
  }
  
  .about-text {
      order: 2;
  }
  
  .about-image {
      order: 1;
      margin-bottom: 30px;
  }
  
  .about-image::before {
      display: none;
  }
  
  .contact-container {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .side-nav {
      transform: translateX(-100%);
      width: 180px;
  }
  
  .side-nav.active {
      transform: translateX(0);
  }
  
  .side-nav .nav-link span {
      opacity: 1;
      visibility: visible;
  }
  
  .menu-toggle {
      display: flex;
  }
  
  .main-content {
      margin-left: 0;
  }
  
  .about-details {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      flex-direction: column;
      gap: 15px;
  }
}

@media (max-width: 576px) {
  .section-title {
      font-size: 2rem;
  }
  
  .name {
      font-size: 2.5rem;
  }
  
  .title {
      font-size: 1.4rem;
  }
  
  .image-container {
      width: 250px;
      height: 250px;
  }
  
  .cta-buttons {
      flex-direction: column;
  }
  
  .filter-buttons {
      gap: 8px;
  }
  
  .project-card {
      min-height: auto;
  }
}
