/* Main CSS File for Michael Murphy Professional Website */

/* ========== VARIABLES ========== */
:root {
  --default-font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Raleway", sans-serif;
  
  --background-color: #ffffff;
  --default-color: #272829;
  --heading-color: #050d18;
  --accent-color: #0055a4;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  
  --nav-color: #474747;
  --nav-hover-color: #0055a4;
  --nav-mobile-background-color: #f5f8fd;
  --nav-dropdown-background-color: #ffffff;
  
  --primary-light: rgba(0, 85, 164, 0.1);
  --text-dark: #333;
  --text-light: #666;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --spacing-sm: 15px;
  --spacing-md: 25px;
  --spacing-lg: 40px;
  
  scroll-behavior: smooth;
}

/* ========== GENERAL STYLES ========== */
.dark-background {
  --background-color: #f5f8fd;
  --default-color: #272829;
  --heading-color: #050d18;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #2a80ca;
  text-decoration: none;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 270px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid rgba(39, 40, 41, 0.1);
}

.header.light-background {
  border-right: 1px solid rgba(39, 40, 41, 0.1);
}

.header .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid rgba(0, 85, 164, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.header .profile-img img:hover {
  transform: scale(1.05);
  border-color: rgba(0, 85, 164, 0.3);
}

.header.light-background .profile-img img {
  border: 8px solid rgba(39, 40, 41, 0.1);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 40, 41, 0.1);
  color: var(--default-color);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

.header.light-background .social-links a {
  background: rgba(39, 40, 41, 0.1);
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
  font-weight: 600;
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

/* ========== MAIN CONTENT ========== */
.main {
  margin-left: 300px;
  transition: margin-left 0.3s ease;
  overflow-x: hidden;
  width: auto;
}

.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

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

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

.section-title p {
  margin-bottom: 0;
}

/* ========== HERO SECTION ========== */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: rgba(26, 95, 185, 0.65);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: white;
}

.hero p {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: white;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

/* Typing effect */
.typed-cursor {
  color: white;
  opacity: 1;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.leader-description {  
  line-height: 1.6;
  font-size: 16px;

}

/* ========== SERVICE ITEMS ========== */
.service-item {
  margin-bottom: 30px;
}

.service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.service-item:hover .icon {
  background: var(--surface-color);
}

.service-item:hover .icon i {
  color: var(--accent-color);
}

.service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.service-item .title a {
  color: var(--heading-color);
}

.service-item .title a:hover {
  color: var(--accent-color);
}

.service-item .description {
  line-height: 1.6;
  font-size: 16px;
}

/* ========== RESUME SECTION ========== */
.resume-title {
  font-size: 24px;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: 10px;
  color: var(--accent-color);
}

.resume-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

.resume-item {
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 0px;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.resume-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.resume-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: var(--accent-color);
}

.resume-item h4 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--accent-color);
}

.resume-item h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.resume-item p em {
  font-style: italic;
  color: var(--text-light);
}

.highlight-box {
  background-color: var(--primary-light);
  padding: var(--spacing-sm);
  margin: 15px 0;
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.highlight-box p {
  margin: 0;
  font-weight: 500;
}

.resume-item ul {
  padding-left: 20px;
  margin-top: 15px;
}

.resume-item ul li {
  margin-bottom: 10px;
  position: relative;
}

/* ========== SKILLS CARD ========== */
.skills-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: var(--spacing-md);
  margin-top: 30px;
}

.skills-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.skill-item {
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 500;
  color: var(--text-dark);
}

.skill-bar {
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--accent-color);
}

.download-btn {
  display: inline-block;
  margin-top: 30px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.download-btn:hover {
  background-color: #003d74;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 85, 164, 0.15);
}

/* ========== CASE STUDIES ========== */
.case-studies-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.case-studies-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 5px 10px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  background-color: #f4f4f4;
}

.case-studies-filters li:hover,
.case-studies-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.case-studies-container {
  display: flex;
  flex-wrap: wrap;
}

.case-studies-item {
  height: 100%;
  display: flex;
  margin-bottom: 30px;
}

.case-study-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
}

.case-study-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-study-item .case-study-img {
  position: relative;
  overflow: hidden;
}

.case-study-item .case-study-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.case-study-item:hover .case-study-img img {
  transform: scale(1.1);
}

