/* Modern styling with icons */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #3f37c9;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --gradient-start: #4361ee;
  --gradient-end: #3a0ca3;
}

/* Basic styling */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--light-bg);
  position: relative;
}

/* Back button styling */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-3px);
}

.back-button i {
  font-size: 1.2rem;
}

/* Container to center content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Centered image styles */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Header styles - Modern redesign */
header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 3rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA3KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.6;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-text {
  text-align: center;
}

.header-text h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.header-text p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Centered image container for project pages */
.image-container {
  text-align: center;
  margin: 1.5rem 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.image-caption {
  margin-top: 0.5rem;
  font-style: italic;
  color: #666;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

nav a::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

nav a[href="#about"]::before {
  content: '\f007';
}

nav a[href="#education"]::before {
  content: '\f19d';
}

nav a[href="#experience"]::before {
  content: '\f0b1';
}

nav a[href="#projects"]::before {
  content: '\f0e8';
}

nav a[href="#interests"]::before {
  content: '\f06c';
}

nav a[href="#contact"]::before {
  content: '\f2a0';
}

/* Sections */
section {
  padding: 2.5rem 1.5rem;
  background: white;
  margin: 1.5rem auto;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  max-width: 1000px;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out forwards;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h2 {
  color: var(--secondary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.75rem;
  margin-top: 0;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

h3 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
}

.skills-section h3::before {
  content: '\f085';
}

.education-item h3::before {
  content: '\f19d';
}

.experience-item h3::before {
  content: '\f0b1';
}

.project-category h3::before {
  content: '\f0e8';
}

.interest-category h3::before {
  content: '\f06c';
}

.collaboration-category h3::before {
  content: '\f0c0';
}

.references h3::before {
  content: '\f2bb';
}

/* Cards */
.project, .education-item, .experience-item, .reference {
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: var(--light-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.project:hover, .education-item:hover, .experience-item:hover, .reference:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.date {
  color: #7f8c8d;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date::before {
  font-family: 'Font Awesome 6 Free';
  content: '\f073';
  font-weight: 400;
  font-style: normal;
}

.company {
  font-weight: 500;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}

/* Lists */
ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

ul li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: -1.5rem;
  top: 0.1rem;
  font-size: 0.8rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding-left: 0;
}

.skills-list li {
  background: rgba(67, 97, 238, 0.1);
  padding: 0.75rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  transition: var(--transition);
}

.skills-list li:hover {
  background: rgba(67, 97, 238, 0.2);
  transform: translateX(5px);
}

.skills-list li::before {
  content: '\f00c';
  position: static;
  margin-right: 0.5rem;
}

/* Links */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 1rem;
  transition: var(--transition);
  font-weight: 500;
}

.project-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.project-link::before {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* Updated Contact section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding-left: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(67, 97, 238, 0.1);
  border-radius: 10px;
  transition: var(--transition);
  border-left: 3px solid var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
}

.contact-item:hover {
  background: rgba(67, 97, 238, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--accent-color);
  transform: scale(1.1);
}

.contact-text {
  flex-grow: 1;
}

.contact-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Specific icon colors */
.contact-item[data-type="email"] .contact-icon {
  background: #d44638;
}

.contact-item[data-type="phone"] .contact-icon {
  background: #25D366;
}

.contact-item[data-type="location"] .contact-icon {
  background: #FF5A5F;
}

.contact-item[data-type="github"] .contact-icon {
  background: #333;
}

.contact-item[data-type="linkedin"] .contact-icon {
  background: #0077B5;
}

.references {
  margin-top: 2rem;
}

.reference {
  background: var(--light-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

/* Updated Footer Styles */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  margin-top: 3rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA3KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.4;
}

footer .container {
  position: relative;
  z-index: 1;
}

footer p {
  margin: 0.5rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.footer-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-link i {
  font-size: 1.2rem;
}

/* Interests section */
.interests-container {
  display: grid;
  gap: 2rem;
}

.interests-list, .collaboration-list {
  padding-left: 1.5rem;
}

.interests-list li, .collaboration-list li {
  margin-bottom: 0.75rem;
}

.collaboration-cta {
  background: rgba(67, 97, 238, 0.1);
  padding: 1rem;
  border-radius: 5px;
  border-left: 3px solid var(--primary-color);
  font-style: italic;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .profile-header {
    flex-direction: row;
    gap: 3rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  section {
    padding: 3rem 2rem;
  }

  .interests-container {
    grid-template-columns: 1fr 1fr;
  }

  .project img {
    max-width: 80%;
    margin: 1rem auto;
  }
}

@media (max-width: 480px) {
  .skills-list, .contact-info {
    grid-template-columns: 1fr;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  
  .project-link {
    width: 100%;
    justify-content: center;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .project img {
    max-width: 100%;
    margin: 1rem auto;
  }

  .header-text h1 {
    font-size: 2rem;
  }

  .header-text p {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin-bottom: 0.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .footer-link {
    width: 100%;
    justify-content: center;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delay animations for each section */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
