/* Portfolio template - clean modern look
   - Uses Bootstrap utilities where possible
   - Edit colors and spacing variables below
*/

/* Theme variables */
:root{
  --bg: #ffffff;               /* page background (white) */
  --text: #050505;             /* primary text (near-black) */
  --muted: #6c757d;            /* muted text */
  --primary: #0d6efd;          /* (kept for minor blue needs) */
  --gold: #b8860b;             /* gold accent */
  --gold-dark: #9a6f08;
  --accent: var(--gold);
  --card-shadow: 0 10px 30px rgba(10,10,12,0.06);
  --max-width: 1400px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Visual polish: typography, spacing, shadows, radii */
:root{
  --body-font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --base-font-size: 16px;
  --max-width: 1400px;
  --muted: #6b7280;
  --card-shadow: 0 14px 38px rgba(16,24,40,0.06);
  --soft-shadow: 0 8px 26px rgba(16,24,40,0.04);
  --radius-lg: 14px;
  --radius-md: 10px;
}

/* Global text/background */
html, body {
  background: var(--bg);
  color: var(--text);
}
html,body { 
  font-family: var(--body-font); 
  font-size:var(--base-font-size); 
  -webkit-font-smoothing:antialiased; 
  -moz-osx-font-smoothing:grayscale; 
  color:var(--text); 
  background:var(--bg);
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}
h1,h2,h3,h4 { font-family: var(--heading-font); letter-spacing:-0.01em; color:var(--text) }

/* Mobile-first base styles */
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}

/* Navbar: Mobile-first approach */
.navbar-custom {
  background: #050505 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  /* Removed backdrop-filter blur to prevent blur effect */
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 0.75rem 0;
  min-height: 64px;
  z-index: 1040 !important;
  position: relative;
}
.navbar-custom .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
.navbar-custom .navbar-brand {
  color: #fff !important; 
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.navbar-custom .navbar-brand:hover {
  color: var(--gold) !important;
}
.navbar-custom .navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1060 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.navbar-custom .navbar-toggler::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.2), transparent);
  transition: left 0.5s;
}

.navbar-custom .navbar-toggler:hover {
  border-color: rgba(184,134,11,0.5);
  background: rgba(184,134,11,0.1);
  box-shadow: 0 4px 12px rgba(184,134,11,0.2);
}

.navbar-custom .navbar-toggler:hover::before {
  left: 100%;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(184,134,11,0.25);
  border-color: var(--gold);
}

.navbar-custom .navbar-toggler[aria-expanded="true"] {
  background: rgba(184,134,11,0.15);
  border-color: var(--gold);
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
.navbar-custom .nav-link { 
  color: rgba(255,255,255,0.9) !important; 
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s ease;
  position: relative;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-custom .nav-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.navbar-custom .nav-link:hover svg,
.navbar-custom .nav-link.active svg {
  opacity: 1;
}
.navbar-custom .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}
.navbar-custom .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}
.navbar-custom .nav-link.active::after {
  content:'';
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom:8px;
  height:3px; 
  width:60%; 
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
  border-radius:2px;
  box-shadow: 0 2px 8px rgba(184,134,11,0.4);
}
/* Mobile nav collapse - Right Side Drawer */
.navbar-collapse {
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

  /* Premium Mobile Menu - Professional Design */
@media (max-width: 991.98px) {
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  body.menu-open .navbar-custom,
  body.menu-open .navbar,
  body.menu-open nav,
  body.menu-open * {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  body.menu-open html,
  body.menu-open body {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Removed backdrop-filter blur to prevent blur effect */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    isolation: isolate;
  }
  
  .menu-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 340px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #0a0a0c 0%, #050505 50%, #080808 100%) !important;
    border: none !important;
    border-left: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: -20px 0 60px rgba(0,0,0,0.7), inset -1px 0 0 rgba(255,255,255,0.05) !important;
    z-index: 1050 !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: block !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: right !important;
    transform: translateZ(0) !important;
    isolation: isolate !important;
    contain: layout style paint !important;
  }
  
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar-collapse:not(.show):not(.collapsing) {
    visibility: hidden !important;
  }
  
  .navbar-collapse.collapsing {
    transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
  }
  
  /* Premium header accent bar */
  .navbar-collapse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
    z-index: 1;
    box-shadow: 0 2px 12px rgba(184,134,11,0.4);
  }
  
  /* Menu header section */
  .navbar-collapse::after {
    content: 'Navigation';
    position: absolute;
    top: 2rem;
    left: 1.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    z-index: 1;
  }
  
  .navbar-collapse .navbar-nav {
    padding: 6rem 1.5rem 2rem !important;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    filter: none !important;
    transform: translateZ(0) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1051 !important;
  }
  
  .navbar-collapse .nav-item {
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateX(20px);
    animation: menuItemFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1052 !important;
  }
  
  .navbar-collapse .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .navbar-collapse .nav-item:nth-child(2) { animation-delay: 0.15s; }
  .navbar-collapse .nav-item:nth-child(3) { animation-delay: 0.2s; }
  .navbar-collapse .nav-item:nth-child(4) { animation-delay: 0.25s; }
  .navbar-collapse .nav-item:nth-child(5) { animation-delay: 0.3s; }
  .navbar-collapse .nav-item:nth-child(6) { animation-delay: 0.35s; }
  
  @keyframes menuItemFadeIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .navbar-collapse .nav-link {
    color: #ffffff !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1051 !important;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    padding: 1.25rem 1.5rem !important;
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 0;
    background: rgba(255,255,255,0.02);
    border: 1.5px solid rgba(255,255,255,0.06);
    overflow: hidden;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    filter: none !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
  
  .navbar-collapse .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 2px 0 8px rgba(184,134,11,0.3);
  }
  
  .navbar-collapse .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184,134,11,0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* Menu item icons */
  .navbar-collapse .nav-link svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,0.6);
    stroke-width: 2;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }
  
  .navbar-collapse .nav-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(184,134,11,0.12) 0%, rgba(184,134,11,0.06) 100%);
    border-color: rgba(184,134,11,0.25);
    transform: translateX(-6px);
    box-shadow: 0 6px 20px rgba(184,134,11,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  }
  
  .navbar-collapse .nav-link:hover::before {
    opacity: 1;
  }
  
  .navbar-collapse .nav-link:hover::after {
    opacity: 1;
  }
  
  .navbar-collapse .nav-link:hover svg {
    stroke: var(--gold);
    transform: scale(1.05);
  }
  
  .navbar-collapse .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(184,134,11,0.18) 0%, rgba(184,134,11,0.1) 100%);
    border-color: rgba(184,134,11,0.35);
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(184,134,11,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  }
  
  .navbar-collapse .nav-link.active::before {
    opacity: 1;
    width: 4px;
  }
  
  .navbar-collapse .nav-link.active svg {
    stroke: var(--gold);
  }
  
  .navbar-collapse .nav-link.active::after {
    display: none;
  }
  
  /* Premium footer section */
  .navbar-collapse .ms-3 {
    margin-top: 3rem;
    padding: 2.5rem 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5,5,5,0.98) 50%, rgba(5,5,5,1) 100%);
  }
  
  .navbar-collapse .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Admin link styling in mobile */
  .navbar-collapse #admin-link {
    background: linear-gradient(135deg, rgba(184,134,11,0.25) 0%, rgba(184,134,11,0.15) 100%);
    border: 1.5px solid rgba(184,134,11,0.4);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(184,134,11,0.2);
  }
  
  .navbar-collapse #admin-link:hover {
    background: linear-gradient(135deg, rgba(184,134,11,0.35) 0%, rgba(184,134,11,0.25) 100%);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184,134,11,0.3);
  }
  
  .navbar-collapse #theme-toggle {
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    /* Removed backdrop-filter blur */
  }
  
  .navbar-collapse #theme-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
  }
  
  /* Premium close button */
  .navbar-collapse .menu-close-btn {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    width: 44px !important;
    height: 44px !important;
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.06) !important;
    /* Removed backdrop-filter blur */
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1041 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  }
  
  .navbar-collapse .menu-close-btn:hover,
  .navbar-collapse .menu-close-btn:focus {
    background: rgba(184,134,11,0.2) !important;
    border-color: var(--gold) !important;
    transform: rotate(90deg) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(184,134,11,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    outline: none !important;
  }
  
  .navbar-collapse .menu-close-btn:active {
    transform: rotate(90deg) scale(0.95) !important;
  }
  
  .navbar-collapse .menu-close-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke: rgba(255,255,255,0.95) !important;
    stroke-width: 2.5 !important;
    transition: stroke 0.3s ease !important;
  }
  
  .navbar-collapse .menu-close-btn:hover svg {
    stroke: var(--gold) !important;
  }
}

@media (min-width: 992px) {
  .navbar-custom .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar-custom .nav-link.active::after {
    bottom: -12px;
  }
  .navbar-collapse {
    margin-top: 0;
    padding-top: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  
  .navbar-collapse::before {
    display: none;
  }
}

/* Buttons: black primary + gold CTA option */
.btn-primary-custom {
  background: #070707;
  color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.btn-gold {
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
  color: #0b0b0b;
  border: none;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(184,134,11,0.12);
}

/* Headings accent underline uses gold */
h2::after, .section-title-animated::after {
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
}

/* Project overlays & badges: subtle gold highlight */
.project-overlay { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.45)); }
.badge-gold { background: rgba(184,134,11,0.08); color: var(--gold); }

/* Keep shadows subtle and consistent */
.card, .project-card { box-shadow: var(--card-shadow); }

/* Ensure links and small UI elements are readable on white */
a, .nav-link { 
  color: rgba(5,5,5,0.88); 
  transition: color 0.2s ease;
  text-decoration: none;
}
a:hover { 
  color: var(--gold); 
  text-decoration: none;
}
a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- DARK MODE ---------- */
body.dark-mode {
  --bg: #0a0d12;
  --text: #e9eef5;
  --muted: #9aa4b2;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
body.dark-mode html, 
body.dark-mode body {
  background: var(--bg) !important;
  color: var(--text) !important;
}
body.dark-mode {
  background: #0a0d12 !important;
}

/* Typography - all text dark */
body.dark-mode p { 
  color: rgba(233, 238, 245, 0.85) !important; 
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: var(--text) !important;
}
body.dark-mode .text-muted {
  color: var(--muted) !important;
}
body.dark-mode small {
  color: var(--muted) !important;
}
body.dark-mode a { 
  color: #e9eef5 !important; 
}
body.dark-mode a:hover { 
  color: var(--gold) !important; 
}

/* Background sections - fully dark */
body.dark-mode .hero-left { 
  background: #0a0d12 !important; 
  color: var(--text) !important; 
}
body.dark-mode section {
  background: var(--bg) !important;
}
body.dark-mode #blog-list-view,
#blog-detail-view {
  background: #fafafa;
  min-height: 100vh;
  padding: 0;
}

#blog-detail-view .container {
  max-width: 614px;
  padding: 0 1rem;
}

body.dark-mode #blog-detail-view,
body.dark-mode .gallery-container {
  background: var(--bg) !important;
}
.bg-light {
  background: #f8f9fa !important;
}
.bg-white {
  background: #ffffff !important;
}
body.dark-mode .bg-light,
body.dark-mode .bg-white {
  background: #0f1217 !important;
}
body.dark-mode .section-title-animated::after { 
  background: linear-gradient(90deg,var(--gold),var(--gold-dark)); 
}

/* Cards and tiles - fully dark */
body.dark-mode .card,
body.dark-mode .contact-card,
body.dark-mode .contact-info,
body.dark-mode .service-card,
body.dark-mode .project-tile,
body.dark-mode .project-card,
body.dark-mode .hero-featured-item,
body.dark-mode .clients-marquee,
body.dark-mode .stack-item,
body.dark-mode .stat-item,
body.dark-mode .item-card {
  background: #11151b !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5) !important;
}
body.dark-mode .project-overlay { 
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7)) !important; 
}
body.dark-mode .stack-label { 
  background: rgba(17,21,27,0.95) !important; 
  color: var(--muted) !important; 
}

/* Forms - dark */
body.dark-mode .form-input { 
  border-color: rgba(255,255,255,0.15) !important; 
  background: rgba(17,21,27,0.6) !important;
  color: var(--text) !important; 
}
body.dark-mode .form-input:focus {
  border-color: var(--gold) !important;
  background: rgba(17,21,27,0.8) !important;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.2) !important;
}
body.dark-mode .form-label { 
  color: var(--muted) !important; 
}
body.dark-mode .form-field {
  background: transparent !important;
}

