@charset "utf-8";
/* CSS Document */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .nav-logo {
    order: -1;
    margin-left: 0;
    margin-right: auto;
  }
  .nav-logo-img {
    height: 44px;
  }
  .mobile-menu-toggle {
    order: 2;
    margin-left: auto;
  }

  .potato-badge {
    right: auto;
    left: calc(100% - 25px);
    top: 50%;
    transform: translateY(-50%);
  }
  .hamburger {
    background: var(--primary-color) !important;
  }
  .mobile-menu-toggle.active .hamburger {
    background: var(--primary-color) !important;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
  color: var(--text-light);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
  opacity: 0.4;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-right a:hover {
  color: var(--text-light);
  transform: translateY(-1px);
}

.footer-right a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-right a:hover::after {
  width: 100%;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-right {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-right a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer-right {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Compact footer: reduce vertical padding for single-post pages */
.footer.compact-footer {
  padding: 1.25rem 0 1rem;
}

:root {
  /* Dark footer-inspired palette */
  --primary-color: #0f172a; /* deep navy */
  --secondary-color: #1e293b; /* dark slate */
  --accent-color: #312e81; /* indigo accent */
  --accent-pink: #ec4899;
  --accent-cyan: #2ec4b6;
  --text-primary: #e6eef8; /* light text for dark backgrounds */
  --text-secondary: #9fb0d6;
  --text-light: #ffffff;
  --bg-primary: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #312e81 100%
  ); /* page background gradient */
  --bg-secondary: #0b1220;
  --bg-dark: #05060a;
  --bg-card: rgba(10, 18, 36, 0.85);
  --gradient-primary: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #312e81 100%
  );
  --gradient-secondary: linear-gradient(135deg, #121828 0%, #22315a 100%);
  --gradient-tertiary: linear-gradient(135deg, #1b293d 0%, #263b6a 100%);
  --gradient-elegant: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #312e81 100%
  );
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 16px -4px rgba(2, 6, 23, 0.6);
  --shadow-lg: 0 18px 36px -8px rgba(2, 6, 23, 0.7);
  --shadow-xl: 0 30px 60px -12px rgba(2, 6, 23, 0.75);
  --shadow-2xl: 0 40px 80px -20px rgba(2, 6, 23, 0.8);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.03);
  --potato-brown: #c69a6b; /* potato badge background */
  --nav-height: 72px;
}

html,
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* use gradient background similar to footer */
  background: var(--bg-primary);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 0.1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  padding: 0.1rem 0;
}

/* Ensure content is pushed below the fixed navbar so headings are not overlapped */
main {
  padding-top: var(--nav-height);
  scroll-padding-top: calc(var(--nav-height) + 8px);
}

@media (max-width: 780px) {
  :root {
    --nav-height: 92px;
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-elegant);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  /* keep nav links dark so they remain readable on the white nav background */
  color: #0f172a;
  font-weight: 500;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Logo image in the navigation */
.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-logo-img {
  height: 88px;
  width: auto;
  display: block;
}

/* container to group logo and sign-in so we can place them together on the right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* push the whole group to the right */
  position: relative;
}

#clerk-auth-zone {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-right: 15px !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Clerk Sign In Button with Image */
.clerk-signin-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clerk-signin-btn img {
  width: auto;
  height: 45px;
  display: block;
  transition: all 0.3s ease;
}

.clerk-signin-btn:hover img {
  transform: scale(1.05) translateY(-2px);
  filter: brightness(1.1);
}

.clerk-signin-btn:active img {
  transform: scale(0.98);
}

/* Clerk Sign-In Modal - FIXED CENTERING */
.clerk-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.clerk-modal.hidden {
  display: none !important;
}

.clerk-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 9998;
}

.clerk-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
}

.clerk-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10000;
}

.clerk-modal-close:hover {
  background: #f0f0f0;
  color: #000;
}

#clerk-signin-container {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .clerk-modal-content {
    width: 95%;
    max-height: 90vh;
    padding: 1.5rem;
  }

  .clerk-signin-btn img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .clerk-modal-content {
    width: 98%;
    max-height: 95vh;
    padding: 1.25rem;
  }

  .clerk-signin-btn img {
    height: 35px;
  }
}

