/* ==============================
   Base Styling & Typography
============================== */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f9fafb;
  --text-color: #374151;
  --text-dark: #111827;
  --header-bg: #1f2937;
  --nav-bg: #374151;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================
   Layout: Header, Nav, Footer
============================== */
header {
  background-color: var(--header-bg);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header h1 {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
}

header p {
  margin: 0 0 20px 0;
  color: #d1d5db;
  font-size: 1.1rem;
}

nav {
  background-color: var(--nav-bg);
  padding: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #93c5fd;
}

section {
  flex: 1;
  padding: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

footer {
  background-color: var(--header-bg);
  color: #9ca3af;
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

/* ==============================
   Images & Badges
============================== */
.circle-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid #374151;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.circle-image img {
  width: 100%;
  height: auto;
}

.aws-badge-container {
  margin-top: 15px;
}

.aws-badge-container img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.aws-badge-container img:hover {
  transform: scale(1.05);
}

/* ==============================
   Projects Grid & Cards
============================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.card-body p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  color: #4b5563;
  flex: 1;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
  align-self: flex-start;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ==============================
   About Page Articles
============================== */
article {
  background: var(--card-bg);
  padding: 35px 40px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

article h3 {
  margin-top: 0;
  color: var(--text-dark);
  font-size: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

article p {
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

article a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

article a:hover {
  text-decoration: underline;
}

/* ==============================
   Index Page specific
============================== */
h2 {
  color: var(--text-dark);
  font-size: 2rem;
  margin-top: 0;
}

hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 40px 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-stack img {
  border-radius: 4px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.contact-info i {
  font-size: 1.2rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
}

.contact-info a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--primary-color);
}

/* ==============================
   Media Queries (Mobile)
============================== */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header {
    padding: 30px 15px;
  }

  section {
    padding: 30px 20px;
  }

  article {
    padding: 25px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Resume Page Layout
============================== */
.resume-container {
  background: var(--card-bg);
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
}

.resume-header {
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.resume-header h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.resume-header p.subtitle {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.skill-category {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.skill-category h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.skill-category p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Timeline Layout */
.resume-section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 25px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 10px;
}

.timeline {
  border-left: 3px solid #e5e7eb;
  margin-left: 10px;
  padding-left: 30px;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40.5px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
  margin-bottom: 5px;
  display: block;
}

.timeline-title {
  margin: 0 0 5px 0;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.timeline-company {
  margin: 0 0 15px 0;
  font-weight: 500;
  color: #6b7280;
  font-style: italic;
}

.timeline-content ul {
  padding-left: 20px;
  margin: 0;
}

.timeline-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.timeline-content strong {
  color: var(--text-dark);
}

/* Certifications */
.cert-list {
  list-style-type: none;
  padding: 0;
}

.cert-list li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.cert-list li::before {
  content: '\f0a3';
  font-family: 'FontAwesome';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.8rem;
  top: 4px;
}

/* Print Stylesheet */
@media print {
  header, nav, footer, .contact-info, hr {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  section {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  .resume-container {
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .timeline {
    border-left: 2px solid #ccc;
  }
  .timeline-item::before {
    border-color: #666;
  }
  a {
    color: black;
    text-decoration: none;
  }
}

@media (max-width: 768px) {
  .resume-container {
    padding: 25px 20px;
  }
}