/* Buttons - dark */
body.dark-mode .btn-gold {
  box-shadow: 0 8px 24px rgba(184,134,11,0.3), 0 2px 8px rgba(184,134,11,0.2);
}
body.dark-mode .btn-gold:hover {
  box-shadow: 0 12px 32px rgba(184,134,11,0.4), 0 4px 12px rgba(184,134,11,0.25);
}
body.dark-mode .btn-outline-dark {
  border-color: rgba(255,255,255,0.25) !important;
  color: #fff !important;
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
body.dark-mode .btn-outline-dark::before {
  background: rgba(255,255,255,0.1);
}
body.dark-mode .btn-outline-dark:hover {
  background: #fff !important;
  color: #111 !important;
  border-color: #fff !important;
  box-shadow: 0 12px 32px rgba(255,255,255,0.2), 0 4px 12px rgba(255,255,255,0.15);
}
body.dark-mode .btn-outline-secondary {
  border-color: rgba(255,255,255,0.2) !important;
  color: var(--text) !important;
  background: rgba(17,21,27,0.5) !important;
}
body.dark-mode .btn-outline-secondary:hover {
  background: rgba(255,255,255,0.1) !important;
  color: var(--text) !important;
}

/* Badges - dark */
body.dark-mode .badge {
  background: rgba(255,255,255,0.12) !important;
  color: var(--text) !important;
}
body.dark-mode .badge-gold {
  background: rgba(184,134,11,0.25) !important;
  color: var(--gold) !important;
}
body.dark-mode .badge.bg-secondary {
  background: rgba(255,255,255,0.15) !important;
  color: var(--text) !important;
}
body.dark-mode .badge.bg-warning {
  background: rgba(255,193,7,0.2) !important;
  color: #ffd43b !important;
}

/* Social buttons - dark */
body.dark-mode .social-btn {
  border-color: rgba(255,255,255,0.2) !important;
  color: var(--text) !important;
  background: rgba(17,21,27,0.6) !important;
}
body.dark-mode .social-btn:hover {
  background: rgba(184,134,11,0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* Timeline - dark */
body.dark-mode .timeline {
  color: var(--muted) !important;
}
body.dark-mode .timeline li {
  border-left-color: rgba(255,255,255,0.1) !important;
  color: var(--muted) !important;
}
body.dark-mode .timeline li strong {
  color: var(--text) !important;
}

/* Stats - dark */
body.dark-mode .stat-item {
  background: rgba(17,21,27,0.7) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .stat-number {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hero quote - dark */
body.dark-mode .hero-quote {
  background: rgba(17,21,27,0.6) !important;
  border-left-color: var(--gold) !important;
  color: rgba(233,238,245,0.9) !important;
}

/* Project body text - dark */
body.dark-mode .project-body,
body.dark-mode .project-meta,
body.dark-mode .project-title {
  color: var(--text) !important;
}

/* Hero featured - dark */
body.dark-mode .hero-featured-posts h5 {
  color: var(--text) !important;
  border-bottom-color: rgba(184,134,11,0.3) !important;
}
body.dark-mode .hero-featured-title {
  color: var(--text) !important;
}
body.dark-mode .hero-featured-excerpt {
  color: var(--muted) !important;
}

/* About section - dark */
body.dark-mode .about-reveal {
  color: var(--text) !important;
}

/* Contact info - dark */
body.dark-mode .info-row {
  color: var(--text) !important;
}
body.dark-mode .info-row strong {
  color: var(--text) !important;
}
body.dark-mode .info-row a {
  color: var(--gold) !important;
}
body.dark-mode .info-row div {
  color: var(--muted) !important;
}

/* Filter buttons - dark */
body.dark-mode #projects-filters .btn {
  border-color: rgba(255,255,255,0.2) !important;
  color: var(--text) !important;
  background: rgba(17,21,27,0.6) !important;
}
body.dark-mode #projects-filters .btn.active {
  background: linear-gradient(90deg,var(--gold),var(--gold-dark)) !important;
  color: #0b0b0b !important;
  border-color: transparent !important;
}

/* Footer - dark */
body.dark-mode footer { 
  background: linear-gradient(180deg, #0a0d12, #07090d) !important; 
  color: rgba(255,255,255,0.9) !important; 
  border-top-color: rgba(255,255,255,0.08) !important;
}

/* Modal - dark */
body.dark-mode .modal-content {
  background: #11151b !important;
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

/* Alert messages - dark */
body.dark-mode .alert-success {
  background: rgba(40,167,69,0.2) !important;
  color: #a7e3c8 !important;
  border-left-color: #28a745 !important;
}
body.dark-mode .alert-danger {
  background: rgba(220,53,69,0.2) !important;
  color: #f5c2c7 !important;
  border-left-color: #dc3545 !important;
}
body.dark-mode .alert-warning {
  background: rgba(255,193,7,0.2) !important;
  color: #ffd43b !important;
  border-left-color: #ffc107 !important;
}

/* Progress bars - dark */
body.dark-mode .skill-entry {
  background: linear-gradient(135deg, #11151b 0%, #0f1319 100%);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 1px rgba(184,134,11,0.1);
}
body.dark-mode .skill-entry:hover {
  box-shadow: 0 8px 24px rgba(184,134,11,0.2), 0 0 0 1px rgba(184,134,11,0.25);
  border-color: rgba(184,134,11,0.3);
  background: linear-gradient(135deg, #151a22 0%, #11151b 100%);
}
body.dark-mode .skill-progress {
  background: rgba(255,255,255,0.1) !important;
}
body.dark-mode .skills-heading {
  color: var(--text);
}

/* Clients marquee - dark */
body.dark-mode .clients-marquee {
  background: rgba(17,21,27,0.7) !important;
}

/* Hero role and location - dark */
body.dark-mode .hero-role {
  color: var(--text) !important;
}
body.dark-mode .hero-id {
  color: var(--muted) !important;
}
body.dark-mode .hero-location small {
  color: var(--muted) !important;
}

/* Card titles and text - dark */
body.dark-mode .card-title,
body.dark-mode .card-text {
  color: var(--text) !important;
}
body.dark-mode .card-text.text-muted {
  color: var(--muted) !important;
}

/* Base page */
html,body{
  height:100%; 
  margin:0; 
  background:var(--bg); 
  color:#111; 
  scroll-behavior: smooth; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
}
.container{max-width:var(--max-width);}

/* Improved typography hierarchy */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.4; }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
p { line-height: 1.7; color: rgba(5,5,5,0.85); }

/* Enhanced spacing */
section { 
  padding-top: 5rem; 
  padding-bottom: 5rem;
  background: #ffffff;
}
@media (max-width: 768px) {
  section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* ---------- NAV ---------- */
.navbar{/* Removed backdrop-filter blur */ background:rgba(255,255,255,0.92);}
.navbar .navbar-brand{color:#111;}
.navbar .nav-link{color:var(--muted); padding:0.6rem 0.8rem;}
.navbar .nav-link.active, .navbar .nav-link:hover{color:var(--primary); font-weight:600;}

/* NAV (black) */
.navbar-custom { background: #050505 !important; }
.navbar-custom .navbar-brand { color: #fff; font-weight:600; }
.navbar-custom .nav-link { color: rgba(255,255,255,0.85); margin-right:.35rem; }
.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover { color: #fff; text-decoration: none; position: relative; }
.navbar-custom .nav-link.active::after {
  content: '';
  position: absolute;
  left:0; right:0; bottom:-12px;
  height:3px; width:60%; margin:0 auto;
  background: linear-gradient(90deg,#b8860b,#9a6f08);
  border-radius:2px;
}

/* ---------- HERO ---------- */
.hero{
  min-height:100vh;
  display:flex;
  background-image:
    linear-gradient(180deg, rgba(8,8,10,0.58), rgba(8,8,10,0.42)),
    linear-gradient(120deg, rgba(184,134,11,0.06), rgba(13,110,253,0.02)),
    url('assets/hero-bg.jpg');
  background-size:cover;
  background-position:center;
  position:relative;
  color:#fff;
}
body:not(.dark-mode) .hero {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98)), linear-gradient(120deg, rgba(184,134,11,0.03), rgba(13,110,253,0.01)), url('assets/hero-bg.jpg') !important;
  color: #111 !important;
}
.hero .container{z-index:2;}
.hero::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(255,255,255,0.02));
  pointer-events:none;
}

/* Hero text */
.hero h1{font-size:2.4rem; letter-spacing: -.02em;}
.hero p{font-size:1.05rem; color:rgba(255,255,255,0.9);}

/* small inner container adjustments */
.hero-inner{ max-width:900px; margin:0 auto; padding-top:1rem; padding-bottom:4rem; }

/* CTA buttons */
.btn-primary{background:var(--primary); border-color:transparent; box-shadow:none;}
.btn-outline-light{color:#fff; border-color:rgba(255,255,255,0.3);}

/* gold CTA button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0b0b;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(184,134,11,0.25), 0 2px 8px rgba(184,134,11,0.15);
  transition: all 0.3s cubic-bezier(.2,.9,.3,1);
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.btn-gold:hover::before {
  left: 100%;
}
.btn-gold:hover, .btn-gold:focus {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(184,134,11,0.35), 0 4px 12px rgba(184,134,11,0.2);
  text-decoration: none;
  color: #0b0b0b;
}
.btn-gold:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 8px 20px rgba(184,134,11,0.3);
}
.btn-gold.loading {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}
.btn-gold.shake {
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* alternative gold outline style (if needed) */
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(184,134,11,0.18);
}

/* hero meta styling */
.hero-meta .small { color: rgba(255,255,255,0.75); font-size:.85rem; }
.hero-meta .fw-bold { letter-spacing:.01em; }

/* decorative gold corner */
.hero-decor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 20% 20%, rgba(184,134,11,0.12), transparent 35%),
              linear-gradient(135deg, rgba(184,134,11,0.04) 0%, transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------- ABOUT ---------- */
.profile-img{width:100%; max-width:260px; object-fit:cover; box-shadow: var(--card-shadow); border-radius:12px;}
.stat-number{font-weight:700; color:var(--primary);}

/* Make profile / hero images circular */
.profile-img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

/* If you want the hero illustration to be circular as well */
.hero-illustration {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Responsive sizes */
@media (max-width: 992px) {
    .profile-img { width: 200px; height: 200px; }
    .hero-illustration { width: 260px; height: 260px; }
}
@media (max-width: 576px) {
    .profile-img { width: 140px; height: 140px; }
    .hero-illustration { width: 180px; height: 180px; }
}

/* ========== ENHANCED ABOUT PAGE ========== */

/* About Hero Section */
.about-hero {
  background: linear-gradient(135deg, rgba(250,250,252,0.98) 0%, rgba(255,255,255,1) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 4rem 0 3rem;
}
.about-hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.about-hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #050505 !important;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.about-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #4a5568 !important;
  font-weight: 500;
}

/* About Profile Card */
.about-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(184,134,11,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: center;
  position: sticky;
  top: 100px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.about-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.about-profile-card:hover::before {
  transform: scaleX(1);
}
.about-profile-card:hover {
  box-shadow: 0 24px 72px rgba(184,134,11,0.15), 0 0 0 1px rgba(184,134,11,0.1);
  transform: translateY(-6px);
  border-color: rgba(184,134,11,0.15);
}
.profile-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 4px rgba(184,134,11,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.profile-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 20px 60px rgba(184,134,11,0.3), 0 0 0 4px rgba(184,134,11,0.2);
}
.profile-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
  border: 3px solid #fff;
}
.profile-info {
  text-align: center;
}
.profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #050505 !important;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.profile-role {
  font-size: 1.0625rem;
  color: #4a5568 !important;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.badge-org {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(184,134,11,0.12) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--gold);
  border: 1.5px solid rgba(184,134,11,0.2);
  transition: all 0.3s ease;
}
.badge-org:hover {
  background: linear-gradient(135deg, rgba(184,134,11,0.18) 0%, rgba(184,134,11,0.12) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.2);
}
.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.08) 0%, rgba(184,134,11,0.05) 100%);
  border-radius: 50px;
  border: 1px solid rgba(184,134,11,0.15);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #1a202c !important;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(184,134,11,0.1);
}
.location-icon {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  color: currentColor;
}
.profile-actions {
  width: 100%;
}
.profile-actions .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

/* About Content Section */
#about {
  background: linear-gradient(135deg, rgba(250,250,252,0.3) 0%, rgba(255,255,255,1) 100%);
  position: relative;
}
#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.2), transparent);
}
.about-content {
  padding-left: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #050505 !important;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(184,134,11,0.3);
}
.story-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a202c !important;
  margin-bottom: 0;
  font-weight: 400;
}

/* Enhanced Timeline */
.timeline-section {
  margin-top: 3rem;
}
.timeline-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #050505 !important;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(184,134,11,0.3) 100%);
  border-radius: 2px;
  z-index: 1;
}
.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 2.5rem;
  display: flex;
  gap: 1.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #0b0b0b;
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
  border: 5px solid #ffffff;
  z-index: 3;
  overflow: hidden;
}
body:not(.dark-mode) .timeline-year {
  border-color: #ffffff;
}
.timeline-content {
  flex: 1;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(184,134,11,0.05);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}
.timeline-item:hover .timeline-content::before {
  transform: scaleY(1);
}
.timeline-item:hover .timeline-content {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.15), 0 0 0 1px rgba(184,134,11,0.1);
  border-color: rgba(184,134,11,0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fffef9 100%);
}
.timeline-event {
  font-size: 1.25rem;
  font-weight: 700;
  color: #050505 !important;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568 !important;
  margin: 0;
  font-weight: 400;
}

