/* Root Variables */
:root, [data-theme="light"] {
    color-scheme: light;
    /* Primary Colors */
    --primary-color: #2D3E50;      /* Deep blue-gray */
    --primary-light: #34495E;      /* Lighter blue-gray */
    --primary-dark: #1A252F;       /* Darker blue-gray */
   
    /* Secondary Colors */
    --secondary-color: #00BCD4;    /* Cyan */
    --secondary-light: #26C6DA;    /* Light cyan */
    --secondary-dark: #00ACC1;     /* Dark cyan */
   
    /* Accent Colors */
    --accent-color: #E74C3C;       /* Coral red */
    --accent-light: #FF6B6B;       /* Light coral */
    --accent-dark: #C0392B;        /* Dark coral */
   
    /* Background Colors */
    --bg-gradient-start: #F4F7F6;  /* Light gray */
    --bg-gradient-end: #D9E4E8;    /* Light blue-gray */
    --bg-card: #FFFFFF;
    --surface-0: #ffffff;          /* base surfaces */
    --surface-1: #f8fafc;
    --surface-2: #eef2f6;
   
    /* Text Colors */
    --text-primary: #0b1220;
    --text-secondary: #445162;
    --text-muted: #78879b;
   
    /* Border Colors */
    --border-color: rgba(0, 0, 0, 0.1);
   
    /* Shadow Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Container */
    --container-max-width: 1600px; /* Wider to reduce side empty space */
    --container-padding: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
    color-scheme: dark;
    --primary-color: #0e1b28;
    --primary-light: #13293d;
    --primary-dark: #0a0f14;
    --secondary-color: #00BCD4;
    --secondary-light: #26C6DA;
    --secondary-dark: #0097a7;
    --accent-color: #FF6B6B;
    --accent-light: #ff8585;
    --accent-dark: #E74C3C;
    --bg-gradient-start: #0a0e13;
    --bg-gradient-end: #0f141a;
    --bg-card: #0f141a;
    --surface-0: #0b0f14;
    --surface-1: #0f141a;
    --surface-2: #111821;
    --text-primary: #e6edf3;
    --text-secondary: #a9b4bf;
    --text-muted: #8c98a5;
    --border-color: rgba(255, 255, 255, 0.08);
}

/* Layout & Grid */
[data-id="site-container"] {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

.site-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

.site-section {
    padding: var(--spacing-lg) 0;
}

.row {
    --bs-gutter-x: var(--spacing-md);
    --bs-gutter-y: var(--spacing-md);
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Main content area - ensures proper flex behavior */
#main {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.site-container {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.125rem, 1.2rem + 2.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 0.9rem + 1vw, 1.5rem); }

/* Cards & Containers */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    /* Disable lift/raise animation */
    transition: box-shadow var(--transition-base);
}

.card:hover {
    /* No vertical translate to avoid distracting motion */
    transform: none;
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.35);
    color: #f5f7fa;
    backdrop-filter: saturate(140%);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

/* Navigation */
/* Simple site navbar */
.site-navbar {
    background-color: #0d1117; /* deep dark like reference */
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-navbar .container{ min-height: 56px; position: relative; }
.site-brand {
  text-decoration: none;
  gap: 12px;
}
.site-brand__text {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #e6edf3;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.site-brand__sub {
  color: #a9b4bf;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: .05em;
}
.site-brand__logo {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 1px solid #d4af37;
  flex-shrink: 0;
}
.site-brand__logo::before,
.site-brand__logo::after {
  content: '';
  position: absolute;
  background: #d4af37;
}
.site-brand__logo::before {
  width: 1px;
  height: 24px;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
}
.site-brand__logo::after {
  height: 1px;
  width: 24px;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}
.site-menu__link {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e6edf3;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.site-menu__link:hover,
.site-menu__link:focus {
  color: #ffffff;
  border-bottom-color: #d4af37;
}

/* Mobile-friendly navbar */
.site-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: #e6edf3;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition-base);
}
.site-toggle:hover {
  background: rgba(255,255,255,0.08);
}
.site-toggle .bi {
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .site-navbar .container {
    min-height: 56px;
    position: relative;
    padding: 0.75rem 1rem;
  }
  .site-toggle {
    display: inline-flex;
  }
  .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    background: #0b0f14;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    margin: 0;
  }
  .site-menu.is-open {
    display: flex;
  }
  .site-menu__link {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.04em;
  }
  .site-menu__link:hover {
    border-bottom-color: #d4af37;
  }
  .site-menu__link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .site-navbar .container {
    padding: 0.5rem 0.75rem;
  }
  .site-brand__logo {
    width: 32px;
    height: 32px;
  }
  .site-brand__logo::before {
    height: 18px;
    top: 7px;
  }
  .site-brand__logo::after {
    width: 18px;
    left: 7px;
  }
  .site-menu {
    padding: 0.75rem 1rem;
  }
}

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

.fade-in-up {
    /* Disable entry animation globally */
    animation: none !important;
}

/* Admin meta inline rows: keep to 1–2 lines */
.meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}
.meta-inline .meta-item {
    display: inline-flex;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Slug two-step controls */
.slug-controls {
    margin-top: 0.3rem;
    display: flex;
    gap: 0.35rem;
}
.slug-controls .btn {
    /* Thinner, shorter buttons for inline slug controls */
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.05;
}
.slug-controls .btn-ghost {
    border-width: 1px;
    padding: 0.3rem 0.5rem;
}
.slug-controls .btn-brand {
    padding: 0.3rem 0.6rem;
    box-shadow: none;
}


/* Modal Styles */
.modal {
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.8rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(var(--secondary-color-rgb), 0.2);
}

/* Image Styles */
.img-fluid {
    border-radius: 12px;
}

/* ---------------- Home: Sections & Cards --------------- */
.home-hero { position: relative; background: #0f141a; color: #eef2f5; border-bottom: 1px solid rgba(255,255,255,0.06); overflow:hidden; }
.home-hero-title { letter-spacing: -0.5px; }
.home-hero-sub { color: #a9b4bf; }
.home-hero-now { background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); }

.home-hero::before,
.home-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
}
.home-hero::before { right: -120px; top: -120px; background: radial-gradient( circle at 30% 30%, rgba(0,188,212,0.35), transparent 60% ); }
.home-hero::after  { left: -160px; bottom: -160px; background: radial-gradient( circle at 70% 70%, rgba(255,107,107,0.25), transparent 60% ); }

.home-triad { background: #0d1117; color: #e6edf3; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(0,0,0,0.08); }
.home-projects { background: transparent; }
.home-writing { background: #0a0e13; color: #e6edf3; border-top: 1px solid rgba(0,0,0,0.08); }
.home-playground { background: transparent; }

.home-card { background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: none; transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base); }
.home-card .text-secondary { color: var(--text-secondary) !important; }
.home-card:hover { border-color: rgba(0, 188, 212, 0.35); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,0.24); }

.home-writing .badge.bg-secondary-subtle {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color);
}

/* Respect motion settings */
@media (prefers-reduced-motion: reduce) {
  .home-card { transition: none; }
  .home-card:hover { transform: none; }
}

