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

:root {
  /* Elegant green color palette */
  --primary-color: #2a9d8f;
  --primary-light: #e8f4f3;
  --text-color: #1a1a1a;
  --text-light: #5a5a5a;
  --bg-white: #ffffff;
  --border-color: #e8e8e8;
  --accent-color: #264653;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --section-spacing: 8rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

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

section {
  padding: var(--section-spacing) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.9rem 2.2rem;
  border-radius: 0;
  font-weight: 500;
  transition: var(--transition);
  border: 1.5px solid var(--primary-color);
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover {
  color: white;
}

.btn:hover::before {
  left: 0;
}

/* Header Styles - Minimal without bottom border */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
}

.logo {
  font-family: 'Figtree', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav ul li {
  position: relative;
}

nav ul li a {
  font-weight: 500;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--text-light);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--text-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section - Elegant and minimal */
.hero {
  padding-top: 12rem;
  position: relative;
  overflow: hidden;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  z-index: 0;
  opacity: 0.6;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
}

.hero-content {
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
  line-height: 1.05;
  position: relative;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.highlight-name {
  color: var(--primary-color);
}

.personal-statement {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 2.5rem 0 3rem;
  color: var(--text-light);
  max-width: 90%;
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--primary-color);
}

.avatar-container {
  width: 360px;
  height: 360px;
  position: relative;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  font-size: 5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.avatar-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(42, 157, 143, 0.05) 10px,
      rgba(42, 157, 143, 0.05) 20px
  );
  transform: rotate(45deg);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: rotate(45deg) translateX(0); }
  100% { transform: rotate(45deg) translateX(100px); }
}

/* Projects Section */
.projects-section {
  background-color: var(--bg-white);
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 4rem;
  color: var(--text-color);
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40%;
  height: 1px;
  background-color: var(--primary-color);
}

.project-filter {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.7rem 1.8rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Figtree', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  transition: var(--transition);
  z-index: -1;
}

.filter-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-btn:hover::before {
  left: 0;
}

.filter-btn.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.project-card {
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}


.project-image {
  height: 250px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-light);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-light);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-image i {
  font-size: 3.5rem;
  color: var(--primary-color);
  opacity: 0.7;
}

.project-card:hover .project-image {
  transform: translateY(-5px);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 157, 143, 0.95);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 2;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-overlay p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-overlay-links {
  display: flex;
  gap: 1rem;
}

/* Updated: White icons with transparent background, no hover animation */
.project-overlay-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  transition: var(--transition);
}

.project-overlay-links a i {
  color: white;
  font-size: 1.4rem;
}


.project-overlay-links a:hover {
  opacity: 0.8;
}

.project-info {
  padding: 2rem 0 0;
}

.project-info h3 {
  min-height: 70px;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.project-type {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.project-type.published {
  font-weight: 700;
  color: var(--primary-color);
  /* color: var(--accent-color); */
}

.project-group-info {
  color: #888;
  min-height: 65px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tag {
  padding: 0.2rem 0.8rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Banner Section */
.banner-section {
  padding-top: 0;
  padding-bottom: var(--section-spacing);
  position: relative;
}

.banner-link {
  display: block;
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.banner-bg {
  width: 100%;
  height: 100%;
  background-image: url('../assets/creative_portfolio/bone.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.banner-title {
  font-family: 'Figtree', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
padding: 0.6rem 2rem;
  letter-spacing: -0.5px;
}

.banner-link:hover .banner-bg {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .banner-link {
    height: 200px;
  }
  .banner-title {
    font-size: 2rem;
    padding: 0.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .banner-link {
    height: 160px;
  }
  .banner-title {
    font-size: 1.6rem;
    padding: 0.4rem 1.2rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-light);
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--bg-white);
  color: var(--primary-color);
  border-radius: 0;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.social-links a:hover {
  color: white;
  transform: translateY(-5px);
}

.social-links a:hover::before {
  left: 0;
}

.copyright {
  color: var(--text-light);
  font-size: 0.9rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(42, 157, 143, 0.2);
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
      gap: 4rem;
  }
  
  .hero-content h1 {
      font-size: 3.2rem;
  }
  
  .avatar-container {
      width: 300px;
      height: 300px;
  }
  
  .projects-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
      padding: 1.2rem 1rem;
  }
  
  nav ul {
      position: fixed;
      top: 0;
      right: -100%;
      width: 280px;
      height: 100vh;
      background-color: var(--bg-white);
      flex-direction: column;
      align-items: flex-start;
      padding: 6rem 2rem 2rem;
      transition: var(--transition);
      z-index: 999;
      gap: 2rem;
      border-left: 1px solid var(--border-color);
  }
  
  nav ul.active {
      right: 0;
  }
  
  .mobile-menu-btn {
      display: block;
  }
  
  .hero {
      padding-top: 8rem;
  }
  
  .hero-container {
      grid-template-columns: 1fr;
      gap: 4rem;
      text-align: center;
  }
  
  .personal-statement {
      max-width: 100%;
      padding-left: 0;
      border-left: none;
      padding-top: 1.5rem;
      border-top: 1px solid var(--primary-color);
  }
  
  .hero-content h1::after {
      left: 50%;
      transform: translateX(-50%);
  }
  
  .hero-content h1 {
      font-size: 2.8rem;
  }
  
  .section-title {
      font-size: 2.5rem;
  }
  
  .project-filter {
      justify-content: center;
  }
  
  .filter-btn {
      padding: 0.6rem 1.5rem;
      font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
      grid-template-columns: 1fr;
      max-width: 400px;
      margin: 0 auto;
  }
  
  .hero-content h1 {
      font-size: 2.4rem;
  }
  
  .avatar-container {
      width: 260px;
      height: 260px;
  }
  
  .section-title {
      font-size: 2.2rem;
  }
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.video-modal-close:hover {
  opacity: 0.7;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 480px) {
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .personal-statement {
      font-size: 1.05rem;
  }
  
  .btn {
      width: 100%;
      justify-content: center;
  }
  
  .project-filter {
      gap: 0.5rem;
  }
  
  .filter-btn {
      padding: 0.5rem 1.2rem;
      font-size: 0.8rem;
  }
}