/* Stats Section */
.stats-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(0,0,0,0.06);
}
.stats-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #050505 !important;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.stats-grid-about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat-card-about {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,252,0.95) 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(184,134,11,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-card-about::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184,134,11,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-card-about:hover::before {
  transform: scaleX(1);
}
.stat-card-about:hover::after {
  opacity: 1;
}
.stat-card-about:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 40px rgba(184,134,11,0.2), 0 0 0 1px rgba(184,134,11,0.15);
  border-color: rgba(184,134,11,0.25);
  background: linear-gradient(135deg, #ffffff 0%, #fffef9 100%);
}
.stat-icon {
  margin-bottom: 1rem;
  display: block;
  color: var(--gold);
}
.stat-icon svg {
  width: 32px;
  height: 32px;
}
.stat-number-about {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(184,134,11,0.2);
  position: relative;
}
.stat-label-about {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services & Stack Headers */
.services-header, .stack-header, .skills-header {
  margin-bottom: 3rem;
}
.services-title, .stack-title, .skills-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #050505 !important;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.services-subtitle, .stack-subtitle, .skills-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #4a5568 !important;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}
.skills-subtitle.text-muted {
  color: #4a5568 !important;
}

/* Dark Mode for About Page */
body.dark-mode #about {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%);
}
body.dark-mode #about::before {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.3), transparent);
}
body.dark-mode .about-hero {
  background: linear-gradient(135deg, rgba(11,14,20,0.98) 0%, rgba(15,19,27,1) 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .about-hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .about-hero-subtitle {
  color: #cbd5e0 !important;
}
body.dark-mode .about-profile-card {
  background: #11151b;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
body.dark-mode .profile-img {
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .profile-name {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .profile-role {
  color: #cbd5e0 !important;
}
body.dark-mode .badge-org {
  background: linear-gradient(135deg, rgba(184,134,11,0.18) 0%, rgba(184,134,11,0.12) 100%);
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode .profile-location {
  background: rgba(184,134,11,0.12);
  border-color: rgba(184,134,11,0.2);
  color: #e2e8f0 !important;
}
body.dark-mode .section-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .story-text {
  color: #e2e8f0 !important;
}
body.dark-mode .timeline-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .timeline-content {
  background: #11151b;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
body.dark-mode .timeline-event {
  color: #ffffff !important;
}
body.dark-mode .timeline-content p {
  color: #cbd5e0 !important;
}
body.dark-mode .timeline-year {
  border-color: #0a0e1a;
  color: #0b0b0b;
}
body.dark-mode .stats-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .stat-card-about {
  background: linear-gradient(135deg, rgba(17,21,27,0.9) 0%, rgba(11,14,20,0.9) 100%);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .stat-label-about {
  color: #cbd5e0 !important;
}
body.dark-mode .stats-section {
  border-top-color: rgba(255,255,255,0.08);
}
body.dark-mode .services-title,
body.dark-mode .stack-title,
body.dark-mode .skills-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .services-subtitle,
body.dark-mode .stack-subtitle,
body.dark-mode .skills-subtitle {
  color: #cbd5e0 !important;
}
body.dark-mode .skills-subtitle.text-muted {
  color: #cbd5e0 !important;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
  .about-profile-card {
    position: static;
    margin-bottom: 3rem;
  }
  .about-content {
    padding-left: 0;
  }
  .timeline::before {
    left: 25px;
  }
  .timeline-item {
    padding-left: 70px;
  }
  .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 0.75rem;
  }
  .stats-grid-about {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .profile-actions {
    flex-direction: row;
  }
  .profile-actions .btn {
    flex: 1;
  }
}

@media (max-width: 575px) {
  .about-hero-title {
    font-size: 2rem;
  }
  .about-hero-subtitle {
    font-size: 0.95rem;
  }
  .about-profile-card {
    padding: 2rem 1.5rem;
  }
  .profile-img {
    width: 160px;
    height: 160px;
  }
  .profile-badge {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .profile-name {
    font-size: 1.5rem;
  }
  .timeline-item {
    padding-left: 60px;
    padding-bottom: 2rem;
  }
  .timeline-year {
    width: 45px;
    height: 45px;
  }
  .timeline-content {
    padding: 1.25rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .story-text {
    font-size: 1rem;
  }
}

/* Legacy timeline styles for compatibility */
.timeline { list-style:none; padding-left:0; margin-top:.5rem; color:var(--muted); }
.timeline li { padding:0.45rem 0; border-left:2px dashed rgba(0,0,0,0.06); margin-left:8px; padding-left:12px; }

/* badges */
.badge-gold {
  background: rgba(184,134,11,0.10);
  color: #b8860b;
  border-radius:8px;
  padding: .35rem .6rem;
  font-weight:600;
}

/* reveal animation for about elements */
.about-reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.about-reveal.visible { opacity: 1; transform: translateY(0); }

/* tighten profile circle */
.profile-img { width: 220px; height:220px; object-fit:cover; border: 6px solid rgba(255,255,255,0.02); }

/* Stats styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.stat-item {
  padding: 1rem;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: rgba(184,134,11,0.2);
}
.stat-number { 
  color: var(--gold);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item small {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-item {
    padding: 0.75rem;
  }
}
@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ---------- SERVICES ---------- */
.service-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: all .45s cubic-bezier(.2,.9,.3,1);
  will-change: transform, opacity;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  background: #fff;
  -webkit-tap-highlight-color: rgba(184,134,11,0.1);
  min-height: 200px; /* Consistent card height on mobile */
  display: flex;
  flex-direction: column;
}
.service-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
@media (max-width: 575px) {
  .service-card {
    margin-bottom: 1.25rem;
  }
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 32px 80px rgba(10,10,20,0.14);
  border-color: rgba(184,134,11,0.15);
}
.service-card .card-title {
  font-weight: 900;
  font-size: 1.18rem; /* slightly larger title */
  letter-spacing: -0.01em;
}
.service-card .card-text {
  font-weight: 600;    /* bold-ish body text */
  font-size: 1.01rem;  /* slightly larger paragraph */
  color: var(--muted);
  line-height: 1.45;
}
.service-card .icon-wrap {
  width:76px;
  height:76px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:auto;
  background: linear-gradient(180deg, rgba(184,134,11,0.06), rgba(0,0,0,0.02));
  transition: transform .22s ease, box-shadow .22s ease, background .22s;
}
.service-card .icon-wrap svg {
  width:44px;
  height:44px;
  color:var(--gold);
}
.service-card:hover .icon-wrap { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 28px rgba(184,134,11,0.08); }

/* ---------- PROJECTS ---------- */
.project-card{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  transition: all .3s cubic-bezier(.2,.9,.3,1);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.04);
  background: #fff;
}
.project-card img{width:100%; height:240px; object-fit:cover; display:block; transition: transform .5s ease;}
.project-card:hover{
  transform: translateY(-10px); 
  box-shadow: 0 28px 72px rgba(20,20,31,0.12);
  border-color: rgba(184,134,11,0.15);
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-overlay{
  position:absolute; inset:0; display:flex; align-items:flex-end; padding:1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.45));
  color:#fff; opacity:0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease;
}
.project-card:hover .project-overlay{opacity:1; transform:none;}
.project-title{font-weight:700;}

/* Projects grid & card styles - Mobile optimized */
#projects-grid { 
  margin-top: 8px;
  display: grid;
  gap: 1.5rem;
}
.project-tile {
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
  transition: all .3s cubic-bezier(.2,.9,.3,1);
  box-shadow: var(--card-shadow);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  -webkit-tap-highlight-color: rgba(184,134,11,0.1); /* Better mobile tap feedback */
}
@media (max-width: 575px) {
  #projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (min-width: 576px) {
  #projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  #projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.project-tile img {
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
  transition: transform .45s ease;
}
.project-tile .project-body {
  padding: 14px 16px;
}
.project-tile .project-title { font-weight:800; font-size:1.03rem; }
.project-tile .project-meta { color:var(--muted); font-size:0.92rem; }
.badge-collab {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  color: #555;
}
.badge-collab.team {
  background: rgba(13,110,253,0.10);
  color: #0d6efd;
  border-color: rgba(13,110,253,0.18);
}
.badge-collab.solo {
  background: rgba(25,135,84,0.10);
  color: #198754;
  border-color: rgba(25,135,84,0.18);
}

body.dark-mode .badge-collab { background: #0f131a; color: var(--text); border-color: rgba(255,255,255,0.12); }
body.dark-mode .badge-collab.team { background: rgba(13,110,253,0.18); color: #a8c8ff; border-color: rgba(13,110,253,0.28); }
body.dark-mode .badge-collab.solo { background: rgba(25,135,84,0.18); color: #a7e3c8; border-color: rgba(25,135,84,0.28); }

/* overlay hover */
.project-tile .project-overlay {
  position:absolute; inset:0; display:flex; align-items:flex-end; padding:16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.52));
  color:#fff; opacity:0; transform: translateY(6px); transition: opacity .22s ease, transform .22s ease;
}
.project-tile:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 24px 64px rgba(20,20,31,0.14);
  border-color: rgba(184,134,11,0.15);
}
.project-tile:hover img { transform: scale(1.06); }
.project-tile:hover .project-overlay { opacity:1; transform:none; }

/* filter buttons active */
#projects-filters .btn.active, #projects-filters .btn:active {
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
  color:#0b0b0b;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(184,134,11,0.12);
}

/* grid items hidden for filtering */
.project-tile.hidden {
  opacity: 0;
  transform: scale(.98);
  pointer-events: none;
}

/* small responsive adjustments */
/* Extra small devices (phones) */
@media (max-width: 575px) {
  /* Better container padding on mobile */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .project-tile img { height: 200px; }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  .card-body { padding: 1rem; }
  .contact-card, .contact-info { 
    padding: 1.25rem !important; 
  }
  
  .gallery-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem; 
  }
  
  /* Hero quote mobile */
  .hero-quote {
    font-size: 0.85rem;
    padding: 0.875rem 1rem;
    margin: 1rem auto;
    max-width: 100%;
    text-align: left;
  }
  
  /* Profile image mobile */
  .profile-img { 
    width: 160px; 
    height: 160px; 
  }
  
  /* Section titles */
  .section-title-animated {
    font-size: 1.5rem;
  }
  
  /* Hero mobile fixes - Improved spacing and layout */
  .hero-left {
    padding-top: 1rem;
    padding-bottom: 4rem;
    min-height: auto;
  }
  .hero-left .row {
    flex-direction: column;
  }
  .hero-left .col-lg-6:first-child {
    order: 1;
    margin-bottom: 2.5rem;
    padding-bottom: 0;
  }
  .hero-left .col-lg-6:last-child {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* Ensure featured posts appear prominently on mobile */
  @media (max-width: 991px) {
    .hero-left .col-12.col-lg-6:last-child {
      margin-top: 2rem !important;
      margin-bottom: 2rem !important;
    }
  }
  .hero-left .col-12.col-lg-6 {
    width: 100%;
    max-width: 100%;
  }
  .hero-left .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
  }
  .hero-left .hero-sub {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .hero-left .hero-sub .mx-2 {
    display: none;
  }
  .hero-left .hero-role,
  .hero-left .hero-id {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(184,134,11,0.08);
    border-radius: 50px;
    border: 1px solid rgba(184,134,11,0.15);
    font-size: 0.875rem;
    font-weight: 600;
  }
  .hero-inner {
    padding: 0 1rem;
    text-align: center;
  }
  
  .hero-location {
    text-align: center;
    margin: 1.5rem 0;
  }
  .hero-location small {
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .hero-quote {
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    max-width: 100%;
    text-align: left;
    border-radius: 12px;
  }
  
  /* Better button spacing and sizing on mobile */
  .hero-inner .d-flex.gap-3 {
    gap: 1rem !important;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
  }
  .hero-inner .d-flex.gap-3 .btn {
    padding: 1.125rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(.2,.9,.3,1);
    min-height: 52px;
  }
  .hero-inner .d-flex.gap-3 .btn-gold {
    box-shadow: 0 6px 20px rgba(184,134,11,0.3);
  }
  .hero-inner .d-flex.gap-3 .btn:hover {
    transform: translateY(-3px) scale(1.02);
  }
  .hero-inner .d-flex.gap-3 .btn-gold:hover {
    box-shadow: 0 10px 28px rgba(184,134,11,0.4);
  }
  .hero-inner .d-flex.gap-3 .btn-outline-dark:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  }
  
  /* Social buttons mobile - horizontal layout */
  .hero-inner .mt-4.d-flex {
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap;
  }
  .social-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }
  
  /* Featured posts mobile - Enhanced spacing and visibility */
  #hero-featured-posts {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    padding: 0.75rem 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(250,250,252,0.98) 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
  }
  #hero-featured-posts h5 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-weight: 800;
    color: var(--text);
  }
  .hero-featured-list {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-featured-item {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0;
    display: flex !important;
    flex-direction: column;
  }
  .hero-featured-image {
    width: 100% !important;
    height: 300px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
  }
  .hero-featured-content {
    width: 100%;
    flex: 1;
  }
  .hero-featured-title {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
  }
  .hero-featured-excerpt {
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
    line-height: 1.6;
  }
  .hero-featured-badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  /* Profile card mobile */
  #hero-profile-image,
  #hero-profile-mobile {
    margin-top: 2rem;
    width: 100%;
  }
  #hero-profile-image .about-profile-card,
  #hero-profile-mobile .about-profile-card {
    position: relative !important;
    top: auto !important;
    padding: 2rem 1.5rem !important;
    margin: 0 auto;
    max-width: 100%;
  }
  #hero-profile-image .profile-img,
  #hero-profile-mobile .profile-img {
    width: 160px !important;
    height: 160px !important;
  }
  #hero-profile-image .profile-name,
  #hero-profile-mobile .profile-name {
    font-size: 1.5rem !important;
  }
  #hero-profile-image .profile-role,
  #hero-profile-mobile .profile-role {
    font-size: 0.95rem !important;
  }
  .hero-illustration-mobile {
    max-width: 240px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  }
}

/* ========== PROJECTS PAGE ENHANCEMENTS ========== */

/* Projects Hero Section */
.projects-hero {
  background: linear-gradient(135deg, rgba(250,250,252,0.98) 0%, rgba(255,255,255,1) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.projects-hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.projects-hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.projects-hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Projects Filters */
.projects-filters-wrapper {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.projects-filters-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.projects-filters-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.filter-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.2,.9,.3,1);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  letter-spacing: 0.01em;
}
.filter-btn:hover {
  color: var(--text);
  border-color: rgba(184,134,11,0.35);
  background: linear-gradient(135deg, rgba(184,134,11,0.08) 0%, rgba(184,134,11,0.04) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(184,134,11,0.15);
}
.filter-btn.active {
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(184,134,11,0.3), 0 0 0 1px rgba(184,134,11,0.2);
  transform: translateY(-3px);
  font-weight: 800;
}
.filter-btn.active:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184,134,11,0.4), 0 0 0 1px rgba(184,134,11,0.3);
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  color: var(--text);
}
.filter-btn.active .filter-count {
  background: rgba(0,0,0,0.2);
  color: #0b0b0b;
}

/* Projects Grid - Enhanced */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 576px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}
@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Enhanced Project Tile */
.project-tile {
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  transition: all 0.4s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  -webkit-tap-highlight-color: rgba(184,134,11,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184,134,11,0) 0%, rgba(184,134,11,0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.project-tile:hover::before {
  opacity: 1;
}
.project-tile img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.9,.3,1);
  position: relative;
  z-index: 0;
}
.project-tile .project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: #fff;
}
.project-tile .project-title {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: color 0.3s ease;
}
.project-tile .project-meta {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.project-tile .project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.project-tile .project-tags-small {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1;
}
.project-tile .project-tags-small .badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0,0,0,0.04);
  color: var(--muted);
  border: none;
  border-radius: 4px;
  font-weight: 500;
}
.project-tile:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border-color: rgba(184,134,11,0.2);
}
.project-tile:hover img {
  transform: scale(1.08);
}
.project-tile:hover .project-title {
  color: var(--gold);
}

/* Enhanced Project Overlay */
.project-tile .project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(.2,.9,.3,1);
  z-index: 1;
  pointer-events: none;
}
.project-tile:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-overlay .project-title {
  color: #fff !important;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.project-overlay .project-meta {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.875rem;
}

/* Enhanced Badge */
.badge-collab {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid;
  transition: all 0.3s ease;
}
.badge-collab.team {
  background: rgba(13,110,253,0.12);
  color: #0d6efd;
  border-color: rgba(13,110,253,0.25);
}
.badge-collab.solo {
  background: rgba(25,135,84,0.12);
  color: #198754;
  border-color: rgba(25,135,84,0.25);
}

/* Empty State */
.projects-empty-state {
  padding: 4rem 2rem;
}
.empty-icon {
  font-size: 4rem;
  opacity: 0.5;
  margin-bottom: 1rem;
}
.projects-empty-state h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
}
.projects-empty-state p {
  color: var(--muted);
}

/* Enhanced Project Modal */
.project-modal-content {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.project-modal-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0;
}
.project-modal-header .btn-close {
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  opacity: 0.9;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.project-modal-header .btn-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.7);
  transform: rotate(90deg);
}
.project-modal-body {
  padding: 0;
}
#project-modal-content {
  padding: 0;
}
#project-modal-content .proj-hero {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}
#project-modal-content .proj-details {
  padding: 2.5rem;
}
#project-modal-content h4 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}
#project-modal-content .proj-meta {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
#project-modal-content .proj-tags {
  margin-bottom: 2rem;
}
#project-modal-content .proj-tags .badge {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(184,134,11,0.1);
  color: var(--gold);
  border: 1px solid rgba(184,134,11,0.2);
}
#project-modal-content .proj-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}
#project-modal-content .proj-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
#project-modal-content .proj-actions .btn {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

/* Stagger Reveal Animation */
.project-tile.will-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}
.project-tile.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 0.8s cubic-bezier(.2,.9,.3,1), opacity 0.6s ease;
}

/* Dark Mode Enhancements */
body.dark-mode .projects-hero {
  background: linear-gradient(135deg, rgba(11,14,20,0.98) 0%, rgba(15,19,27,1) 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .projects-filters-wrapper {
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .filter-btn {
  background: #11151b;
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}
body.dark-mode .filter-btn:hover {
  background: rgba(184,134,11,0.1);
  border-color: rgba(184,134,11,0.3);
  color: var(--text);
}
body.dark-mode .filter-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0b0b;
}
body.dark-mode .project-tile {
  background: #11151b;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
body.dark-mode .project-tile:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode .project-tile .project-body {
  background: #11151b;
}
body.dark-mode .project-tile .project-footer {
  border-top-color: rgba(255,255,255,0.08);
}
body.dark-mode .project-modal-content {
  background: #11151b;
}
body.dark-mode #project-modal-content .proj-details {
  background: #11151b;
}
body.dark-mode #project-modal-content h4 {
  color: var(--text);
}
body.dark-mode #project-modal-content .proj-description {
  color: var(--text);
}

