:root {
  /* Variables will be defined at the end of the file to support light/dark mode */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.3s ease-in-out;
  --sidebar-width: 300px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--element-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--element-color-dark);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: left;
}

.text-light {
  color: var(--text-light) !important;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pb-0 {
  padding-bottom: 0;
}

.ms-2 {
  margin-left: 0.5rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded-circle {
  border-radius: 50%;
}

.rounded {
  border-radius: 8px;
}

.d-none {
  display: none !important;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--element-color);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  border: none;
  transition: all 0.4s;
  cursor: pointer;
  box-shadow: 0 2px 5px var(--shadow-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle i {
  font-size: 20px;
  color: #fff;
  line-height: 0;
}

.theme-toggle:hover {
  background: var(--element-color-dark);
  transform: scale(1.1);
}

/* Grid System */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class^="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .order-md-1 {
    order: 1;
  }

  .order-md-2 {
    order: 2;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .d-xl-none {
    display: none !important;
  }
}

/* Header / Sidebar */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  transition: all 0.5s;
  z-index: 9997;
  padding: 0 15px;
  background: var(--sidebar-bg);
  overflow-y: auto;
}

.profile img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid var(--profile-border);
}

.profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  text-align: center;
}

.profile h1 a {
  color: var(--text-light);
  text-decoration: none;
}

.profile .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--social-bg);
  color: var(--text-light);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.profile .social-links a:hover {
  background: var(--element-color);
  color: var(--text-light);
}

/* Navigation */
.nav-menu {
  padding: 30px 0 0 0;
}

.nav-menu ul {
  padding: 0;
}

.nav-menu li {
  padding-bottom: 10px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  color: var(--nav-text);
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i {
  font-size: 24px;
  padding-right: 8px;
  color: var(--nav-icon);
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus {
  color: var(--text-light);
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i {
  color: var(--element-color);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  background-color: var(--element-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* Main Content */
#main {
  margin-left: var(--sidebar-width);
}

@media (max-width: 1199px) {
  #header {
    left: -300px;
  }

  #main {
    margin-left: 0;
  }

  .mobile-nav-active #header {
    left: 0;
  }
}

/* Sections */
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background: var(--background-color);
}

.section-title {
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: var(--text-color);
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--element-color);
  bottom: 0;
  left: 0;
}

.section-title.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Hero Section */
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") top center;
  background-size: cover;
  position: relative;
}

#hero:before {
  content: "";
  background: var(--hero-overlay);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
  text-align: center;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: var(--hero-text);
}

#hero p {
  color: var(--hero-text);
  margin-bottom: 50px;
  font-size: 26px;
  font-family: var(--font-heading);
}

#hero p span {
  color: var(--hero-text);
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--element-color);
}

/* Funny Entrance Animation */
@keyframes funnyEntrance {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg) translateY(50px);
  }

  50% {
    opacity: 1;
    transform: scale(1.1) rotate(3deg) translateY(-10px);
  }

  70% {
    transform: scale(0.95) rotate(-2deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.funny-animate {
  animation: funnyEntrance 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  /* Initial state */
}

/* About Section */
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--element-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--element-color);
  background: var(--background-color);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 2px 5px var(--shadow-light);
}

.about .content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Resume Section */
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--element-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--element-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-heading);
  color: var(--text-color);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 14px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--element-color-dark);
  border-radius: 4px;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  background: var(--card-bg);
  border: 2px solid var(--element-color);
}

/* View Responsibilities (Details/Summary) */
details {
  background: var(--card-bg);
  padding: 15px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  overflow: hidden;
  /* Ensure content stays inside during animation */
}

details:hover {
  background: var(--background-color);
}

details summary {
  color: var(--element-color);
  font-weight: 600;
  outline: none;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  float: right;
  font-weight: bold;
  transition: transform 0.3s;
}

details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