.case-study-item .case-study-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 11, 20, 0.8), transparent);
}

.case-study-item .case-study-img .title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 20px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.case-study-item .case-study-info {
  padding: 20px;
}

.case-study-item .case-study-info p {
  color: #555;
  margin-bottom: 20px;
}

.case-study-item .case-study-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.case-study-item .case-study-details p {
  color: #374151;
  margin-bottom: 15px;
}

/* ========== CONTACT SECTION ========== */
.contact-info-box {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 85, 164, 0.1);
  color: var(--accent-color);
  margin-right: 15px;
}

.contact-info-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-info-item p {
  margin: 0;
  color: #555;
}

.contact-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: #003d7a;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
}

/* ========== FOOTER ========== */
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0;
  position: relative;
  border-top: 1px solid rgba(39, 40, 41, 0.1);
  margin-left: 300px;
}

.footer .copyright p {
  margin-bottom: 0;
}

/* ========== SCROLL TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

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

.back-to-top:hover {
  background-color: #003d7a;
}

/* ========== MOBILE MENU ========== */
.header-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--accent-color);
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-toggle:hover {
  background-color: #003d74;
}

.mobile-nav-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 996;
  display: none;
}

.mobile-nav-overlay.active {
  display: block;
}

/* ========== TIMELINE STYLES ========== */
.timeline {
  position: relative;
  padding-left: 0;
  margin-top: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), rgba(0, 85, 164, 0.3));
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 45px;
}

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

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 0;
  margin-top: 2.1rem;
  width: 16px;
  height: 16px;
  background: var(--accent-color);
  border: 3px solid var(--background-color);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-marker.education {
  background: #ffffff;
}

.timeline-marker.education::before {
  content: "\f19d"; /* Unicode for graduation-cap */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* required for solid icons */
  font-size: 24px;
  color: var(--accent-color);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(0, 85, 164, 0.1);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  position: relative;
  border-left: 4px solid transparent;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
  margin-top: 2px;
  line-height: 1.3;
}