/* ========== HOME PAGE ENHANCEMENTS ========== */

/* Enhanced Hero Section */
.hero-left {
  position: relative;
  background: linear-gradient(135deg, rgba(250,250,252,0.98) 0%, rgba(255,255,255,1) 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

/* Hero Section Buttons - Desktop */
.hero-inner .d-flex.gap-3 .btn-gold,
.hero-inner .d-flex.gap-3 .btn-outline-dark {
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .hero-inner .d-flex.gap-3 {
    flex-direction: row;
    max-width: 100%;
    justify-content: flex-start;
    gap: 1.25rem !important;
  }
  .hero-inner .d-flex.gap-3 .btn {
    width: auto;
    min-width: 180px;
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
  }
}
.hero-inner {
  animation: fadeInUp 0.8s ease-out;
}
.hero-title {
  background: linear-gradient(135deg, var(--text) 0%, rgba(5,5,5,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
}
.hero-role, .hero-id {
  font-weight: 600;
  color: var(--text);
}
.hero-location {
  margin: 1rem 0;
}
.hero-location small {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(184,134,11,0.06);
  border-radius: 50px;
  border: 1px solid rgba(184,134,11,0.1);
}
.hero-quote {
  position: relative;
  padding: 1.5rem 1.75rem;
  padding-left: 1.75rem;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(184,134,11,0.04) 0%, rgba(184,134,11,0.01) 100%);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.hero-quote:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.1);
}

/* Enhanced Section Headers */
section {
  position: relative;
}
section > .container > .text-center:first-child,
section > .container > .d-flex:first-child {
  margin-bottom: 3rem;
}
section h3, section h4 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
}
section > .container > .text-center p,
section > .container > .d-flex p {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Enhanced About Section */
#about {
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(250,250,252,0.5) 0%, rgba(255,255,255,1) 100%);
  z-index: 0;
}
#about > .container {
  position: relative;
  z-index: 1;
}
.profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 48px rgba(184,134,11,0.2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-item {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(250,250,252,0.9) 100%);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  text-align: center;
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.12);
  border-color: rgba(184,134,11,0.2);
}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Services Section */
#services {
  background: #fff;
  position: relative;
}
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(.2,.9,.3,1);
}
.service-card .card-body {
  padding: 2.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card .icon-wrap {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.1) 0%, rgba(184,134,11,0.05) 100%);
  border: 1px solid rgba(184,134,11,0.1);
}
.service-card:hover .icon-wrap {
  background: linear-gradient(135deg, rgba(184,134,11,0.15) 0%, rgba(184,134,11,0.08) 100%);
  border-color: rgba(184,134,11,0.25);
}
.service-card .card-title {
  margin-bottom: 1rem;
  color: var(--text);
}
.service-card .card-text {
  flex: 1;
  color: var(--muted);
  line-height: 1.7;
}

/* Enhanced Preview Sections */
#projects-preview, #blog-preview, #gallery-preview {
  position: relative;
}
#projects-preview {
  background: linear-gradient(135deg, rgba(250,250,252,0.5) 0%, rgba(255,255,255,1) 100%);
}
#blog-preview {
  background: #fff;
}
#gallery-preview {
  background: linear-gradient(135deg, rgba(250,250,252,0.5) 0%, rgba(255,255,255,1) 100%);
}
.preview-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.preview-section-header h3 {
  margin-bottom: 0.5rem;
}
.preview-section-header p {
  margin: 0;
  color: var(--muted);
}
.preview-section-header .btn {
  white-space: nowrap;
}

/* ========== ENHANCED CONTACT SECTION ========== */
#contact {
  background: linear-gradient(135deg, rgba(250,250,252,0.5) 0%, rgba(255,255,255,1) 100%);
  position: relative;
  padding: 5rem 0;
}

/* Contact Hero */
.contact-hero {
  margin-bottom: 4rem;
}
.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Contact Wrap Layout */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
  width: 100%;
}
.contact-card {
  padding: 3rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.contact-card:hover {
  box-shadow: 0 24px 72px rgba(0,0,0,0.12);
}
.contact-card-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(184,134,11,0.1);
}
.contact-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.contact-form-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* Enhanced Form Fields */
.form-field {
  position: relative;
  display: block;
  margin-bottom: 0;
}
.form-field.textarea .form-input {
  min-height: 140px;
  padding-top: 1.5rem;
  resize: vertical;
}
.form-input {
  width: 100%;
  padding: 1.125rem 1rem 0.75rem 3rem;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.08);
  background: rgba(250,250,252,0.5);
  transition: all 0.3s ease;
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--text);
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184,134,11,0.1);
  transform: translateY(-2px);
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--gold);
}
.form-label {
  position: absolute;
  left: 3rem;
  top: 1.125rem;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.form-label-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
  display: block;
}

/* Form Consent */
.form-consent {
  padding: 1rem;
  background: rgba(184,134,11,0.04);
  border-radius: 12px;
  border: 1px solid rgba(184,134,11,0.1);
}
.form-check-input {
  margin-top: 0.25rem;
  cursor: pointer;
}
.form-check-label {
  cursor: pointer;
  line-height: 1.6;
}

/* Contact Form Actions */
.contact-form-actions {
  margin-top: 1rem;
}
.btn-submit {
  position: relative;
  overflow: hidden;
}
.btn-spinner {
  margin-left: 0.5rem;
}
.btn-check {
  margin-left: 0.5rem;
  font-size: 1.25rem;
}

/* Contact Info Section */
.contact-info-section {
  width: 100%;
}
.contact-info {
  padding: 3rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.05) 0%, rgba(184,134,11,0.02) 100%);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(184,134,11,0.15);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.contact-info-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(184,134,11,0.1);
}
.contact-info-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.contact-info-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* Info Items */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.6);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.info-item:hover {
  background: rgba(255,255,255,0.9);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.info-icon {
  width: 50px;
  height: 50px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(184,134,11,0.1) 0%, rgba(184,134,11,0.05) 100%);
  border-radius: 12px;
  flex-shrink: 0;
}
.info-content {
  flex: 1;
}
.info-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.info-value {
  font-size: 1.0625rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}
.info-value:hover {
  color: var(--gold);
}

/* Contact Social Section */
.contact-social-section {
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.contact-social-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}
.contact-social-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.social-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.social-btn-contact:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0b0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}
.social-btn-contact svg {
  width: 20px;
  height: 20px;
}

/* Availability Card */
.contact-availability {
  margin-top: 2rem;
}
.availability-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.8);
  border-radius: 16px;
  border: 1px solid rgba(184,134,11,0.2);
}
.availability-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(184,134,11,0.15) 0%, rgba(184,134,11,0.08) 100%);
  border-radius: 12px;
  flex-shrink: 0;
}
.availability-content strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* Contact Result Messages */
#contact-result {
  min-height: 3rem;
}
#contact-result .alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}
#contact-result .alert-success {
  background: rgba(25,135,84,0.1);
  color: #198754;
  border: 1px solid rgba(25,135,84,0.2);
}
#contact-result .alert-danger {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
  border: 1px solid rgba(220,53,69,0.2);
}

/* ========== ENHANCED TESTIMONIALS SECTION ========== */
#testimonials {
  background: linear-gradient(135deg, rgba(250,250,252,0.5) 0%, rgba(255,255,255,1) 100%);
  position: relative;
  padding: 5rem 0;
}
#testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.2), transparent);
}

/* Testimonials Header */
.testimonials-header {
  margin-bottom: 3rem;
}
.testimonials-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #050505 !important;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.testimonials-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #4a5568 !important;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

/* Testimonial Card */
.testimonial-card {
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(184,134,11,0.05);
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.testimonial-card:hover::before {
  transform: scaleX(1);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(184,134,11,0.15), 0 0 0 1px rgba(184,134,11,0.1);
  border-color: rgba(184,134,11,0.15);
}

/* Quote Wrapper */
.testimonial-quote-wrapper {
  margin-bottom: 2.5rem;
  position: relative;
}
.testimonial-quote-icon {
  opacity: 0.1;
  margin-bottom: 1rem;
  display: block;
  color: var(--gold);
}
.testimonial-quote-icon svg {
  width: 48px;
  height: 48px;
}
.testimonial-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.8;
  color: #1a202c !important;
  font-weight: 400;
  font-style: italic;
  position: relative;
  padding-left: 2rem;
  margin: 0;
}
.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Testimonial Footer */
.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 2px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 200px;
}
.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(184,134,11,0.2), 0 0 0 3px rgba(184,134,11,0.1);
  transition: all 0.3s ease;
}
.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3), 0 0 0 3px rgba(184,134,11,0.15);
}
.testimonial-author-info {
  flex: 1;
}
.testimonial-author-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #050505 !important;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.testimonial-author-role {
  font-size: 0.95rem;
  color: #4a5568 !important;
  font-weight: 500;
}
.testimonial-rating {
  display: flex;
  align-items: center;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 2px;
  line-height: 1;
}

/* Carousel Controls */
.carousel-controls-wrapper {
  position: relative;
  margin-top: 2rem;
}
.testimonial-control {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid rgba(184,134,11,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 1;
  top: auto;
  bottom: -25px;
  transition: all 0.3s ease;
}
.testimonial-control:hover {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
  transform: scale(1.1);
}
.testimonial-control .carousel-control-prev-icon,
.testimonial-control .carousel-control-next-icon {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(29deg) brightness(92%) contrast(88%);
}
.testimonial-control:hover .carousel-control-prev-icon,
.testimonial-control:hover .carousel-control-next-icon {
  filter: brightness(0) saturate(100%) invert(8%) sepia(5%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(95%);
}
.carousel-control-prev.testimonial-control {
  left: calc(50% - 60px);
}
.carousel-control-next.testimonial-control {
  right: calc(50% - 60px);
}

/* Carousel Indicators */
.carousel-indicators {
  margin-bottom: -3rem;
  position: relative;
}
.carousel-indicators [type="button"] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(184,134,11,0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.carousel-indicators [type="button"].active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}
.carousel-indicators [type="button"]:hover {
  background: rgba(184,134,11,0.5);
  transform: scale(1.2);
}

/* Dark Mode for Testimonials */
body.dark-mode #testimonials {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%);
}
body.dark-mode #testimonials::before {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.3), transparent);
}
body.dark-mode .testimonials-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .testimonials-subtitle {
  color: #cbd5e0 !important;
}
body.dark-mode .testimonial-card {
  background: linear-gradient(135deg, #11151b 0%, #0f1319 100%);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(184,134,11,0.1);
}
body.dark-mode .testimonial-card:hover {
  box-shadow: 0 24px 72px rgba(184,134,11,0.2), 0 0 0 1px rgba(184,134,11,0.2);
  border-color: rgba(184,134,11,0.25);
}
body.dark-mode .testimonial-quote {
  color: #e2e8f0 !important;
}
body.dark-mode .testimonial-author-name {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .testimonial-author-role {
  color: #cbd5e0 !important;
}
body.dark-mode .testimonial-footer {
  border-top-color: rgba(255,255,255,0.08);
}
body.dark-mode .testimonial-avatar {
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .testimonial-control {
  background: #11151b;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
body.dark-mode .testimonial-control:hover {
  background: var(--gold);
}

/* Testimonial Modal Styling - Attractive Professional Design */
.testimonial-modal-dialog {
  max-width: 600px;
}

.testimonial-modal-content {
  border-radius: 28px;
  box-shadow: 0 32px 100px rgba(12,18,28,0.25), 0 0 0 1px rgba(184,134,11,0.1);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(12,18,28,0.08);
  overflow: hidden;
  position: relative;
}

.testimonial-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
  z-index: 1;
}

body.dark-mode .testimonial-modal-content {
  background: linear-gradient(135deg, #11151b 0%, #0d1117 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(184,134,11,0.2);
}

/* Modal Header */
.testimonial-modal-header {
  background: linear-gradient(135deg, rgba(184,134,11,0.08) 0%, rgba(184,134,11,0.03) 100%);
  padding: 1.75rem 2rem;
  position: relative;
}

body.dark-mode .testimonial-modal-header {
  background: linear-gradient(135deg, rgba(184,134,11,0.15) 0%, rgba(184,134,11,0.08) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-header-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.modal-icon-wrapper {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}

.testimonial-modal-header .modal-title {
  color: #0f172a;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

body.dark-mode .testimonial-modal-header .modal-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.modal-subtitle {
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

body.dark-mode .modal-subtitle {
  color: #cbd5e0;
}

.btn-close-modal {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-close-modal:hover {
  background: rgba(12,18,28,0.05);
  color: #050505;
}

body.dark-mode .btn-close-modal {
  color: #9ca3af;
}

body.dark-mode .btn-close-modal:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* Modal Body */
.testimonial-modal-body {
  padding: 2.25rem 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(184,134,11,0.01) 100%);
}

body.dark-mode .testimonial-modal-body {
  background: linear-gradient(180deg, transparent 0%, rgba(184,134,11,0.03) 100%);
}

.testimonial-info-box {
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.08) 100%);
  border: 1.5px solid rgba(59,130,246,0.25);
  border-radius: 14px;
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: #1e3a8a;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,0.1);
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark-mode .testimonial-info-box {
  background: linear-gradient(135deg, rgba(59,130,246,0.22) 0%, rgba(59,130,246,0.15) 100%);
  border-color: rgba(59,130,246,0.35);
  color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(59,130,246,0.2);
}

.testimonial-info-box svg {
  flex-shrink: 0;
  color: inherit;
}

/* Form Labels */
.testimonial-modal-content .form-label {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

body.dark-mode .testimonial-modal-content .form-label {
  color: #f1f5f9;
}

.testimonial-modal-content .form-label svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(184,134,11,0.2));
}

.testimonial-modal-content .form-label .text-danger {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.125rem;
}

body.dark-mode .testimonial-modal-content .form-label .text-danger {
  color: #fca5a5;
}

/* Form Controls */
.testimonial-modal-content .form-control,
.testimonial-modal-content .form-select {
  border: 2px solid rgba(12,18,28,0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  color: #0f172a;
  font-weight: 400;
  line-height: 1.5;
}

.testimonial-modal-content .form-control:hover,
.testimonial-modal-content .form-select:hover {
  border-color: rgba(184,134,11,0.4);
  background: #fafbfc;
}

.testimonial-modal-content .form-control:focus,
.testimonial-modal-content .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,134,11,0.15), 0 4px 12px rgba(184,134,11,0.1);
  background: #ffffff;
  outline: none;
  transform: translateY(-1px);
  color: #0f172a;
}

.testimonial-modal-content .form-control::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 0.8;
}

body.dark-mode .testimonial-modal-content .form-control,
body.dark-mode .testimonial-modal-content .form-select {
  background: rgba(30,41,59,0.8);
  border-color: rgba(255,255,255,0.18);
  color: #f1f5f9;
}

body.dark-mode .testimonial-modal-content .form-control:hover,
body.dark-mode .testimonial-modal-content .form-select:hover {
  background: rgba(30,41,59,0.9);
  border-color: rgba(184,134,11,0.5);
}

body.dark-mode .testimonial-modal-content .form-control:focus,
body.dark-mode .testimonial-modal-content .form-select:focus {
  background: rgba(30,41,59,1);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,134,11,0.25);
  color: #ffffff;
}

body.dark-mode .testimonial-modal-content .form-control::placeholder {
  color: #94a3b8;
  opacity: 0.9;
}

.testimonial-modal-content textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-text {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.5rem;
}

body.dark-mode .form-text {
  color: #cbd5e0;
}

/* Submit Button */
.btn-submit-testimonial {
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(184,134,11,0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn-submit-testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-submit-testimonial:hover::before {
  left: 100%;
}

.btn-submit-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(184,134,11,0.45), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn-submit-testimonial:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(184,134,11,0.3);
}

.btn-submit-testimonial:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.testimonial-modal-content #testimonial-message .alert {
  padding: 1.125rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  margin: 0;
  border: 1.5px solid transparent;
  font-weight: 600;
  line-height: 1.6;
}

.testimonial-modal-content #testimonial-message .alert-success {
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(34,197,94,0.08) 100%);
  border-color: rgba(34,197,94,0.3);
  color: #166534;
}

body.dark-mode .testimonial-modal-content #testimonial-message .alert-success {
  background: linear-gradient(135deg, rgba(34,197,94,0.2) 0%, rgba(34,197,94,0.12) 100%);
  border-color: rgba(34,197,94,0.4);
  color: #bbf7d0;
}

