/*-----------------------------------*\
  #MINIMALIST DESIGN - Clean Architect
\*-----------------------------------*/

/**
 * Minimalist portfolio design focused on typography and whitespace
 * Color palette: Black, white, and subtle grays
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /* Colors - Monochromatic palette */
  --primary-black: #000000;
  --primary-white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Accent */
  --accent-color: #2d3436;
  
  /* Typography */
  --ff-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  
  /* Font sizes - Modular scale */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-lg: 1.125rem;  /* 18px */
  --fs-xl: 1.25rem;   /* 20px */
  --fs-2xl: 1.5rem;   /* 24px */
  --fs-3xl: 1.875rem; /* 30px */
  --fs-4xl: 2.25rem;  /* 36px */
  --fs-5xl: 3rem;     /* 48px */
  
  /* Font weights */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Spacing - 8px grid system */
  --space-1: 0.5rem;  /* 8px */
  --space-2: 1rem;    /* 16px */
  --space-3: 1.5rem;  /* 24px */
  --space-4: 2rem;    /* 32px */
  --space-5: 2.5rem;  /* 40px */
  --space-6: 3rem;    /* 48px */
  --space-8: 4rem;    /* 64px */
  --space-10: 5rem;   /* 80px */
  --space-12: 6rem;   /* 96px */
  
  /* Shadows - Subtle depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Border radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
}

/*-----------------------------------*\
  #RESET & BASE
\*-----------------------------------*/

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

html {
  font-family: var(--ff-primary);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  background: var(--primary-white);
  color: var(--gray-900);
  font-weight: var(--fw-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.h1 { font-size: var(--fs-5xl); }
.h2 { font-size: var(--fs-4xl); }
.h3 { font-size: var(--fs-3xl); }
.h4 { font-size: var(--fs-2xl); }
.h5 { font-size: var(--fs-xl); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

a:hover {
  color: var(--accent-color);
}

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

img {
  max-width: 100%;
  height: auto;
}

/*-----------------------------------*\
  #LAYOUT
\*-----------------------------------*/

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-10);
  min-height: 100vh;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  position: sticky;
  top: var(--space-6);
  height: fit-content;
  background: none;
  border: none;
  padding: 0;
}

.sidebar-info {
  text-align: center;
  margin-bottom: var(--space-8);
}

.avatar-box {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gray-200);
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-content .name {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-1);
  letter-spacing: -0.025em;
}

.info-content .title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-2);
  background: var(--gray-100);
  border-radius: var(--radius-base);
  display: inline-block;
}

.info_more-btn {
  display: none;
}

.sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

/* Contact List */
.contacts-list {
  list-style: none;
  margin-bottom: var(--space-6);
}

.contact-item {
  margin-bottom: var(--space-3);
  text-align: left;
}

.contact-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.contact-link,
.contact-info time,
.contact-info address {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-style: normal;
}

.contact-link:hover {
  color: var(--primary-black);
}

/* Social Links */
.social-list {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  list-style: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary-black);
  color: var(--primary-white);
}

/*-----------------------------------*\
  #MAIN CONTENT
\*-----------------------------------*/

.main-content {
  min-height: 100vh;
}

/* Navigation */
.navbar {
  position: static;
  background: none;
  border: none;
  margin-bottom: var(--space-8);
  padding: 0;
}

.navbar-list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  border-bottom: 1px solid var(--gray-200);
}

.navbar-link {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--gray-500);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary-black);
  border-bottom-color: var(--primary-black);
}

/* Articles */
article {
  display: none;
  background: none;
  border: none;
  padding: 0;
}

article.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
  position: relative;
}

.article-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-2);
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-black);
}

/*-----------------------------------*\
  #ABOUT SECTION
\*-----------------------------------*/

.about-text {
  font-size: var(--fs-lg);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.about-text p {
  margin-bottom: var(--space-4);
}

/*-----------------------------------*\
  #RESUME SECTION
\*-----------------------------------*/

.timeline {
  margin-bottom: var(--space-8);
}

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.timeline .icon-box {
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-list {
  position: relative;
  padding-left: var(--space-8);
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
  padding-left: var(--space-4);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: var(--primary-black);
  border-radius: 50%;
}

.timeline-item-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-1);
}

.timeline-item span {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  font-weight: var(--fw-medium);
}

.timeline-text {
  margin-top: var(--space-2);
  color: var(--gray-600);
  line-height: 1.6;
}

/* Skills */
.skill {
  margin-top: var(--space-8);
}

.skills-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}

.skills-list {
  display: grid;
  gap: var(--space-4);
}

.skills-item {
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.skill .title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.skill .title-wrapper h5 {
  font-weight: var(--fw-medium);
}

.skill .title-wrapper data {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  font-family: var(--ff-mono);
}

.skill-progress-bg {
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--radius-base);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: var(--primary-black);
  border-radius: var(--radius-base);
  transition: width 1s ease;
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-4);
  }
  
  .sidebar {
    position: static;
  }
  
  .sidebar-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
    margin-bottom: var(--space-4);
  }
  
  .avatar-box {
    width: 80px;
    height: 80px;
    margin: 0;
  }
  
  .contacts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }
  
  .navbar-list {
    overflow-x: auto;
    gap: var(--space-4);
  }
  
  .article-title {
    font-size: var(--fs-3xl);
  }
  
  .about-text {
    font-size: var(--fs-base);
  }
  
  .timeline-list {
    padding-left: var(--space-4);
  }
}

@media (max-width: 480px) {
  main {
    padding: var(--space-2);
  }
  
  .sidebar-info {
    flex-direction: column;
    text-align: center;
  }
  
  .contacts-list {
    grid-template-columns: 1fr;
  }
  
  .navbar-list {
    justify-content: center;
  }
}

