/* Root Variables */
:root {
  --primary-color: #1f4e79; /* Deep Blue */
  --secondary-color: #f0f6fb; /* Light Blue Background */
  --accent-color: #3e8ef7; /* Bright Blue */
  --text-color: #222222;
  --text-secondary: #555555;
  --bg-color: #ffffff;
  --border-radius: 16px;
  --shadow-light: rgba(31, 78, 121, 0.15);
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--font-secondary);
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.65;
  font-size: 17px;
  padding: 20px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Container */
.container {
  max-width: 920px;
  margin: 0 auto 40px;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 40px 48px;
  box-shadow: 0 16px 40px var(--shadow-light);
  transition: padding 0.3s ease;
}

/* Profile Header */
.profile-header {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: nowrap; /* Prevent wrap for desktop */
}

/* Profile Image */
.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  box-shadow: 0 10px 20px var(--shadow-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.profile-image:hover {
  transform: scale(1.05);
}

/* Profile Info */
.profile-info h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 6px;
  line-height: 1.1;
}

.profile-info h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 22px;
  color: var(--accent-color);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.profile-info p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

.tagline {
  font-style: italic;
  margin-top: 8px;
  color: var(--text-secondary);
  max-width: 580px;
  font-size: 15px;
}

/* Card Sections */
.card {
  background: var(--bg-color);
  padding: 28px 32px;
  border-radius: var(--border-radius);
  box-shadow: 0 12px 28px var(--shadow-light);
  margin-bottom: 48px;
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 20px 45px rgba(31, 78, 121, 0.25);
}

.card h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 22px;
  color: var(--primary-color);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 8px;
}

/* Company Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 78, 121, 0.1);
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e3eaf5;
}

.info-table th {
  text-align: left;
  background-color: var(--secondary-color);
  font-weight: 700;
  width: 30%;
  color: var(--primary-color);
  letter-spacing: 0.04em;
  user-select: none;
}

.info-table tbody tr:nth-child(even) {
  background-color: #f9fbff;
}

.info-table tbody tr:hover {
  background-color: var(--accent-color);
  color: white;
  cursor: default;
  transition: background-color 0.3s ease;
}

/* Skills & Milestones Lists */
.skills-list,
.milestones ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skills-list li,
.milestones li {
  background-color: var(--secondary-color);
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
  box-shadow: 0 3px 8px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.skills-list li i,
.milestones li i {
  font-size: 18px;
  color: var(--accent-color);
}

.skills-list li:hover,
.milestones li:hover {
  background-color: var(--accent-color);
  color: white;
  cursor: default;
  box-shadow: 0 6px 18px rgba(62, 142, 247, 0.6);
}

/* Milestones List */
.milestones ul {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-color);
}

.milestones li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contact Section */
.contact p {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.contact a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s ease;
}

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

.contact i {
  margin-right: 8px;
  color: var(--accent-color);
}

/* QR Container */
.qr-container {
  margin-top: 20px;
  text-align: center;
}

.qr-container img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  box-shadow: 0 10px 22px var(--shadow-light);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.qr-container img:hover {
  transform: scale(1.1);
}

.qr-container p {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 30px;
  font-weight: 600;
  font-family: var(--font-primary);
  user-select: none;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    padding: 30px 24px;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 24px 20px;
    margin: 20px auto 40px;
  }

  .profile-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .profile-info {
    text-align: center;
    max-width: 100%;
  }

  .profile-info h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .profile-info h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .profile-info p,
  .tagline {
    max-width: 100%;
    font-size: 15px;
  }

  /* Table Responsive */
  .info-table {
    font-size: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(31, 78, 121, 0.1);
  }

  .info-table th,
  .info-table td {
    padding: 12px 14px;
  }

  /* Skills & Milestones Lists */
  .skills-list li,
  .milestones li {
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
  }

  /* Contact */
  .contact p {
    font-size: 14px;
  }
}
