/* ==================== CSS Reset and Base Styles ==================== */
:root {
    --primary-color: #17181A;
    --primary-dark: #0C0D0E;
    --secondary-color: #D2AF3A;
    --accent-color: #2EC4B6;
    --text-color: #333;
    --light-text: #f8f8f8;
    --bg-color: #f9f9f9;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* ==================== Utility Classes ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Header & Navigation ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.logo-img:hover {
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* ==================== Mobile Menu ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==================== Hero Section ==================== */
.hero {
  padding: 0;
  background-color: #E5E5E8;
  margin-top: 35px;
}

.hero-container {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.hero-image {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.3s forwards;
  order: -1;
  margin: 20px 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  aspect-ratio: 5/6;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-text {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.5s forwards;
  text-align: center;
  padding: 0 10px 5px;
}

#hero-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--primary-dark);
}

#hero-heading,
#hero-heading .highlight {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.highlight {
  color: var(--secondary-color);
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--text-color);
  max-width: 100%;
  margin: 0 auto 8px;
  line-height: 1.6;
  text-align: justify;
}

/* ================== Career Timeline  ================== */
#career-timeline {
  
  --cols: 9;           
  --gap: 22px;         

  --card-h: 92px;      
  --logo-max: 64px;    

  --tip-w: 260px;      

  --m-gap: 14px;       
  --m-card-h: 200px;   
  --m-logo-h: 56px;    
}

#career-timeline .logo-row {
  display: grid !important;
  grid-template-columns: repeat(var(--cols), 1fr) !important;
  align-items: center !important;
  gap: var(--gap) !important;
  width: 100% !important;
  padding: clamp(14px, 2vw, 24px) 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#career-timeline .logo-card {
  position: relative !important;
  width: 100% !important;
  height: var(--card-h) !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
}

#career-timeline .logo-btn {
  all: unset;
  cursor: pointer;
  line-height: 0;
  border-radius: 10px; 
}
#career-timeline .logo-btn:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 4px;
}

#career-timeline .logo-card img {
  display: block !important;
  max-height: min(var(--logo-max), 80%) !important;
  max-width: 90% !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transition: transform .18s ease, filter .18s ease;
}
@media (hover:hover) {
  #career-timeline .logo-btn:hover img {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.18));
  }
}

#career-timeline .tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: var(--tip-w);
  background: #0f172a;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
  font: 500 0.92rem/1.35 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  display: grid;
  gap: 4px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}

#career-timeline .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 10px; height: 10px;
  background: #0f172a;
  transform: translateX(-50%) rotate(45deg);
}
#career-timeline .tip-title   { color: var(--secondary-color); font-weight: 800; }
#career-timeline .tip-company { opacity: .95; }
#career-timeline .tip-dates   { opacity: .85; }

#career-timeline .logo-btn:hover + .tooltip,
#career-timeline .logo-btn:focus-visible + .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#career-timeline .mobile-meta { display: none; }

/* ================== Mobile (≤768px): 2 columns, fully uniform cards ================== */
@media (max-width: 768px) {
  #career-timeline .logo-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--m-gap) !important;
    align-items: start !important;
    justify-items: stretch !important;
    padding: 12px 8px !important;
  }

  #career-timeline .logo-card {
    height: var(--m-card-h) !important;
    width: 100% !important;
    padding: 8px 6px;
    display: grid !important;
    grid-template-rows: auto 1fr; 
    align-items: start;
    justify-items: center;
    overflow: hidden;            
  }

  #career-timeline .logo-btn {
    display: grid;
    place-items: center;
    width: 100%;
  }
  #career-timeline .logo-card img {
    max-height: var(--m-logo-h) !important;
    max-width: 80% !important;
  }

  #career-timeline .mobile-meta {
    display: grid !important;
    gap: 2px;
    text-align: center;
    align-content: start;
    width: 100%;
  }
  #career-timeline .m-title   { font-weight: 800; font-size: .92rem; color: #0f172a; }
  #career-timeline .m-company { font-weight: 600; font-size: .86rem; color: #1f2937; }
  #career-timeline .m-dates   { font-size: .82rem; color: #475569; }

  #career-timeline .tooltip { display: none !important; }
}

/* ==================== About Section ==================== */
.about {
  position: relative;
  padding: 70px 0 50px;
  background-color: var(--primary-dark);
  color: white;
  overflow: hidden;
}

#about-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about-bio {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.metric-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.metric-card h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-variant-numeric: tabular-nums;
}

