@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #7A4E2D;
  --primary-light: #C3A178;
  --primary-dark: #5A3220;
  --accent: #D4A574;
  --bg-primary: #FEFBF7;
  --bg-secondary: #F5EDE4;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8A8A;
  --success: #4CAF50;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --shadow-sm: 0 2px 8px rgba(122, 78, 45, 0.08);
  --shadow-md: 0 4px 20px rgba(122, 78, 45, 0.12);
  --shadow-lg: 0 8px 40px rgba(122, 78, 45, 0.16);
  --shadow-glow: 0 0 40px rgba(122, 78, 45, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(122, 78, 45, 0.08);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
}

.logo-text {
  color: var(--text-primary);
}

.logo-dot {
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link.active {
  color: white;
  background: var(--gradient);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  margin-top: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
}

.title-line {
  display: block;
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 8px;
}

.name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
}

.typed-cursor {
  animation: blink 0.7s infinite;
  margin-left: 4px;
}

.hero-description {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary i {
  transition: var(--transition);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(122, 78, 45, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(122, 78, 45, 0.15);
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px);
}

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

.visual-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.profile-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.frame-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient);
  border-radius: calc(var(--radius-xl) + 20px);
  opacity: 0.15;
  filter: blur(40px);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 14px;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  color: var(--primary);
}

.floating-card.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 20%;
  left: -15%;
  animation-delay: 0.5s;
}

.floating-card.card-3 {
  bottom: 5%;
  right: -5%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
}

.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

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

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: var(--radius-md);
  font-size: 24px;
  color: white;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.card-gpa {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.minor {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

.about-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.detail-item i {
  color: var(--primary);
}

.skills-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.skills-category {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.skills-category h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-tag i {
  color: var(--primary);
  font-size: 16px;
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
}

.skill-tag:hover i {
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: var(--radius-md);
  font-size: 24px;
  color: white;
}

.project-links a {
  color: var(--text-muted);
  font-size: 20px;
  transition: var(--transition);
}

.project-links a:hover {
  color: var(--primary);
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  transition: var(--transition);
}

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

.cert-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.cert-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.cert-card:hover .cert-link {
  background: var(--primary-dark);
}

.cert-link i {
  font-size: 12px;
  margin: 0;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(122, 78, 45, 0.2);
}

.marker-line {
  width: 2px;
  flex: 1;
  background: rgba(122, 78, 45, 0.15);
  margin-top: 12px;
}

.timeline-item:last-child .marker-line {
  display: none;
}

.timeline-content {
  padding-bottom: 48px;
}

.timeline-date {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-tasks {
  padding-left: 20px;
  color: var(--text-secondary);
}

.timeline-tasks li {
  margin-bottom: 8px;
}

.contact-section {
  background: var(--bg-secondary);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  padding: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-header p {
  color: var(--text-secondary);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.contact-method:hover {
  background: var(--primary);
  color: white;
}

.method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  font-size: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.contact-method:hover .method-icon {
  background: white;
  color: var(--primary);
}

.method-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 13px;
  color: var(--text-muted);
}

.method-value {
  font-weight: 600;
  color: var(--text-primary);
}

.contact-method:hover .method-value {
  color: white;
}

.contact-method > i {
  color: var(--text-muted);
  transition: var(--transition);
}

.contact-method:hover > i {
  color: white;
  transform: translateX(4px);
}

.contact-cta {
  display: flex;
  justify-content: center;
}

.footer {
  padding: 32px 24px;
  text-align: center;
  background: var(--text-primary);
  color: white;
}

.footer-content p {
  margin-bottom: 4px;
}

.footer span {
  color: var(--primary-light);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-visual {
    order: 0;
    margin-bottom: 40px;
  }
  
  .visual-container {
    width: 300px;
    height: 300px;
  }
  
  .hero-badge {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-description {
    margin: 20px auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    padding: 80px 24px 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    padding: 16px;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .title-line {
    font-size: 22px;
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .about-details {
    flex-direction: column;
    gap: 16px;
  }
  
  .contact-card {
    padding: 32px 24px;
  }
  
  section {
    padding: 80px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .visual-container {
    width: 260px;
    height: 260px;
  }
  
  .floating-card {
    padding: 10px 14px;
    font-size: 12px;
  }
  
  .floating-card.card-1 {
    right: -5%;
  }
  
  .floating-card.card-2 {
    left: -5%;
  }
  
  .floating-card.card-3 {
    right: 0;
  }
}