/* Color Theme */
:root {
  --bg: #FFFFFF;
  --primary: #1F2937;
  --secondary: #6B7280;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --border: #E5E7EB;
  --card-bg: #F9FAFB;
  --cta: #10B981;
  --error: #EF4444;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--bg);
  color: var(--primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.header {
  background: url('../images/code.png') center/cover no-repeat;
  color: #fff;
  padding: 80px 0 60px 0;
  text-align: center;
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,41,55,0.7);
  z-index: 1;
}
.header-content {
  position: relative;
  z-index: 2;
}
.header h1 {
  font-size: 3rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}
.subtitle {
  font-size: 1.5rem;
  color: var(--card-bg);
  margin-bottom: 30px;
}
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.btn {
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
}
.btn-emerald {
  background: var(--cta);
  color: #fff;
}
.btn-emerald:hover {
  background: #059669;
}

.section {
  background: var(--card-bg);
  margin: 40px auto;
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 2px 16px rgba(31,41,55,0.04);
}
.section h2 {
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 700;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.about-text {
  flex: 2;
  font-size: 1.1rem;
}
.about-info {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-info li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 1rem;
}
.about-info .material-icons {
  margin-right: 8px;
  color: var(--accent);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(31,41,55,0.03);
}
.timeline-details {
  flex: 3;
}
.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
.timeline-subtitle {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 8px;
}
.timeline-points {
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--primary);
}
.timeline-date {
  flex: 1;
  text-align: right;
  color: var(--secondary);
  font-size: 1rem;
  min-width: 120px;
}

.position-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.position-item:first-child {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.position-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.position-title {
  font-weight: 500;
  color: var(--secondary);
  font-size: 1.05rem;
}

.position-date {
  color: var(--secondary);
  font-size: 1rem;
  text-align: right;
  flex-shrink: 0;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(31,41,55,0.05);
  overflow: hidden;
  transition: box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}
.project-card:hover {
  box-shadow: 0 4px 24px rgba(59,130,246,0.13);
}
.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 8vh;
  padding: 0 16px;
}
.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.project-info {
  display: none;
  background: rgba(255,255,255,0.97);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  padding: 24px;
  color: var(--primary);
  z-index: 2;
  overflow-y: auto;
}
.project-card.active .project-info {
  display: block;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills-list li {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.extra-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.extra-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 12px;
}
.extra-text {
  color: var(--primary);
}
.extra-date {
  color: var(--secondary);
  font-size: 0.95rem;
  min-width: 100px;
  text-align: right;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 18px;
}
label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 500;
}
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: var(--primary);
  resize: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .section {
    max-width: 98vw;
    padding: 24px 4vw;
  }
}

@media (max-width: 700px) {
  .header h1 { font-size: 2.1rem; }
  .subtitle { font-size: 1.1rem; }
  .section { padding: 24px 6px; }
  .about-content { flex-direction: column; gap: 18px; }
  .timeline-item { flex-direction: column; gap: 12px; }
  .extra-item { flex-direction: column; gap: 8px; align-items: flex-start; }
  .header {
    padding: 48px 0 32px 0;
  }
  .header-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .project-cards {
    grid-template-columns: 1fr;
  }
  .project-image {
    height: 140px;
  }
  .skills-list {
    flex-direction: column;
    gap: 8px;
  }
  .timeline-date {
    text-align: left;
    margin-top: 8px;
  }
  .position-header {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .position-date {
    text-align: left;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 15px;
  }
  .header h1 {
    font-size: 1.3rem;
  }
  .section h2 {
    font-size: 1.2rem;
  }
  .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  .project-image {
    height: 90px;
  }
  .timeline-item, .extra-item {
    padding: 12px 8px;
  }
  .form-group input, .form-group textarea {
    font-size: 0.95rem;
  }
}

/* Styles for PDF Generation */
#printable-resume {
  position: absolute;
  left: -9999px; /* Hide off-screen */
  width: 210mm; /* A4 width */
  min-height: 297mm; /* A4 height */
  background: #fff;
  color: #000;
  font-family: Arial, sans-serif;
  padding: 15mm;
  box-sizing: border-box;
}

#printable-resume h1 {
  font-size: 24pt;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

#printable-resume .pdf-header-info {
  text-align: center;
  margin-bottom: 10mm;
}

#printable-resume .pdf-header-info a {
  color: #000;
  text-decoration: none;
  font-size: 9pt;
  margin: 0 5px;
}

#printable-resume .pdf-section-title {
  font-size: 12pt;
  font-weight: bold;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
  margin: 10mm 0 4mm 0;
}

#printable-resume .pdf-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10mm;
}

#printable-resume .pdf-work-item, 
#printable-resume .pdf-edu-item {
  margin-bottom: 5mm;
}

#printable-resume .pdf-item-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 10pt;
}

#printable-resume .pdf-item-subheader {
  font-size: 9pt;
  font-style: italic;
  margin-bottom: 2mm;
}

#printable-resume ul {
  padding-left: 5mm;
  margin: 0;
  font-size: 9pt;
  list-style-position: outside;
}

#printable-resume .pdf-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5mm;
}

#printable-resume .pdf-project-item h3 {
  font-size: 10pt;
  font-weight: bold;
  margin: 0 0 2mm 0;
}

#printable-resume .pdf-skills-list {
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
}

#printable-resume .pdf-skills-list li {
  background-color: #eee;
  padding: 1mm 3mm;
  border-radius: 3px;
  margin: 0 2mm 2mm 0;
  font-size: 9pt;
}

#printable-resume .pdf-extra-item {
  display: flex;
  justify-content: space-between;
  font-size: 9pt;
  margin-bottom: 2mm;
} 