/* ============================================
   VINTAGE MINIMALIST PORTFOLIO
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=Roboto+Mono:wght@300;400&display=swap');

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

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  overflow-x: hidden;
  background: #f5f0e8;
  color: #2c2c2c;
}

/* --- Vintage Textures --- */
section {
  position: relative;
}

/* --- Navigation --- */
.nav-vintage {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d4c5a9;
  padding: 12px 0;
}

.nav-vintage .container {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-vintage a {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #6b5b3e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-vintage a:hover {
  color: #2c2c2c;
}

/* ============================================
   PROLOG / HERO SECTION
   ============================================ */
#prolog {
  background: #f5f0e8;
  padding: 140px 20px 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d4c5a9;
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#main-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #2c2c2c;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.name {
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #8b7355;
}

.tag-bracket {
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-size: 1.8rem;
  color: #a69374;
}

#description {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #5a5243;
  line-height: 1.9;
  margin-bottom: 3rem;
  min-height: 70px;
}

.cursor {
  animation: blink 1s infinite;
  font-weight: bold;
  font-style: normal;
  color: #8b7355;
}

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

/* --- Divider --- */
.vintage-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 2.5rem auto;
  max-width: 300px;
}

.vintage-divider .line {
  flex: 1;
  height: 1px;
  background: #c4b596;
}

.vintage-divider .ornament {
  font-size: 1rem;
  color: #a69374;
  line-height: 1;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 1rem;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.social-item a {
  display: block;
}

.social-icon,
.social-icon-linkedin {
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  filter: sepia(30%);
}

.social-icon:hover,
.social-icon-linkedin:hover {
  transform: scale(1.1);
  opacity: 1;
}

.social-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8b7355;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  background: #ebe4d4;
  padding: 100px 20px;
  border-bottom: 1px solid #d4c5a9;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  font-style: italic;
  color: #2c2c2c;
  margin-bottom: 1.5rem;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #8b7355;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.paragraph {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #3d3527;
}

.profile-img {
  border-radius: 4px;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 1px solid #c4b596;
  padding: 6px;
  background: #f5f0e8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
#education {
  font-family: 'Source Serif 4', serif;
  background: #f5f0e8;
  padding: 100px 20px;
  border-bottom: 1px solid #d4c5a9;
}

#education .section-title {
  color: #2c2c2c;
}

.education-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #d4c5a9;
  background: #faf7f0;
}

.education-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #2c2c2c;
}

.institution {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #3d3527;
}

.department {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #5a5243;
}

.period {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: #8b7355;
  letter-spacing: 1px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
#my-project {
  background: #ebe4d4;
  padding: 100px 20px;
  border-bottom: 1px solid #d4c5a9;
}

#my-project .section-title {
  color: #2c2c2c;
}

.project-subtitle {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: #6b5b3e;
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* --- Project Cards --- */
.project-card {
  position: relative;
  background: #faf7f0;
  border: 1px solid #c4b596;
  min-height: 240px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 2px 3px 12px rgba(107, 91, 62, 0.1);
  padding: 10px 10px 0 10px;
}

/* Subtle random rotations via nth-child */
.col-md-4:nth-child(3n+1) .project-card { transform: rotate(-0.7deg); }
.col-md-4:nth-child(3n+2) .project-card { transform: rotate(0.5deg); }
.col-md-4:nth-child(3n+3) .project-card { transform: rotate(-0.3deg); }

.project-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 4px 8px 28px rgba(107, 91, 62, 0.2);
}

/* Corner ornaments */
.project-card::before,
.project-card::after {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #c4b596;
  z-index: 2;
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}

.project-card::before {
  content: '\2767';
  top: 6px;
  left: 8px;
}

.project-card::after {
  content: '\2767';
  top: 6px;
  right: 8px;
  transform: scaleX(-1);
}

.project-card:hover::before,
.project-card:hover::after {
  color: #8b7355;
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: sepia(30%) contrast(90%) brightness(95%);
  transition: filter 0.5s ease;
  border: 1px solid #d4c5a9;
}

.project-card:hover .project-img {
  filter: sepia(5%) contrast(100%) brightness(100%);
}

/* Title area below image */
.project-overlay {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
  background: transparent;
}

.project-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 400;
  color: #5a5243;
  margin: 0;
  text-shadow: none;
  letter-spacing: 0.5px;
  text-align: center;
  position: relative;
}

/* Small decorative dash under title */
.project-overlay h3::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: #c4b596;
  margin: 8px auto 0;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-content {
  border-radius: 2px;
  border: 1px solid #d4c5a9;
  background: #faf7f0;
}

.modal-header {
  background: #2c2c2c;
  color: #f5f0e8;
  border-radius: 0;
  border-bottom: 1px solid #d4c5a9;
  padding: 16px 24px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.2rem;
}

.modal-body {
  font-family: 'Source Serif 4', serif;
  padding: 24px;
  color: #3d3527;
}

.modal-body p {
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.modal-body h4 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  color: #6b5b3e;
  margin-bottom: 12px;
  border-bottom: 1px solid #d4c5a9;
  padding-bottom: 8px;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* --- Modal Buttons --- */
.btn-github-link {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: transparent;
  color: #2c2c2c;
  border: 1px solid #2c2c2c;
  padding: 10px 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-github-link:hover {
  background: #2c2c2c;
  color: #f5f0e8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-github-link:active {
  transform: translateY(0);
}

.btn-github-disabled {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: transparent;
  color: #a69374;
  border: 1px solid #d4c5a9;
  padding: 10px 24px;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-footer {
  border-top: 1px solid #d4c5a9;
  padding: 16px 24px;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
#footer {
  font-family: 'Source Serif 4', serif;
  background: #2c2c2c;
  color: #d4c5a9;
  padding: 80px 20px;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: #f5f0e8;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.footer-text {
  color: #a69374;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.footer-text a {
  color: #d4c5a9;
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .nav-vintage .container {
    gap: 16px;
  }

  .nav-vintage a {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  #main-heading {
    font-size: 1.8rem;
  }

  .tag-bracket {
    font-size: 1.2rem;
  }

  #description {
    font-size: 0.95rem;
  }

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

  .paragraph {
    font-size: 0.95rem;
  }

  .profile-img {
    width: 180px;
    height: 180px;
    margin-top: 2rem;
  }

  .social-icons {
    gap: 24px;
  }

  .social-icon,
  .social-icon-linkedin {
    width: 32px;
    height: 32px;
  }

  .education-content {
    padding: 24px;
  }

  #prolog {
    padding: 120px 20px 80px;
  }

  #about,
  #education,
  #my-project {
    padding: 60px 20px;
  }
}

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Selection color --- */
::selection {
  background: #d4c5a9;
  color: #2c2c2c;
}