/* Mobile responsiveness for Clerk components */
@media (max-width: 768px) {
  #clerk-auth-zone {
    gap: 8px !important;
    margin-right: 10px !important;
  }
}

@media (max-width: 480px) {
  #clerk-auth-zone {
    gap: 6px !important;
    margin-right: 8px !important;
  }
}

/* Google sign-in — HIDDEN as we're using Clerk only. */
.google-signin {
  display: none !important;
  visibility: hidden !important;
  position: relative;
  align-items: center;
  margin-right: 6px; /* small spacing between sign-in and logo */
  z-index: 1100;
}

/* Scale only the rendered Google button so layout remains stable */
.google-signin .g_id_signin {
  display: none !important;
  visibility: hidden !important;
  transform: scale(1.5);
  transform-origin: right center;
}

/* smaller on mobile */
@media (max-width: 480px) {
  .google-signin {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Mobile menu logo */
.mobile-logo {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1002;
}
.mobile-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Floating +1 and transient counter */
.pop-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: var(--accent-color);
  pointer-events: none;
  opacity: 0;
  font-size: 0.95rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.potato-badge {
  position: absolute;
  /* place to the LEFT of the logo and vertically centered without causing page overflow */
  left: -45px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  background: var(--potato-brown);
  color: var(--text-light);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.potato-badge.show {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

@keyframes floatUpFade {
  0% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(-42px) scale(1.05);
    opacity: 0;
  }
}

.pop-plus.animate {
  animation: floatUpFade 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* nav logo label removed */

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(3) {
  transition-delay: 0.3s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(4) {
  transition-delay: 0.4s;
}

.mobile-nav-links a {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--gradient-elegant);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-nav-links a:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* darker, footer-like hero background */
  background: var(--gradient-elegant);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 25s ease-in-out infinite;
  opacity: 0.35; /* reduced to avoid double-grid appearance */
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 246, 229, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 246, 229, 0.06) 0%,
      transparent 50%
    );
  animation: pulse 4s ease-in-out infinite alternate;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation: floatShape1 20s ease-in-out infinite;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  background: rgba(255, 255, 255, 0.08);
  animation: floatShape2 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 25%;
  background: rgba(255, 255, 255, 0.12);
  animation: floatShape3 18s ease-in-out infinite;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 25%;
  left: 20%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  animation: floatShape4 22s ease-in-out infinite;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 15%;
  right: 40%;
  background: rgba(255, 255, 255, 0.15);
  animation: floatShape5 16s ease-in-out infinite reverse;
}

.shape-6 {
  width: 140px;
  height: 140px;
  bottom: 15%;
  right: 10%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 30px;
  animation: floatShape6 28s ease-in-out infinite;
}

@keyframes floatShape1 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateY(-15px) translateX(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-40px) translateX(15px) rotate(270deg);
  }
}

@keyframes floatShape2 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% {
    transform: translateY(25px) translateX(-20px) scale(1.1);
  }
  66% {
    transform: translateY(-20px) translateX(25px) scale(0.9);
  }
}

@keyframes floatShape3 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) translateX(-30px) rotate(180deg);
  }
}

@keyframes floatShape4 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(20px) translateX(-15px) rotate(45deg);
  }
  50% {
    transform: translateY(-10px) translateX(30px) rotate(90deg);
  }
  75% {
    transform: translateY(15px) translateX(-20px) rotate(135deg);
  }
}

@keyframes floatShape5 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-35px) translateX(20px) scale(1.2);
  }
}

@keyframes floatShape6 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) translateX(10px) rotate(60deg);
  }
  66% {
    transform: translateY(10px) translateX(-25px) rotate(120deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.8;
  }
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  z-index: 2;
  position: relative;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.2s forwards;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.4s forwards;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.6s forwards;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--gradient-primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2); /* match Send Message outline */
  backdrop-filter: blur(6px);
  letter-spacing: 0.5px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.cta-button:focus {
  outline: 3px solid rgba(255, 255, 255, 0.12);
  outline-offset: 3px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

/* Section Styles */
section {
  padding: 8rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 4rem;
  background: var(--gradient-elegant);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Use a subtle white-to-grey rule under specific sections for better contrast */
.about .section-title::after,
.portfolio .section-title::after,
.contact .section-title::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(229, 231, 235, 0.95) 100%
  );
}

/* Make About and Courses titles white (match hero subtitle color) */
.about .section-title,
.portfolio .section-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Skills tags inside About: use light text and subtle dark chip */
.about .skill-tag {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.about .skill-tag:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* About Section */
.about {
  /* Use same elegant/footer gradient as hero and contact sections */
  background: var(--gradient-primary);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="about-grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23about-grid)"/></svg>');
  animation: contactFloat 30s ease-in-out infinite;
  opacity: 0.55;
}

.about::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 75%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  animation: contactPulse 8s ease-in-out infinite alternate;
}

.about-content {
  display: grid;

  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
  position: relative;
}

.about-image {
  width: 100%;
  height: 500px;
  /* now contains stacked <img> elements for slideshow */
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.about-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(198, 154, 107, 0.28) 0%,
    rgba(166, 124, 82, 0.18) 100%
  );
  transition: opacity 0.3s ease;
}

.about-image:hover::before {
  opacity: 0.7;
}

.about-image::after {
}

/* About image slideshow children */
.about-image .about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(12px) scale(1.03);
  transition:
    transform 550ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 550ms ease;
  will-change: transform, opacity;
}
.about-image .about-photo.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* slight delay on hover for subtle effect */
.about-image:hover .about-photo {
  transition-duration: 420ms;
}

.about-text h3 {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.skills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.skill-tag {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  color: var(--primary-color);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Portfolio Section */
.portfolio {
  /* Use same elegant/footer gradient as hero and contact sections */
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="portfolio-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23portfolio-grid)"/></svg>');
  animation: float 28s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.portfolio::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 18% 78%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 82% 22%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 50%
    );
  animation: pulse 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Ensure portfolio content sits above the pseudo-elements */
.portfolio > .container {
  position: relative;
  z-index: 2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: var(--bg-card);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.portfolio-item.animate {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-2xl);
}

.portfolio-image {
  width: 100%;
  height: 180px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.portfolio-item:nth-child(1) .portfolio-image {
  background-image: url("brand_assets/TFWR_Header.jpg");
}

.portfolio-item:nth-child(2) .portfolio-image {
  background-image: url("brand_assets/VS_Code_Banner.jpg");
}

.portfolio-item:nth-child(3) .portfolio-image {
  background-image: url("brand_assets/Python.png");
}

.portfolio-item:nth-child(4) .portfolio-image {
  background-image: url("images/dashboard-interfaces-transparent-displays.jpg");
}

.portfolio-item:nth-child(5) .portfolio-image {
  background-image: url("images/marketing-strategy-women.jpg");
}

.portfolio-item:nth-child(6) .portfolio-image {
  background-image: url("images/portfolio-website-girl.jpg");
}

.portfolio-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before {
  background: linear-gradient(
    135deg,
    rgba(11, 23, 45, 0.48) 0%,
    rgba(18, 36, 72, 0.28) 100%
  );
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-content h4 {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.portfolio-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.portfolio-tech {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 0.4rem 1rem;
  /* match About skills color scheme */
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Buy Now Button Styles */
.buynow-container {
  padding: 0 2rem 2rem 2rem;
  text-align: center;
  margin-top: 1rem;
}

.buynow-btn {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.buynow-btn img {
  width: 180px;
  height: auto;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.buynow-btn:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.buynow-btn:active img {
  transform: translateY(-1px);
}

/* Mobile responsiveness for buynow button */
@media (max-width: 768px) {
  .buynow-btn img {
    width: 160px;
  }
}

@media (max-width: 480px) {
  .buynow-btn img {
    width: 140px;
  }
}

/* Contact Section */
.contact {
  background: var(--gradient-primary);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grid" width="8" height="8" patternUnits="userSpaceOnUse"><path d="M 8 0 L 0 0 0 8" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grid)"/></svg>');
  animation: contactFloat 30s ease-in-out infinite;
  opacity: 0.6;
}

.contact::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 25% 75%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 25%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(166, 124, 82, 0.08) 0%,
      transparent 70%
    );
  animation: contactPulse 6s ease-in-out infinite alternate;
}

/* Contact Floating Shapes */
.contact-floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.contact-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.contact-shape-1 {
  width: 70px;
  height: 70px;
  top: 15%;
  left: 8%;
  animation: contactFloatShape1 24s ease-in-out infinite;
}

.contact-shape-2 {
  width: 110px;
  height: 110px;
  top: 65%;
  right: 12%;
  background: rgba(255, 255, 255, 0.06);
  animation: contactFloatShape2 28s ease-in-out infinite reverse;
}

.contact-shape-3 {
  width: 55px;
  height: 55px;
  top: 25%;
  right: 30%;
  background: rgba(255, 255, 255, 0.1);
  animation: contactFloatShape3 20s ease-in-out infinite;
}

.contact-shape-4 {
  width: 90px;
  height: 90px;
  bottom: 20%;
  left: 18%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  animation: contactFloatShape4 26s ease-in-out infinite;
}

.contact-shape-5 {
  width: 35px;
  height: 35px;
  top: 12%;
  right: 45%;
  background: rgba(255, 255, 255, 0.12);
  animation: contactFloatShape5 18s ease-in-out infinite reverse;
}

.contact-shape-6 {
  width: 130px;
  height: 130px;
  bottom: 12%;
  right: 8%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 35px;
  animation: contactFloatShape6 32s ease-in-out infinite;
}

@keyframes contactFloatShape1 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-25px) translateX(15px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-8px) rotate(180deg);
  }
  75% {
    transform: translateY(-35px) translateX(12px) rotate(270deg);
  }
}

@keyframes contactFloatShape2 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% {
    transform: translateY(20px) translateX(-15px) scale(1.05);
  }
  66% {
    transform: translateY(-15px) translateX(20px) scale(0.95);
  }
}

@keyframes contactFloatShape3 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) translateX(-25px) rotate(180deg);
  }
}

@keyframes contactFloatShape4 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(15px) translateX(-12px) rotate(30deg);
  }
  50% {
    transform: translateY(-8px) translateX(25px) rotate(60deg);
  }
  75% {
    transform: translateY(12px) translateX(-18px) rotate(90deg);
  }
}

@keyframes contactFloatShape5 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) translateX(15px) scale(1.15);
  }
}

@keyframes contactFloatShape6 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-12px) translateX(8px) rotate(45deg);
  }
  66% {
    transform: translateY(8px) translateX(-20px) rotate(90deg);
  }
}

@keyframes contactFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(0.5deg);
  }
  66% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

@keyframes contactPulse {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.7;
  }
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.contact .section-title {
  color: var(--text-light);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.form-group label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(198, 154, 107, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
  padding: 1.2rem 3rem;
  background: var(--gradient-primary);
  color: var(--text-light);
  /* match message box outline color */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.06);
}

.submit-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.2);
  outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile menu links: white -> grey gradient for improved contrast */
  .mobile-menu .mobile-nav-links a,
  .mobile-menu .mobile-nav-links a:visited {
    background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
  }

  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 5rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-text h3 {
    font-size: 2rem;
  }

  .skills {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Adjust overlap for mobile */
  .about,
  .portfolio,
  .contact {
    margin-top: -2.5rem; /* Less overlap on mobile */
  }

  .hero {
    margin-bottom: -2.5rem; /* Less overlap on mobile */
  }
}

/* Modal styles */
.modal-backdrop[hidden] {
  display: none !important;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal {
  background: var(--bg-card);
  color: var(--text-primary);
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}
.modal-content {
  padding: 1rem 1.25rem;
  overflow: auto;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .modal {
    max-width: 95%;
    margin: 0 8px;
  }
  .modal-header {
    padding: 0.75rem;
  }
  .modal-content {
    padding: 0.75rem;
  }
}

/* Fixed social icons in bottom-right */
.social-fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  z-index: 1400;
  visibility: visible !important;
  opacity: 1 !important;
}
.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}
.social-link:hover {
  transform: translateY(-4px);
  opacity: 0.98;
}
.social-initial {
  font-family: "Segoe UI", sans-serif;
  font-size: 18px;
}
.social-link.facebook {
  background: #1877f2;
}
.social-link.instagram {
  background: radial-gradient(
    circle at 30% 30%,
    #f58529,
    #dd2a7b 40%,
    #8134af 70%,
    #515bd4 100%
  );
}
.social-link.tiktok {
  background: linear-gradient(180deg, #010101 0%, #0f172a 100%);
}
.social-link.x {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

.social-link.x img {
  filter: none !important;
}

.social-link img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

@media (max-width: 480px) {
  .social-fixed {
    right: 12px;
    bottom: 12px;
    gap: 8px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .social-link {
    width: 40px;
    height: 40px;
  }
  .social-initial {
    font-size: 16px;
  }
  /* Mobile override: make X icon background white for better contrast */
  .social-link.x {
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
  }
  .social-link.x img {
    filter: none !important;
  }
}

/* Ensure only Clerk sign-in is visible - hide any legacy auth UI */
#dashboardLink,
#userDisplay,
#logoutBtn {
  display: none !important;
  visibility: hidden !important;
}

/* Hide only legacy Google auth elements - NOT the privacy/terms modal */
[id*="google"],
[class*="google"],
[class*="auth"]:not(.clerk-modal):not(#clerk-auth-zone),
.g_id_signin {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure title, paragraph and tech tags do not look like links */
.portfolio-link,
.portfolio-link:link,
.portfolio-link:visited,
.portfolio-link:hover,
.portfolio-link:active {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Keep a subtle hover affordance without default link color/underline */
.portfolio-link:hover h4 {
  color: var(--primary-color);
  text-decoration: none;
}

/* Optional: keep keyboard focus visible but styled */
.portfolio-link:focus {
  outline: 2px solid rgba(11, 61, 145, 0.25);
  outline-offset: 2px;
}

/* Course tabs: visible button styles and active state */
.course-tabs .tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.course-tabs .tab-btn {
  padding: 0.5rem 0.75rem;
  background: #f3f4f6; /* white-gray when not selected */
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.course-tabs .tab-btn:hover {
  transform: translateY(-1px);
}
.course-tabs .tab-btn:focus {
  outline: 2px solid rgba(15, 23, 42, 0.08);
  outline-offset: 2px;
}
.course-tabs .tab-btn.active {
  background: var(--gradient-primary);
  color: var(--text-light);
  border-color: transparent;
  /* match submit button focus outline by default when active */
  outline: 3px solid rgba(255, 255, 255, 0.2);
  outline-offset: 2px;
}

/* Blog post scoped styles (appended) */
.blog-post {
  background: var(--bg-primary); /* use site dark-blue gradient */
  color: var(--text-primary);
}
.blog-post .container {
  max-width: 980px;
  margin: 64px auto;
  padding: 24px;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.post {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  color: #0f172a;
}
.post-date {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.post-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 18px;
}
.post-image-card {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  height: 360px; /* fixed card height */
  background: transparent;
  position: relative;
}
.post-image-card .post-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-image-card .post-image-icon {
  display: none;
}
.post-content p,
.post-content li {
  color: #374151; /* dark text for readability */
}
.sidebar .widget {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}
.widget-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #0f172a;
}
.recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-posts li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.recent-posts li:last-child {
  border-bottom: none;
}
.recent-posts img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.recent-posts a {
  color: #064e3b;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 880px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .post-title {
    font-size: 32px;
  }
}

/* Global styles for You Might Also Like (desktop + mobile) */
.you-might-like {
  padding: 48px 24px;
}
.you-might-like .also-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.also-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.also-media {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  overflow: hidden;
}
.also-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.also-card h4 {
  color: var(--primary-color);
  margin: 12px 0 8px;
  font-size: 18px;
}
.also-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.also-links {
  color: var(--accent-pink);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .you-might-like .also-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .you-might-like .also-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix for visual step between sections */
.about,
.portfolio,
.contact {
  margin-top: -4rem; /* Overlap sections to reduce visual step */
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: -4rem; /* Overlap hero with about section */
  position: relative;
  z-index: 2;
}

/* Fix for support page */
.support-hero {
  margin-bottom: 0;
}
.support-hero + .footer {
  margin-top: 0;
}
