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

/* CSS 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: #e2e8f0;
  background-color: #111111;
  font-weight: 400;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

/* Experience page specific container */
body:has(.page-header) .container {
  max-width: 1400px;
}

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

/* Header */
.header {
  background: #111111;
  color: white;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* Expandable Menu Styles */
.menu-container {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
}

.menu-toggle {
  background: none;
  border: 2px solid #2d3748;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
  transform: scale(1.05);
  border-color: #667eea;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.menu-icon {
  width: 70px;
  height: 70px;
  display: block;
}

.expandable-menu {
  position: absolute;
  top: 85px;
  left: 0;
  background: #1a1a2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.expandable-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2d3748;
}

.menu-header-image {
  width: 60px;
  height: 60px;
}

.menu-header h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-items li {
  margin-bottom: 0.5rem;
}

.menu-items a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.menu-items a:hover {
  color: white;
  background: rgba(102, 126, 234, 0.1);
}

/* Main Content */
.main {
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  margin-bottom: 4rem;
}

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

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0aec0;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.location-icon {
  font-size: 0.875rem;
}

.hero-bio {
  font-size: 1.1rem;
  color: #cbd5e0;
  line-height: 1.7;
  max-width: 600px;
}

.contact-box {
  background: #1a1a2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  min-width: 60px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-icon:hover {
  color: #667eea;
  transform: translateY(-2px);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
}

/* Skills Section */
.skills-section {
  margin-bottom: 4rem;
}

.skills-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.skills-scroll-container::before,
.skills-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 1;
  pointer-events: none;
}

.skills-scroll-container::before {
  left: 0;
  background: linear-gradient(90deg, #111111 0%, transparent 100%);
}

.skills-scroll-container::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, #111111 100%);
}

.skills-scroll {
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}

.skills-scroll.animate {
  animation: scroll 20s linear infinite;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0rem 0.75rem 0rem 0rem;
  flex-shrink: 0;
}

.skill-item:hover {
  transform: translateY(-2px);
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 54px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.skill-name {
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  font-size: 1rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.skills-scroll-container:hover .skills-scroll {
  animation-play-state: paused;
}



/* Page Header */
.page-header {
  margin-bottom: 4rem;
  text-align: center;
}

.page-header-content {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #cbd5e0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #667eea;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
}

/* Experience Section */
.experience-section {
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #2d3748;
  transform: translateX(-50%);
}

.timeline-item.left {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item.right {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  margin-left: 50%;
}

.timeline-marker {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: #667eea;
  border-radius: 50%;
  border: 3px solid #1a1a2e;
  z-index: 2;
  box-shadow: 0 0 0 4px #2d3748;
  margin-top: 2.2rem;
}

.timeline-marker.left {
  right: 0;
  transform: translateX(50%);
}

.timeline-marker.right {
  left: 0;
  transform: translateX(-50%);
}

.timeline-content {
  background: #1a1a2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #667eea;
}

.timeline-item.left .timeline-content {
  margin-right: 2rem;
}

.timeline-item.right .timeline-content {
  margin-left: 2rem;
}

.timeline-item.left .timeline-content::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 2rem;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #1a1a2e;
}

.timeline-item.right .timeline-content::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 2rem;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #1a1a2e;
}

.company {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.position {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.date {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.description {
  color: #cbd5e0;
  line-height: 1.6;
}

/* Education Section */
.education-section {
  margin-bottom: 4rem;
}

.education-item {
  background: #1a1a2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 2rem;
}

.institution {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.degree {
  font-size: 1.1rem;
  font-weight: 600;
  color: #cbd5e0;
  margin-bottom: 0.5rem;
}

.date {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.gpa {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.courses h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.course-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem;
}

.course-list li {
  background: #16213e;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  font-size: 0.95rem;
  color: #cbd5e0;
}

/* Projects Section */
.projects-section {
  margin-bottom: 4rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-item {
  position: relative;
  background: #3b3b3b;
  border: 1px solid #2d3748;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 8px;
}

.project-item:hover {
  margin-bottom: 8px;
}

.project-image {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 20%, rgba(128, 128, 128, 0.9) 35%, rgba(128, 128, 128, 0.6) 50%, rgba(128, 128, 128, 0.2) 70%, transparent 85%);
  mask-image: linear-gradient(to bottom, black 0%, black 20%, rgba(128, 128, 128, 0.9) 35%, rgba(128, 128, 128, 0.6) 50%, rgba(128, 128, 128, 0.2) 70%, transparent 85%);
}

.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(128, 128, 128, 0.2) 70%, rgba(128, 128, 128, 0.4) 85%, rgba(128, 128, 128, 0.6) 100%),
    radial-gradient(ellipse at center bottom, transparent 0%, transparent 40%, rgba(128, 128, 128, 0.1) 60%, rgba(128, 128, 128, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transition: background 0.8s ease;
  z-index: 2;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.project-tech {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-description {
  color: #cbd5e0;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-item:hover .project-description {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

.project-description a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.project-description a:hover {
  text-decoration: underline;
}

/* Skills Categories Page */
.skills-categories {
  margin-bottom: 4rem;
}

.skills-category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ff4444;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skill-card {
  background: #1a1a2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #ff4444;
  box-shadow: 0 8px 25px rgba(255, 68, 68, 0.2);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover .skill-icon svg {
  transform: scale(1.1);
}

.skill-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.skill-icon svg {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.skill-description {
  font-size: 0.9rem;
  color: #a0aec0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .menu-container {
    top: 1rem;
    left: 1rem;
  }
  
  .menu-icon {
    width: 45px;
    height: 45px;
  }
  
  .expandable-menu {
    min-width: 220px;
    padding: 1.25rem;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .skills-scroll-container {
    margin: 1.5rem 0;
  }
  
  .skill-item {
    min-width: 160px;
    width: 160px;
    padding: 1rem 1.5rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline::before {
    left: 1.5rem;
    transform: none;
    width: 4px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    padding-left: 3rem;
    padding-right: 0;
  }
  
  .timeline-marker {
    left: 1.5rem;
    transform: translateX(-50%);
    margin-left: 0;
  }
  
  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin-left: 0;
    margin-right: 0;
  }
  
  .timeline-item.left .timeline-content::after,
  .timeline-item.right .timeline-content::after {
    display: none;
  }
  
  .projects-grid {
    gap: 1.5rem;
  }
  
  .project-image {
    height: 250px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .course-list {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .skill-card {
    padding: 1.25rem;
  }
  
  .skill-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .category-title {
    font-size: 1.75rem;
  }

}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .timeline-content,
  .education-item {
    padding: 1.5rem;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .skill-item {
    min-width: 140px;
    width: 140px;
    padding: 0.75rem 1rem;
  }
  
  .skill-icon {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  .skill-name {
    font-size: 0.9rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  
  .skill-card {
    padding: 1rem;
  }
  
  .skill-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .skill-name {
    font-size: 1rem;
  }
  
  .skill-description {
    font-size: 0.8rem;
  }
  
  .category-title {
    font-size: 1.5rem;
  }

}