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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #171717;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: #e5e5e5;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

}

.container-full {
  width: 100%;
  padding: 0 24px;
}

.main {
  flex: 1;
  padding-top: 80px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f5f5f5;
}

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

.header-brand {
  display: block;
}

.header-name {
  font-size: 16px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 2px;
}

.header-title {
  font-size: 11px;
  color: #a3a3a3;
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #a3a3a3;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #525252;
}

.header-nav a.active {
  color: #171717;
}

/* Mobile Header */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
  }
  
  .header-nav {
    gap: 16px;
  }
  
  .header-nav a {
    font-size: 13px;
  }
  
  .main {
    padding-top: 100px;
  }
}

/* Footer */
.footer {
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #737373;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: #171717;
}

.footer-email svg {
  width: 18px;
  height: 18px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: #a3a3a3;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #171717;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 12px;
  color: #d4d4d4;
  font-weight: 500;
}

/* Section */
.section {
  padding: 40px 0;
}

.section-label {
  font-size: 11px;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Hero - Full Width */
.hero {
  padding: 48px 150px 10px;
}

.hero-text {
  font-size: 12px;
  font-weight: 500;
  color: #171717;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-text {
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .hero-text {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .hero-text {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .hero-text {
    font-size: 20px;
  }
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
}

.project {
  padding: 48px 0;
  border-bottom: 1px solid darkslategrey;
}

.project:last-child {
  border-bottom: none;
}

/* Project Banner */
.project-banner {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .project-banner {
    height: 220px;
  }
}

@media (min-width: 768px) {
  .project-banner {
    height: 260px;
  }
}

@media (min-width: 1024px) {
  .project-banner {
    height: 300px;
  }
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project Header */
.project-header {
  margin-bottom: 32px;
  text-align: center;
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  color: #171717;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 28px;
  }
}

.project-company {
  font-size: 14px;
  font-weight: 500;
  color: #737373;
}

/* Project Description Section */
.project-details {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .project-details {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.project-detail-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.project-detail-section ul {
  list-style: none;
}

.project-detail-section li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #525252;
  line-height: 1.8;
  margin-bottom: 10px;
}

.project-detail-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: #a3a3a3;
  border-radius: 50%;
}

/* Project Links - Logo Buttons */
.project-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #f5f5f5;
  border-radius: 50%;
  color: #525252;
  transition: all 0.2s ease;
}

.project-link-btn:hover {
  background: #171717;
  color: #fff;
  transform: translateY(-2px);
}

.project-link-btn svg {
  width: 24px;
  height: 24px;
}

/* Project Gallery Slider */
.project-gallery-section {
  margin-top: 16px;
}

.project-gallery-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-align: center;
}

.gallery-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Gallery Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #525252;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
}

.gallery-slider:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow:hover {
  background: #171717;
  color: #fff;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-arrow.prev {
  left: 16px;
}

.gallery-arrow.next {
  right: 16px;
}

/* Gallery Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.gallery-dot:hover {
  background: #a3a3a3;
}

.gallery-dot.active {
  background: #171717;
  width: 24px;
  border-radius: 4px;
}

/* Mobile adjustments for gallery */
@media (max-width: 640px) {
  .gallery-arrow {
    width: 36px;
    height: 36px;
    opacity: 1;
  }
  
  .gallery-arrow.prev {
    left: 8px;
  }
  
  .gallery-arrow.next {
    right: 8px;
  }
  
  .gallery-arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .gallery-dots {
    gap: 6px;
  }
  
  .gallery-dot {
    width: 6px;
    height: 6px;
  }
  
  .gallery-dot.active {
    width: 18px;
  }
}

/* Page Header */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo {
  height: 36px;
}
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn-outline {
  border: 1px solid #e5e5e5;
  color: #525252;
}

.btn-outline:hover {
  border-color: #d4d4d4;
  color: #171717;
}

.btn-primary {
  background: #171717;
  color: #fff;
}

.btn-primary:hover {
  background: #262626;
}

