/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Variables */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --dark-color: #0b0c10;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Download button specific styling */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section {
  padding: 80px 0;
  min-height: 100vh;
  display: none;
}

.section.active {
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background-color: var(--dark-color);
  color: white;
  transition: width var(--transition-speed) ease;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  margin-bottom: 15px;
}

.profile h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.profile p {
  font-size: 14px;
  color: var(--accent-color);
}

.toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-btn:hover {
  transform: rotate(90deg);
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu ul li {
  position: relative;
  margin-bottom: 5px;
}

.sidebar-menu ul li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-menu ul li a i {
  font-size: 22px;
  margin-right: 15px;
  min-width: 25px;
}

.sidebar-menu ul li.active a {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-color);
  color: var(--accent-color);
}

.sidebar-menu ul li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed .profile h3,
.sidebar.collapsed .profile p,
.sidebar.collapsed .sidebar-menu ul li a span {
  display: none;
}

.sidebar.collapsed .profile img {
  width: 40px;
  height: 40px;
}

.sidebar-footer {
  padding: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  color: var(--dark-color);
  transform: translateY(-3px);
}

/* Main Content Styles */
.main-content {
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed) ease;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

/* Home Section */
#home {
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://via.placeholder.com/1920x1080") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 0;
}

#home h1 {
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 20px;
}

#home h1 span {
  color: var(--accent-color);
}

#home h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 30px;
}

#home p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
}

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

.info-item {
  margin-bottom: 15px;
}

.info-item span {
  font-weight: 600;
  color: var(--gray-color);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-card i {
  font-size: 60px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Projects Section */
.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background: none;
  border: none;
  border-radius: 30px;
  margin: 0 5px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(67, 97, 238, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: var(--dark-color);
  color: white;
}

.project-info {
  padding: 20px;
}

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

.project-info p {
  color: var(--gray-color);
  margin-bottom: 15px;
  font-size: 14px;
}

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

.project-tags span {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background-color: var(--light-gray);
  color: var(--gray-color);
}

/* Testimonials Section */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin: 10px;
  display: none;
  transition: all 0.3s ease;
}

.testimonial-card.active {
  display: block;
}

.testimonial-content {
  text-align: center;
}

.testimonial-content i {
  font-size: 40px;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.testimonial-author p {
  font-size: 14px;
  color: var(--gray-color);
  margin-bottom: 0;
  font-style: normal;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--light-gray);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  padding-right: 30px;
}

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

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

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

.contact-item p {
  color: var(--gray-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--primary-color);
  font-size: 20px;
  transition: all 0.3s ease;
}

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

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-bottom: -28px;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    text-align: center;
  }

  .contact-info {
    padding-right: 0;
  }
}

@media screen and (max-width: 992px) {
  :root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 2000;
  }

  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  .main-content {
    margin-left: 0;
  }

  #mobile-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
  }

  #mobile-toggle-btn:hover {
    background-color: var(--secondary-color);
  }

  .toggle-btn {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .projects-grid,
  .skills-container {
    grid-template-columns: 1fr;
  }

  #home h1 {
    font-size: 36px;
  }

  #home h2 {
    font-size: 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }

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

  .cta-buttons .btn {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .section {
    padding: 60px 0;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Hide/show project cards based on filter */
.project-card.hide {
  display: none;
}

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

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
