:root {
  --accent-blue: #1B4F72;
  --accent-blue-dark: #2C3E50;
  --accent-teal: #1B4F72;
  --neutral-bg: #fff;
  --card-bg: #fff;
  --border-gray: #e0e0e0;
  --text-main: #1a1a1a;
  --text-secondary: #2C3E50;
  --badge-bg: #e8f4f8;
  --badge-text: #1B4F72;
  --badge-success: #e8f5e8;
  --badge-success-text: #1B7F5D;
  --badge-success-bg: #d4edda;
}

body {
  background: var(--neutral-bg);
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

header.hero {
  background: linear-gradient(135deg, rgba(27, 79, 114, 0.05) 0%, rgba(44, 62, 80, 0.03) 100%);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 2px 20px rgba(44, 62, 80, 0.08);
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

h1, .hero-name {
  color: var(--text-main);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

h2, .hero-title {
  color: var(--text-secondary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-tagline {
  color: var(--accent-blue);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
  text-align-last: center;
}

.hero-links {
  margin: 0.5rem 0 0 0;
}
.hero-links a {
  display: inline-block;
  margin: 0 0.8rem;
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 500;
  font-size: 1rem;
  background: var(--badge-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border-gray);
}
.hero-links a:hover {
  color: var(--accent-blue-dark);
  background: var(--accent-blue);
  color: white;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  margin-bottom: 1.5rem;
}

h2 {
  color: var(--accent-blue-dark);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
}

h4 {
  color: var(--accent-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.skills-group {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.skills-subcard {
  flex: 1 1 220px;
  background: var(--neutral-bg);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  min-width: 200px;
}

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.2em 0.5em;
  margin: 0 0.2em 0.2em 0;
  vertical-align: middle;
}
.badge-success {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
  font-weight: 700;
}

.project-card {
  background: var(--neutral-bg);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.project-card h4 {
  text-align: center;
  margin-bottom: 0.6rem;
}

.project-card p {
  text-align: center;
  margin-bottom: 0.8rem;
}

.project-card ul {
  text-align: left;
  display: inline-block;
  text-align: left;
}

.project-card ul li {
  margin-bottom: 0.4em;
  line-height: 1.4;
}

.project-card strong, .skills-subcard strong {
  color: var(--accent-blue);
  font-weight: 600;
}

.project-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.repo-btn {
  display: inline-block;
  background: var(--accent-blue-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.repo-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.25);
  transform: translateY(-1px);
}

a {
  color: var(--accent-blue);
  text-decoration: underline;
  font-weight: 500;
}
a:hover {
  color: var(--accent-blue-dark);
}

ul {
  padding-left: 1.2rem;
  margin: 0.6rem 0;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

footer {
  text-align: center;
  padding: 0.8rem 0;
  background: var(--neutral-bg);
  color: #7a7a7a;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-gray);
}

.what-i-bring p {
  text-align: left;
  line-height: 1.6;
}

.achievements ul {
  text-align: left;
  line-height: 1.6;
}

.hero-name {
  color: var(--accent-blue-dark);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero-title {
  color: var(--accent-blue-dark);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-tagline {
  color: var(--accent-blue-dark);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-btn {
  background: var(--accent-blue-dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.7em 1.8em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.3px;
}

.hero-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.25);
  transform: translateY(-1px);
}

.hero-links a {
  text-decoration: none;
}

/* Responsive Design */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  header.hero {
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-name {
    font-size: 2rem;
    margin-bottom: 0.2rem;
  }

  .hero-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .hero-buttons {
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero-btn {
    font-size: 0.9rem;
    padding: 0.6em 1.4em;
  }

  main {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }

  h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  ul {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .project-card {
    background: var(--neutral-bg);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .project-card h4 {
    text-align: left;
    margin-bottom: 0.8rem;
    line-height: 1.6;
  }

  .project-card p {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .project-card ul {
    text-align: left;
    display: block;
    margin-top: 0.8rem;
    line-height: 1.6;
  }

  .project-card ul li {
    margin-bottom: 0.6em;
    line-height: 1.6;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.3em 0.6em;
  }
  
  .repo-btn {
    font-size: 0.85rem;
    padding: 0.5em 1em;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  header.hero {
    padding: 2rem 0.8rem;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    padding: 0 0.8rem;
  }

  .hero-name {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
  }

  .hero-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
  }

  .hero-btn {
    font-size: 0.9rem;
    padding: 0.7em 1.5em;
    width: 200px;
    margin: 0 auto;
  }

  main {
    padding: 0 1rem;
  }

  h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
  }

  h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  ul {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .project-card {
    padding: 1rem;
    margin-bottom: 1.2rem;
  }

  .project-card h4 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.85rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
  }

  .skills-subcard {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }

  .achievements ul {
    padding-left: 1.2rem;
  }
  
  .repo-btn {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
  }
}

/* Small mobile phones (320px and below) */
@media (max-width: 320px) {
  header.hero {
    padding: 1.5rem 0.5rem;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-name {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .hero-btn {
    width: 180px;
    font-size: 0.85rem;
    padding: 0.6em 1.2em;
  }

  main {
    padding: 0 0.8rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.85rem;
  }

  ul {
    font-size: 0.85rem;
  }
  
  .repo-btn {
    font-size: 0.75rem;
    padding: 0.3em 0.6em;
  }
}

/* Ensure proper viewport meta tag is in HTML */
/* Add this to your HTML head if not already present: */
/* <meta name="viewport" content="width=device-width, initial-scale=1.0"> */ 
  p {
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: left;
  }

  ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0;
    line-height: 1.6;
  }

  li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
  }

  .about p {
    text-align: left;
    line-height: 1.6;
  }

  .what-i-bring p {
    text-align: left;
    line-height: 1.6;
  }

  .achievements ul {
    text-align: left;
    line-height: 1.6;
  }

  .skills-subcard ul {
    text-align: left;
    line-height: 1.6;
  } 