/* CSS Variables for Design System */
:root {
  --background: #0a0e1a;
  --foreground: #f8fafc;
  --card: #1e2938;
  --card-foreground: #f8fafc;
  --primary: #3b82f6;
  --primary-foreground: #0a0e1a;
  --secondary: #06b6d4;
  --secondary-foreground: #0a0e1a;
  --muted: #374151;
  --muted-foreground: #9ca3af;
  --accent: #06b6d4;
  --accent-foreground: #0a0e1a;
  --border: #374151;
  --font-sans: 'Inter', sans-serif;
  --radius: 0.5rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--secondary);
}

.nav-links.desktop {
  display: flex;
  gap: 2rem;
}

.nav-links button {
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-links button:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: var(--foreground);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.mobile-nav-links {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links button {
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
  text-align: left;
  transition: color 0.3s ease;
}

.mobile-nav-links button:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a 0%, #1e293b 50%, #0a0e1a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-text {
  margin-bottom: 2rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn.primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn.secondary {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--foreground);
}

.btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
}

.download-icon {
  font-size: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.social-link {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: var(--primary);
}

.social-link.large {
  font-size: 2rem;
}

.icon {
  display: inline-block;
}

.icon.large {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.icon.linkedin,
.icon.github,
.icon.mail {
  width: 24px;
  height: 24px;
  display: inline-block;
  border-radius: 4px;
}

.icon.github.small,
.icon.linkedin.small,
.icon.mail.small {
  width: 20px;
  height: 20px;
}

.icon.github.large,
.icon.linkedin.large,
.icon.mail.large {
  width: 40px;
  height: 40px;
}

/* Education Section */
.education-section {
  padding: 5rem 0;
  background: var(--background);
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--foreground);
}

.education-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.education-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.university-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.degree {
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.minor {
  color: var(--muted-foreground);
}

.education-details {
  text-align: right;
  margin-top: 1rem;
}

.graduation {
  color: var(--accent);
  font-weight: 500;
}

.gpa {
  color: var(--muted-foreground);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.master-degree {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.master-graduation {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.coursework-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.coursework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.course-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: center;
}

/* Experience Section */
.experience-section {
  padding: 5rem 0;
  background: rgba(59, 130, 246, 0.02);
}

.timeline {
  position: relative;
  max-width: 6xl;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--background);
}

.experience-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.experience-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.company {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.position {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.location {
  color: var(--muted-foreground);
}

.duration {
  color: var(--accent);
  font-weight: 500;
  margin-top: 1rem;
}

.achievements {
  list-style: none;
  margin-top: 1rem;
}

.achievements li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.achievements li::before {
  content: '✓';
  color: var(--secondary);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
  background: var(--background);
}

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

.project-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.project-image {
  width: 100%;
  height: 192px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.project-category.operating-systems {
  background: rgba(220, 38, 38, 0.2);
  color: #ef4444;
}

.project-category.iot {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
}

.project-category.fpga {
  background: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
}

.project-category.senior-design {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary);
}

.project-category.automation {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
}

.project-category.network-programming {
  background: rgba(6, 182, 212, 0.2);
  color: var(--secondary);
}

.project-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-duration {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.github-link {
  color: var(--primary);
  transition: color 0.3s ease;
  text-decoration: none;
}

.github-link:hover {
  color: var(--secondary);
}

.view-all-projects {
  text-align: center;
  margin-top: 3rem;
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  background: rgba(59, 130, 246, 0.02);
}

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

.skill-category {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-category-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.skill-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: center;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--background);
}

.contact-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-card {
  max-width: 24rem;
  margin: 0 auto 3rem;
}

.contact-email {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-email h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-email a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email a:hover {
  color: var(--primary);
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--muted-foreground);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links.desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu.show {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .education-header {
    text-align: left;
  }

  .education-details {
    text-align: left;
    margin-top: 1rem;
  }

  .experience-header {
    text-align: left;
  }

  .duration {
    text-align: left;
    margin-top: 1rem;
  }

  .coursework-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-line {
    left: 1rem;
  }

  .timeline-item::before {
    left: 0.5rem;
  }
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .education-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .education-details {
    text-align: right;
    margin-top: 0;
  }

  .experience-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .duration {
    text-align: right;
    margin-top: 0;
  }

  .coursework-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}