/* Ensure Portfolio cards and images are correct on small tablets and mobiles */
@media (max-width: 820px) {
  .portfolio .grid { grid-template-columns: repeat(1, minmax(0, 1fr)); min-width: 0; }
  .portfolio .grid-small { grid-template-columns: repeat(1, minmax(0, 1fr)); min-width: 0; }
  .portfolio .card { width: 100%; min-width: 0; height: 240px; }
  .portfolio .card.small { height: 210px; }
  .portfolio .card img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
}
/* Journey (Experience Timeline) Section */
.experience {
  text-align: center;
  margin: 60px auto 200px;
}

.experience .container {
  max-width: 700px;
  margin: 0 auto;
  display: block; /* avoid global grid */
}

.experience .section-subtitle {
  color: #2563eb;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.experience .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.experience .card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.experience .icon {
  font-size: 40px;
  color: #2563eb;
  margin-bottom: 15px;
}

.experience .date {
  font-size: 14px;
  color: gray;
  margin-bottom: 10px;
}

.experience .card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.experience .card-text {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

.experience .gpa {
  font-size: 14px;
  font-weight: bold;
  background-color: #dbeafe;
  color: #2872da;
  width: fit-content;
  padding: 0 8px;
  border-radius: 50px;
  margin-bottom: 0;
  margin-top: 10px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto; /* center inside the card */
}

.journey {
  text-align: center;
  margin: clamp(80px, 12vw, 160px) auto clamp(120px, 16vw, 220px);
}

.journey .container {
  max-width: 1000px;
  margin: 0 auto;
  display: block; /* override global section .container grid */
}

.journey .subtitle {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 6px;
  text-transform: uppercase;
  text-align: center;
}

.journey .title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin: 0 0 26px;
  text-align: center;
}

/* Timeline */
.journey .timeline {
  position: relative;
  max-width: 1000px; /* allow wider centered cards */
  margin: 0 auto;
  padding: 20px 0;
}

.journey .timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: rgba(0, 102, 255, 0.22); /* static pale line like mock */
}

.journey .timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 44px;
  position: relative;
}

/* Connector from center line to the card */
/* Remove side connector so the centered line appears between cards */
.journey .timeline-item::before { display: none; }

.journey .timeline-icon {
  position: absolute;
  left: 50%;
  /* Place icon outside the card on the top-left (desktop):
     card width is 760px => half is 380px; add 20px gap */
  transform: translateX(calc(-50% - 380px - 20px));
  background: #fff;
  border: 3px solid #0066ff;
  color: #0066ff;
  border-radius: 50%;
  padding: 10px;
  z-index: 2;
  top: -12px;
}

