/**
* Modern Portfolio Design
* Inspired by Brittany Chiang's portfolio
* Clean, minimal, and professional design
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #64ffda;
  --secondary-color: #ccd6f6;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --text-accent: #64ffda;
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-tertiary: #233554;
  --border-color: #233554;
  --shadow: rgba(2, 12, 27, 0.7);
  --font-primary: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

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

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navbar {
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-accent) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--text-accent) !important;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-accent);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.resume-btn {
  border: none !important;
  border-radius: 4px !important;
  padding: 0.5rem 1rem !important;
  color: var(--text-accent) !important;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: rgba(100, 255, 218, 0.1) !important;
  color: var(--text-accent) !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.hero-content {
  padding: 2rem 0;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta .btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.hero-cta .btn-primary {
  border: 1px solid var(--text-accent);
  background-color: transparent;
  color: var(--text-accent);
}

.hero-cta .btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.hero-cta .btn-secondary {
  border: 1px solid var(--text-primary);
  background-color: transparent;
  color: var(--text-primary);
}

.hero-cta .btn-secondary:hover {
  background-color: rgba(136, 146, 176, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-image {
  text-align: center;
  padding: 2rem 0;
}

.hero-image img {
  max-width: 300px;
  border: 2px solid var(--text-accent);
  box-shadow: 0 10px 30px var(--shadow);
}

/*--------------------------------------------------------------
# Section Headers
--------------------------------------------------------------*/
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-accent);
  margin-right: 1rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.tech-stack {
  margin-top: 2rem;
}

.tech-stack h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.tech-item {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.tech-item::before {
  content: "▹";
  color: var(--text-accent);
  position: absolute;
  left: 0;
}

/*--------------------------------------------------------------
# Experience Section
--------------------------------------------------------------*/
.experience-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

/*--------------------------------------------------------------
# Education Section
--------------------------------------------------------------*/
.education-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.experience-item,
.education-item {
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.experience-item:hover,
.education-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px var(--shadow);
}

.experience-header,
.education-header {
  margin-bottom: 1.5rem;
}

.experience-header h3,
.education-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.company,
.institution {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-accent);
  font-weight: 600;
}

.duration {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  float: right;
}

.experience-content ul,
.education-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.experience-content li,
.education-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.experience-content li::before,
.education-content li::before {
  content: "▹";
  color: var(--text-accent);
  position: absolute;
  left: 0;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: var(--bg-primary);
  color: var(--text-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

#portfolio-details.projects-section {
  padding: 0;
  background-color: var(--bg-primary);
}

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

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.project-item:hover {
  transform: translateY(-8px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 20px 40px var(--shadow);
  background-color: var(--bg-tertiary);
}

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

.project-item:hover .project-tech .tech-tag {
  background-color: var(--text-accent);
  color: var(--bg-primary);
}

.project-item.featured {
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid var(--border-color);
}

.project-item:nth-child(even) {
  direction: rtl;
}

.project-item:nth-child(even) .project-content {
  direction: ltr;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

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

.project-description {
  margin-bottom: 1.5rem;
}

.project-description p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech .tech-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: var(--bg-primary);
  color: var(--text-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-tech .tech-tag:hover {
  background-color: var(--text-accent);
  color: var(--bg-primary);
}

/* Remove project-links styles as we're making entire project clickable */

.project-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project details image presentation */
.portfolio-details .portfolio-details-slider {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px var(--shadow);
}

.portfolio-details .portfolio-details-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  border-radius: 8px;
}

/* Thumbnails under gallery */
.thumbs-wrapper {
  margin-top: 12px;
}

.thumbs-wrapper .swiper-slide {
  opacity: 0.6;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.thumbs-wrapper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--text-accent);
}

.thumbs-wrapper img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Project link */
.portfolio-details .btn {
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portfolio-details .btn i {
  font-size: 1.5rem;
}

.portfolio-details .btn-primary {
  border: 1px solid var(--text-accent);
  background-color: transparent;
  color: var(--text-accent);
}

.portfolio-details .btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
  text-align: center;
}

.contact-content h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.contact-content .btn {
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 1rem 2rem;
  border: 1px solid var(--text-accent);
  background-color: transparent;
  color: var(--text-accent);
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
}

.contact-content .btn:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  background-color: var(--bg-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--text-accent);
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--bg-primary);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--text-accent);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-item:nth-child(even) {
    direction: ltr;
  }

  .section-header {
    justify-content: center;
    text-align: center;
  }

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

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .experience-item {
    padding: 1.5rem;
  }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease-out;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}
