/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.light-theme {
  background-color: #ffffff;
  color: #333;
}

.dark-theme {
  background-color: #1a1a1a;
  color: #e5e5e5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark-theme .navbar {
  background-color: rgba(26, 26, 26, 0.98);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.4rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.dark-theme .navbar-brand {
  color: #e5e5e5;
}

.navbar-brand:hover {
  color: #007acc;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: none;
  margin-left: auto;
  background: none;
  font-size: 1.5rem;
  color: #007acc;
}

.dark-theme .navbar-toggler {
  color: #007acc;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  display: none;
  vertical-align: middle;
  border-top: 0.25em solid currentColor;
  border-right: 0.25em solid currentColor;
  border-bottom: 0.25em solid currentColor;
  border-left: 0.25em solid currentColor;
}

.navbar-collapse {
  display: flex;
  flex-basis: auto;
  flex-grow: 1;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  margin-left: auto;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.dark-theme .nav-link {
  color: #e5e5e5;
}

.nav-link:hover {
  color: #007acc;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 1rem;
  color: #333;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
}

.dark-theme .theme-toggle {
  color: #e5e5e5;
}

.theme-toggle:hover {
  color: #007acc;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dark-theme .navbar-collapse {
    background-color: rgba(26, 26, 26, 0.98);
  }

  .navbar-collapse.show {
    max-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    gap: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dark-theme .nav-link {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .theme-toggle {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: 0;
    justify-content: flex-start;
  }

  .dark-theme .theme-toggle {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  display: none; /* Hidden on desktop */
}

.nav-toggle:hover {
  background-color: #f0f0f0;
}

.dark-theme .nav-toggle:hover {
  background-color: #333;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007acc;
  color: white;
}

.btn-primary:hover {
  background-color: #005999;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #007acc;
  border: 1px solid #007acc;
}

.btn-outline:hover {
  background-color: #007acc;
  color: white;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.dark-theme .btn-secondary {
  background-color: #333;
  color: #e5e5e5;
}

.dark-theme .btn-secondary:hover {
  background-color: #444;
}

/* Sections */
.section {
  padding: 2rem 0;
}

.dull-bg {
  background-color: #f8f9fa;
}

.dark-theme .dull-bg {
  background-color: #2a2a2a;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #007acc;
}

/* Hero Section */
.hero {
  padding: 3rem 0 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #007acc, #00d4aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #666;
}

.dark-theme .hero-text h2 {
  color: #ccc;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.hero-text .hero-highlights{
  font-size: 1.1rem;
  margin-left:1rem
}

.highlights{
  font-size: 1.1rem;
  margin-left:1rem
}

.dark-theme .hero-text p {
  color: #ccc;
}

.hero-meta {
  font-size: 1rem;
  color: #888;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image .profile-card {
  background-color: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .hero-image .profile-card {
  background-color: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.hero-image h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-image p {
  color: #666;
}

.dark-theme .hero-image p {
  color: #ccc;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .about-image img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.highlight {
  font-weight: 600;
}
.metric {
  font-weight: 700;
  font-size: 1.05em;
}



/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.skills-grid::-webkit-scrollbar {
  display: none;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .skill-item {
  background-color: #2a2a2a;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .skill-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.skill-item span {
  font-weight: 500;
  font-size: 0.9rem;
}

/* Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .experience-card {
  background-color: #2a2a2a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.experience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .experience-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card-left h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-left p {
  color: #666;
  margin-bottom: 0.25rem;
}

.dark-theme .card-left p {
  color: #ccc;
}

.card-right {
  text-align: right;
  color: #888;
  font-size: 0.9rem;
}

.experience-card ul {
  list-style: none;
  padding: 0;
}

.experience-card li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.experience-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #007acc;
  font-weight: bold;
}

.read-more-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1px solid #007acc;
  color: #007acc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.read-more-btn:hover {
  background-color: #007acc;
  color: white;
}

.dark-theme .read-more-btn {
  border-color: #4da6ff;
  color: #4da6ff;
}

.dark-theme .read-more-btn:hover {
  background-color: #4da6ff;
  color: #1a1a1a;
}

.hidden-project {
  display: none;
}

.experience-details {
  margin-top: 0.5rem;
}

.experience-details ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.experience-details li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.experience-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #007acc;
  font-weight: bold;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .project-card {
  background-color: #2a2a2a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dark-theme .project-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 1.5rem 1rem;
}

.project-card p {
  margin: 0 1.5rem 1rem;
  color: #666;
  line-height: 1.6;
}

.dark-theme .project-card p {
  color: #ccc;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 1.5rem 1.5rem;
}

.tech-tags span {
  background-color: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.dark-theme .tech-tags span {
  background-color: #444;
  color: #e5e5e5;
}

.project-card .btn {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dark-theme .contact-form {
  background-color: #2a2a2a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea,
.dark-theme .form-group select {
  background-color: #333;
  border-color: #555;
  color: #e5e5e5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #007acc;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  color: #007acc;
  width: 20px;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #007acc;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.dark-theme .footer {
  background-color: #1a1a1a;
  border-top-color: #333;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #666;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.dark-theme .social-links a {
  color: #ccc;
}

.social-links a:hover {
  color: #007acc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .profile-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .hero-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-links .btn {
    width: 100% !important;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -20px;
    width: calc(100vw - 40px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
    border-bottom: 1px solid #e5e5e5;
    z-index: 999;
  }

  .dark-theme .nav-links {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom-color: #333;
  }

  .nav-links.open {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .card-right {
    text-align: left;
  }
}

@media (max-width: 425px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .nav-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Awards Section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.award-card {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dark-theme .award-card {
  background-color: #2a2a2a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.award-icon {
  font-size: 2rem;
}

.award-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.award-meta {
  font-size: 0.9rem;
  color: #666;
}

.dark-theme .award-meta {
  color: #ccc;
}

.award-card p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

.dark-theme .award-card p {
  color: #ddd;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dark-theme .modal-content {
  background-color: #2a2a2a;
  color: #e5e5e5;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
  line-height: 1;
}

.dark-theme .modal-close {
  color: #e5e5e5;
}

.modal-close:hover {
  color: #007acc;
}

.modal-image {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal-content h2 {
  color: #333;
  font-size: 1.8rem;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.3;
}

.dark-theme .modal-content h2 {
  color: #e5e5e5;
}

.modal-company {
  color: #007acc;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  font-size: 0.95rem;
}

.dark-theme .modal-company {
  color: #66b3ff;
}

.modal-content p {
  margin: 1rem 0;
  line-height: 1.7;
  color: #555;
}

.dark-theme .modal-content p {
  color: #ccc;
}

.modal-content h3 {
  color: #333;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.dark-theme .modal-content h3 {
  color: #e5e5e5;
}

.modal-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.modal-content li {
  margin: 0.5rem 0;
  color: #555;
}

.dark-theme .modal-content li {
  color: #ccc;
}

.modal-content .tech-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-content .tech-tags span {
  background-color: #f0f0f0;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.dark-theme .modal-content .tech-tags span {
  background-color: #404040;
  color: #e5e5e5;
}

/* Close modal when clicking on background */
.modal {
  cursor: pointer;
}

.modal-content {
  cursor: default;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }
}