details[open] summary {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

/* Animation for details expansion */
details[open]>div,
details[open]>ul,
details[open]>p {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix for list inside details and resume items */
details ul,
.resume-item ul {
  list-style-type: none !important;
  padding-left: 10px !important;
  margin-top: 15px;
}

details li,
.resume-item li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

details li::before,
.resume-item li::before {
  content: '➢';
  /* Arrow bullet */
  position: absolute;
  left: 0;
  color: var(--element-color);
  font-size: 14px;
  top: 2px;
}

/* Course List Styling */
.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.course-list p {
  background: var(--background-color);
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 0;
  border-left: 3px solid var(--element-color);
  font-size: 14px;
}

.course-list strong {
  color: var(--element-color-dark);
  display: block;
  margin-bottom: 5px;
}

/* Skills Section */
.skill-box {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 0 25px 0 var(--shadow-light);
  transition: transform 0.3s;
  height: 100%;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--shadow-glow);
  border-color: var(--element-color);
}

.skill-box i {
  font-size: 40px;
  color: var(--element-color);
  margin-bottom: 15px;
  display: inline-block;
}

.skill-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--element-color);
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-color);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid var(--table-border);
  text-align: left;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--table-border);
  color: var(--table-head-text);
}

/* Projects Section */
.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--shadow-medium);
}

.portfolio-wrap img {
  transition: 0.3s;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-wrap:hover img {
  transform: scale(1.1);
}

.portfolio-info {
  padding: 25px 20px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--overlay-bg);
}

.portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio-info h4 {
  font-size: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.portfolio-info p {
  color: var(--element-color-dark);
  font-size: 14px;
  text-transform: uppercase;
}

.portfolio-links a {
  color: var(--text-color);
  font-size: 28px;
  display: inline-block;
  margin: 0 5px;
  transition: 0.3s;
}

.portfolio-links a:hover {
  color: var(--element-color);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  color: var(--text-light);
  background-color: var(--element-color);
  border-color: var(--element-color);
}

.btn-primary:hover {
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--element-color-dark);
  border-color: var(--element-color-dark);
}

:root {
  /* Light Theme (Default) */
  --element-color: #0D9488;
  /* Teal 600 */
  --element-color-dark: #0F766E;
  /* Teal 700 */
  --accent-color: #10B981;
  /* Emerald 500 */
  --text-color: #2D3748;
  /* Dark Slate Gray */
  --background-color: #F4F6F7;
  /* Neutral */
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --overlay-bg: rgba(255, 255, 255, 0.9);
  --icon-bg: #E6FFFA;
  /* Very Light Teal */

  /* Additional Variables */
  --sidebar-bg: #040b14;
  --profile-border: #2c2f3f;
  --social-bg: #212431;
  --nav-text: #a8a9b4;
  --nav-icon: #6f7180;
  --hero-overlay: rgba(5, 13, 24, 0.3);
  --hero-text: #fff;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --footer-bg: #040b14;
  --footer-text: #fff;
  --table-border: #dee2e6;
  --table-head-text: #495057;
  --award-subtitle: #666;
  --timeline-line: #dce0e6;
  --text-light: #fff;
  --shadow-glow: rgba(13, 148, 136, 0.4);
  /* Teal 600 glow */
}

[data-theme="dark"] {
  /* Dark Theme */
  --element-color: #2DD4BF;
  /* Teal 400 */
  --element-color-dark: #14B8A6;
  /* Teal 500 */
  --accent-color: #34D399;
  /* Emerald 400 */
  --text-color: #E2E8F0;
  /* Light Gray */
  --background-color: rgb(9, 21, 20);
  /* Darker Gray */
  --card-bg: #1f3734;
  /* Dark Gray */
  --border-color: #374151;
  --overlay-bg: rgba(31, 41, 55, 0.95);
  --icon-bg: rgba(45, 212, 191, 0.15);
  /* Teal Tint */

  /* Dark Theme Overrides */
  --sidebar-bg: #021210;
  --profile-border: #374151;
  --social-bg: #374151;
  --nav-text: #9CA3AF;
  --nav-icon: #6B7280;
  --hero-overlay: rgba(0, 0, 0, 0.7);
  --hero-text: #E2E8F0;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.6);
  --footer-bg: #1f3734;
  --footer-text: #E2E8F0;
  --table-border: #374151;
  --table-head-text: #E2E8F0;
  --award-subtitle: #9CA3AF;
  --timeline-line: #374151;
  --text-light: #E2E8F0;
  --shadow-glow: rgba(45, 212, 191, 0.4);
  /* Teal 400 glow */
}