.testimonial-modal-content #testimonial-message .alert-danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.15) 0%, rgba(239,68,68,0.08) 100%);
  border-color: rgba(239,68,68,0.3);
  color: #991b1b;
}

body.dark-mode .testimonial-modal-content #testimonial-message .alert-danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.2) 0%, rgba(239,68,68,0.12) 100%);
  border-color: rgba(239,68,68,0.4);
  color: #fecaca;
}

/* Responsive */
@media (max-width: 576px) {
  .testimonial-modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .testimonial-modal-header {
    padding: 1.5rem 1.5rem;
  }
  
  .testimonial-modal-body {
    padding: 1.5rem;
  }
  
  .modal-header-content {
    gap: 0.75rem;
  }
  
  .modal-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-modal-header .modal-title {
    font-size: 1.25rem;
  }
  
  .testimonial-modal-content .row {
    --bs-gutter-x: 1rem;
  }
}

body.dark-mode .carousel-indicators [type="button"] {
  background: rgba(184,134,11,0.3);
}

/* Mobile Optimizations */
@media (max-width: 991px) {
  #testimonials {
    padding: 4rem 0;
  }
  .testimonial-card {
    padding: 2.5rem 2rem;
  }
  .testimonial-quote {
    padding-left: 1.5rem;
    font-size: 1.125rem;
  }
  .testimonial-quote::before {
    font-size: 3rem;
  }
  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .testimonial-rating {
    align-self: flex-start;
  }
  .carousel-control-prev.testimonial-control {
    left: 20px;
  }
  .carousel-control-next.testimonial-control {
    right: 20px;
  }
}

@media (max-width: 575px) {
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  .testimonial-avatar {
    width: 60px;
    height: 60px;
  }
  .testimonial-author-name {
    font-size: 1rem;
  }
  .testimonial-author-role {
    font-size: 0.875rem;
  }
  .testimonial-stars {
    font-size: 1.25rem;
  }
  .testimonial-control {
    width: 40px;
    height: 40px;
    bottom: -20px;
  }
}

/* Enhanced Featured Posts in Hero */
.hero-featured-posts {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,250,252,0.95) 100%);
  border-radius: 20px;
  padding: 0.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}
.hero-featured-posts h5 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(184,134,11,0.2);
  color: var(--text);
}
.hero-featured-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-featured-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}
.hero-featured-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: rgba(184,134,11,0.2);
}

/* Dark Mode Enhancements for Home Page */
body.dark-mode .hero-left {
  background: linear-gradient(135deg, rgba(11,14,20,0.98) 0%, rgba(15,19,27,1) 100%);
}
body.dark-mode .hero-location small {
  background: rgba(184,134,11,0.12);
  border-color: rgba(184,134,11,0.2);
  color: var(--text);
}
body.dark-mode .hero-quote {
  background: linear-gradient(90deg, rgba(184,134,11,0.08) 0%, rgba(184,134,11,0.03) 100%);
  border-left-color: var(--gold);
  color: var(--text);
}
body.dark-mode #about::before {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%);
}
body.dark-mode .stat-item {
  background: linear-gradient(135deg, rgba(17,21,27,0.9) 0%, rgba(11,14,20,0.9) 100%);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .stat-item:hover {
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode #projects-preview,
body.dark-mode #gallery-preview,
body.dark-mode #contact {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%);
}
body.dark-mode #contact {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%);
}

/* Gallery Page Dark Mode */
body.dark-mode .gallery-container {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%) !important;
}
body.dark-mode .gallery-container h1 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .gallery-container .text-muted {
  color: #cbd5e0 !important;
}
body.dark-mode .gallery-item {
  background: #11151b !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}
body.dark-mode .gallery-item:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.6) !important;
  border-color: rgba(184,134,11,0.2) !important;
}
body.dark-mode .contact-card {
  background: #11151b;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
body.dark-mode .contact-info {
  background: linear-gradient(135deg, rgba(184,134,11,0.1) 0%, rgba(184,134,11,0.05) 100%);
  border-color: rgba(184,134,11,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
body.dark-mode .info-item {
  background: rgba(17,21,27,0.6);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .info-item:hover {
  background: rgba(17,21,27,0.8);
}
body.dark-mode .contact-social-buttons .social-btn-contact {
  background: rgba(17,21,27,0.6);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
body.dark-mode .contact-social-buttons .social-btn-contact:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0b0b;
}
body.dark-mode .availability-card {
  background: rgba(17,21,27,0.6);
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode .form-consent {
  background: rgba(184,134,11,0.08);
  border-color: rgba(184,134,11,0.2);
}
body.dark-mode .testimonial-card {
  background: linear-gradient(135deg, rgba(17,21,27,0.9) 0%, rgba(11,14,20,0.9) 100%);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .testimonial-card .testimonial-author {
  border-top-color: rgba(255,255,255,0.08);
}
body.dark-mode .hero-featured-posts {
  background: linear-gradient(135deg, rgba(17,21,27,0.95) 0%, rgba(11,14,20,0.95) 100%);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .hero-featured-item {
  background: #11151b;
  border-color: rgba(255,255,255,0.08);
}

/* Mobile Optimizations */
@media (max-width: 575px) {
  .projects-hero-title {
    font-size: 2rem;
  }
  .projects-hero-subtitle {
    font-size: 1rem;
  }
  .projects-filters-wrapper {
    padding: 1rem 0;
  }
  .projects-filters-group {
    gap: 0.375rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .projects-grid {
    gap: 1.5rem;
  }
  .project-tile img {
    height: 240px;
  }
  .project-tile .project-body {
    padding: 1.25rem;
  }
  .project-tile .project-title {
    font-size: 1.05rem;
  }
  #project-modal-content .proj-hero {
    height: 280px;
  }
  #project-modal-content .proj-details {
    padding: 1.5rem;
  }
  #project-modal-content h4 {
    font-size: 1.5rem;
  }
  .project-modal-header {
    top: 0.5rem;
    right: 0.5rem;
  }
  .project-modal-header .btn-close {
    width: 36px;
    height: 36px;
  }
  
  /* Home page mobile */
  .hero-left {
    min-height: auto;
    padding: 3rem 0;
  }
  .hero-quote {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stat-item {
    padding: 1.25rem;
  }
  .service-card .card-body {
    padding: 2rem 1.5rem;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-card, .contact-info {
    padding: 2rem 1.5rem;
  }
  .contact-info {
    position: static;
  }
  .contact-form-title, .contact-info-title {
    font-size: 1.5rem;
  }
  .contact-form-subtitle, .contact-info-subtitle {
    font-size: 0.9rem;
  }
  .info-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
    margin: 0 auto;
  }
  .info-content {
    text-align: center;
  }
  .contact-social-buttons {
    flex-direction: column;
  }
  .social-btn-contact {
    width: 100%;
    justify-content: center;
  }
  .contact-form-actions {
    flex-direction: column;
  }
  .contact-form-actions .btn {
    width: 100%;
  }
  .form-input {
    padding-left: 2.75rem;
  }
  .form-label {
    left: 2.75rem;
  }
  .preview-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-featured-posts {
    padding: 1.5rem;
  }
}

/* ========== BLOG PAGE ENHANCEMENTS ========== */

/* Blog List View Section */
#blog-list-view {
  background: linear-gradient(135deg, rgba(250,250,252,0.3) 0%, rgba(255,255,255,1) 100%);
  position: relative;
}
#blog-list-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.2), transparent);
}

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, rgba(250,250,252,0.98) 0%, rgba(255,255,255,1) 100%);
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.3), transparent);
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.2), transparent);
}
.blog-hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #050505 !important;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #050505 0%, #1a1a1a 50%, #050505 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
body.dark-mode .blog-hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #4a5568 !important;
  font-weight: 500;
}

/* Blog Filters */
.blog-filters-wrapper {
  padding: 2.5rem 0;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  margin-bottom: 4rem;
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.02), transparent);
  border-radius: 16px;
  padding-left: 1rem;
  padding-right: 1rem;
}
.blog-filters-label-text {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5568 !important;
  font-weight: 700;
}
.blog-filters-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Blog Section Headers */
.blog-section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  position: relative;
}
.blog-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.blog-section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #050505 !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.blog-section-icon {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.12) 0%, rgba(184,134,11,0.08) 100%);
  border-radius: 8px;
  border: 1.5px solid rgba(184,134,11,0.2);
  color: var(--gold);
  box-shadow: 0 2px 8px rgba(184,134,11,0.1);
  transition: all 0.3s ease;
}
.blog-section-subtitle {
  font-size: 1rem;
  color: #4a5568 !important;
  font-weight: 500;
  margin-left: 60px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 1rem 0;
}
.featured-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Blog Card */
.blog-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(184,134,11,0.03);
  transition: all 0.5s cubic-bezier(.2,.9,.3,1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  -webkit-tap-highlight-color: rgba(184,134,11,0.1);
  backdrop-filter: blur(10px);
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184,134,11,0) 0%, rgba(184,134,11,0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.blog-card:hover::before {
  opacity: 1;
}
.blog-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: 0 28px 80px rgba(184,134,11,0.25), 0 0 0 1.5px rgba(184,134,11,0.2);
  border-color: rgba(184,134,11,0.3);
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}
.blog-card img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(.2,.9,.3,1), filter 0.5s ease;
  position: relative;
  z-index: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  filter: brightness(1) saturate(1);
}
.blog-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}
.blog-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.blog-card-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.875rem;
  color: #050505 !important;
  transition: color 0.4s cubic-bezier(.2,.9,.3,1), transform 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  letter-spacing: -0.01em;
}
.blog-card:hover .blog-card-title {
  color: var(--gold) !important;
  transform: translateX(2px);
}
.blog-card-excerpt {
  color: #4a5568 !important;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex: 1;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid rgba(0,0,0,0.06);
  margin-top: auto;
}
.blog-card-date {
  font-size: 0.875rem;
  color: #4a5568 !important;
  font-weight: 500;
}
.blog-card-category {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(184,134,11,0.12) 0%, rgba(184,134,11,0.08) 100%);
  color: var(--gold);
  border: 1.5px solid rgba(184,134,11,0.2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(184,134,11,0.1);
}
.blog-card:hover .blog-card-category {
  background: linear-gradient(135deg, rgba(184,134,11,0.18) 0%, rgba(184,134,11,0.12) 100%);
  border-color: rgba(184,134,11,0.3);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(184,134,11,0.2);
}
.blog-card-read-more {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(.2,.9,.3,1);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.blog-card-read-more:hover {
  gap: 0.875rem;
  color: var(--gold-dark);
  transform: translateX(4px);
}

/* Featured Blog Card */
.blog-card.featured {
  border: 2.5px solid rgba(184,134,11,0.35);
  background: linear-gradient(135deg, rgba(255,251,240,0.6) 0%, rgba(255,255,255,1) 100%);
  position: relative;
  box-shadow: 0 8px 40px rgba(184,134,11,0.15), 0 0 0 1px rgba(184,134,11,0.1);
}
.blog-card.featured:hover {
  box-shadow: 0 32px 96px rgba(184,134,11,0.3), 0 0 0 2px rgba(184,134,11,0.25);
  border-color: rgba(184,134,11,0.45);
}
.blog-card.featured::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  z-index: 3;
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(184,134,11,0.2);
}
.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0b0b;
  border: none;
  letter-spacing: 0.02em;
}

/* Blog Detail View - Instagram Style */
.blog-detail-wrapper {
  max-width: 614px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Instagram Post Header */
.ig-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #efefef;
}

.ig-post-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #dbdbdb;
}

.ig-username {
  font-size: 0.875rem;
  font-weight: 600;
  color: #262626;
}

.ig-menu-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Instagram Post Actions */
.ig-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: none;
  margin-bottom: 0;
}

.ig-actions-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ig-action-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.ig-action-btn:hover {
  opacity: 0.6;
}

.ig-action-btn.liked,
.ig-action-btn.bookmarked {
  color: #ed4956;
}

.ig-action-btn:hover {
  opacity: 0.6;
}

.ig-action-btn:active {
  opacity: 0.4;
  transform: scale(0.95);
}

.ig-action-btn.liked svg {
  fill: currentColor;
  animation: heartPulse 0.3s ease;
}

/* Instagram Likes */
.ig-likes {
  padding: 0 1rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #262626;
  border-bottom: none;
}

.ig-likes .like-count {
  font-weight: 600;
}

/* Instagram Caption */
.ig-caption {
  padding: 0 1rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #262626;
  border-bottom: none;
}

.ig-caption-username {
  font-weight: 600;
  margin-right: 0.5rem;
  color: #262626 !important;
}

.ig-caption-text {
  font-weight: 400;
  color: #262626 !important;
}

.ig-caption-content {
  padding: 0 1rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #262626 !important;
  border-bottom: none;
}

.ig-caption-content p,
.ig-caption-content h2,
.ig-caption-content h3,
.ig-caption-content li {
  color: #262626 !important;
}

/* Instagram View Comments */
.ig-view-comments {
  background: transparent;
  border: none;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: #8e8e8e;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
}

.ig-view-comments:hover {
  color: #262626;
}

/* Instagram Time */
.ig-time {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #efefef;
}

/* Instagram Comments Section */
.ig-comments-section {
  padding: 0.75rem 1rem;
}

.ig-comments-list {
  margin-bottom: 0.75rem;
}

