/* Modern Portfolio Website - Siam Hossain */
/* Simplified CSS compatible with Materialize */

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

/* CSS Variables for consistent theming */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #6366f1;
  --secondary-color: #06b6d4;
  --accent-color: #10b981;
  --warning-color: #f59e0b;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --background-primary: #ffffff;
  --background-secondary: #f9fafb;
  --background-dark: #111827;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --header-bg: #ffffff;
  --section-bg: #f8fafc;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base typography improvements */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Modern Profile Picture */
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: -35px auto 0;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.profile-pic:hover img {
  transform: scale(1.05);
}

/* Modern Top Navigation - Blue to Purple Gradient Header */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  border-bottom: none;
  box-shadow: none;
  min-width: 100vw;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Brand/Logo */
.navbar-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.brand-avatar:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  justify-content: center;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  line-height: 1.2;
}

.brand-title {
  font-size: 0.8rem;
  color: #c7d2fe;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Desktop Navigation */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
}

.nav-link {
  color: #e0e7ff;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  background: none;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
  font-weight: 600;
}

.nav-link.resume-link {
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  color: #fff;
  margin-left: 1rem;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12);
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  border: 2px solid #fff;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.nav-link.resume-link:hover, .nav-link.resume-link.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.18);
  border-color: #6366f1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(37, 99, 235, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  max-height: 500px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--background-secondary);
  color: var(--primary-color);
  padding-left: 2.5rem;
}

.mobile-nav-link.resume-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  margin: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border-bottom: none;
  text-align: center;
}

.mobile-nav-link.resume-link:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  padding-left: 2rem;
}

.mobile-nav-link.active {
  background: var(--background-secondary);
  color: var(--primary-color);
  font-weight: 600;
  border-left: 4px solid var(--primary-color);
}

/* Hero Section Enhancements */
#intro.section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#intro.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

#intro.section .container {
  position: relative;
  z-index: 2;
  color: white;
}

#intro.section h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

#intro.section h5 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.typing {
  color: #fbbf24 !important;
  font-weight: 600;
}

.intro-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400;
}

.intro-description {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
}

/* Modern Social Buttons */
.social {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.icon-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Modern Buttons */
.readme, .contactme {
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
  margin: 0.5rem;
  border: 2px solid transparent;
  text-decoration: none;
}

.readme {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.readme:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contactme {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.contactme:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Section Titles */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.page-title.white-text.teal {
  color: white !important;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  padding: 2rem 0;
  margin-bottom: 0;
  margin-top: 0;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Enhanced Cards */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card .card-content {
  padding: 2rem;
}

.card .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Skills Section */
#skills .card {
  background: linear-gradient(135deg, white, var(--background-secondary));
}

#skills h4 {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

#skills .col img.responsive-img {
  max-height: 80px;
  transition: var(--transition);
  filter: none;
  opacity: 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#skills .col:hover img.responsive-img {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

#skills .col {
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

#skills .col:hover {
  transform: translateY(-5px);
}

/* Project Cards */
.project-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card .card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-card .card-content {
  padding: 1.5rem;
}

.project-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-card .card-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-card .card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--background-secondary);
  border-top: 1px solid var(--border-light);
}

.project-card .view-details-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.project-card .view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-card .external-link-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.project-card .external-link-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Card Reveal */
.project-card .card-reveal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 0;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.project-card .card-reveal.active {
  transform: translateY(0);
}

.project-card .card-reveal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--background-secondary);
  flex-shrink: 0;
}

.project-card .card-reveal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.project-card .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card .close-btn:hover {
  background: var(--background-secondary);
  color: var(--text-primary);
}

.project-card .card-reveal-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  min-height: 200px;
}

.project-card .card-reveal-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card .card-reveal-content li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-card .card-reveal-content li:last-child {
  border-bottom: none;
}

.project-card .card-reveal-content li b {
  color: var(--text-primary);
  font-weight: 600;
}

.project-card .card-reveal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  flex-shrink: 0;
  background: var(--background-secondary);
}

.project-card .card-reveal-footer .btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card .card-reveal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Resume Section */
.resume-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.resume-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem;
  background: var(--background-secondary);
  border-bottom: 1px solid var(--border-color);
}