.timeline-content h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(0, 85, 164, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.timeline-content p em {
  font-style: italic;
  color: var(--text-light);
  font-weight: 500;
}

.timeline-content .highlight-box {
  background-color: var(--primary-light);
  padding: var(--spacing-sm);
  margin: 15px 0;
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.timeline-content .highlight-box p {
  margin: 0;
  font-weight: 600;
  color: var(--accent-color);
   line-height: 1.6;
}

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

.timeline-content ul li {
  margin-bottom: 10px;
  position: relative;
  line-height: 1.6;
  font-size: 16px;
}

.timeline-content ul li::marker {
  color: var(--accent-color);
}

/* ========== CASE STUDY CARDS ========== */
.modern-case-study-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0;
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modern-case-study-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 85, 164, 0.15),
    0 0 0 1px rgba(0, 85, 164, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.modern-case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #2a80ca, var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-case-study-card:hover::before {
  opacity: 1;
}

.card-header {
  padding: 0;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  position: relative;
}

.company-logo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 85, 164, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modern-case-study-card:hover .company-logo img {
  transform: scale(1.1);
}

.card-category {
  background: linear-gradient(135deg, var(--accent-color), #2a80ca);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 0 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 16px 0 8px;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 85, 164, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(0, 85, 164, 0.08);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-details {
  margin-bottom: 20px;
  flex: 1;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-section p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.card-footer {
  padding: 20px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  padding: 0 24px;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 0 0 24px 24px;
}

/* Brand-specific colors */
.vanguard-link {
  background: #c41e3a; /* Vanguard Red */
}

.vanguard-link:hover {
  background: #a01729;
  color: white;
  text-decoration: none;
}

.cvs-link {
  background: #cc0000; /* CVS Red */
}

.cvs-link:hover {
  background: #b30000;
  color: white;
  text-decoration: none;
}

.vistra-link {
  background: #0066cc; /* Vistra Blue */
}

.vistra-link:hover {
  background: #0052a3;
  color: white;
  text-decoration: none;
}

.tod-link {
  background: #7c3aed; /* Purple for AI */
}

.tod-link:hover {
  background: #6d28d9;
  color: white;
  text-decoration: none;
}

.public-imaginary-link {
  background: #5790aa; /* Emerald Green for AI/Creative */
}

.public-imaginary-link:hover {
  background: #3c81a1;
  color: white;
  text-decoration: none;
}

.trubrain-link {
  background: #e34f30; /* Orange for wellness/supplements */
}

.trubrain-link:hover {
  background: #e94f30;
  color: white;
  text-decoration: none;
}

.card-link i {
  font-size: 12px;
}

.tech-tag {
  background: rgba(0, 85, 164, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(0, 85, 164, 0.2);
  transition: all 0.3s ease;
}

.modern-case-study-card:hover .tech-tag {
  background: rgba(0, 85, 164, 0.15);
  border-color: rgba(0, 85, 164, 0.3);
}

/* ========== UTILITY CLASSES ========== */
.text-center { 
  text-align: center; 
}

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

.d-flex { 
  display: flex; 
}

.special-title {
  padding-bottom: 5px !important;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1199px) {
  .header {
    left: -300px;
    z-index: 997;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 250px; /* Slightly narrower on mobile */
    transform: translateX(-100%); /* Ensure it's completely out of view */
  }

  .header.mobile-nav-active {
    left: 0;
    transform: translateX(0); /* Bring it into view */
  }

  .main, .footer {
    margin-left: 0 !important;
    width: 100%;
  }

  .header-toggle {
    display: flex;
  }

  .section {
    overflow-x: visible;
  }
}

@media (max-width: 991px) {
  .skills-card, .resume-item {
    margin-bottom: 20px;
  }

  .section {
    padding: 40px 0;
  }

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

  .timeline-item {
    margin-bottom: 30px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-content h4 {
    font-size: 16px;
  }

  .modern-case-study-card {
    min-height: auto;
    margin-bottom: 20px;
  }

  .card-header {
    height: 100px;
  }

  .case-studies-item {
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .resume-title {
    font-size: 22px;
  }

  .resume-item h4 {
    font-size: 18px;
  }

  .case-studies-filters li {
    margin-bottom: 10px;
    font-size: 13px;
    padding: 8px 15px;
  }

  .contact-info-item {
    margin-bottom: 20px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Long text handling */
  .case-study-details h4 {
    font-size: 16px;
  }

  .case-study-details p {
    font-size: 16px;
  }

  .service-item .description {
    font-size: 16px;
  }

  /* Improve responsive spacing */
  .section {
    padding: 30px 0;
  }

  .resume-item {
    padding: 15px;
  }

  /* Fixes for mobile width */
  .case-study-item .case-study-info {
    padding: 15px;
  }
  
  .timeline {
    padding-left: 0;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item {
    padding-left: 35px;
  }
  
  .timeline-marker {
    left: 7px;
    width: 14px;
    height: 14px;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .timeline-content h4 {
    font-size: 15px;
  }
  
  .skills-card {
    margin-top: 20px;
    padding: 20px;
  }
  
  .card-content {
    padding: 0 20px 16px;
  }
  
  .card-footer {
    padding: 16px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .technologies {
    padding: 0 20px;
  }
  
  .card-link {
    padding: 14px 20px;
    font-size: 13px;
  }
  
  .card-metrics {
    flex-direction: column;
    gap: 12px;
  }
  
  .metric {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 575px) {
  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section {
    padding: 25px 0;
  }

  .container {
    padding: 0 15px;
  }

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

  .case-studies-filters li {
    font-size: 12px;
    padding: 6px 12px;
    margin: 0 2px 8px;
  }

  .resume-item {
    padding: 12px;
  }

  .timeline-content h4 {
    font-size: 16px;
    line-height: 1.4;
  }

  .timeline-content ul li {
    font-size: 16px;
  }

  .service-item .description {
    font-size: 16px;
  }

  .detail-section h4 {
    font-size: 16px;
  }

  .detail-section p {
    font-size: 16px;
  }

  .modern-case-study-card {
    border-radius: 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-header {
    height: 80px;
  }

  .company-logo {
    width: 100%;
    height: 100%;
  }

  .card-category {
    font-size: 10px;
    padding: 4px 10px;
  }
}

/* ========== GRID SYSTEM ========== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}

[class*="col-"] {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
}

/* ========== UTILITY SPACING ========== */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }