/* ============================================
   Latech LLC - Programming Theme
   Light Theme with Dark Black Sections
   Complete Coding Vibe
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #f1f3f5;
    --bg-card: #ffffff;

    /* Dark Black Sections */
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #111111;
    --bg-dark-card: #1a1a1a;

    /* Accent Colors - Teal/Cyan Theme */
    --accent: #F5820A;
    --accent-hover: #0d9488;
    --accent-secondary: #06b6d4;
    --accent-light: #ccfbf1;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-dark: #e5e7eb;
    --text-dark-secondary: #9ca3af;

    /* Code Colors */
    --code-bg: #0d1117;
    --code-text: #FF8C00 ;
    --code-keyword: #ff7b72;
    --code-string: #a5d6ff;
    --code-number: #79c0ff;
    --code-comment: #8b949e;
    --code-function: #d2a8ff;
    --code-var: #79c0ff;
    --code-property: #c9d1d9;
    --code-operator: #ff7b72;
    --code-prompt: #58a6ff;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-dark: #2d2d2d;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Fonts */
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* Account for promo bar + navbar */
    overflow-x: hidden;
    width: 100%;
}

/* Adjust scroll padding when no promo bar */
html:not(:has(.top-promo-bar)) {
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.7;
    overflow-x: hidden;
}
/* Simpler continuous underline sweep */
.line-orange {
  color: #f5820a;
  position: relative;
  display: inline-block;
}

.line-orange::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #f5820a, #f59e0b);
  border-radius: 3px;
  animation: sweepUnderline 3s ease-in-out infinite;
}

@keyframes sweepUnderline {
  0% {
    width: 0%;
    left: 0;
  }
  25% {
    width: 100%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  75% {
    width: 0%;
    left: 100%;
  }
  100% {
    width: 0%;
    left: 100%;
  }
}
/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: var(--shadow-glow);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--accent-light);
    color: var(--accent);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ---------- Top Promo Bar (Shop Ticker) ---------- */
.top-promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(90deg, #020617, #0b1120);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    height: auto;
    min-height: 32px;
}

.top-promo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.top-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    transition: var(--transition);
    white-space: nowrap;
}

.top-promo-pill:hover {
    color: #c4b5fd;
    border-color: rgba(196, 181, 253, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
    padding: 1rem 0;
    transition: var(--transition);
}

/* When no promo bar (not on homepage) */
body:not(:has(.top-promo-bar)) .navbar {
    top: 0;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    transform: translateY(-2px);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.15);
}

.code-bracket {
    color: var(--accent);
    font-weight: 800;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.logo:hover .code-bracket {
    color: #00f5ff;
    text-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
    transform: scale(1.1);
}

.code-slash {
    color: var(--accent-secondary);
    font-weight: 800;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.logo:hover .code-slash {
    color: #a78bfa;
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

.logo-name {
    color: var(--text-primary);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.logo:hover .logo-name {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-code {
    font-family: var(--font-mono);
    color: var(--code-comment);
    font-size: 0.85rem;
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-mono);
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ---------- Hero Section (Terminal Style) ---------- */
.hero-code-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 160px 2rem 4rem;
    /* Increased to account for promo bar */
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-terminal {
    max-width: 900px;
    width: 100%;
    background: var(--bg-dark);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: 3rem;
}

.terminal-header {
    background: var(--bg-dark-secondary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    color: var(--text-dark-secondary);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 2rem;
    font-family: var(--font-mono);
    color: var(--code-text);
}

.code-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-prompt {
    color: var(--code-prompt);
    font-weight: 600;
}

.code-command {
    color: var(--code-text);
}

.code-output {
    margin-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.hero-heading-code {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--code-text);
    margin: 0;
    line-height: 1.3;
}

.hero-sub-code {
    font-size: 1.1rem;
    color: var(--text-dark-secondary);
    margin: 0.5rem 0;
}

.typing-command {
    color: var(--accent-green);
}

.cursor-blink {
    color: var(--accent-green);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-code-primary,
.btn-code-outline {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.btn-code-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-code-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-code-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-code-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-code-symbol {
    font-weight: 700;
}

/* ---------- Section Styles ---------- */
.section {
    padding: 5rem 0;
    position: relative;
}

/* Legal pages (Privacy, Terms) */
.legal-page {
    background: var(--bg-secondary);
}

.legal-page .container {
    max-width: 800px;
}

.legal-page .section-title-code {
    text-align: left;
    margin-bottom: 2.5rem;
}

.legal-page .section-heading-code {
    font-size: 2rem;
}

.legal-block {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.legal-block h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.legal-block p,
.legal-block ul {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-block ul {
    padding-left: 1.2rem;
}

.legal-block a {
    color: var(--accent);
    text-decoration: none;
}

.legal-block a:hover {
    text-decoration: underline;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title-code {
    text-align: center;
    margin-bottom: 4rem;
}

.code-comment {
    font-family: var(--font-mono);
    color: var(--code-comment);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-heading-code {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-dark .section-heading-code {
    color: var(--text-dark);
}

.section-subtitle-code {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-dark .section-subtitle-code {
    color: var(--text-dark-secondary);
}

/* ---------- About Section (Developer Portfolio - Complex Layout) ---------- */
.about-dev-wrapper-complex {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 600px;
    position: relative;
    padding: 3rem 0;
}

.about-code-left,
.about-code-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.about-image-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 2;
}

.about-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.3);
    border: 3px solid var(--accent);
    animation: float 6s ease-in-out infinite;
}

.about-badge {
    position: absolute;
    padding: 0.4rem 0.95rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.9);
    backdrop-filter: blur(6px);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.about-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.about-badge-name {
    top: 16px;
    left: -10px;
    right: auto;
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    border-color: rgba(191, 219, 254, 0.9);
    color: #f9fafb;
}

.about-badge-role {
    top: 16px;
    right: -10px;
    left: auto;
    background: linear-gradient(135deg, #f97316, #fb7185);
    border-color: rgba(254, 215, 170, 0.95);
    color: #111827;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.about-dev-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-dark-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-secondary);
    gap: 1rem;
    font-family: var(--font-mono);
}

.about-image-placeholder i {
    font-size: 4rem;
    color: var(--accent);
}

.about-image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.about-description-text {
    text-align: center;
    max-width: 400px;
}

.about-description-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.about-links-row {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.about-fiverr-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
}

.about-fiverr-label {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    opacity: 0.9;
}

.about-fiverr-name {
    font-weight: 700;
}

.about-fiverr-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #bbf7d0;
}

.about-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.6);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-social-pill i {
    font-size: 0.9rem;
}

.about-social-pill:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Floating Code Snippets */
.floating-code-snippet {
    background: var(--bg-dark-card);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
}

.floating-code-snippet:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
}

.code-snippet-1 {
    animation: float-code-1 8s ease-in-out infinite;
    margin-left: 0;
}

.code-snippet-2 {
    animation: float-code-2 7s ease-in-out infinite;
    margin-left: 2rem;
}

.code-snippet-3 {
    animation: float-code-3 9s ease-in-out infinite;
    margin-right: 0;
}

.code-snippet-4 {
    animation: float-code-4 6s ease-in-out infinite;
    margin-right: 2rem;
}

@keyframes float-code-1 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-15px) translateX(10px);
    }
}

@keyframes float-code-2 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes float-code-3 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
    }
}

@keyframes float-code-4 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(15px) translateX(10px);
    }
}

.code-snippet-header {
    background: var(--bg-dark-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-dark);
}

.code-snippet-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.6);
}

.code-snippet-title {
    font-family: var(--font-mono);
    color: var(--text-dark-secondary);
    font-size: 0.85rem;
}

.code-snippet-body {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
}

.code-snippet-line {
    margin-bottom: 0.4rem;
}

.code-keyword {
    color: var(--code-keyword);
}

.code-var {
    color: var(--code-var);
}

.code-string {
    color: var(--code-string);
}

.code-number {
    color: var(--code-number);
}

.code-comment {
    color: var(--code-comment);
}

.code-function {
    color: var(--code-function);
}

.code-func-name {
    color: var(--code-function);
}

.code-property {
    color: var(--code-property);
}

.code-brace {
    color: var(--code-text);
}

.code-operator {
    color: var(--code-operator);
}

.about-stats-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-code-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-code-card {
    background: var(--bg-dark-secondary);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.stat-code-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.2);
}

.stat-code-line {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    color: var(--accent);
    font-weight: 700;
    font-size: 2rem;
}

.stat-label-code {
    color: var(--text-dark-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ---------- Services Section ---------- */
:root {
  --white:      #ffffff;
  --bg:         #f8f7f5;
  --ink:        #181614;
  --ink-2:      #47433f;
  --ink-3:      #908b86;
  --ink-4:      #c4bfba;
  --orange:     #e8601c;
  --orange-2:   #f07840;
  --orange-pale:#fef3ed;
  --orange-mid: #fbd8c4;
  --rule:       #ebe8e4;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.11);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Outfit', sans-serif;
  --mono:       'Space Mono', monospace;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
}
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
 
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
 
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange-mid); border-radius: 99px; }
 
/* ══════════════════════
   SECTION
══════════════════════ */
#services {
  padding: 6rem 0 8rem;
  background: var(--bg);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
 
/* ══════════════════════
   HEADER — new layout
══════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.75rem;
}
.header-title-block {}
.header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.header-label span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-style: normal;
}
.header-desc {
  max-width: 340px;
  text-align: right;
}
.header-desc p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.75;
}
.header-divider {
  width: 1px;
  height: 60px;
  background: var(--rule);
  flex-shrink: 0;
  align-self: center;
}
 
@media (max-width: 780px) {
  .section-header { flex-direction: column; align-items: flex-start; }
  .header-divider { display: none; }
  .header-desc { text-align: left; max-width: 100%; }
}
 
/* ══════════════════════
   CARDS GRID
══════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services-grid { grid-template-columns: 1fr; } }
 
/* ══════════════════════
   CARD
══════════════════════ */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.1rem 1.9rem 1.8rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  border: 1px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--orange-mid);
}
 
/* top accent bar */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--orange);
  border-radius: 0 0 3px 0;
  transition: width 0.45s var(--ease-out);
}
.service-card:hover::before { width: 100%; }
 
/* ghost number */
.ghost-num {
  position: absolute;
  bottom: -1.5rem; right: 1rem;
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.028;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s;
}
.service-card:hover .ghost-num { opacity: 0.05; }
 
/* card top row */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.card-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}
 
/* icon */
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--orange);
  flex-shrink: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s;
}
.service-card:hover .card-icon {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232,96,28,0.3);
}
 
.card-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  font-style: normal;
}
.card-desc {
  font-size: 0.865rem;
  color: var(--ink-3);
  line-height: 1.75;
  flex: 1;
}
 
/* card footer */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.cta-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color 0.25s;
}
.service-card:hover .cta-label { color: var(--orange); }
.cta-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--ink-4);
  transition: all 0.3s var(--ease);
}
.service-card:hover .cta-arrow {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateX(3px);
}
 
/* ══════════════════════
   FADE-IN
══════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }
 
/* ══════════════════════
   BACKDROP + PANEL
══════════════════════ */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(24, 20, 16, 0.35);
  backdrop-filter: blur(5px);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.backdrop.open { opacity: 1; pointer-events: all; }
 
.article-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(800px, 100vw);
  background: var(--white);
  z-index: 900;
  transform: translateX(102%);
  transition: transform 0.42s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,0.12);
}
.article-panel.open { transform: translateX(0); }
 
/* panel nav */
.panel-nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  flex-shrink: 0;
}
.panel-trail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-4);
  letter-spacing: 0.08em;
}
.panel-trail i { font-size: 0.6rem; }
.panel-trail .current {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0;
}
.panel-close {
  width: 32px; height: 32px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--ink-3);
  transition: all 0.2s;
}
.panel-close:hover {
  background: #fdecea;
  border-color: #f5c1bc;
  color: #c0392b;
}
 
/* scroll area */
.panel-scroll {
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}
.panel-scroll::-webkit-scrollbar { width: 4px; }
.panel-scroll::-webkit-scrollbar-thumb { background: var(--orange-mid); border-radius: 99px; }
 
/* ══════════════════════
   ARTICLE STYLES
══════════════════════ */
.article-wrap {
  padding: 3.5rem 3rem 5rem;
  max-width: 720px;
}
@media (max-width: 600px) { .article-wrap { padding: 2.5rem 1.5rem 4rem; } }
 
.art-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-mid);
  background: var(--orange-pale);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.art-h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-style: normal;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.meta-item i { color: var(--orange); font-size: 0.7rem; }
.art-lead {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-2);
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--orange);
  background: var(--orange-pale);
  border-radius: 0 10px 10px 0;
  margin-bottom: 2.5rem;
  font-style: normal;
}
.art-content h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2.75rem 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-style: normal;
}
.art-content h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2rem 0 0.65rem;
}
.art-content p {
  font-size: 0.935rem;
  color: var(--ink-2);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}
.art-content ul, .art-content ol {
  padding-left: 1.1rem;
  margin: 0.75rem 0 1.25rem;
}
.art-content li {
  font-size: 0.915rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}
.art-content li::marker { color: var(--orange); }
.art-content strong { color: var(--ink); font-weight: 600; }
 
.callout {
  background: var(--orange-pale);
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
}
.callout p { font-size: 0.875rem; color: var(--ink-2); margin: 0; line-height: 1.75; }
.callout strong { color: var(--orange); }
 
.faq-section { margin: 2.5rem 0 0; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover {
  border-color: var(--orange-mid);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.faq-q::before {
  content: 'Q';
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--orange);
  background: var(--orange-pale);
  border: 1px solid var(--orange-mid);
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.12rem;
}
.faq-a { font-size: 0.875rem; color: var(--ink-3); line-height: 1.8; margin: 0 !important; }
 
.cta-box {
  background: var(--ink);
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  margin-top: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.12;
}
.cta-box::after {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.06;
}
.cta-box h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.4rem;
  position: relative;
  font-style: normal;
}
.cta-box p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
  position: relative;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  position: relative;
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
/* ---------- Skills Section (Scrolling Code Style) ---------- */
.skills-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.skills-toggle {
    background: var(--bg-dark-secondary);
    padding: 0.5rem;
    border-radius: 10px;
    display: inline-flex;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-dark-secondary);
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.toggle-btn:hover {
    color: var(--text-dark);
}

.toggle-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
}

.skills-scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    padding: 1.5rem 0;
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.skills-scroll-container {
    overflow: hidden;
    position: relative;
}

.skills-scroll-track {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: scroll-right-to-left 30s linear infinite;
    padding: 0 2rem;
}

.skills-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-right-to-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.skill-code-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--code-text);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-dark-card);
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
    white-space: nowrap;
}

.skill-code-item:hover {
    border-color: var(--accent);
    background: var(--bg-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.skill-code-item .code-brace {
    color: var(--code-text);
    font-weight: 600;
}

.skill-code-item .code-string {
    color: var(--code-string);
    font-weight: 500;
}

.skill-code-item .code-comment {
    color: var(--code-comment);
}

/* ---------- Team Section (Balanced Layout) ---------- */
.team-grid-balanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card-balanced {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card-balanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.team-card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

.team-avatar-balanced {
    position: relative;
    margin-bottom: 1rem;
}

.team-avatar-balanced img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    border: 4px solid var(--accent-light);
    background: white;
}

.avatar-balanced-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid var(--accent-light);
}

.team-status-dot-balanced {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--accent-green);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.team-badge-balanced {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: var(--font-mono);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.badge-founder {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-tech {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
}

.badge-design {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.team-badge-balanced i {
    font-size: 0.9rem;
}

.team-card-body {
    padding: 1.5rem 2rem;
    flex: 1;
    text-align: center;
}

.team-name-balanced {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-role-balanced {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.team-bio-balanced {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.team-card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.team-social-balanced {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-balanced {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-balanced:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* ---------- Projects Showcase Section (Bento Grid) ---------- */
.projects-section {
    background: var(--bg-secondary);
}

.projects-section .section-heading-code {
    color: var(--text-primary);
}

.projects-section .section-subtitle-code {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.25rem;
}

.bento-card {
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

/* Bento size variants */
.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
}

.bento-card-content {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.bento-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.bento-tall .bento-title {
    font-size: 1.6rem;
}

.bento-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-top: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    transition: var(--transition);
}

.bento-link:hover {
    opacity: 1;
    gap: 0.6rem;
}

.bento-card-image {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-top: 1rem;
    min-height: 0;
}

.bento-card-image img {
    width: 92%;
    max-height: 100%;
    object-fit: cover;
    object-position: top left;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.55s ease;
}

.bento-card:hover .bento-card-image img {
    transform: translateY(-6px) scale(1.06);
}

.bento-image-placeholder {
    width: 90%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 3rem;
    backdrop-filter: blur(4px);
}

.bento-tall .bento-image-placeholder {
    height: 55%;
}

/* Review tiles inside the bento grid */
.bento-review .bento-card-inner {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-review-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.bento-review-quote {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.4rem;
}

.bento-review-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bento-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bento-review-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bento-review-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bento-review-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.no-projects-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-projects-message i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-projects-message p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ---------- Pricing Section ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.price-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.features li i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.btn-pricing {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ---------- Contact Section ---------- */
.map-embed {
    margin-top: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    position: relative;
}

.map-embed iframe {
    width: 100%;
    height: 160px;
    display: block;
    filter: invert(90%) hue-rotate(180deg) saturate(0.6) brightness(0.85);
}

.map-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg-dark-card);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
}
 
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}
 
/* Left: minimal key-val list */
.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--border-dark);
    padding-left: 1.5rem;
}
 
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-dark);
}
 
.meta-item:last-child {
    border-bottom: none;
}
 
.meta-key {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
}
 
.meta-val {
    font-size: 0.9rem;
    color: var(--text-dark);
}
 
/* Right: form */
.contact-form {
    background: var(--bg-dark-card);
    padding: 2rem 2.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
}
 
.field {
    margin-bottom: 1.4rem;
}
 
.field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-dark-secondary);
}
 
.field-prefix {
    color: var(--code-prompt);
}
 
.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    background: var(--bg-dark-secondary);
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
    box-sizing: border-box;
}
 
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-dark);
}
 
.field textarea {
    min-height: 130px;
    resize: vertical;
}
 
/* Send button */
.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}
 
.btn-send:hover {
    background: var(--accent);
    color: #fff;
}
 
.btn-arrow {
    font-size: 0.75rem;
    opacity: 0.8;
}
 
/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}
 
.alert--success {
    background: rgba(16, 185, 129, 0.07);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}
 
.alert--error {
    background: rgba(239, 68, 68, 0.07);
    color: #ef4444;
    border: 1px solid #ef4444;
}
 
/* ---------- Footer ---------- */
 
.footer {
    background: var(--bg-dark);
    color: var(--text-dark-secondary);
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--border-dark);
}
 
.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
 
.footer-main {
    display: flex;
    align-items: center;
}
 
.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
 
.footer-logo .code-bracket {
    color: #00f5ff;
}
 
.footer-logo .code-slash {
    color: #8b5cf6;
}
 
.footer-logo .logo-name {
    color: #ffffff;
}
 
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
 
.footer-links a {
    color: var(--text-dark-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
 
.footer-links a:hover {
    color: var(--accent);
}
 
.footer-sep {
    opacity: 0.3;
    font-family: var(--font-mono);
}
 
.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dark-secondary);
}
 
.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}
 
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
 
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    opacity: 0.4;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dark);
}
 
/* ---------- Animations ---------- */
 
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
 
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
 
/* ---------- Responsive ---------- */
 
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
 
    .contact-meta {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-dark);
        padding-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }
 
    .meta-item {
        flex: 1 1 calc(50% - 1rem);
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border-dark);
        border-right: none;
    }
 
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
 
    .footer-main {
        justify-content: center;
    }
 
    .footer-status {
        justify-content: center;
    }
}
/* ---------- Back to Top Button ---------- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    /* Moved to left to avoid Crisp chat widget on right */
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-tall {
        grid-row: span 2;
    }
}

@media (max-width: 768px) {

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    html {
        overflow-x: hidden;
    }

    /* Top Promo Bar Mobile */
    .top-promo-bar {
        width: 100%;
        box-sizing: border-box;
    }

    .top-promo-inner {
        padding: 0.3rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .top-promo-pill {
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
        white-space: nowrap;
        max-width: 100%;
        text-align: center;
    }

    .top-promo-bar {
        min-height: 36px;
    }

    .top-promo-inner {
        padding: 0.4rem 1rem;
    }

    .navbar {
        top: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    /* When no promo bar (not on homepage) */
    body:not(:has(.top-promo-bar)) .navbar {
        top: 0;
    }

    /* Navbar Mobile */
    .navbar .container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 10000;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10001;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
        padding: 0.35rem 0.6rem;
    }

    .logo-name {
        letter-spacing: 0.3px;
    }

    /* Hero Section Mobile */
    .hero-code-section {
        min-height: auto;
        padding: 140px 1rem 3rem;
        /* Increased to account for promo bar + navbar */
    }

    .hero-terminal {
        max-width: 100%;
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }

    .terminal-header {
        padding: 0.75rem 1rem;
    }

    .terminal-title {
        font-size: 0.7rem;
    }

    .hero-heading-code {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-sub-code {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .hero-actions .btn-code-primary,
    .hero-actions .btn-code-outline {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Section Titles Mobile */
    .section-title-code {
        text-align: center;
        margin-bottom: 2rem;
    }

    .section-heading-code {
        font-size: 1.75rem;
    }

    .section-subtitle-code {
        font-size: 0.9rem;
    }

    /* About Section Mobile */
    .about-dev-wrapper-complex {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .about-code-left,
    .about-code-right {
        order: 2;
        display: none;
        /* Hide code snippets on mobile for cleaner look */
    }

    .about-image-center {
        order: 1;
        text-align: center;
    }

    .about-image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .about-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }

    .about-description-text {
        text-align: center;
        font-size: 0.95rem;
        margin-top: 1.5rem;
    }

    .about-links-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .about-fiverr-chip {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .about-social-links {
        justify-content: center;
    }

    .floating-code-snippet {
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: 0.8rem;
    }

    /* Services Grid Mobile */
    .services-code-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-code-card {
        padding: 1.25rem;
    }

    .service-title-code {
        font-size: 1.1rem;
    }

    .service-desc-code {
        font-size: 0.9rem;
    }

    /* Skills Section Mobile */
    .skills-toggle-wrapper {
        margin-bottom: 1.5rem;
    }

    .skills-toggle {
        gap: 0.5rem;
    }

    .toggle-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .skills-scroll-wrapper {
        margin: 1rem 0;
        padding: 0.75rem 0;
    }

    .skill-code-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    /* Projects Bento Grid Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bento-card {
        min-height: 280px;
    }

    .bento-tall,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-title {
        font-size: 1.3rem;
    }

    .bento-desc {
        font-size: 0.9rem;
    }

    .bento-review-quote {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-code-block {
        font-size: 0.85rem;
        padding: 1.25rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    /* Container Padding Mobile */
    .container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    /* Team Grid Mobile */
    .team-grid-balanced {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {

    /* Extra Small Mobile */
    .hero-heading-code {
        font-size: 1.3rem;
    }

    .section-heading-code {
        font-size: 1.5rem;
    }

    .about-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .hero-terminal {
        border-radius: 8px;
    }

    .terminal-body {
        padding: 1rem;
    }

    .code-line {
        font-size: 0.85rem;
    }

    .bento-card {
        min-height: 250px;
        padding: 1.25rem;
    }

    .bento-title {
        font-size: 1.2rem;
    }

    .top-promo-pill {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ---------- PDF Sales Pages ---------- */
.pdfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.pdf-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pdf-card {
    cursor: pointer;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.pdf-card-header {
    width: 100%;
    height: 230px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdf-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdf-thumbnail-placeholder {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.5;
}

.pdf-card-body {
    padding: 1.5rem;
    flex: 1;
}

.pdf-card:hover .pdf-thumbnail {
    transform: scale(1.05);
}

.pdf-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pdf-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.pdf-title-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.pdf-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pdf-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.pdf-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-pdf-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #34b233, #0b8a1b);
    color: #f9fafb;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(11, 138, 27, 0.35);
}

.btn-pdf-buy i {
    font-size: 1.1rem;
}

.btn-pdf-buy:hover {
    background: linear-gradient(135deg, #3fcf3c, #0fa52a);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(11, 138, 27, 0.45);
    color: #f9fafb;
}

.no-pdfs-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-pdfs-message i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* PDF Modal */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdf-modal.active {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pdf-modal.active .pdf-modal-content {
    transform: scale(1);
}

.pdf-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10002;
    font-size: 1.2rem;
}

.pdf-modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.pdf-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
}

.pdf-modal-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.modal-thumbnail-placeholder {
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pdf-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-mono);
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    flex: 1;
    margin-top: 0.5rem;
}

.modal-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-pdf-buy-modal {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #34b233, #0b8a1b);
    color: #f9fafb;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(11, 138, 27, 0.35);
}

.btn-pdf-buy-modal i {
    font-size: 1.1rem;
}

.btn-pdf-buy-modal:hover {
    background: linear-gradient(135deg, #3fcf3c, #0fa52a);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(11, 138, 27, 0.45);
    color: #f9fafb;
}

@media (max-width: 768px) {
    .pdf-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .pdf-modal-image {
        min-height: 200px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 2rem;
    }
}

.payment-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.pdf-purchase-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.pdf-purchase-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pdf-purchase-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pdf-purchase-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pdf-purchase-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.payment-form {
    margin-top: 1.5rem;
}

.btn-payment-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #34b233, #0b8a1b);
    color: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: var(--font-mono);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(11, 138, 27, 0.4);
}

.btn-payment-submit i {
    font-size: 1.2rem;
}

.btn-payment-submit:hover {
    background: linear-gradient(135deg, #3fcf3c, #0fa52a);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 36px rgba(11, 138, 27, 0.5);
}

.no-pdf-message {
    text-align: center;
    padding: 4rem 2rem;
}

.no-pdf-message i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.btn-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--accent-hover);
    color: white;
}

/* PDF Details Page */
.pdf-details-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.back-link {
    position: sticky;
    top: 80px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #34b233, #0b8a1b);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #f9fafb;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
    font-family: var(--font-mono);
    backdrop-filter: blur(8px);
}

.back-link:hover {
    color: #f9fafb;
    background: linear-gradient(135deg, #3fcf3c, #0fa52a);
    box-shadow: 0 12px 28px rgba(11, 138, 27, 0.5);
    transform: translateY(-1px);
}

.back-link i {
    font-size: 1.1rem;
}

.pdf-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.pdf-details-image {
    position: sticky;
    top: 2rem;
    height: fit-content;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-thumbnail {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    object-fit: contain;
    max-height: 520px;
    background: var(--bg-secondary);
    transition: transform 0.35s ease;
}

.details-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--accent);
    opacity: 0.7;
}

.details-thumbnail-placeholder i {
    font-size: 5rem;
}

.details-thumbnail-placeholder span {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.pdf-details-image:hover .details-thumbnail {
    transform: scale(1.05);
}

.pdf-details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pdf-details-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pdf-details-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pdf-details-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    font-family: var(--font-mono);
}

.pdf-details-description {
    line-height: 1.8;
}

.details-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.details-section-title .code-comment {
    color: var(--accent);
    margin-right: 0.5rem;
}

.pdf-details-description p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.pdf-details-features {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-list li i {
    color: var(--accent);
    font-size: 1.2rem;
}

.pdf-details-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-buy-now-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #34b233, #0b8a1b);
    color: #f9fafb;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(11, 138, 27, 0.4);
}

.btn-buy-now-large i {
    font-size: 1.2rem;
}

.btn-buy-now-large:hover {
    background: linear-gradient(135deg, #3fcf3c, #0fa52a);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 36px rgba(11, 138, 27, 0.5);
    color: #f9fafb;
}

/* PDF FAQ Section */
.pdf-details-faq {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 245, 255, 0.05);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-icon i {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-text {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-card);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 3.75rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.pdf-details-error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.pdf-details-error i {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent);
    opacity: 0.7;
}

.pdf-details-error h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.btn-back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-mono);
}

.btn-back-to-shop:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .pdf-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .pdf-details-image {
        position: static;
    }

    .pdf-details-title {
        font-size: 2rem;
    }

    .pdf-details-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .pdfs-grid {
        grid-template-columns: 1fr;
    }

    .team-card-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .team-card-body {
        padding: 1.25rem 1.5rem;
    }

    .team-card-footer {
        padding: 1.25rem 1.5rem;
    }

    .services-code-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-title {
        font-size: 1.2rem !important;
    }

    .skills-scroll-wrapper {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .skill-code-item {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .skills-scroll-track {
        gap: 1rem;
        padding: 0 1rem;
    }
}