.resume-download-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color)) !important;
}

.resume-close-btn {
  background: var(--text-secondary) !important;
}

.resume-viewer {
  padding: 0;
  background: white;
}

.resume-viewer iframe {
  border: none;
  width: 100%;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, var(--background-secondary), white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}

.contact-item h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

/* Enhanced Links */
a.hoverline {
  border-bottom: 2px solid transparent;
  padding: 0.25rem 0;
  transition: var(--transition);
}

a.hoverline:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.teal-text {
  color: var(--primary-color) !important;
}

.teal {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Main Content Layout */
main {
  padding-top: 80px; /* Account for fixed navbar */
}

/* Center all section content */
.section {
  padding: 5rem 0;
  position: relative;
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Remove old Materialize overrides */
.hide-on-small-only,
.hide-on-large,
.side-nav,
.button-collapse {
  display: none !important;
}

/* Eliminate all red/pink backgrounds from nav/header */
.top-navbar,
.navbar-container,
.navbar-brand,
.navbar-menu,
nav,
nav *,
.navbar-container * {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.top-navbar {
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%) !important;
  min-width: 100vw;
}

/* Responsive Design */
@media (max-width: 992px) {
  .navbar-container {
    padding: 0 1rem;
  }
  .brand-text {
    display: none;
  }
  .navbar-menu {
    background: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  #intro.section h2 {
    font-size: 2.5rem;
  }
  
  #intro.section h5 {
    font-size: 1.25rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card .card-content {
    padding: 1.5rem;
  }
  
  .project-card .card-image {
    height: 200px;
  }
  
  .project-card .card-actions {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .project-card .view-details-btn,
  .project-card .external-link-btn {
    width: 100%;
    justify-content: center;
  }
  
  .social {
    justify-content: center;
  }
  
  .icon-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .readme, .contactme {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #intro.section h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 0.75rem;
  }
  
  .card .card-content {
    padding: 1rem;
  }
  
  .project-card .card-image {
    height: 180px;
  }
  
  .project-card .card-content {
    padding: 1rem;
  }
  
  .project-card .card-actions {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .social {
    gap: 0.75rem;
  }
  
  .icon-btn {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
.project-card .card-reveal-content::-webkit-scrollbar {
  width: 6px;
}

.project-card .card-reveal-content::-webkit-scrollbar-track {
  background: var(--background-secondary);
  border-radius: 3px;
}

.project-card .card-reveal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.project-card .card-reveal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* Animation delays for project cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .project-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Modern Experience Timeline - Improved Readability */
.experience-timeline {
  position: relative;
  padding-left: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.exp-timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.exp-timeline-item:last-child {
  margin-bottom: 0;
}

.exp-timeline-dot {
  position: absolute;
  left: -24px;
  top: 32px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
  border: 3px solid #fff;
  z-index: 2;
}

.experience-timeline:before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c7d2fe 0%, #a5b4fc 100%);
  border-radius: 2px;
  z-index: 1;
}

.exp-timeline-item:last-child:after {
  content: '';
  position: absolute;
  left: -16px;
  top: 48px;
  width: 4px;
  height: calc(100% - 48px);
  background: transparent;
  z-index: 1;
}

.exp-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.08);
  padding: 2rem 2rem 1.5rem 2rem;
  margin-left: 0;
  position: relative;
  z-index: 3;
  transition: box-shadow 0.2s;
  border: 1.5px solid #f3f4f6;
}

.exp-card + .exp-card {
  margin-top: 2.5rem;
}

.exp-card:hover {
  box-shadow: 0 8px 32px 0 rgba(44, 62, 80, 0.16);
  border-color: #e0e7ff;
}

.exp-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.exp-logo-badge {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.exp-logo-badge img {
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
}

.exp-header-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exp-company {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.5px;
}

.exp-role {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exp-meta {
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-top: 0.1rem;
}

.exp-bullets {
  margin: 1.2rem 0 0.7rem 0;
  padding-left: 1.2rem;
  list-style: disc;
  color: #22223b;
  font-size: 1.08rem;
}

.exp-bullets li {
  margin-bottom: 1.1rem;
  line-height: 1.8;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.exp-bullets li:last-child {
  border-bottom: none;
}

.exp-tools-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-tool {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.3rem 1rem;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.08);
  letter-spacing: 0.2px;
  transition: background 0.2s;
}

.exp-tool:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

@media (max-width: 768px) {
  .experience-timeline {
    padding-left: 20px;
  }
  .exp-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .exp-card {
    padding: 1.2rem 1rem 1rem 1rem;
  }
  .exp-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .exp-logo-badge img {
    max-width: 32px;
    max-height: 32px;
    border-radius: 8px;
  }
}

/* Modern Education Card */
.education-card-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.education-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.10);
  padding: 2.2rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto 2.5rem auto;
  border: 1.5px solid #f3f4f6;
}

.edu-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.edu-logo-badge {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.edu-logo-badge img {
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
}

.edu-header-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.edu-institution {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.5px;
}

.edu-meta {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.edu-degree {
  font-size: 1rem;
  color: #22223b;
  margin-bottom: 0.1rem;
}

.edu-cgpa {
  font-size: 1rem;
  color: #2563eb;
  margin-bottom: 0.1rem;
}

.edu-courseworks {
  margin-top: 1.2rem;
  width: 100%;
}

.edu-course-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.edu-bullets {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
  color: #22223b;
  font-size: 1.05rem;
}

.edu-bullets li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .education-card {
    padding: 1.2rem 1rem 1rem 1rem;
  }
  .edu-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .edu-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .edu-logo-badge img {
    max-width: 32px;
    max-height: 32px;
    border-radius: 8px;
  }
}

/* Consistent vertical spacing for all main cards */
.project-card,
#skills .card,
.education-card,
.contact-item,
.resume-container {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Remove white gap on scroll: adjust scroll-margin-top for all sections */
.section {
  scroll-margin-top: 90px;
}

/* Resume card polish */
.resume-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.10);
  padding: 2.2rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.5px solid #f3f4f6;
}
.resume-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 1.2rem;
}
.resume-download-btn, .resume-view-btn {
  background: linear-gradient(135deg, #06b6d4, #7c3aed) !important;
  color: #fff !important;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.08);
  letter-spacing: 0.2px;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.resume-download-btn:hover, .resume-view-btn:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}
.resume-close-btn {
  background: #e5e7eb !important;
  color: #22223b !important;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.5rem 1.2rem;
  margin-left: 0.5rem;
}
.resume-viewer {
  width: 100%;
  min-height: 600px;
  background: #f9fafb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.04);
}
.resume-viewer iframe {
  border: none;
  width: 100%;
  min-height: 600px;
}

@media (max-width: 768px) {
  .project-card,
  #skills .card,
  .education-card,
  .contact-item,
  .resume-container {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
  .resume-container {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .resume-viewer, .resume-viewer iframe {
    min-height: 350px;
  }
}

/* Modern About Section */
.about-card-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.about-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.10);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto 2.5rem auto;
  border: 1.5px solid #f3f4f6;
}

.about-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.about-left {
  flex: 1.2;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: flex-start;
}

.about-name-role {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.about-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: 0.5px;
}

.about-role {
  font-size: 1.1rem;
  color: #6366f1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-intro {
  font-size: 1.08rem;
  color: #22223b;
  line-height: 1.7;
}

.about-specialization {
  font-size: 1.05rem;
  color: #2563eb;
  font-weight: 500;
  line-height: 1.6;
}

.about-degree {
  font-size: 1.05rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.6;
}

.about-right {
  flex: 1.5;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: flex-start;
}

.about-skills-group {
  margin-bottom: 0.2rem;
}

.about-skills-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 0.3rem;
}

.about-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-skill-tag {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 0.75rem;
  padding: 0.3rem 1.1rem;
  box-shadow: 0 1px 4px rgba(44, 62, 80, 0.08);
  letter-spacing: 0.2px;
  transition: background 0.2s;
}

.about-skill-tag:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.about-final-line {
  margin-top: 2.2rem;
  font-size: 1.13rem;
  color: #2563eb;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .about-row {
    flex-direction: column;
    gap: 2rem;
  }
  .about-left, .about-right {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .about-card {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .about-final-line {
    margin-top: 1.2rem;
    font-size: 1.01rem;
  }
}