.ig-comment-input {
  border-top: 1px solid #efefef;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.ig-comment-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ig-comment-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.875rem;
  font-family: var(--body-font);
  color: #262626;
  min-height: 18px;
  max-height: 80px;
  padding: 0;
  background: transparent;
}

.ig-comment-textarea::placeholder {
  color: #8e8e8e;
}

.ig-comment-post {
  background: transparent;
  border: none;
  color: #0095f6;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.ig-comment-post:not(:disabled) {
  opacity: 1;
}

.ig-comment-post:hover:not(:disabled) {
  opacity: 0.7;
}

.ig-comment-post:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #262626;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}
.back-link:hover {
  opacity: 0.7;
}
.blog-detail-header {
  margin-bottom: 0;
}
.blog-detail-hero-image {
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
  background: #000;
}
.blog-detail-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding: 0.75rem 1rem;
  color: #262626 !important;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blog-detail-title::before {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: inline-block;
  flex-shrink: 0;
  margin-right: 0.75rem;
  vertical-align: middle;
}
.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #efefef;
  margin-bottom: 0;
}
.blog-detail-date {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-detail-content {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #262626 !important;
  font-weight: 400;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #efefef;
}
.blog-detail-content p {
  margin-bottom: 1.5rem;
}
.blog-detail-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #050505 !important;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(184,134,11,0.15);
}
.blog-detail-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #050505 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  letter-spacing: -0.01em;
}
.blog-detail-content ul,
.blog-detail-content ol {
  margin: 2rem 0;
  padding-left: 2.5rem;
}
.blog-detail-content ul {
  list-style: none;
  padding-left: 0;
}
.blog-detail-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.85;
}
.blog-detail-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2em;
}
.blog-detail-content ol li {
  margin-bottom: 1rem;
  line-height: 1.85;
  padding-left: 0.5rem;
}
.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2.5rem 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(184,134,11,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
}
.blog-detail-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(184,134,11,0.15), 0 0 0 1px rgba(184,134,11,0.15);
}
.blog-detail-content blockquote {
  border-left: 5px solid var(--gold);
  padding-left: 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(184,134,11,0.06) 0%, rgba(184,134,11,0.03) 100%);
  padding: 2rem;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 4px 16px rgba(184,134,11,0.1);
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
}
.blog-detail-content blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: rgba(184,134,11,0.2);
  font-family: Georgia, serif;
  line-height: 1;
}
.blog-detail-content code {
  background: linear-gradient(135deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.06) 100%);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  border: 1px solid rgba(0,0,0,0.08);
  color: #e83e8c;
  font-weight: 500;
}
.blog-detail-content pre {
  background: linear-gradient(135deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.06) 100%);
  padding: 1.75rem;
  border-radius: 16px;
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1.5px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
}
.blog-detail-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 16px 0 0 16px;
}
.blog-detail-content pre code {
  background: none;
  padding: 0;
}

/* Blog Share & Like Section - Instagram Style */
.blog-detail-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #efefef;
  margin: 0;
}

.blog-share-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

.blog-share-label {
  display: none;
}

.blog-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #262626;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
  padding: 0;
}

.blog-share-btn:hover {
  opacity: 0.6;
}

.blog-share-btn svg {
  width: 24px;
  height: 24px;
}

.blog-share-btn.twitter {
  color: #1DA1F2;
}

.blog-share-btn.twitter:hover {
  background: #1DA1F2;
  color: #fff;
  border-color: #1DA1F2;
}

.blog-share-btn.facebook {
  color: #1877F2;
}

.blog-share-btn.facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

.blog-share-btn.linkedin {
  color: #0A66C2;
}

.blog-share-btn.linkedin:hover {
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
}

.blog-share-btn.whatsapp {
  color: #25D366;
}

.blog-share-btn.whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.blog-share-btn.copy-link {
  color: var(--gold);
}

.blog-share-btn.copy-link:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.blog-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #262626;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.blog-like-btn:hover {
  opacity: 0.6;
}

.blog-like-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.blog-like-btn.liked {
  color: #ed4956;
}

.blog-like-btn.liked svg {
  fill: currentColor;
  animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.like-count {
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.like-count {
  font-weight: 800;
  font-size: 0.95rem;
}

/* Blog Comments Section - Instagram Style */
.blog-comments-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-comments-header {
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #efefef;
}

.blog-comments-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8e8e8e !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.comment-count {
  font-weight: 600;
  color: #262626;
}

/* Inline Comment Input - Instagram Style */
.blog-comment-input-wrapper {
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  border-top: 1px solid #efefef;
}

.blog-comment-input-form {
  width: 100%;
}

.comment-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.comment-name-input,
.reply-name-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: var(--body-font);
  background: #fafafa;
  color: #262626;
  margin-bottom: 0.5rem;
}

.comment-name-input:focus,
.reply-name-input:focus {
  outline: none;
  border-color: #8e8e8e;
  background: #fff;
}

.comment-textarea,
.reply-textarea {
  flex: 1;
  min-height: 18px;
  max-height: 80px;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.875rem;
  font-family: var(--body-font);
  resize: none;
  overflow-y: auto;
  background: transparent;
  color: #262626;
  transition: none;
  line-height: 1.5;
}

.comment-textarea:focus,
.reply-textarea:focus {
  outline: none;
  border: none;
  background: transparent;
  box-shadow: none;
}

.comment-textarea::placeholder,
.reply-textarea::placeholder {
  color: #8e8e8e;
}

.comment-post-btn,
.reply-post-btn {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: #0095f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.4;
}

.comment-post-btn:not(:disabled),
.reply-post-btn:not(:disabled) {
  opacity: 1;
}

.comment-post-btn:hover:not(:disabled),
.reply-post-btn:hover:not(:disabled) {
  opacity: 0.7;
}

.comment-post-btn svg,
.reply-post-btn svg {
  display: none;
}

.comment-post-btn:disabled,
.reply-post-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.comment-name-toggle,
.reply-name-toggle {
  display: none;
}

/* Instagram-style Toast Notification */
.ig-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(38, 38, 38, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.ig-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode adjustments */
.dark-mode .ig-toast {
  background: rgba(250, 250, 250, 0.9);
  color: #262626;
}

/* Comments List - Instagram Style */
.ig-comments-list .blog-comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

.ig-comments-list .comment-main {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.ig-comments-list .blog-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  border: 1px solid #dbdbdb;
}

.ig-comments-list .blog-comment-avatar.small {
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
}

.ig-comments-list .comment-content {
  flex: 1;
  min-width: 0;
}

.ig-comments-list .comment-header {
  display: inline;
  margin-bottom: 0;
}

.ig-comments-list .blog-comment-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #262626 !important;
  margin-right: 0.5rem;
}

.ig-comments-list .blog-comment-date {
  font-size: 0.75rem;
  color: #8e8e8e;
  font-weight: 400;
}

.ig-comments-list .blog-comment-text {
  color: #262626 !important;
  line-height: 1.5;
  font-size: 0.875rem;
  margin: 0;
  word-wrap: break-word;
  display: inline;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
  padding-left: 0;
}

.comment-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #8e8e8e;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.comment-action-btn:hover {
  opacity: 0.6;
}

.comment-action-btn svg {
  width: 12px;
  height: 12px;
}

.comment-action-btn.liked {
  color: #ed4956;
}

.comment-action-btn.liked svg {
  fill: currentColor;
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.comment-action-btn.reply-btn {
  color: #8e8e8e;
}

.action-count {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.125rem;
}

/* Replies - Instagram Style */
.comment-replies {
  margin-top: 0.5rem;
  margin-left: 2.5rem;
  padding-left: 0;
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-reply-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.reply-content {
  flex: 1;
  min-width: 0;
}

.reply-form-wrapper {
  margin-top: 0.5rem;
  margin-left: 2.5rem;
  padding-top: 0.5rem;
}

.reply-form {
  width: 100%;
}

.reply-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.reply-textarea {
  font-size: 0.875rem;
  min-height: 18px;
}

.blog-no-comments {
  text-align: center;
  padding: 1.5rem;
  color: #8e8e8e;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  font-style: normal;
}

/* Dark Mode for Share, Like, Comments */
body.dark-mode .blog-detail-actions {
  border-top-color: rgba(255,255,255,0.1);
  border-bottom-color: rgba(255,255,255,0.1);
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.05), transparent);
}

body.dark-mode .blog-share-btn {
  background: linear-gradient(135deg, #11151b 0%, #0f1319 100%);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

body.dark-mode .blog-share-btn:hover {
  color: #fff;
}

body.dark-mode .blog-like-btn {
  background: linear-gradient(135deg, rgba(184,134,11,0.1) 0%, rgba(184,134,11,0.05) 100%);
  border-color: rgba(184,134,11,0.25);
  color: var(--gold);
}

body.dark-mode .blog-comments-section {
  border-top-color: rgba(255,255,255,0.1);
}

body.dark-mode .blog-comment-input-wrapper {
  border-bottom-color: rgba(255,255,255,0.08);
}

body.dark-mode .blog-comments-title {
  color: #ffffff !important;
}

body.dark-mode .comment-textarea,
body.dark-mode .reply-textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

body.dark-mode .comment-textarea:focus,
body.dark-mode .reply-textarea:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,134,11,0.2);
}

body.dark-mode .comment-name-input,
body.dark-mode .reply-name-input {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

body.dark-mode .comment-name-input:focus,
body.dark-mode .reply-name-input:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,134,11,0.2);
}

body.dark-mode .blog-comment-item {
  background: transparent;
}

body.dark-mode .blog-comment-name {
  color: #ffffff !important;
}

body.dark-mode .blog-comment-text {
  color: #e2e8f0 !important;
}

body.dark-mode .comment-action-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

body.dark-mode .comment-replies {
  border-left-color: rgba(255,255,255,0.08);
}

body.dark-mode .blog-no-comments {
  color: #cbd5e0;
}

/* Mobile Optimizations for Share, Like, Comments */
@media (max-width: 575px) {
  .blog-detail-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .blog-share-section {
    width: 100%;
    justify-content: space-between;
  }
  
  .blog-share-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .blog-like-btn {
    width: 100%;
    justify-content: center;
  }
  
  .comment-replies {
    margin-left: 1rem;
    padding-left: 1rem;
  }
  
  .reply-form-wrapper {
    margin-left: 1rem;
  }
}

/* Empty State */
.blog-empty-state {
  padding: 6rem 2rem;
  text-align: center;
}
.blog-empty-state .empty-icon {
  opacity: 0.6;
  margin-bottom: 1.5rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184,134,11,0.05) 0%, rgba(184,134,11,0.02) 100%);
  margin: 0 auto 2rem;
  transition: all 0.3s ease;
}
.blog-empty-state:hover .empty-icon {
  transform: scale(1.1);
  opacity: 0.8;
  background: linear-gradient(135deg, rgba(184,134,11,0.1) 0%, rgba(184,134,11,0.05) 100%);
}
.blog-empty-state .empty-icon svg {
  width: 64px;
  height: 64px;
}

/* Dark Mode for Blog */
body.dark-mode #blog-list-view {
  background: linear-gradient(135deg, rgba(11,14,20,0.5) 0%, rgba(15,19,27,1) 100%);
}
body.dark-mode #blog-list-view::before {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.3), transparent);
}
body.dark-mode .blog-hero {
  background: linear-gradient(135deg, rgba(11,14,20,0.98) 0%, rgba(15,19,27,1) 100%);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .blog-hero::before {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.3), transparent);
}
body.dark-mode .blog-hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .blog-hero-subtitle {
  color: #cbd5e0 !important;
}
body.dark-mode .blog-filters-wrapper {
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .blog-filters-label-text {
  color: #cbd5e0 !important;
}
body.dark-mode .blog-card {
  background: linear-gradient(135deg, #11151b 0%, #0f1319 100%);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(184,134,11,0.1);
}
body.dark-mode .blog-card:hover {
  box-shadow: 0 24px 72px rgba(184,134,11,0.2), 0 0 0 1px rgba(184,134,11,0.2);
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode .blog-card-body {
  background: transparent;
}
body.dark-mode .blog-card-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .blog-card-excerpt {
  color: #cbd5e0 !important;
}
body.dark-mode .blog-card-date {
  color: #cbd5e0 !important;
}
body.dark-mode .blog-card.featured {
  background: linear-gradient(135deg, rgba(184,134,11,0.12) 0%, rgba(17,21,27,1) 100%);
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode .blog-card-meta {
  border-top-color: rgba(255,255,255,0.08);
}
body.dark-mode .blog-section-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .blog-section-subtitle {
  color: #cbd5e0 !important;
}
body.dark-mode .blog-section-icon {
  background: linear-gradient(135deg, rgba(184,134,11,0.18) 0%, rgba(184,134,11,0.12) 100%);
  border-color: rgba(184,134,11,0.25);
}
body.dark-mode .blog-detail-hero-image {
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
body.dark-mode .blog-detail-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .blog-detail-meta {
  border-top-color: rgba(255,255,255,0.08);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.dark-mode .blog-detail-date {
  color: #cbd5e0 !important;
}
body.dark-mode .blog-detail-wrapper {
  background: #1a1a1a;
  border-color: #262626;
}

body.dark-mode .blog-detail-content {
  color: #e2e8f0 !important;
  border-bottom-color: #262626;
}

body.dark-mode .blog-detail-title {
  border-bottom-color: #262626;
  color: #e2e8f0 !important;
}

body.dark-mode .blog-detail-meta {
  border-bottom-color: #262626;
}

body.dark-mode .blog-detail-actions {
  border-bottom-color: #262626;
}

body.dark-mode .blog-comments-header {
  border-bottom-color: #262626;
}

body.dark-mode .blog-comment-input-wrapper {
  border-top-color: #262626;
}

body.dark-mode .blog-comments-list {
  border-color: #262626;
}

body.dark-mode .comment-textarea,
body.dark-mode .reply-textarea {
  color: #e2e8f0;
}

body.dark-mode .comment-textarea::placeholder,
body.dark-mode .reply-textarea::placeholder {
  color: #8e8e8e;
}
body.dark-mode .blog-detail-content h2,
body.dark-mode .blog-detail-content h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .blog-detail-content code {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
body.dark-mode .blog-detail-content pre {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
body.dark-mode .blog-detail-content blockquote {
  background: linear-gradient(135deg, rgba(184,134,11,0.15) 0%, rgba(184,134,11,0.08) 100%);
  border-left-color: var(--gold);
  color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(184,134,11,0.15);
}
body.dark-mode .blog-detail-content code {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 100%);
  border-color: rgba(255,255,255,0.15);
  color: #f687b3;
}
body.dark-mode .blog-detail-content pre {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.06) 100%);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
body.dark-mode .blog-detail-content img {
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(184,134,11,0.15);
}
body.dark-mode .blog-detail-content img:hover {
  box-shadow: 0 16px 40px rgba(184,134,11,0.25), 0 0 0 1px rgba(184,134,11,0.2);
}
body.dark-mode .back-link {
  background: rgba(184,134,11,0.1);
  border-color: rgba(184,134,11,0.2);
  color: var(--gold);
}
body.dark-mode .back-link:hover {
  background: rgba(184,134,11,0.15);
  border-color: rgba(184,134,11,0.3);
}
body.dark-mode .blog-section-header {
  border-bottom-color: rgba(255,255,255,0.1);
}
body.dark-mode .blog-section-header::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
body.dark-mode .blog-filters-wrapper {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.05), transparent);
  border-bottom-color: rgba(255,255,255,0.1);
}
body.dark-mode .blog-hero::after {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.4), transparent);
}
body.dark-mode .blog-detail-meta {
  background: linear-gradient(90deg, transparent, rgba(184,134,11,0.05), transparent);
  border-top-color: rgba(255,255,255,0.1);
  border-bottom-color: rgba(255,255,255,0.1);
}

/* Mobile Optimizations */
@media (max-width: 575px) {
  .blog-hero-title {
    font-size: 2rem;
  }
  .blog-hero-subtitle {
    font-size: 1rem;
  }
  .blog-filters-wrapper {
    padding: 1rem 0;
  }
  .blog-filters-group {
    gap: 0.375rem;
  }
  .blog-grid {
    gap: 1.5rem;
  }
  .blog-card img {
    height: 200px;
  }
  .blog-card-body {
    padding: 1.5rem;
  }
  .blog-card-title {
    font-size: 1.25rem;
  }
  .blog-detail-hero-image {
    height: 280px;
  }
  .blog-detail-title {
    font-size: 1.75rem;
  }
  .blog-detail-content {
    font-size: 1rem;
  }
  .section-subtitle {
    font-size: 1.25rem;
  }
}

/* modal project detail - Legacy support */
#project-modal-content .proj-hero {
  width:100%; height:420px; object-fit:cover; border-radius:10px; display:block; margin-bottom:16px;
}
#project-modal-content .proj-tags .badge { margin-right:.4rem; margin-bottom:.3rem; }

/* stagger reveal helper */
.project-tile.will-reveal { opacity:0; transform: translateY(18px); }
.project-tile.revealed { opacity:1; transform: translateY(0); transition: transform .6s cubic-bezier(.2,.9,.3,1), opacity .55s ease; }

/* ---------- CLIENTS ---------- */
.client-logo{max-height:72px; filter:grayscale(1) opacity(.85); transition:transform .22s, filter .22s, opacity .22s;}
.client-logo:hover{filter:none; transform:translateY(-6px); opacity:1;}

/* Clients & Partners */
/* Clients & Partners Section */
#clients {
  padding-top: 80px;
  padding-bottom: 80px;
  background: #ffffff;
}
body:not(.dark-mode) #clients {
  background: #ffffff;
}
body.dark-mode #clients {
  background: #0a0e1a;
}

.clients-marquee { 
  overflow:hidden; 
  border-radius:16px; 
  background: linear-gradient(90deg, rgba(250,250,250,0.98), rgba(255,255,255,0.95)); 
  padding:20px 12px; 
  box-shadow: 0 12px 32px rgba(12,18,28,0.06);
  border: 1px solid rgba(12,18,28,0.04);
}
body.dark-mode .clients-marquee {
  background: linear-gradient(90deg, rgba(17,21,27,0.95), rgba(15,20,28,0.92));
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.marquee-track { display:flex; gap:32px; align-items:center; white-space:nowrap; will-change:transform; }
.marquee-item { display:inline-flex; align-items:center; justify-content:center; padding:12px; min-width:160px; }
.marquee-item img { max-height:60px; filter:grayscale(.15) opacity(.9); transition: transform .32s, filter .32s; }
.marquee-item:hover img { transform: scale(1.05); filter:grayscale(0) opacity(1); }

/* Clients grid items */
.client-col { display:flex; align-items:center; justify-content:center; }
.client-tile {
  width: 100%;
  max-width: 280px;
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
  cursor:pointer;
}

.client-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.94));
  border: 1px solid rgba(12,18,28,0.06);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 24px rgba(12,18,28,0.05);
  transition: all .35s cubic-bezier(.2,.9,.3,1);
  overflow: hidden;
  min-height: 140px;
}
body.dark-mode .client-card {
  background: linear-gradient(180deg, rgba(17,21,27,0.95), rgba(15,20,28,0.92));
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.client-logo {
  width: 140px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(.2) contrast(.95);
  transition: all .35s cubic-bezier(.2,.9,.3,1);
  position: relative;
  z-index: 2;
}

.client-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(184,134,11,0.95), rgba(184,134,11,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: scale(0.9);
  transition: all .35s cubic-bezier(.2,.9,.3,1);
  border-radius: 16px;
  z-index: 3;
  padding: 20px;
}

.client-overlay svg {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.client-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.client-tile:hover .client-card {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(12,18,28,0.12);
  border-color: rgba(184,134,11,0.2);
}
body.dark-mode .client-tile:hover .client-card {
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.client-tile:hover .client-logo {
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}

.client-tile:hover .client-overlay {
  opacity: 1;
  transform: scale(1);
}

/* mobile carousel */
#clients-carousel .carousel-item { 
  display:flex; 
  gap:16px; 
  justify-content:center; 
  align-items:center;
  padding: 20px 0;
}

/* modal content */
#partnerModal .modal-content {
  background: #ffffff;
  border-radius: 20px;
}
body.dark-mode #partnerModal .modal-content {
  background: #11151b;
  border: 1px solid rgba(255,255,255,0.1);
}

#partner-modal-content .partner-logo { 
  max-height: 100px; 
  display:block; 
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 8px 16px rgba(12,18,28,0.1));
}
body.dark-mode #partner-modal-content .partner-logo {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

#partner-modal-content h4 {
  color: var(--text);
  margin-bottom: 16px;
}

#partner-modal-content .partner-desc { 
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* reveal animation */
.client-tile.revealed { 
  opacity:1; 
  transform:none; 
  transition: transform .6s cubic-bezier(.2,.9,.3,1), opacity .5s ease; 
}
.client-tile { 
  opacity:0; 
  transform: translateY(20px) scale(.98); 
}

/* responsive sizes */
@media (max-width:992px) {
  .client-card {
    min-height: 120px;
    padding: 20px 16px;
  }
  .client-logo { 
    width: 120px; 
    height: 70px; 
  }
  .marquee-item img { max-height:50px; }
}
@media (max-width:576px) {
  #clients {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .client-card {
    min-height: 110px;
    padding: 18px 14px;
  }
  .client-logo { 
    width: 100px; 
    height: 60px; 
  }
  .client-overlay {
    padding: 16px;
    gap: 8px;
  }
  .client-name {
    font-size: 0.85rem;
  }
  .marquee-item img { 
    max-height:42px; 
  }
}

/* ---------- SKILLS ---------- */
.skills-heading{font-weight:700; display:inline-block; margin-bottom:.5rem;}
/* Enhanced Skills Section */
#skills-column {
  max-width: 800px;
  margin: 0 auto;
}
.skills-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}
.skill-entry {
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(184,134,11,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.skill-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}
.skill-entry:hover::before {
  transform: scaleY(1);
}
.skill-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.15), 0 0 0 1px rgba(184,134,11,0.1);
  border-color: rgba(184,134,11,0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fffef9 100%);
}
.skill-entry.visible {
  opacity: 1;
  transform: translateY(0);
}
.skill-entry .d-flex {
  margin-bottom: 0.75rem;
}
.skill-entry .fw-bold,
.skill-entry small.fw-semibold,
.skill-entry span.fw-bold,
.skill-entry .skill-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #050505 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.skill-entry .percent-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold) !important;
  text-shadow: 0 1px 2px rgba(184,134,11,0.2);
}
.skill-entry .percent-value.text-muted {
  color: var(--gold) !important;
}
body.dark-mode .skill-entry .fw-bold,
body.dark-mode .skill-entry small.fw-semibold,
body.dark-mode .skill-entry span.fw-bold,
body.dark-mode .skill-entry .skill-name {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
body.dark-mode .skill-entry .percent-value {
  color: #f4c430 !important;
  text-shadow: 0 1px 3px rgba(184,134,11,0.4);
}
body.dark-mode .skill-entry .percent-value.text-muted {
  color: #f4c430 !important;
}
body.dark-mode .skills-heading {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.skill-progress {
  height: 14px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.skill-progress .progress-bar {
  width: 0;
  height: 100%;
  transition: width 0.9s cubic-bezier(.2,.9,.3,1);
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 4px 12px rgba(184,134,11,0.25);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.skill-progress .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- CONTACT ---------- */
#contact-form .form-control{border-radius:8px;}
.card{border-radius:12px;}

/* Contact: layout, floating labels, micro interactions */
.contact-wrap { gap: 28px; }
.contact-card {
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12,18,30,0.08);
  border: 1px solid rgba(0,0,0,0.03);
  transition: box-shadow 0.3s ease;
}
.contact-card:hover {
  box-shadow: 0 28px 72px rgba(12,18,30,0.12);
}
.contact-info {
  background: linear-gradient(180deg,#fff,#fcfcfd);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(12,18,30,0.06);
  border: 1px solid rgba(0,0,0,0.03);
}

/* Floating label fields - Enhanced (overrides for contact form) */
.form-field.textarea .form-input { 
  min-height: 140px; 
  padding-top: 1.5rem; 
}
.form-input:placeholder-shown + .form-label {
  transform: none;
}
.form-input:not(:placeholder-shown) + .form-label,
.form-input:focus + .form-label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--gold);
}
.form-label {
  position: absolute; 
  left: 3rem; 
  top: 1.125rem; 
  pointer-events: none;
  color: var(--muted); 
  font-size: 1rem; 
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transform-origin: left top;
}
/* Form label animation - updated for new structure */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input:not(:focus):not([value=""]) + .form-label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--gold);
}

/* error styling */
.form-error { 
  color:#dc3545; 
  font-size:.88rem; 
  margin-top:.28rem; 
  min-height:18px; 
  font-weight: 500;
  display: block;
}
.form-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}
.form-input:valid:not(:placeholder-shown):not(:focus) {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40,167,69,0.1);
}

/* submit button animations */
.btn-submit { position: relative; overflow: hidden; padding-left:48px; display:inline-flex; align-items:center; gap:10px; }
.btn-icon { position:absolute; left:14px; }
.btn-check {
  position:absolute; right:12px; width:24px; height:24px; border-radius:50%;
  background: rgba(255,255,255,0.14); display:inline-block; transform: scale(0); transition: transform .36s ease, background .36s;
}
.btn-submit.success .btn-check { transform: scale(1); background: rgba(75,181,67,0.12); }
.btn-submit.success .btn-text { opacity:0.98; }

/* small responsive */
@media (max-width: 990px) {
  .contact-wrap { grid-template-columns: 1fr !important; }
  .contact-info { order: 2; margin-top: 2rem; }
}

/* Alert styles for contact form */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.alert-success {
  background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.05));
  color: #155724;
  border-left: 4px solid #28a745;
}
.alert-danger {
  background: linear-gradient(135deg, rgba(220,53,69,0.1), rgba(220,53,69,0.05));
  color: #721c24;
  border-left: 4px solid #dc3545;
}
.alert-warning {
  background: linear-gradient(135deg, rgba(255,193,7,0.1), rgba(255,193,7,0.05));
  color: #856404;
  border-left: 4px solid #ffc107;
}

/* ---------- FOOTER ---------- */
footer{
  background: linear-gradient(180deg, #0b0b0d, #050505);
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer small {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Mobile-first responsive design */
/* Base mobile styles (default) */
.container { 
  padding-left: 1rem; 
  padding-right: 1rem; 
  max-width: 100%;
}
section { 
  padding-top: 3rem; 
  padding-bottom: 3rem; 
}
.hero-inner { 
  padding-top: 2rem; 
  padding-bottom: 2rem; 
  text-align: center;
}
.hero h1 { 
  font-size: 2rem; 
}
.hero-decor { 
  display: none; /* Hide on mobile */
}
.btn-lg { 
  padding: 1rem 2.25rem; 
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 56px;
  border-radius: 12px;
}
.d-flex.gap-3 {
  flex-direction: column;
  gap: 0.75rem !important;
  align-items: stretch;
  width: 100%;
}
.d-flex.gap-3 .btn {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.d-flex.gap-3.align-items-center {
  align-items: center;
}
.service-card, .project-tile { 
  margin-bottom: 1.5rem; 
}
.form-input { 
  font-size: 16px; /* Prevents zoom on iOS */
  min-height: 44px; /* Better touch target */
}
/* This is now handled in the mobile nav collapse section above */
/* Tablet and up */
@media (min-width: 576px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .d-flex.gap-3 {
    flex-direction: row;
    gap: 1rem !important;
    justify-content: center;
    width: auto;
  }
  .d-flex.gap-3 .btn {
    width: auto;
    min-width: 160px;
    max-width: none;
  }
  .d-flex.gap-3.justify-content-lg-start {
    justify-content: flex-start;
  }
}
@media (min-width: 768px) {
  .hero-inner { 
    padding-top: 3.5rem; 
    padding-bottom: 2.5rem;
    text-align: left;
  }
  .hero h1 { 
    font-size: 2.5rem; 
  }
  .hero-decor { 
    display: block;
    width: 120px; 
    height: 120px; 
  }
  .btn-lg { 
    padding: 0.875rem 1.75rem; 
    font-size: 1.05rem;
    width: auto;
    max-width: none;
  }
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
@media (min-width: 992px) {
  .hero-inner { 
    padding-top: 1rem; 
    padding-bottom: 4rem; 
  }
  .hero h1 { 
    font-size: 3.5rem; 
  }
  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* subtle gold accent for headings and badges elsewhere */
h2, .section-title-animated { position:relative; }
h2::after, .section-title-animated::after {
  content:'';
  display:block;
  width:48px;
  height:4px;
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
  border-radius:2px;
  margin-top:.6rem;
}

/* highlight links or key labels with gold */
.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border-radius:8px;
  padding:.35rem .6rem;
  font-weight:600;
}

/* rounded square toggle button */
.rounded-square { 
  width:44px; 
  height:36px; 
  padding:6px 8px; 
  border-radius:8px;
  transition: all 0.2s ease;
}
.rounded-square:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}
.rounded-square:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* HERO left layout - Mobile First */
.hero-left { 
  background: #fff; 
  color: #111; 
  padding-top: 5.5rem; 
  padding-bottom: 2.5rem;
  min-height: auto;
}
.hero-left .row {
  margin-left: 0;
  margin-right: 0;
}
.hero-left .row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.hero-left .hero-title {
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.hero-left .hero-sub { 
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.hero-role {
  font-weight: 600;
  color: var(--text);
}
.hero-id {
  color: var(--muted);
}
.hero-location {
  text-align: center;
  margin-bottom: 0.5rem;
}
.hero-location small {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .hero-left .hero-sub {
    text-align: left;
    justify-content: flex-start;
  }
  .hero-location {
    text-align: left;
  }
}

/* Featured Posts in Hero Section - Mobile First */
.hero-featured-posts {
  margin-top: 2rem;
  width: 100%;
  display: block;
}
.hero-featured-posts h5 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(184,134,11,0.2);
  text-align: center;
  font-weight: 800;
}
.hero-featured-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.hero-featured-item {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 4px 12px rgba(12,18,30,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem;
  -webkit-tap-highlight-color: rgba(184,134,11,0.1);
  width: 100%;
}
.hero-featured-item:active {
  transform: scale(0.98);
}
.hero-featured-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12,18,30,0.1);
}
.hero-featured-image {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f0f0f0;
  flex-shrink: 0;
}
.hero-featured-content {
  flex: 1;
  min-width: 0;
}
.hero-featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0b0b;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-featured-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-featured-excerpt {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero-featured-meta small {
  font-size: 0.7rem;
}
.hero-featured-meta .badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
}

/* Tablet and up */
@media (min-width: 576px) {
  .hero-featured-posts {
    margin-top: 2rem;
  }
  .hero-featured-posts h5 {
    font-size: 1.1rem;
    text-align: left;
  }
  .hero-featured-item {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
    gap: 0.75rem;
  }
  .hero-featured-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    flex-shrink: 0;
  }
  .hero-featured-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(12,18,30,0.12);
    border-color: rgba(184,134,11,0.2);
  }
}
@media (min-width: 992px) {
  .hero-featured-posts {
    margin-top: 0;
  }
}
.hero-left .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
.hero-inner {
  text-align: center;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
}
@media (min-width: 576px) {
  .hero-left {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }
  .hero-left .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
}
@media (min-width: 768px) {
  .hero-left {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
  .hero-inner {
    text-align: left;
    max-width: 90%;
  }
  .hero-left .hero-title {
    text-align: left;
  }
  .hero-left .hero-sub {
    text-align: left;
  }
}
@media (min-width: 992px) {
  .hero-left {
    padding-top: 1rem;
    padding-bottom: 70px;
  }
.hero-left .hero-title {
  font-size: 72px;
  line-height: 0.95;
    margin-bottom: 0.5rem;
  }
  .hero-left .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }
  .hero-inner {
    max-width: 100%;
  }
}

/* Buttons - Mobile First with better touch targets */
.btn {
  min-height: 44px; /* Better touch target for mobile */
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(.2,.9,.3,1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  touch-action: manipulation; /* Better mobile tap */
}
.btn-lg {
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn-primary-custom {
  background: #070707; 
  color: #fff; 
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius:10px;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.btn-outline-dark {
  border: 2px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  color: #111; 
  border-radius: 12px;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(.2,.9,.3,1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.btn-outline-dark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}
.btn-outline-dark:hover::before {
  width: 300px;
  height: 300px;
}
.btn-outline-dark:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}
.btn-outline-dark:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  .btn-lg {
    min-height: 52px;
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
  }
}

/* Social icon circles - Mobile optimized */
.social-btn {
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  width: 44px; 
  height: 44px; 
  min-width: 44px;
  min-height: 44px;
  border-radius:50%;
  border: 2px solid rgba(0,0,0,0.12); 
  color: #111; 
  text-decoration: none;
  font-weight: 600; 
  box-shadow: none; 
  background: transparent;
  transition: all .25s cubic-bezier(.2,.9,.3,1);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}
.social-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.social-btn:hover,
.social-btn:active { 
  transform: translateY(-4px) scale(1.08); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(184,134,11,0.1), rgba(184,134,11,0.05));
  color: var(--gold);
}
.social-btn:hover svg,
.social-btn:active svg {
  transform: scale(1.1);
}
.social-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(184,134,11,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}
.social-btn:hover::before {
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  .social-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .social-btn svg {
    width: 20px;
    height: 20px;
  }
  .social-btn:hover {
    transform: translateY(-6px) scale(1.05);
  }
}

/* Illustration */
.hero-illustration { max-width:360px; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.08)); }

/* responsive scales */
/* Hero illustration visibility */
.hero-illustration {
  max-width: 100%;
  height: auto;
}
@media (max-width: 991px) {
  .hero-illustration { 
    max-width: 280px; 
    margin: 2rem auto 0;
  }
  .contact-wrap { 
    grid-template-columns: 1fr !important; 
  }
}
@media (max-width: 575px) {
  .hero-left .hero-title { 
    font-size: 2rem; 
    line-height: 1.15; 
  }
  .hero-quote { 
    font-size: 0.9rem; 
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: block;
    text-align: left;
  }
  .profile-img { 
    width: 160px; 
    height: 160px; 
  }
  .timeline { 
    font-size: 0.9rem; 
    margin-left: 0.5rem;
  }
  .testimonial-card { 
    padding: 1.25rem; 
  }
  .testimonial-quote { 
    font-size: 0.95rem; 
    padding-left: 1rem; 
  }
  .testimonial-avatar { 
    width: 56px; 
    height: 56px; 
  }
}


.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.995);
  transition: opacity 700ms cubic-bezier(.2,.9,.3,1), transform 700ms cubic-bezier(.2,.9,.3,1);
  will-change: opacity, transform;
  visibility: hidden;
}


.reveal.reveal-up { transform: translateY(22px); }
.reveal.reveal-left { transform: translateX(-28px); }
.reveal.reveal-right { transform: translateX(28px); }

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.reveal-stagger > * { opacity: 0; transform: translateY(10px); transition: all 620ms cubic-bezier(.2,.9,.3,1); }
.reveal-stagger.in-view > * { opacity:1; transform:none; }


.hero { background-attachment: fixed;}
.hero-illustration {
  transition: transform 650ms cubic-bezier(.2,.9,.3,1), filter 450ms;
  transform-origin: center;
  will-change: transform;
}
.hero-illustration.float {
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms;
  will-change: transform;
  perspective: 1000px;
}
.tilt:hover { box-shadow: 0 26px 60px rgba(0,0,0,0.12); }


.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05), rgba(255,255,255,0.12));
  transform: rotate(25deg);
  transition: transform 650ms ease, opacity 300ms;
  opacity: 0;
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(220%) rotate(25deg); opacity: 1; }
.btn-gold:focus {
  outline: 3px solid rgba(184,134,11,0.5);
  outline-offset: 2px;
}

.skill-entry.visible {
  opacity: 1;
  transform: none;
}

.typed-cursor {
  display:inline-block;
  margin-left:8px;
  color:var(--primary);
  font-weight:700;
  animation: blink 1s steps(2,start) infinite;
}
@keyframes blink { 50% { opacity:0 } }


.float-wrap {
  display:inline-block;
  will-change: transform;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}


.parallax {
  transition: transform 280ms cubic-bezier(.2,.9,.3,1);
  will-change: transform;
  display:block;
  width:100%;
  border-radius:12px;
}

.hero-illustration { filter: drop-shadow(0 14px 28px rgba(0,0,0,0.08)); }


.hero-title { font-size: 72px; line-height:0.95; font-weight:800; letter-spacing:-0.02em; }

@media (max-width:992px) {
  .hero-title { font-size:44px; }
  .float-wrap { max-width:300px; }
}
@media (max-width:576px) {
  .hero-title { font-size:34px; }
}


.about-photo {
    display:block;
    width: 260px;
    height: 260px;
    border-radius:50%;
    object-fit:cover;
    margin:0 auto;
    will-change: transform, filter;
    transition: transform 300ms cubic-bezier(.2,.9,.3,1), box-shadow 300ms;
    box-shadow: 0 18px 48px rgba(10,10,20,0.08);
}

@keyframes aboutFloat {
    0% { transform: translateY(0px) }
    50% { transform: translateY(-10px) }
    100% { transform: translateY(0px) }
}
.about-photo.float {
    animation: aboutFloat 5.6s ease-in-out infinite;
}

.about-photo.visible {
    box-shadow: 0 26px 72px rgba(10,10,20,0.12), 0 0 0 6px rgba(184,134,11,0.06);
}


.about-text .text-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: transform .56s cubic-bezier(.2,.9,.3,1), opacity .56s ease;
    will-change: transform, opacity;
}
.about-text .text-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


.about-text .text-reveal:nth-child(1) { transition-delay: 0s; }
.about-text .text-reveal:nth-child(2) { transition-delay: .08s; }
.about-text .text-reveal:nth-child(3) { transition-delay: .16s; }
.about-text .text-reveal:nth-child(4) { transition-delay: .24s; }
.about-text .text-reveal:nth-child(5) { transition-delay: .32s; }

@media (max-width: 992px) {
    .about-photo { width: 200px; height: 200px; }
}
@media (max-width: 576px) {
    .about-photo { width: 140px; height: 140px; }
}


.hero-inner { max-width: 820px; margin-left: 0; }

/* quote styling - Mobile optimized */
.hero-quote {
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--gold);
  color: rgba(5,5,5,0.75);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(184,134,11,0.04), transparent);
  display: block;
  border-radius: 8px;
  transform-origin: left center;
  opacity: 0;
  transform: translateY(10px) scale(.995);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 4px 12px rgba(10,10,20,0.04);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  line-height: 1.6;
  text-align: left;
  max-width: 100%;
}
@media (min-width: 576px) {
  .hero-quote {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    margin: 1rem 0;
  }
}
@media (min-width: 768px) {
  .hero-quote {
    padding-left: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
  }
}

/* reveal when visible (IntersectionObserver already used elsewhere) */
.hero-quote.visible { opacity: 1; transform: translateY(0) scale(1); }

.hero-inner { transition: transform .6s cubic-bezier(.2,.9,.3,1), opacity .6s; }
.hero-inner.visible { opacity: 1; transform: translateY(0); }

.typed-cursor { color: var(--gold); }


@media (max-width: 992px) {
  .hero-inner { max-width: 720px; margin: 0 auto; text-align: left; }
  .hero-quote { display:block; max-width:560px; }
}

#stack {
  padding-top: 36px;
  padding-bottom: 36px;
  background: transparent;
}
body:not(.dark-mode) #stack {
  background: #ffffff;
}
#stack .section-title-animated { margin-bottom: 8px; }


#stack-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  grid-auto-rows: 110px;
  gap: 16px;
  grid-auto-flow: dense;
  padding: 8px;
}

.stack-item {
  --glass-bg: rgba(255,255,255,0.85);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.94));
  border: 1px solid rgba(12,18,28,0.04);
  box-shadow: 0 12px 30px rgba(12,18,28,0.06);
  transition: transform .36s cubic-bezier(.2,.9,.3,1), box-shadow .32s, filter .28s;
  cursor: pointer;
  will-change: transform, box-shadow;
  outline: none;
}

.stack-item:focus {
  box-shadow: 0 18px 48px rgba(12,18,28,0.10), 0 0 0 4px rgba(184,134,11,0.12);
  transform: translateY(-6px) scale(1.02);
}


.stack-item.size-sm { grid-column: span 1; grid-row: span 1; }
.stack-item.size-md { grid-column: span 2; grid-row: span 1; }
.stack-item.size-lg { grid-column: span 2; grid-row: span 2; }

.stack-item img {
  max-width: 62%;
  max-height: 62%;
  display:block;
  filter: grayscale(.02) contrast(.98);
  transition: transform .28s ease, filter .28s ease;
  border-radius: 50%;
}

.stack-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px) saturate(120%);
  color: var(--muted);
  font-size: .82rem;
  padding: 6px 8px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(12,18,28,0.05);
  transition: opacity .22s ease, transform .22s ease;
  opacity: 0;
  pointer-events: none;
}

.stack-item.visible { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
.stack-item:hover, .stack-item:focus {
  transform: translateY(-10px) rotate(0deg) scale(1.06);
  box-shadow: 0 36px 90px rgba(12,18,28,0.12);
  z-index: 6;
}
.stack-item:hover img { transform: translateY(-4px) scale(1.04); filter: grayscale(0); }
.stack-item:hover .stack-label, .stack-item:focus .stack-label { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

.stack-item.float { animation: stackFloat 6.8s ease-in-out infinite; }
@keyframes stackFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

.stack-item[data-rot] { 
  /* rotation set by JS */
  transform: rotate(var(--rot, 0deg));
}

.stack-item.clicked { transform: scale(.985); transition: transform .12s ease; }

@media (max-width: 992px) {
  #stack-grid { grid-auto-rows: 92px; gap: 12px; }
  .stack-item.size-md { grid-column: span 2; grid-row: span 1; }
  .stack-item.size-lg { grid-column: span 2; grid-row: span 2; }
  .stack-item img { max-width: 58%; }
}
@media (max-width: 576px) {
  #stack-grid { 
    position: relative;
    display: block;
    min-height: 400px;
    padding: 20px;
    width: 100%;
  }
  .stack-item {
    position: absolute !important;
    grid-column: unset !important;
    grid-row: unset !important;
    margin: 0 !important;
    z-index: 1;
  }
  .stack-item.size-sm { 
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
  }
  .stack-item.size-md { 
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
    min-height: 90px;
  }
  .stack-item.size-lg { 
    width: 110px !important;
    height: 110px !important;
    min-width: 110px;
    min-height: 110px;
  }
  .stack-item:hover, .stack-item:focus {
    z-index: 10 !important;
  }
  .stack-item img { max-width: 52%; }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stack-item, .stack-item.float { animation: none !important; transition: none !important; transform: none !important; }
  #stack-grid { transition: none !important; }
}

#stack-grid:has(.stack-item:only-child), #stack-grid:has(.stack-item:nth-child(2):only-child) {
  justify-items: center;
}


#testimonialsCarousel,
#testimonials { overflow: visible; }

#testimonials .testimonial-card {
    opacity: 0;
    transform: translateY(18px) scale(.998);
    transition: transform .62s cubic-bezier(.2,.9,.3,1), opacity .5s ease;
    will-change: transform, opacity;
}

#testimonialsCarousel.in-view .testimonial-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#testimonials .testimonial-card.visible { will-change: transform, opacity; }


/* Carousel fade animation (legacy - kept for compatibility) */
#testimonialsCarousel.carousel-fade .carousel-item {
    transition: opacity .55s ease;
}
#testimonialsCarousel.carousel-fade .carousel-item.active {
    opacity: 1;
}
#testimonialsCarousel.carousel-fade .carousel-item { opacity: 0; }

/* Carousel slide animation - right to left (default Bootstrap behavior) */
#testimonialsCarousel:not(.carousel-fade) .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Ensure smooth sliding animation from right to left */
#testimonialsCarousel .carousel-item.active {
    display: block;
}

#testimonialsCarousel .carousel-item-next:not(.carousel-item-start),
#testimonialsCarousel .active.carousel-item-end {
    transform: translateX(100%);
}

#testimonialsCarousel .carousel-item-prev:not(.carousel-item-end),
#testimonialsCarousel .active.carousel-item-start {
    transform: translateX(-100%);
}

#testimonialsCarousel .carousel-item-next,
#testimonialsCarousel .carousel-item-prev,
#testimonialsCarousel .carousel-item.active {
    transform: translateX(0);
}

/* Legacy testimonial styles removed - using enhanced styles above */

/* Loading spinner for buttons */
.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