/* Accent variations per item to echo the mockup icons */
.journey .timeline-item:nth-child(1) .timeline-icon { border-color: #2563eb; color: #2563eb; }
.journey .timeline-item:nth-child(2) .timeline-icon { border-color: #22c55e; color: #22c55e; }
.journey .timeline-item:nth-child(3) .timeline-icon { border-color: #06b6d4; color: #06b6d4; }
.journey .timeline-item:nth-child(4) .timeline-icon { border-color: #f59e0b; color: #f59e0b; }
.journey .timeline-item:nth-child(5) .timeline-icon { border-color: #8b5cf6; color: #8b5cf6; }
.journey .timeline-item:nth-child(6) .timeline-icon { border-color: #10b981; color: #10b981; }
.journey .timeline-item:nth-child(7) .timeline-icon { border-color: #ef4444; color: #ef4444; }
.journey .timeline-item:nth-child(8) .timeline-icon { border-color: #0ea5e9; color: #0ea5e9; }

.journey .timeline-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid #e6edf3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin: 0 auto; /* center card */
  width: 760px; /* fixed width on desktop to align icon calc */
  max-width: 94%;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  z-index: 1; /* keep cards above the line so line shows between cards */
}

.journey .timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.journey .timeline-card h3 {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 14px;
}

.journey .timeline-card .main { margin: 0; font-size: 15px; color: #222; }
.journey .timeline-card .sub { margin: 5px 0 0; font-size: 13px; color: #555; }

/* GPA pill */
.journey .timeline-card .gpa {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background-color: #dbeafe;
  color: #2872da;
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

/* Active state when revealed */
.journey .timeline-item.active .timeline-icon { background: #0066ff; color: #fff; }

/* Skills Section */
.skills {
  background: #f8fafc;
  padding: clamp(80px, 12vw, 140px) 0;
}

/* Override global grid so headings center properly */
.skills .container {
  display: block;
  margin: 0 auto;
}

.skills .subtitle {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 6px;
  text-transform: uppercase;
  text-align: center;
}

.skills .title {
  text-align: center;
  margin: 0 0 26px;
  font-size: clamp(28px, 5vw, 42px);
}

.skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.skills .skill-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e6edf3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex; flex-direction: column;
}

.skills .skill-card:not(.Language) {
  overflow: visible;
}

.skills .skill-card:not(.Language)::before { content: none !important; }

/* Per-card color accents for decorative background */
.skills .skill-card.lab::before,
.skills .skill-card.software::before,
.skills .skill-card.pro::before { content: none !important; }

.skills .skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}

/* Hover animation on icon when card is hovered */
.skills .skill-card:hover .skill-icon {
  animation: skillIconPop 320ms ease both;
}

@keyframes skillIconPop {
  0%   { transform: scale(1) rotate(0deg); }
  45%  { transform: scale(1.12) rotate(-6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.skills .skill-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 15px;
}

.skills .skill-card.lab .skill-icon { background: #28a745; }
.skills .skill-card.software .skill-icon { background: #3b82f6; }
.skills .skill-card.pro .skill-icon { background: #ff9800; }

/* Decorative gradient at top-right for all cards except Language (which already has its own) */
.skills .skill-card:not(.Language)::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient( circle at 30% 30%, rgba(99,102,241,0.18), rgba(99,102,241,0.06) 60%, transparent 70% );
  filter: blur(2px);
  pointer-events: none;
}

/* Language card - distinctive styling */
.skills .skill-card.Language {
  border-color: #c7d2fe; /* indigo-200 */
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 28px rgba(99,102,241,0.18), 0 2px 8px rgba(2,6,23,0.06);
  position: relative;
  overflow: hidden;
  /* same sizing as other cards */
  grid-column: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Place Language card in the middle column on wide screens */
@media (min-width: 992px) {
  .skills .skill-card.Language { grid-column: 2; }
}

/* Decorative gradient sheen */
.skills .skill-card.Language::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient( circle at 30% 30%, rgba(99,102,241,0.28), rgba(99,102,241,0.06) 60%, transparent 70% );
  filter: blur(2px);
}

/* Small ribbon label */
.skills .skill-card.Language::after {
  content: "Languages";
  position: absolute;
  top: 10px; right: 12px;
  font-size: 11px;
  letter-spacing: .4px;
  color: #4338ca; /* indigo-700 */
  background: #eef2ff; /* indigo-50 */
  border: 1px solid #c7d2fe; /* indigo-200 */
  padding: 3px 8px;
  border-radius: 999px;
}

/* Icon gradient unique to Language */
.skills .skill-card.Language .skill-icon {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  box-shadow: 0 6px 14px rgba(99,102,241,0.35);
}

/* Title accent */
.skills .skill-card.Language h3 { color: #3730a3; }

/* Level badge (generic) */
.skills .skill-card.Language .level-badge,
.skills .skill-card.Language .lang-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Native badge style */
.skills .skill-card.Language .lang-badge.native {
  color: #065f46;
  background: #ecfdf5;
  border-color: #34d399;
}

/* Language row layout */
.skills .skill-card.Language .lang-list { margin: 0; padding: 0; list-style: none; }
.skills .skill-card.Language .lang-list li { margin: 10px 0 0; }
.skills .skill-card.Language .lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.skills .skill-card.Language .lang-name { display: inline-flex; align-items: center; gap: 6px; }

/* Meter for CEFR level */
.skills .skill-card.Language .level-meter {
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 14px;
}
.skills .skill-card.Language .level-meter .fill {
  display: block;
  height: 100%;
  width: 0%; /* will be overridden inline */
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.5);
  transition: width .6s ease;
}

/* Bullet accent */
.skills .skill-card.Language li i { color: #6366f1; }

/* Hover effect */
.skills .skill-card.Language:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(99,102,241,0.22), 0 8px 18px rgba(2,6,23,0.08);
}
.skills .skill-card.Language:hover .skill-icon {
  animation: langPulse 420ms ease both;
}

@keyframes langPulse {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.12) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.skills .skill-card h3 { margin: 0 0 10px; font-size: 16px; }

.skills .skill-card ul { list-style: none; padding: 0; margin: 0; }
.skills .skill-card li { font-size: 14px; margin: 6px 0; color: #444; }
.skills .skill-card li i { color: #28a745; margin-right: 6px; }

/* Responsive */
@media (max-width: 991px) {
  .journey .timeline-card { width: 94%; margin: 0 auto; }
  /* Lift icon a bit and create breathing room inside the card for the date */
  .journey .timeline-icon { left: 16px; transform: none; top: -20px; }
  .journey .timeline-card { padding-top: 30px; }
  .journey .timeline-card h3 { padding-left: 36px; }
  .skills .skills-grid { grid-template-columns: 1fr; gap: 16px; max-width: 640px; }

  /* Portfolio: force full width and stretch items */
  .portfolio { overflow-x: visible; }
  .portfolio .container { width: 100% !important; max-width: none !important; padding: 0 14px; }
  .portfolio .grid, .portfolio .grid-small {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0;
    justify-items: stretch;
    align-items: stretch;
    gap: 18px;
  }
  .portfolio .card { display: block; width: 100% !important; max-width: none !important; min-width: 0; height: 240px; }
  .portfolio .card.small { height: 220px; }
  .portfolio .card img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
}

@media (max-width: 640px) {
  .journey .timeline { max-width: 560px; }
  /* keep line, icon, and cards centered on mobile */
  .journey .timeline::before { left: 50%; transform: translateX(-50%); }
  .journey .timeline-icon { left: 12px; transform: none; top: -22px; }
  .journey .timeline-card { width: 94%; margin: 0 auto; padding-top: 32px; }
  .journey .timeline-card h3 { padding-left: 34px; }

  /* Portfolio: ensure cards and images render correctly on small screens */
  .portfolio .container { padding: 0 14px; }
  .portfolio .grid { grid-template-columns: repeat(1, minmax(0, 1fr)); min-width: 0; }
  .portfolio .grid-small { grid-template-columns: repeat(1, minmax(0, 1fr)); min-width: 0; }
  .portfolio .card { width: 100%; height: 240px; min-width: 0; }
  .portfolio .card.small { height: 210px; }
  .portfolio .card img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
}

/* Portfolio & Certificates Section */
.portfolio { padding: clamp(80px, 12vw, 140px) 0; }
.portfolio .container { display: block; margin: 0 auto; }
.portfolio .section-title { text-align: center; margin-bottom: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.portfolio .section-title p { color: #2563eb; font-size: 14px; font-weight: 700; letter-spacing: 1px; margin: 0 0 6px; text-transform: uppercase; }
.portfolio .section-title h2 { font-size: clamp(26px, 4.6vw, 38px); margin: 0; }

/* Grids */
.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portfolio .grid-small {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Cards */
.portfolio .card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  height: 260px;
  background: linear-gradient(to bottom, #e5e7eb, #6b7280);
  border: 1.5px solid #9e9e9e; /* like input default */
  box-shadow: 0 8px 26px rgba(2,6,23,.08);
  transition: transform .35s ease, box-shadow .35s ease, border-color 150ms cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  outline: none;
}

.portfolio .card.small { height: 230px; }

.portfolio .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}

/* Text over image */
.portfolio .card span {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 0 .2em; /* like input label when lifted */
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transform: translateY(1rem) scale(1); /* like input default */
  transform-origin: left bottom;
  opacity: .94;
  transition: transform 150ms cubic-bezier(0.4,0,0.2,1), color 150ms cubic-bezier(0.4,0,0.2,1), background-color 150ms cubic-bezier(0.4,0,0.2,1), border-color 150ms cubic-bezier(0.4,0,0.2,1);
}

.portfolio .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

/* Shine sweep */
.portfolio .card::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 40%;
  transform: skewX(-20deg) translateX(-120%);
  background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.35) 52%, rgba(255,255,255,0) 64%);
  opacity: .0;
  transition: transform .8s ease, opacity .4s ease;
  pointer-events: none;
}

.portfolio .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(2,6,23,.16);
  border-color: #1a73e8; /* like input:focus */
}

.portfolio .card:hover img { transform: scale(1.06); }
.portfolio .card:hover::after { opacity: 1; }
.portfolio .card:hover span {
  transform: translateY(-50%) scale(0.8); /* match input */
  opacity: 1;
  background-color: #212121; /* label patch */
  color: #2196f3;
  border-color: rgba(33,150,243,0.55);
}
.portfolio .card:hover::before { transform: skewX(-20deg) translateX(220%); opacity: .9; }

/* Keyboard focus mirrors hover for accessibility and floating-label behavior */
.portfolio .card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 4px rgba(26,115,232,0.2), 0 16px 34px rgba(2,6,23,.16);
  border-color: #1a73e8; /* like input:focus */
}
.portfolio .card:focus-visible img { transform: scale(1.06); }
.portfolio .card:focus-visible::after { opacity: 1; }
.portfolio .card:focus-visible span {
  transform: translateY(-50%) scale(0.8);
  opacity: 1;
  background-color: #212121;
  color: #2196f3;
  border-color: rgba(33,150,243,0.55);
}
.portfolio .card:focus-visible::before { transform: skewX(-20deg) translateX(220%); opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .portfolio .card,
  .portfolio .card img,
  .portfolio .card span,
  .portfolio .card::after { transition: none !important; }
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .portfolio .grid { grid-template-columns: 1fr; }
  .portfolio .grid-small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .portfolio .grid-small { grid-template-columns: 1fr; }
}

/* Contact Section */
.contact-section {
  max-width: 760px;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 20px;
  margin: 0 auto;
}

.contact-section .subtitle {
  color: #2563eb;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.contact-section .title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.contact-section .description {
  font-size: 16px;
  color: #555;
  margin: 0 auto 32px;
  line-height: 1.7;
  max-width: 60ch;
}

/* Form Card */
.contact-form {
  background: #fff;
  padding: clamp(24px, 4vw, 32px);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
  text-align: left;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid #e6edf3;
}

.contact-form .input-group { margin: 0; display: flex; flex-direction: column; }
.contact-form .input-message { grid-column: 1 / -1; }
.contact-form .btn-submit { grid-column: 1 / -1; }

.contact-form label {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
  background: #f8fafc;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa4b2; }

.contact-form input:hover,
.contact-form textarea:hover { background: #f1f5f9; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background: #fff;
}

.contact-form textarea { resize: vertical; min-height: 140px; }

/* Floating Labels (inputs + textarea) */
.contact-form .input-group { position: relative; }

/* In-page alerts for contact form */
.contact-form .form-alert {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.contact-form .form-alert.success {
  background: #ecfdf5; /* green-50 */
  color: #065f46;      /* green-900 */
  border-color: #34d399; /* green-400 */
}

.contact-form .form-alert.error {
  background: #fef2f2; /* red-50 */
  color: #991b1b;      /* red-800 */
  border-color: #fca5a5; /* red-300 */
}

/* Base field appearance (override light background to mimic floating style) */
.contact-form .input {
  border: 1.5px solid #9e9e9e;
  border-radius: 1rem;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: #0f172a;
  transition: border 150ms cubic-bezier(0.4,0,0.2,1);
  width: 100%;
}
.contact-form .input::placeholder { color: transparent; }

/* Floating label */
.contact-form .user-label {
  position: absolute;
  top: 0;
  left: 15px;
  color: #6b7280;
  pointer-events: none;
  transform: translateY(1rem);
  transition: 150ms cubic-bezier(0.4,0,0.2,1);
  padding: 0 .2em;
  background: transparent;
  transform-origin: left center;
}

.contact-form .input:focus,
.contact-form .input:valid {
  outline: none;
  border: 1.5px solid #1a73e8;
}

.contact-form .input:focus ~ .user-label,
.contact-form .input:valid ~ .user-label {
  transform: translateY(-50%) scale(0.85);
  background-color: #ffffff; /* patch over white form card */
  color: #2196f3;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-submit:hover { background: #1d4ed8; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); box-shadow: 0 4px 14px rgba(37,99,235,0.2); }

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  background: #0f1b2e; /* deeper navy like screenshot */
  color: #cbd5e1;
  width: 100%;
  padding: 36px 0 28px;
  margin-top: 48px;
}

.footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer .foot-left h4 {
  margin: 0;
  font-size: 18px;
  color: #e2e8f0;
  font-weight: 700;
}
.footer .foot-left p {
  margin: 6px 0 0 0;
  color: #8aa0b8;
  font-size: 13px;
}

.footer .social-links { display: flex; align-items: center; gap: 18px; }
.footer .social-links a {
  color: #9fb2c7;
  font-size: 18px;
  transition: color 180ms ease, transform 180ms ease;
}
.footer .social-links a:hover { color: #93c5fd; transform: translateY(-2px); }
.footer .social-links a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 6px; }

.footer .footer-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin: 20px auto 12px;
}

.footer .copy {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .footer { padding: 28px 0 24px; }
  .footer .footer-top { flex-direction: column; align-items: flex-start; }
  .footer .social-links { margin-top: 8px; }
}
