/* General Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

/* Header */
header {
  background: #0f172a;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}
header h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
}
header h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: #fff;
}
header p {
  max-width: 700px;
  margin: 1rem auto;
}
header a {
  text-decoration: none;
}

/* Contact Links */
header .contact a {
  display: inline-block;
  margin: 6px;
  padding: 8px 14px;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  color: #38bdf8;
  font-size: 0.95em;
  font-weight: 500;
  transition: all 0.3s ease;
}
header .contact a:hover {
  background: #38bdf8;
  color: #fff;
}
header .contact a:hover i {
  color: #fff; 
}
header .contact i {
  margin-right: 6px;
  color: #38bdf8;  
}

/* Sections */
section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
section:nth-of-type(even) {
  background: #ffffff;
}
section:nth-of-type(odd) {
  background: #f4f7fb;
}
h2 {
  color: #0f172a;
  border-bottom: 2px solid #38bdf8;
  display: inline-block;
  margin-bottom: 1rem;
  text-align: center;
}

/* Lists */
ul {
  list-style-type: none;
  padding: 0;
}
ul li {
  margin: 0.5rem 0;
  padding: 0.75rem;
}

/* Skills */
.skills {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.skills li {
  display: flex;
  align-items: center;
  font-size: 1em;
  margin-bottom: 8px;
  background: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.skills li:hover {
  transform: scale(1.05);
}
.skills i {
  margin-right: 8px;
  font-size: 1.2em;
  color: #ff9900; /* AWS orange default accent */
}

/* Project List */
section ul li strong {
  color: #0f172a;
}
section ul li {
  background: none;
  box-shadow: none;
  padding: 0.5rem 0;
}

section ul li a {
  display: inline-block;
  margin-top: 6px;
}


/* Badges */
.badge-group {
  margin-bottom: 1.5rem;
}
.badge-group p {
  margin: 0 0 6px;
  font-weight: 600;
  color: #0f172a;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.badges img {
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}
.badges img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  text-align: center;
  background: #0f172a;
  color: #fff;
  padding: 1rem;
  margin-top: 2rem;
  border-top: 3px solid #38bdf8;
}

/* Links */
a {
  text-decoration: none;
  color: #0366d6;
  font-weight: 500;
}
a:hover {
  text-decoration: underline;
}
a i {
  margin-right: 6px;
  color: #333;
}
.badge-group ul {
  display: none;
}

/* Print Styles for PDF Export */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 0.9em;
  }
  section {
    padding: 1rem 0.5rem;
  }
  h2 {
    font-size: 1.2rem;
    text-align: center;
  }
  header h1 {
    font-size: 1.8rem;
    color: #000;
  }
  header h2 {
    color: #000;
  }
  header, footer {
    background: #fff;
    color: #000;
    border: none;
  }
  .contact a {
    border: none;
    padding: 0;
    margin: 0 6px;
    color: #000;
  }

  /* Hide badges in PDF, show text list instead */
  .badges img {
    display: none;
  }
  .badges::before {
    content: none; 
  }
  .badges {
    display: none;
  }
  .badge-group ul {
    margin-top: 0;
    padding-top: 0;
  }
  
  .badge-group li {
    list-style-type: disc;
    margin: 4px 0;
    font-size: 0.95em;
    color: #000;
  }
      /* Hide Download Resume button in PDF */
  .download-resume {
    display: none !important;
  }
}
  .badges li {
    list-style-type: disc;
    margin: 4px 0;
    font-size: 0.95em;
    color: #000;
  }

  section {
    background: #fff !important;
    border: none;
    margin-bottom: 1rem;
    box-shadow: none;
    page-break-inside: avoid;
  }

/* Download Resume Button */
.download-resume {
  margin-top: 15px;
}

.download-resume a {
  display: inline-block;
  padding: 10px 18px;
  background: #38bdf8;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.download-resume a:hover {
  background: #0ea5e9;
}

.download-resume i {
  margin-right: 8px;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}