/* Modern Resume Design - Matching the Image */

:root {
  --primary-blue: #2b5797;
  --dark-blue: #1a3454;
  --light-blue: #3d6cb3;
  --text-light: #e8edf4;
  --text-dark: #1e293b;
  --card-bg: #2d4666;
  --sidebar-bg: #1e3a5f;
  --content-bg: #f8fafc;
  --accent-color: #60a5fa;
  --border-radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--dark-blue);
}

.main-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

/* LEFT SIDEBAR */
.sidebar {
  background: linear-gradient(180deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: var(--text-light);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.profile-section {
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.profile-title {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-item i {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.9;
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  word-break: break-word;
  transition: opacity 0.2s;
}

.contact-item a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.print-section {
  margin-top: auto;
  padding-top: 20px;
}

.print-btn {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.print-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* RIGHT CONTENT */
.content {
  background: var(--content-bg);
  padding: 50px 60px;
  overflow-y: auto;
}

.header-section {
  margin-bottom: 50px;
}

.main-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.main-subtitle {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
}

.intro-text {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  max-width: 800px;
}

.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

/* CARDS */
.card {
  background: var(--card-bg);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.card-subtitle {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.card-date {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
  text-align: right;
  line-height: 1.4;
}

.card-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.card-list li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  opacity: 0.9;
}

.card-list li:before {
  content: '';
  position: absolute;
  left: 6px;
  font-weight: bold;
  color: var(--accent-color);
}

/* PROJECTS */
.project-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

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

.project-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

/* SKILLS */
.skills-section {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skills-section .section-title {
  margin-bottom: 30px;
  border-bottom: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: 6px;
  border-left: 3px solid var(--primary-blue);
}

/* CONTACT FOOTER */
.contact-footer {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-footer .section-title {
  border-bottom: none;
  margin-bottom: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
  color: #475569;
}

.contact-card i {
  font-size: 18px;
  color: var(--primary-blue);
}

.quick-links h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.links-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.links-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.links-grid a:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 87, 151, 0.3);
}

/* FOOTER */
.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.footer i.fa-heart {
  color: #ef4444;
}

.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 20px;
  background: #f1f5f9;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.visitor-counter i {
  color: var(--primary-blue);
  font-size: 16px;
}

#visitor-count {
  font-weight: 700;
  color: var(--primary-blue);
  min-width: 40px;
  display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 280px 1fr;
  }
  
  .content {
    padding: 40px 40px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    padding: 30px 20px;
  }
  
  .content {
    padding: 30px 20px;
  }
  
  .main-title {
    font-size: 32px;
  }
  
  .card-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .card-date {
    text-align: left;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .links-grid {
    flex-direction: column;
  }
  
  .links-grid a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 28px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }
  
  .section-title {
    font-size: 20px;
  }
}

/* PRINT STYLES */
@media print {
  body {
    background: white;
  }
  
  .main-container {
    box-shadow: none;
    display: block;
  }
  
  .sidebar,
  .print-btn {
    display: none;
  }
  
  .content {
    padding: 0;
  }
  
  .section {
    page-break-inside: avoid;
  }
}
