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

/* CSS Variables */
:root {
  --background: #121212;
  --text-primary: #E0E0E0;
  --accent: #00BFFF;
  --text-secondary: #B0B0B0;
  --card-bg: #1E1E1E;
  --border: #2A2A2A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0099CC;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Classes */
.min-h-screen {
  min-height: 100vh;
}

.section {
  min-height: 100vh;
  padding: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.accent-text {
  color: var(--accent);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
}

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

.btn:hover {
  background: #0099CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 191, 255, 0.3);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

/* Desktop Navigation Styles */
.desktop-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: block;
}

.nav-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.nav-item:hover {
  color: var(--accent);
  background: rgba(0, 191, 255, 0.1);
}

.nav-item.nav-item-active {
  color: var(--accent);
  background: rgba(0, 191, 255, 0.15);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-item:hover .nav-dot,
.nav-item.nav-item-active .nav-dot {
  background: var(--accent);
  transform: scale(1.2);
}

.nav-label {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.nav-item:hover .nav-label {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Navigation Styles */
.mobile-nav {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: none;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hamburger-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 191, 255, 0.1);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  margin: 2px 0;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-menu.mobile-menu-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  background: rgba(0, 191, 255, 0.1);
  color: var(--accent);
}

.mobile-nav-item.mobile-nav-item-active {
  background: rgba(0, 191, 255, 0.15);
  color: var(--accent);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.headshot-container {
  position: relative;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background-image: url('headshot.jpg');
  background-size: 105%;
  background-position: 40% 9%;
}

.headshot-img {
  display: none;
}

.hero-content {
  text-align: center;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-paragraph {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

/* Experience Section */
.experience-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-wrapper {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  display: none;
}

.experience-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 1.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--background);
  display: none;
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.experience-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
}

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

.experience-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.experience-company {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience-period {
  color: var(--text-secondary);
  font-weight: 500;
}

.experience-content {
  max-height: 5rem;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.experience-card:hover .experience-content {
  max-height: 35rem;
}

.experience-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* Custom list style for experience description */

.experience-description li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.experience-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

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

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 191, 255, 0.1);
  color: var(--accent);
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 191, 255, 0.2);
}

/* Skills Section */
.skills-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.skills-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

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

.skill-tag-primary {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--background);
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 191, 255, 0.3);
}

.skill-tag-secondary {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag-secondary:hover {
  background: var(--accent);
  color: var(--background);
  transform: scale(1.05);
}

/* Education Section */
.education-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.education-card {
  text-align: center;
  flex: 1 1 320px;
  max-width: 350px;
}

.education-icon {
  margin-bottom: 1.5rem;
}

.education-svg {
  width: 4rem;
  height: 4rem;
  color: var(--accent);
  margin: 0 auto;
  display: block;
}

.education-degree {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.education-field {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.education-school {
  color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.email-btn {
  font-size: 1.125rem;
}

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

/* Responsive Design */
@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
  
  .desktop-nav {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-image {
    justify-content: flex-start;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .contact-item {
    justify-content: flex-start;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 2rem;
  }
  
  .timeline-line {
    display: block;
  }
  
  .timeline-dot {
    display: block;
  }
  
  .experience-card {
    margin-left: 4rem;
  }
  
  .experience-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
  
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .about-content {
    max-width: none;
  }
  
  .experience-container {
    max-width: none;
  }
  
  .skills-grid {
    max-width: none;
  }
  
  .education-grid {
    max-width: none;
  }
  
  .contact-content {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .mobile-menu {
    min-width: 180px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}