/* Dark Mode Contrast Fixes */
[data-theme="dark"] .resume .resume-item h5 {
  background: var(--icon-bg);
  color: var(--element-color);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary {
  color: var(--element-color);
  border-color: var(--element-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  color: var(--text-light);
  background-color: var(--element-color);
}

/* Awards */
.award-item {
  margin-bottom: 50px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.award-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--shadow-glow);
  border-color: var(--element-color);
}

.award-item img {
  max-height: 300px;
  /* Limit height for large images */
  width: auto;
  /* Allow width to adjust */
  max-width: 100%;
  object-fit: contain;
  /* Don't crop, show full image */
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.award-subtitle {
  font-style: italic;
  color: var(--award-subtitle);
}

.award-links a {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

/* More Awards Section */
.more_award .card {
  border: none;
  box-shadow: 0 0 20px var(--shadow-light);
  background-color: var(--card-bg);
  padding-top: 20px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  height: 100%;
}

.more_award .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--shadow-glow);
  border-color: var(--element-color);
}

.more_award .card-img-top {
  height: 250px;
  object-fit: cover;
}

.more_award .card-body {
  padding: 20px;
}

.more_award .card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

/* Activities Timeline */
.timeline-container {
  position: relative;
  padding: 20px 0;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The vertical line */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--timeline-line);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

/* Container around content */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
  z-index: 1;
  /* Ensure dots are above the line */
}

/* The circles on the timeline */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--card-bg);
  border: 4px solid var(--element-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
  box-sizing: border-box;
  /* Ensure width includes border for correct centering */
}

.timeline-item:hover::after {
  background-color: var(--element-color);
  transform: scale(1.2);
}

/* Place the container to the left */
.left {
  left: 0;
}

/* Place the container to the right */
.right {
  left: 50%;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -10px;
}

/* The actual content */
.timeline-content {
  padding: 20px 30px;
  background-color: var(--card-bg);
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--shadow-glow);
  border-color: var(--element-color);
}

/* Connector arrows */
.timeline-item.left .timeline-content::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: -10px;
  border: medium solid var(--card-bg);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--card-bg);
  transition: border-color 0.3s ease;
}

.timeline-item.right .timeline-content::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: -10px;
  border: medium solid var(--card-bg);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--card-bg) transparent transparent;
  transition: border-color 0.3s ease;
}

/* Date styling */
.timeline-content .date {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  color: var(--element-color-dark);
  background: var(--background-color);
  padding: 4px 10px;
  border-radius: 4px;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.timeline-content p {
  font-size: 15px;
  margin-bottom: 0;
}

/* Media queries - Responsive timeline on screens less than 768px */
@media screen and (max-width: 768px) {

  /* Place the timelime to the left */
  .timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure all circles are at the same spot */
  .timeline-item::after {
    left: 23px;
    /* Adjusted to align with line center (31px + 2px = 33px center. 23px + 10px = 33px center) */
  }

  /* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  }

  /* Fix arrows for mobile */
  .timeline-item.right .timeline-content::before,
  .timeline-item.left .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
  }
}

/* ITDogtics */
.itdogtics .itdog-logo {
  max-width: 200px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.itdogtics-services li {
  margin-bottom: 10px;
  font-size: 18px;
}

.itdogtics-services i {
  color: var(--element-color);
  margin-right: 10px;
}

/* Blog Cards (Dynamic) */
.blog-card {
  background: var(--card-bg);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--shadow-medium);
  height: 100%;
  /* Ensure full height */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--shadow-glow);
  border-color: var(--element-color);
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-card .card-body {
  padding: 20px;
  flex-grow: 1;
  /* Allow body to take available space */
}

.blog-card .card-footer {
  background: transparent;
  border: none;
  padding-bottom: 20px;
  text-align: center;
}

/* Contact */
.contact .info {
  padding: 30px;
  background: var(--card-bg);
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 24px 0 var(--shadow-medium);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  /* Match height */
}

.contact .info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--shadow-glow);
  border-color: var(--element-color);
}

.contact .info i {
  font-size: 20px;
  color: var(--element-color);
  float: left;
  width: 44px;
  height: 44px;
  background: var(--icon-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-color);
}

.contact iframe {
  width: 100%;
  height: 100% !important;
  /* Force height to match container */
  min-height: 300px;
  /* Fallback */
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
}

/* Footer */
#footer {
  padding: 30px 0;
  color: var(--footer-text);
  font-size: 14px;
  position: relative;
  background: var(--footer-bg);
  text-align: center;
}

#footer .copyright {
  margin-bottom: 5px;
}

#footer .credits {
  font-size: 13px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 60px;
  z-index: 996;
  background: var(--element-color);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}