.metric-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Centered Button */
.about .button-container {
  text-align: center;
  margin-top: 40px;
  width: 100%;
}

/* ==================== Buttons ==================== */
.cta-button {
  padding: 15px 40px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  display: inline-block;
}

.cta-button:hover {
  background-color: white;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.08);
    opacity: 0.95;
  }
}

/* ==================== Responsive Design ==================== */
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    margin-top: 10px;
  }

  .hero-image {
    order: 1;
    margin-bottom: 0;
  }

  .hero-image img {
    max-height: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
  }

  .hero-text {
    text-align: left;
    padding-right: 20px;
  }

  #hero-heading {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
    margin-left: 0;
    text-align: justify;
    
  }
}

@media (max-width: 1024px) {
  .about-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
  .hero-container {
    margin-top: 62px;
  }

  .about {
    padding: 40px 0;
  }
  
  .about-bio{
    font-size: 1rem;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }
  
  .logo {
    max-width: 120px;
  }
  
  #hero-heading {
    font-size: 2rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== Expertise Section ==================== */
.expertise {
  padding: 60px 0;
  background-color: 	#E5E5E8;
  position: relative;
}

.expertise:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(4,30,100,0.03) 0%, rgba(255,255,255,0) 50%);
  z-index: 0;
}

.expertise .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.expertise-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto 60px;
  margin-bottom: 40px;
}

.expertise-main {
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  border: 1px solid rgba(4,30,100,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.expertise-main:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.expertise-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--secondary-color);
  color: white;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom-left-radius: 16px;
}

.expertise-main h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.expertise-main h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--primary-dark);
  margin-bottom: 30px;
  font-weight: 500;
}

.expertise-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  padding: 25px 0;
  border-top: 1px solid rgba(4,30,100,0.1);
  border-bottom: 1px solid rgba(4,30,100,0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-top: 5px;
}

.expertise-main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(213, 215, 220, 0.896);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(5px);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
  .expertise-columns {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .expertise {
    padding: 60px 0;
  }
  
  .expertise-columns {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
  
  .section-header h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .expertise-main {
    padding: 40px 30px;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .expertise-stats {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .expertise {
    padding: 40px 0;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .expertise-main {
    padding: 35px 25px;
  }
  
  .expertise-main h3 {
    font-size: 1.2rem;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .cta-button {
    padding: 14px 30px;
  }
}

/* ==================== Work Timeline Section ==================== */
.work-timeline {
  padding: 60px 0;
  background-color: lightgrey;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 0;

}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  height: 100%;
  width: 2px;
  background: var(--secondary-color);
  opacity: 0.2;
}

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

.timeline-marker {
  position: absolute;
  left: 30px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 4px var(--secondary-color);
  z-index: 1;
}

.timeline-content {
  margin-left: 80px;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  width: 100%;
  transition: all 0.3s ease;
}

.timeline-year {
  position: absolute;
  left: -90px;
  top: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 20px;
}

.project-highlights {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}

.highlight {
  flex: 1;
  padding: 15px;
  background: rgba(4,30,100,0.03);
  border-radius: 8px;
  text-align: center;
}

.highlight-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: block;
  line-height: 1;
}

.highlight-label {
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.9;
  display: block;
  margin-top: 5px;
}

.project-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 25px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 700;
  transition: all 0.3s ease;
}

.project-link svg {
  transition: transform 0.3s ease;
}

.solid-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Hover States */
@media (hover: hover) {
  .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  }
  .project-link:hover {
    color: var(--primary-dark);
  }
  .project-link:hover svg {
    transform: translateX(5px);
  }
  .solid-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(4,30,100,0.2);
  }
}

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
  .timeline:before {
    left: 20px;
  }
  .timeline-marker {
    left: 15px;
  }
  .timeline-content {
    margin-left: 50px;
    padding: 30px;
  }
  .timeline-year {
    left: -65px;
  }
  .project-highlights {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .work-timeline {
    padding: 40px 0;
  }
  .timeline:before {
    display: none;
  }
  .timeline-marker {
    display: none;
  }
  .timeline-year {
    position: static;
    margin-bottom: 10px;
    color: var(--text-color);
  }
  .timeline-content {
    margin-left: 0;
  }
  .solid-cta {
    padding: 14px 30px;
  }
}

/* ==================== Testimonials Preview ==================== */
.testimonials-preview {
  padding: 60px 0;
  background-color: #E5E5E8; 
  position: relative;
}

.testimonials-preview .section-header h2 {
  color: #fff;
  color: var(--text-color);
}

