/* Base Styles */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #546de5;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #20c997;
  --border-color: #e9ecef;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --container-width-lg: 80%;
  --container-width-md: 90%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark-color);
  background-color: var(--light-color);
}

body.dark-mode {
  background-color: #23272f;
  color: #e0e0e0;
}

ul {
  list-style: none;
}

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

img {
  display: block;
  width: 98%;
  object-fit: cover;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
}

section {
  padding: 2rem 0;
}

.container {
  width: var(--container-width-lg);
  margin: 0 auto;
}

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
}

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

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

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

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

.small-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.highlight {
  color: var(--primary-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 3rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* Center and align profile image in hero section */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.profile-img-container {
  width: 400px;
  height: 400px;
  max-width: 100%;
  max-height: 400px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255, 107, 107, 0.2);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* .about {
  background-color: #222;
} */
/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 4rem;
  /* background-color: #546de5; */
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  text-align: justify;
  margin-right: 62px;
}

.personal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 1.5rem;
  margin: 2rem 0;
}

.info-title {
  font-weight: 600;
  margin-right: 0.5rem;
}

.download-btn {
  margin-top: 1rem;
}

/* Skills Section */
.skills {
  margin-top: 10px;
}
.skills-content {
  text-align: center;
}

.skills-text {
  max-width: 700px;
  margin: 0 auto 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary-color);
}

.fab.fa-powerbi {
  -webkit-mask: url("https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/powerbi.svg")
    no-repeat center;
  mask: url("https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/powerbi.svg")
    no-repeat center;

  background-color: #e97627; /* Official Power BI Yellow */
  display: inline-block;
  width: 40px; /* adjust size */
  height: 40px;
  background-size: contain;
}

.fab.fa-tableau {
  /* Tableau SVG (monochrome) */
  -webkit-mask: url("https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/tableau.svg")
    no-repeat center;
  mask: url("https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/tableau.svg")
    no-repeat center;

  background-color: #e97627; /* Tableau official orange */
  display: inline-block;
  width: 40px; /* size */
  height: 40px;
  background-size: contain;
}

.fab.fa-jira {
  -webkit-mask: url("https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/jirasoftware.svg")
    no-repeat center;
  mask: url("https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/jirasoftware.svg")
    no-repeat center;

  background-color: #0052cc; /* Jira blue */
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: contain;
}

/* Projects Section */
.projects {
  margin-top: 20px;
}
.project-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: var(--transition);
}

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

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

.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Project Card Image Container */
.project-img {
  width: 100%;
  height: 200px; /* Adjust height as needed */
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Project Card Image hover effect */
/* .overview-image{
  border-radius: 20px;
} */
.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0rem;
  transition: transform 0.3s ease;
  /* border-radius: 1rem; */
}
.project-img {
  padding: 5px;
}
.news {
  padding: 3px;
}

/* Add hover effect */
.project-img:hover img {
  transform: scale(1.1);
  cursor: pointer;
}

/* Dark mode styles for project images */
body.dark-mode .project-img {
  background: #1a1a1a; /* Dark background for project images */
}

body.dark-mode .project-card {
  background: #262b33; /* Keep existing dark mode card background */
}

/* Update modal background for dark mode */
body.dark-mode .modal {
  background: rgba(0, 0, 0, 0.95); /* Slightly darker modal background */
}
/* Modal styles for image zoom */
/* Add or update modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal styles */
.modal-content {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  border-radius: 15px; /* Added border radius */
}

.modal-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: transparent;
  padding: 10px;
  border-radius: 15px; /* Added border radius */
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.2);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  background: rgba(255, 107, 107, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* Contact Section */
.contact {
  margin-top: 15px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

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

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-text h4 {
  margin-bottom: 0.25rem;
}

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

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

.social-link:hover {
  background: var(--dark-color);
  transform: translateY(-5px);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

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

.submit-btn {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: #444;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: color 0.2s;
}

/* Dark Mode Styles */
.dark-mode {
  --primary-color: #ff6b6b;
  --secondary-color: #546de5;
  --dark-color: #222;
  --light-color: #2d333b;
  --gray-color: #e0e0e0;
  --success-color: #20c997;
  --border-color: #444;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .navbar,
.dark-mode .footer {
  background-color: #222;
}

.dark-mode .section-title,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
  color: #e0e0e0;
}

.dark-mode .btn,
.dark-mode .primary-btn,
.dark-mode .secondary-btn {
  background-color: #2d333b;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .project-card,
.dark-mode .skill-card,
.dark-mode .about,
.dark-mode .contact {
  background-color: #262b33;
  color: #e0e0e0;
}

.dark-mode .progress-bar {
  background-color: #333;
}

.dark-mode .progress {
  background-color: #4f8cff;
}

.dark-mode .dark-mode-toggle {
  color: #e0e0e0;
}

/* Fix navbar links and logo color in dark mode */
body.dark-mode .navbar .nav-links a,
body.dark-mode .navbar .logo {
  color: #ff6b6b !important;
}

body.dark-mode .navbar .nav-links a:hover {
  color: var(--primary-color) !important;
}

/* Keep buttons using primary color in dark mode */
body.dark-mode .btn,
body.dark-mode .primary-btn {
  background: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .primary-btn:hover {
  background: transparent !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

body.dark-mode .filter-btn {
  color: #fff;
}

body.dark-mode .secondary-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

body.dark-mode .secondary-btn:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23272f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s;
}

.loader-logo {
  font-size: 2.5rem;
  color: #ff6b6b;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-width-md);
  }

  section {
    padding: 4rem 0;
  }

  .hero .container,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .about-image {
    width: 80%;
    margin: 0 auto;
  }

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

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    transition: var(--transition);
    gap: 1.5rem;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .profile-img-container {
    width: 300px;
    height: 300px;
  }

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

  .project-filters {
    flex-wrap: wrap;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .profile-img-container {
    width: 200px;
    height: 200px;
  }

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

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