/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* Base styles and transitions */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background-color 0.5s, color 0.5s;
}

/* Light and Dark mode themes */
.light-mode {
  background-color: #fff;
  color: #121212;
}

.dark-mode {
  background-color: #121212;
  color: #fff;
}

.light-mode .box,
.light-mode .award-box,
.light-mode .contact-box {
  border-color: #ddd;
  background-color: #f9f9f9;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .box,
.dark-mode .award-box,
.dark-mode .contact-box {
  border-color: #333;
  background-color: #1e1e1e;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.5s;
  display: flex;
  flex-direction: column;
}

.dark-mode .navbar {
  background-color: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

/* Navbar content */
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 20px;
}

/* Hamburger icon */
.hamburger {
  cursor: pointer;
  font-size: 1.5rem;
}

/* Dark/Light mode toggle button */
.mode-toggle {
  width: 40px;
  height: 40px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.dark-mode .mode-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Nav links dropdown */
.nav-links {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: inherit;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  clip-path: circle(0 at top left);
  transition: clip-path 0.5s ease-in-out;
  pointer-events: none;
  margin: 0;
  display: flex;
  list-style: none;
}

.nav-links.active {
  clip-path: circle(150% at top left);
  pointer-events: all;
}

.nav-links li {
  margin: 15px 0;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Container for page content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 0;
}

/* Home and About container styling */
.home-about-container {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 30px 0;
}

.home-about-container .half-box {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive adjustments for Home-About container */
@media (max-width: 768px) {
  .home-about-container {
    flex-direction: column;
  }
  .home-about-container .half-box {
    margin-bottom: 20px;
  }
}

/* Section styling with reveal animation */
section {
  padding: 40px 0;
  border-bottom: 1px solid #ccc;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.dark-mode section {
  border-bottom: 1px solid #333;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: currentColor;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Home Box: Styling for header inside Home section */
.home-box header {
  text-align: center;
}

.home-box img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid currentColor;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin: 0 auto;
}

.dark-mode .home-box img {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.home-box img:hover {
  transform: scale(1.05);
}

.social-icons {
  margin-top: 25px;
}

.social-icons a {
  margin: 0 15px;
  text-decoration: none;
  font-size: 24px;
  color: inherit;
  transition: transform 0.2s, color 0.3s;
  display: inline-block;
}

.social-icons a:hover {
  transform: translateY(-5px);
}

/* Button styling */
.button {
  display: inline-block;
  padding: 12px 25px;
  margin: 15px 10px;
  text-decoration: none;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
  transition: all 0.3s;
  border: 1px solid currentColor;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dark-mode .button {
  background: rgba(255, 255, 255, 0.1);
}

.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: width 0.3s;
  z-index: -1;
}

.dark-mode .button:before {
  background: rgba(255, 255, 255, 0.05);
}

.button:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dark-mode .button:hover {
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.button:hover:before {
  width: 100%;
}

/* Box style for Education, Experience, and Awards */
.box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 10px;
  transition: all 0.3s;
}

.wide-box {
  max-width: 90%;
}

.box img {
  max-width: 100px;
  margin-right: 30px;
  border-radius: 8px;
}

/* Combined hover effects for boxes */
.box:hover,
.award-box:hover,
.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-mode .box:hover,
.dark-mode .award-box:hover,
.dark-mode .contact-box:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

/* Projects grid styling */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 15px;
}

.project-item {
  background: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.project-description {
  margin-bottom: 15px;
}

.project-description ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.project-description li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  position: relative;
  padding-left: 15px;
}

.project-description li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.project-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-keywords span {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark-mode .project-keywords span {
  background: var(--dark-bg);
  border-color: var(--dark-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: var(--bg-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .project-links a {
  background: var(--dark-bg);
  border-color: var(--dark-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.dark-mode .project-links a:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-links a i {
  margin-right: 8px;
}

/* Dark mode adjustments */
.dark-mode .project-item {
  background: var(--dark-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* Award box styling */
.award-box {
  border: 1px solid #ccc;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border-radius: 10px;
  transition: all 0.3s;
}

/* Contact section styling */
.contact-box {
  border: 1px solid #ccc;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-email i {
  margin-right: 10px;
  color: inherit;
}

/* Utility class for full-width boxes */
.full-box {
  width: 100%;
  max-width: 100%;
}

/* Combined Home-About section styling */
.home-about-combined {
  display: flex;
  gap: 20px;
  align-items: center;
}

.home-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-right {
  flex: 2;
  padding: 20px;
}

/* Profile image container styling - fixed for portrait dimensions (2316x3088) */
.circle {
  width: 140px; /* Fixed width */
  position: relative;
  /* This positions the image with left edge aligned and cuts from the right */
  display: flex;
  justify-content: flex-start; /* Aligns content to the left */
  
  
  height: 240px; /* Height maintained for aspect ratio */
  border: 4px solid currentColor; /* Border changes with theme */
  border-radius: 8px; /* Subtle rounded corners */
  overflow: hidden; /* Ensure image stays contained */
  margin: 0 auto 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(15px); /* Position adjustment */
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.circle img {
  width: auto; /* Allow width to be determined by height */
  height: 100%; /* Fill the height of container */
  max-width: none; /* Override any max-width restrictions */
  object-fit: contain; /* Show entire image without cropping */
  object-position: center; /* Center the image */
  display: block; /* Removes any default spacing */
}

.dark-mode .circle {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.circle:hover {
  transform: translateX(15px) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark-mode .circle:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

/* Image Container with adaptive border */
.profile-image-container {
  width: 180px;
  height: 220px; /* Adjust as needed for your picture */
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid currentColor;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

.dark-mode .profile-image-container {
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

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

/* Centering Name with Image Vertically */
.home-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Work Experience Enhanced Styling */
.experience-details {
  margin-left: 20px;
}

.experience-details h3 {
  margin-bottom: 5px;
}

.duration {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: inline-block;
}

.experience-details ul {
  padding-left: 20px;
  margin: 0;
}

.experience-details ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media(max-width:768px) {
  .box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .experience-details {
    margin-left: 0;
    margin-top: 15px;
  }

  .profile-image-container {
    margin-bottom: 10px;
  }
}

/* News Section - Vertical Timeline like the image */
.news-timeline {
  max-width: 650px;
  margin: 0 auto;
  padding: 15px 0;
  position: relative;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ddd;
}

.dark-mode .news-timeline::before {
  background-color: #555;
}

.news-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 40px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 14px;
  height: 14px;
  background-color: #333;
  border-radius: 50%;
  z-index: 1;
}

.dark-mode .news-item::before {
  background-color: #fff;
}

.news-date {
  color: #007bff;
  font-weight: 600;
  white-space: nowrap;
  margin-right: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}

.news-description {
  color: var(--text-color);
  line-height: 1.5;
  font-size: 1rem;
  flex: 1;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .news-timeline {
    max-width: 90%;
  }
  
  .news-item {
    flex-direction: column;
    gap: 5px;
    padding-left: 30px;
  }
  
  .news-date {
    white-space: normal;
  }
}

/* Skills Section */
.skills-category {
  margin-bottom: 35px;
}

.skills-category h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-color);
  text-align: center;
  font-weight: 600;
}

/* Programming Languages with Progress Bars */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-color, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark-mode .skill-item {
  background: var(--dark-bg, #1e1e1e);
  border-color: var(--dark-border, #333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .skill-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--accent-color, #007bff);
}

.skill-content {
  flex: 1;
}

.skill-name {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 1rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.dark-mode .skill-bar {
  background: rgba(255, 255, 255, 0.1);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color, #007bff), #0056b3);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Frameworks & Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 10px;
  background: var(--bg-color, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.dark-mode .tool-item {
  background: var(--dark-bg, #1e1e1e);
  border-color: var(--dark-border, #333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color, #007bff);
}

.dark-mode .tool-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tool-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #007bff), #0056b3);
  border-radius: 12px;
  color: white;
  font-size: 1.4rem;
}

.tool-icon-svg {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 6px;
  box-sizing: border-box;
}

.tool-icon-svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-icon-svg.cuda {
  background: linear-gradient(135deg, #76B900, #00A86B);
  padding: 4px;
}

.tool-icon-svg.cuda img {
  border-radius: 4px;
}

/* Brand-specific colors for tools */
.tool-icon.numpy {
  background: linear-gradient(135deg, #013243, #4CAF50);
  font-weight: bold;
  font-size: 1.2rem;
}

.tool-icon.pytorch {
  background: linear-gradient(135deg, #EE4C2C, #FF6B35);
  font-size: 1.3rem;
}

.tool-icon.tensorflow {
  background: linear-gradient(135deg, #FF6F00, #FFA726);
  font-weight: bold;
  font-size: 1.1rem;
}

.tool-icon.opencv {
  background: linear-gradient(135deg, #5C3EE8, #7C4DFF);
  font-size: 1.3rem;
}

.tool-icon.pandas {
  background: linear-gradient(135deg, #150458, #2E7D32);
  font-size: 1.3rem;
}

.tool-icon.sklearn {
  background: linear-gradient(135deg, #F7931E, #FF9800);
  font-size: 1.2rem;
}

.tool-icon.seaborn {
  background: linear-gradient(135deg, #4DB6AC, #00BCD4);
  font-size: 1.2rem;
}

.tool-icon.spark {
  background: linear-gradient(135deg, #E25A1C, #FF5722);
  font-size: 1.3rem;
}

.tool-icon.cuda {
  background: linear-gradient(135deg, #76B900, #00A86B);
  font-size: 1.3rem;
}

.tool-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Languages Grid */
.languages-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--bg-color, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 0;
}

.dark-mode .language-item {
  background: var(--dark-bg, #1e1e1e);
  border-color: var(--dark-border, #333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.language-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .language-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.language-flag {
  font-size: 2rem;
  flex-shrink: 0;
}

.language-content {
  flex: 1;
}

.language-name {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
  font-size: 1rem;
}

.language-level {
  display: block;
  color: var(--accent-color, #007bff);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile Responsiveness for Skills */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .languages-grid {
    flex-direction: column;
    gap: 15px;
  }
  
  .language-item {
    flex: none;
  }
  
  .skill-item,
  .tool-item,
  .language-item {
    padding: 15px;
  }
}

/* Add CSS variables for consistent colors */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --accent-color: #007bff;
  --dark-bg: #1a1a1a;
  --dark-text: #ffffff;
  --dark-border: #333333;
}

.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --border-color: #333333;
}