.testimonials-preview .testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.testimonials-preview .testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

@media (hover: hover) {
  .testimonials-preview .testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 18px 48px rgba(0,0,0,0.25);
  }
}

.testimonials-preview .testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.testimonials-preview .testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonials-preview .author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex: 0 0 52px;
}

.testimonials-preview .author-avatar svg {
  width: 24px;
  height: 24px;
  color: var(--text-color);
  opacity: .9;
}

.testimonials-preview .author-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-color);
  font-weight: 700;
}

.testimonials-preview .author-info p {
  font-size: 0.9rem;
  opacity: .9;
  color: var(--text-color);
  margin: 0;
}

.testimonials-preview .testimonial-logo {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.testimonials-preview .testimonial-logo img {
  display: block;
  height: 28px;           
  width: auto;
  opacity: 1 !important;  
  mix-blend-mode: normal !important;
}

.testimonials-preview .testimonial-content {
  position: relative;
  padding-top: 6px;
}

.testimonials-preview .quote-icon {
  position: absolute;
  top: -4px;
  left: -6px;
  width: 36px;
  height: 36px;
  opacity: .25;
  color: var(--text-color);
}

.testimonials-preview .testimonial-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
}

.outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 2px solid white;
  border-radius: 8px;
  color: white;
  background-color: #cccccc;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.outline-cta svg {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .testimonials-preview .outline-cta:hover {
    background: white;
    color: #004F4F;
    transform: translateY(-2px);
  }
  .testimonials-preview .outline-cta:hover svg {
    transform: translateX(4px);
  }
}

.testimonials-preview .outline-cta svg {
  transition: transform .25s ease;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: 24px;
  }
  .testimonial-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .testimonials-preview {
    padding: 36px 0;
  }
  .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .testimonial-logo {
    align-self: flex-start;
  }
  .testimonial-content p {
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  .testimonials-preview .testimonial-cards {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: 24px;
  }
  .testimonials-preview .testimonial-card { padding: 28px; }
  .testimonials-preview .testimonial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .testimonials-preview { padding: 36px 0; }
  .testimonials-preview .testimonial-content p {
    font-size: 1rem;
    line-height: 1.65;
  }
}

.testimonials-preview a:focus-visible,
.testimonials-preview button:focus-visible {
  outline: 3px solid #D2AF3A; 
  outline-offset: 3px;
}


/* ==================== Consultancy Services Preview ==================== */
.consultancy-preview {
  padding: 60px 0;
  background-color: lightgrey;
  position: relative;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 50px;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary-color);
  transition: all 0.3s ease;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(4,30,100,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 30px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link svg {
  transition: transform 0.3s ease;
}

.outline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-services {
  text-align: center;
}

.view-all-container {
  text-align: center; 
  width: 100%; 
  margin-top: 20px; 
  margin-bottom: -10px;
}

/* Hover States */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  }
  .service-card:hover:before {
    width: 8px;
    background: var(--primary-color);
  }
  .service-link:hover {
    color: var(--primary-dark);
  }
  .service-link:hover svg {
    transform: translateX(5px);
  }
  .outline-cta:hover {
    background: var(--primary-color);
    color: white;
  }
  .outline-cta:hover svg {
    stroke: white;
    transform: translateX(5px);
  }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
  .consultancy-preview {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .service-cards {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .service-card {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .consultancy-preview {
    padding: 30px 0;
  }
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }
  .service-icon svg {
    width: 24px;
    height: 24px;
  }
  .service-card h3 {
    font-size: 1.3rem;
  }
  .service-description {
    font-size: 1rem;
  }
}

/* ==================== Footer Styles ==================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 30px;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    color: white;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-style: normal;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

.contact-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

.social-link:hover {
    color: white;
    transform: translateX(5px);
}

/* ==================== Back-to-Top Button ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;

    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1FB1A9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);

    transition:
      visibility 0s linear 0.3s,
      opacity 0.3s ease,
      transform 0.3s ease;
}

.back-to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.back-to-top:hover svg {
    transform: scale(1.1);
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    text-align: center;
    flex: 1;
    min-width: 0;
}


/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        padding: 20px 0 0;
        flex-direction: row;
        gap: 15px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        margin-left: 15px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        flex-wrap: nowrap; 
        justify-content: space-between;
    }
    
    .copyright {
        flex-basis: auto; 
        margin-bottom: 0;
        text-align: center; 
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 10px;
        font-size: 0.83rem;
    }
    
    .back-to-top {
        margin-left: 10px;
        flex-shrink: 0; 
    }
}