/* PDF Viewer */
.pdf-viewer {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  aspect-ratio: 11 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
  margin: 0 auto;
}

.pdf-placeholder {
  text-align: center;
}

.pdf-placeholder p {
  font-size: 14px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 4px;
}

.pdf-placeholder span {
  font-size: 12px;
  color: #d4d4d4;
}

/* Certificates */
.certificates-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .certificates-grid {
    grid-template-columns: 250px 1fr;
  }
}

.certificate-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.certificate-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #737373;
  transition: all 0.2s ease;
}

.certificate-item:hover {
  background: #fafafa;
  color: #525252;
}

.certificate-item.active {
  background: #f5f5f5;
  color: #171717;
}

.certificate-viewer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certificate-viewer .pdf-viewer {
  max-width: none;
  margin: 0;
  width: 100%;
}

.certificate-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .certificate-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.certificate-name {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
}

/* Blog */
.blog-container {
  max-width: 800px;
}

.blog-posts {
  display: flex;
  flex-direction: column;
}

.blog-post {
  padding: 32px 0;
  border-bottom: 1px solid #f0f0f0;
}

.blog-post:first-child {
  padding-top: 0;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-avatar {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #737373;
}

.blog-author-name {
  font-size: 14px;
  font-weight: 500;
  color: #525252;
}

.blog-author-sep {
  color: #d4d4d4;
}

.blog-date {
  font-size: 13px;
  color: #a3a3a3;
}

.blog-title {
  font-size: 20px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-body {
  font-size: 14px;
  color: #737373;
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
}

.blog-views svg {
  width: 16px;
  height: 16px;
}

.blog-likes {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #a3a3a3;
  transition: all 0.2s ease;
}

.blog-likes:hover {
  background: #fafafa;
  color: #525252;
}

.blog-likes.liked {
  color: #f43f5e;
  background: #fef2f2;
}

.blog-likes svg {
  width: 16px;
  height: 16px;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  .container-full {
    padding: 0 16px;
  }
  
  .section {
    padding: 32px 0;
  }
  
  .project {
    padding: 32px 0;
  }
  
  .project-links {
    gap: 12px;
  }
  
  .project-link-btn {
    width: 46px;
    height: 46px;
  }
  
  .project-link-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Background Section */
.background-wrapper {
  border-top: 1px solid #e5e5e5;
  margin-top: 48px;
  padding-top: 48px;
}

.background-section {
  margin-bottom: 64px;
}

.background-section:last-child {
  margin-bottom: 0;
}

.background-title {
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: #171717;
  margin-bottom: 24px;
}

.background-content p {
  font-size: 14px;
  color: #525252;
  line-height: 1.8;
  margin-bottom: 16px;
}

.background-content p:last-child {
  margin-bottom: 0;
}

.background-content strong {
  color: #171717;
  font-weight: 600;
}

/* Skills Grid - 2 columns: Design+Developer on left, Software+Language on right */
.skills-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }
}

.skills-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skill-category {
  margin-bottom: 0;
}

.skill-category-title {
  font-size: 16px;
  font-weight: 700;
  color: #171717;
  margin-bottom: 12px;
}

.skill-list {
  list-style: disc;
  padding-left: 20px;
}

.skill-list li {
  font-size: 14px;
  color: #525252;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Background Grid */
.background-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .background-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }
}

.background-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #171717;
  margin-bottom: 16px;
}

.education-item {
  margin-bottom: 16px;
}

.education-degree {
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  margin-bottom: 2px;
}

.education-institution {
  font-size: 13px;
  color: #737373;
}

.experience-item {
  font-size: 14px;
  color: #525252;
  margin-bottom: 8px;
}

/* Publications */
.publications-section {
  margin-top: 40px;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publication-item p {
  font-size: 14px;
  color: #525252;
  margin-bottom: 4px;
}

.publication-item a {
  font-size: 13px;
  color: #2563eb;
  text-decoration: underline;
  word-break: break-all;
}

.publication-item a:hover {
  color: #1d4ed8;
}
