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

:root {
  --primary: #c62828;
  --primary-hover: #e53935;
  --accent: #f44336;
  --bg: #f9f9f9;
  --text: #222;
  --subtext: #555;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(198, 40, 40, 0.15);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

main {
  display: flex;
  flex-direction: column;
  padding-bottom: 55px;
}

/* --- Visual Order of Content --- */
header                   { order: 1; }
.sections-container      { order: 3; }
.footer-content          { order: 2; }


/* --- Top Contact Bar --- */
.contact-bar {
  background-color: var(--card-bg);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-bar p {
  display: inline-block;
  margin: 0 10px;
}



/* --- Bottom Navigation Bar --- */

nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  display: flex;
  justify-content: center;
  background-color: var(--primary);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}
nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.2s ease;
}
nav a:hover { background-color: var(--primary-hover); }



/* --- Header Styling --- */
header { text-align: center; padding: 25px 15px; }
h1 { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 400; color: var(--subtext); }

/* --- Main Content Sections --- */
.sections-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 85%;
  margin: 40px auto;
}
.flex-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 500px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.flex-section:hover { transform: translateY(-5px); }
.flex-section.reverse .image-box { order: 1; }
.flex-section.reverse .text-box { order: 2; }

.image-box { flex: 1; display: flex; justify-content: center; margin-bottom: 20px; }
.image-box img { width: 100%; max-width: 350px; border-radius: 12px; box-shadow: var(--shadow); transition: transform 0.3s ease; }
.image-box img:hover { transform: scale(1.03); }

.text-box { flex: 1; padding: 10px; text-align: center; }
.text-box h3 { font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.text-box ul { list-style-type: disc; padding-left: 20px; text-align: left; display: inline-block; }
.text-box li { margin-bottom: 12px; }
.text-box a { color: var(--accent); font-weight: 500; text-decoration: none; }
.text-box a:hover { text-decoration: underline; }

/* --- Button Styling --- */
button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  background-color: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(198, 40, 40, 0.25);
}


footer {
  display: none;
}
.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-heading {
  text-align: center;
  margin: 40px 0 20px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--primary);
}


.qualifications-wrapper {
  display: flex;
  gap: 30px;
  width: 90%;
  margin: 40px auto;
  align-items: flex-start;
}

.text-column   { order: 1; flex: 1; }
.resume-column { order: 2; flex: 2; }


.resume-column, .text-column {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.resume-column iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .qualifications-wrapper {
    flex-direction: column;
  }
}

.roadmap-card {
  width: 80%;
  max-width: 900px;
  border-radius: 40px;
  text-align: center;
  margin-bottom: 30px;
}

.roadmap-card .text-box {
  text-align: left;
  display: inline-block;
  width: 90%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}