/* ---------------- Admin Layout ---------------- */
.admin-sidebar { width: 260px; background: var(--surface-2); border-right: 1px solid var(--border-color); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .nav-link { color: var(--text-secondary); border-radius: 8px; padding: 0.5rem 0.75rem; }
.admin-sidebar .nav-link:hover { background: var(--surface-1); color: var(--text-primary); }
.admin-topbar { height: 52px; border-bottom: 1px solid var(--border-color); background: var(--surface-1); }
.admin-content { background: transparent; }
.admin-footer { border-top: 1px solid var(--border-color); background: var(--surface-1); }

@media (max-width: 992px) {
  .admin-sidebar { position: fixed; left: -260px; z-index: 1040; }
  body.admin-sidebar-open .admin-sidebar { left: 0; }
}

.img-thumbnail {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Header-specific styles */
[data-id="main-navbar"] {
    background-color: var(--bg-card);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--secondary-color);
}

[data-id="navbar-logo"] {
    height: 40px;
    width: auto;
    border-radius: 8px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

[data-id="navbar-logo"]:hover {
    transform: scale(1.05);
}

[data-id="brand-text"] {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

[data-id="main-nav"] .nav-item {
    margin: 0 0.5rem;
}

[data-id="main-nav"] .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

[data-id="main-nav"] .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

[data-id="main-nav"] .nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.05);
}


/* Animation for menu items */
[data-id="main-nav"] .nav-link {
    position: relative;
}

[data-id="main-nav"] .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

[data-id="main-nav"] .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Style for the navbar toggle button */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Page Info Bar */
[data-id="page-info-bar"] {
    margin-top: 60px;
    padding: 0.25rem 0;
    background: var(--secondary-color);
    box-shadow: none;
    border-bottom: 1px solid var(--secondary-dark);
}

[data-id="page-info-content"] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Alert Styles */
.alert-container {
    margin-bottom: 0.5rem;
}

.alert {
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #fff;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #fff;
}

/* Breadcrumbs Styles */
.custom-breadcrumbs {
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.custom-breadcrumbs li {
    display: inline;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.custom-breadcrumbs li + li:before {
    content: "›";
    padding: 0 0.25rem;
    color: var(--secondary-color);
}

.custom-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* Page Title Styles */
[data-id="page-title-section"] {
    padding: 0.25rem 0;
}

[data-id="page-title"] {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    padding: 0.15rem 0;
    position: relative;
    display: inline-block;
}

[data-id="page-title"]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.2s ease;
}

[data-id="page-title"]:hover::after {
    width: 100%;
}

[data-id="page-subtitle"] {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
    font-weight: 300;
}


[data-id="social-bar"] {
    background: linear-gradient(to right, var(--bg-gradient-end), var(--bg-gradient-start));
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.social-link i {
    font-size: 1rem;
}

.link-label {
    font-size: 0.85rem;
    font-weight: 500;
}


[data-id="site-footer"] {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    margin-top: auto;
    flex-shrink: 0;
}

[data-id="footer-main"] {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.company-desc {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

[data-id="footer-social-links"] a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

[data-id="footer-social-links"] a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

[data-id="footer-bottom"] {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    font-size: 0.9rem;
}

.copyright {
    opacity: 0.8;
}


[data-id="products-section"] {
    background: var(--bg-card);
    padding: 2rem 0;
}

[data-id="products-section"] h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

[data-id^="product-card"] {
    display: block;
    text-decoration: none;
    height: 100%;
    transition: transform 0.3s ease;
}

[data-id^="product-card"]:hover {
    transform: translateY(-5px);
}

[data-id^="product-card-inner"] {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-id^="product-image"] {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-id^="product-card-content"] {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

[data-id^="product-title"] {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

[data-id^="product-description"] {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    [data-id="site-container"] {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    :root {
        --container-padding: 1.5rem;
    }

    .site-section {
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .site-section {
        padding: var(--spacing-sm) 0;
    }

    .btn {
        padding: 0.6rem 1.5rem;
    }
    [data-id="brand-text"] {
        font-size: 1.2rem;
    }
    
    [data-id="navbar-logo"] {
        height: 32px;
    }
    
    [data-id="main-nav"] .nav-item {
        margin: 0.25rem 0;
    }
    
    [data-id="main-nav"] .nav-link {
        padding: 0.5rem;
        text-align: center;
    }
    [data-id="page-info-bar"] {
        padding: 1rem 0;
    }

    [data-id="page-title"] {
        font-size: 2rem;
    }

    [data-id="page-subtitle"] {
        font-size: 1rem;
    }

    .custom-breadcrumbs {
        font-size: 0.8rem;
    }
    .link-label {
        display: none;
    }
    
    .social-link {
        padding: 0.5rem;
    }
    
    .social-link i {
        font-size: 1.2rem;
    }
    [data-id="footer-main"] {
        padding: 2rem 0;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    [data-id="footer-bottom"] {
        text-align: center;
    }
    
    [data-id^="product-image"] {
        height: 180px;
    }
    
    [data-id^="product-card-content"] {
        padding: 1.25rem;
    }
}

/* Featured Project Redesigned */
.featured-project-redesigned {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.featured-project-redesigned:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-project-redesigned .featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-project-redesigned .project-header {
    margin-bottom: 2rem;
}

.featured-project-redesigned .project-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.featured-project-redesigned .tech-stack {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-project-redesigned .tech-badge {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.featured-project-redesigned .project-description .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.featured-project-redesigned .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.featured-project-redesigned .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
}

.featured-project-redesigned .feature-item i {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

.featured-project-redesigned .feature-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.featured-project-redesigned .feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.featured-project-redesigned .project-actions {
    margin-top: 2rem;
}

/* Preview Window Redesigned */
.preview-window-redesigned {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.preview-header {
    background: #EAECEF;
    padding: 0.75rem;
    display: flex;
    align-items: center;
}

.window-dots {
    display: flex;
    gap: 0.5rem;
}

.window-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dots .dot:nth-child(1) { background: #FF5F56; }
.window-dots .dot:nth-child(2) { background: #FFBD2E; }
.window-dots .dot:nth-child(3) { background: #27C93F; }

.window-title-text {
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 auto;
    transform: translateX(-18px); /* To center the title */
}

.preview-body {
    padding: 1rem;
    background: #FAFAFA;
}

.preview-body .preview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* LLM Concepts Section Redesigned */
.llm-concepts-section-redesigned {
    background: var(--bg-gradient-start);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
}

.llm-concepts-section-redesigned .concepts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.llm-concepts-section-redesigned .concepts-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.llm-concepts-section-redesigned .concepts-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.llm-concepts-section-redesigned .concepts-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.concept-card-wrapper {
    perspective: 1000px;
}

.concept-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    will-change: transform;
}

.concept-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.concept-card .card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.concept-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.concept-card .card-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
/* Admin Compose Workspace */
.admin-compose {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: calc(var(--spacing-md)) var(--container-padding) var(--spacing-lg);
}

.compose-header {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(27, 43, 57, 0.08);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    display: grid;
    gap: var(--spacing-sm);
    position: sticky;
    top: 1.5rem;
    z-index: 2;
}

.compose-header__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.compose-header__crumb {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.compose-header__crumb:hover {
    color: var(--secondary-dark);
}

.compose-header__divider {
    opacity: 0.35;
}

.compose-header__crumb.is-current {
    color: var(--text-primary);
}

.compose-header__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--spacing-sm);
    justify-content: space-between;
}

.compose-header__title-group {
    max-width: 640px;
}

.compose-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.compose-header__subtitle {
    margin: 0;
    color: var(--text-secondary);
}

.compose-header__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.compose-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(38, 198, 218, 0.12);
    color: var(--secondary-dark);
}

.compose-status.is-draft {
    background: rgba(33, 37, 41, 0.08);
    color: var(--text-secondary);
}

.compose-status.is-live {
    background: rgba(56, 142, 60, 0.12);
    color: #1b5e20;
}

.compose-header__autosave {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.compose-header__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-brand {
    background: var(--secondary-color);
    color: #0e1a24;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 8px 18px rgba(0, 188, 212, 0.3);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--secondary-dark);
    color: #041019;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 172, 193, 0.35);
}

.btn-brand[disabled] {
    opacity: 0.65;
    box-shadow: none;
    transform: none;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(45, 62, 80, 0.18);
    border-radius: 12px;
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--text-primary);
    border-color: rgba(45, 62, 80, 0.4);
    background: rgba(45, 62, 80, 0.06);
}

.compose-surface {
    margin-top: var(--spacing-md);
}

.compose-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.compose-tabs {
    border: none;
    background: transparent;
    gap: 0.5rem;
}

.compose-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(45, 62, 80, 0.08);
    transition: all var(--transition-base);
}

.compose-tabs .nav-link:hover {
    color: var(--text-primary);
    background: rgba(45, 62, 80, 0.12);
}

.compose-tabs .nav-link.active {
    background: var(--secondary-color);
    color: #041019;
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.compose-tab-content {
    background: transparent;
    border-radius: 20px;
    padding: 0;
}

.compose-pane {
    padding: 0;
}

.compose-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--spacing-md);
    align-items: flex-start;
}

.compose-card {
    background: var(--bg-card);
    border-radius: 20px;
    /* Darker outline for form containers */
    border: 1px solid rgba(27, 43, 57, 0.16);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.compose-card__header {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    border-bottom: 1px solid rgba(27, 43, 57, 0.16);
}

.compose-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.compose-card__subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.compose-card__body {
    padding: var(--spacing-sm);
    display: grid;
    gap: var(--spacing-sm);
}

.compose-card__body--stack {
    gap: var(--spacing-sm);
}

.compose-card__body--list {
    gap: 0.75rem;
}

.compose-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-sm);
}

.compose-field--full {
    grid-column: 1 / -1;
}

.compose-label {
    font-weight: 600;
    color: var(--text-primary);
}

.compose-input {
    border-radius: 14px;
    /* Darker input outline */
    border: 1px solid rgba(45, 62, 80, 0.35);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.compose-input:focus {
    border-color: var(--secondary-dark);
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.35);
    outline: none;
}

.compose-input::placeholder {
    color: rgba(108, 117, 125, 0.75);
}

.compose-input--textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.5;
}

.compose-input--file {
    padding: 0.65rem;
}

.compose-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.compose-helper {
    background: rgba(0, 188, 212, 0.08);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.compose-helper__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--secondary-dark);
}

.compose-helper__content {
    display: grid;
    gap: 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.compose-helper code {
    background: rgba(27, 43, 57, 0.08);
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
    font-size: 0.85rem;
}

.compose-secondary {
    display: grid;
    gap: var(--spacing-sm);
}

.compose-card--secondary {
    box-shadow: none;
}

.compose-meta-block {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(33, 37, 41, 0.05);
}

.compose-meta-block__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.compose-meta-block__value {
    font-weight: 600;
}

.compose-meta-block__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.compose-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.compose-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-secondary);
}

.compose-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.compose-preview {
    border: 1px solid rgba(27, 43, 57, 0.12);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 246, 0.9));
    display: grid;
    gap: 0.4rem;
}

.compose-preview__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.compose-preview__title {
    color: #1a0dab;
    font-size: 1.1rem;
    font-weight: 600;
}

.compose-preview__url {
    color: #006621;
    font-size: 0.9rem;
    word-break: break-all;
}

.compose-preview__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.compose-action-bar {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(27, 43, 57, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    bottom: 1rem;
    z-index: 1;
}

.compose-action-bar__status {
    display: grid;
    gap: 0.2rem;
}

.compose-action-bar__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}

.compose-action-bar__value {
    font-weight: 600;
    font-size: 1rem;
}

.compose-action-bar__actions {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .compose-layout {
        grid-template-columns: 1fr;
    }

    .compose-header {
        position: static;
    }

    .compose-header__meta {
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .admin-compose {
        padding: var(--spacing-sm);
    }

    .compose-header {
        padding: var(--spacing-sm);
    }

    .compose-header__actions {
        justify-content: stretch;
    }

    .compose-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .compose-action-bar__actions {
        width: 100%;
        justify-content: space-between;
    }

    .compose-action-bar__actions .btn-brand,
    .compose-action-bar__actions .btn-ghost {
        flex: 1;
        text-align: center;
    }
}
