/* normalize.io/l?v=805b7799818f58b1 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Theme colors are set inline by PHP */
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
}

[data-theme="dark"] {
    --text: #f9fafb;
    --text-light: #d1d5db;
    --bg: #1f2937;
    --bg-light: #374151;
    --border: #4b5563;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll animations - progressive enhancement approach */
/* Elements are visible by default, JS adds animation class to body */
.animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only hide and animate when JS is ready and animations enabled */
body.js-ready[data-animations-enabled="true"] .animate-on-scroll {
    opacity: 0;
    transform: translateY(var(--animation-offset, 30px));
}

body.js-ready[data-animations-enabled="true"] .animate-on-scroll.animated,
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Header */
header {
    background: var(--bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 80px;
    width: auto;
}

.logo-container a {
    transition: opacity 0.3s;
}

.logo-container a:hover {
    opacity: 0.8;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-light);
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hamburger-btn:hover {
    color: var(--primary);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    margin-top: 0.5rem;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    display: block;
    padding: 0.5rem 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-submenu {
    padding-left: 2rem;
    font-size: 0.9rem;
}

.dropdown-submenu a {
    padding: 0.5rem 1.5rem;
}

.dropdown-subsubmenu {
    padding-left: 3rem;
    font-size: 0.85rem;
}

.dropdown-subsubmenu a {
    padding: 0.4rem 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Content */
.content-section {
    background: var(--bg);
    margin: 2rem auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.content-section div {
    color: inherit;
}

.content-section ul,
.content-section ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.content-section ul {
    list-style-type: disc;
}

.content-section ol {
    list-style-type: decimal;
}

.content-section li {
    margin: 0.35rem 0;
    line-height: 1.6;
}

/* One-Page Sections */
.onepage-sections {
    margin: 4rem auto;
}

/* Subpages Sections (on parent pages) */
.subpages-sections {
    margin: 2rem auto 4rem;
}

.page-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.page-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.page-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    background: var(--bg-light);
}

.page-card picture {
    display: block;
    width: 100%;
    height: 200px;
}

.page-card picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.page-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.page-card-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.page-card-link::after {
    content: ' →';
}

/* Photo gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem auto;
    justify-content: center;
    max-width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-counter {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.35);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    margin: 2rem 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-form h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-light);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 12px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

.price-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* Footer */
footer {
    background: var(--footer-bg, var(--text));
    color: white;
    padding: 2rem 0 0.75rem;
    margin-top: 3rem;
}

[data-theme="dark"] footer {
    background: var(--footer-bg, #111827);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.footer-section p {
    margin: 0.5rem 0;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin: 0.5rem 0;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--primary);
    border-radius: 5px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Admin Panel */
.admin-panel {
    background: var(--bg);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Gallery Admin */
.gallery-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-admin-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
}

.gallery-admin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-item .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-admin-item.dragging {
    opacity: 0.5;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--bg);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary);
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
}

.error {
    background: #fee;
    color: #c00;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.success {
    background: #efe;
    color: #080;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Pages List */
.pages-list {
    display: grid;
    gap: 1rem;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--border);
}

.page-info h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

.theme-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.theme-option {
    padding: 1rem;
    border: 3px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.theme-option.selected {
    border-color: var(--primary);
    background: var(--bg-light);
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.testimonial-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .header-content {
flex-direction: column;
gap: 1rem;
    }
    
    nav ul {
flex-wrap: wrap;
justify-content: center;
    }
    
    .hero h1 {
font-size: 2rem;
    }
    
    .content-section {
padding: 1.5rem;
    }
    
    .tabs {
flex-wrap: wrap;
    }
    
    .page-item {
flex-direction: column;
gap: 1rem;
    }
    
    .dark-mode-toggle {
bottom: 10px;
right: 10px;
    }
    
    .dropdown-menu {
max-height: 70vh;
    }
}

/* WYSIWYG Editor */
.editor-toolbar {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.1);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.editor-toolbar button {
    background: var(--bg);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--text);
}

.editor-toolbar button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.editor-toolbar button strong,
.editor-toolbar button em,
.editor-toolbar button u {
    pointer-events: none;
}

.toolbar-separator {
    color: var(--text-light);
    margin: 0 0.25rem;
}

/* 
 * Dark mode & colors: the editor sets color: var(--text) on the container.
 * All children inherit this by default. Elements with inline color styles
 * (set by the user via toolbar) override inheritance naturally.
 * We do NOT set any color rules on child elements to avoid conflicts.
 */
.wysiwyg-editor {
    min-height: 300px;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    background: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    overflow-y: auto;
    max-height: 600px;
}

.wysiwyg-editor:focus {
    outline: none;
    border-color: var(--primary);
}

.wysiwyg-editor h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0;
}

.wysiwyg-editor h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0.75rem 0;
}

.wysiwyg-editor p {
    margin: 0.5rem 0;
}

.wysiwyg-editor ul,
.wysiwyg-editor ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.wysiwyg-editor ul {
    list-style-type: disc;
}

.wysiwyg-editor ol {
    list-style-type: decimal;
}

.wysiwyg-editor li {
    margin: 0.25rem 0;
}

.wysiwyg-editor strong {
    font-weight: 700;
}

.wysiwyg-editor em {
    font-style: italic;
}

.wysiwyg-editor u {
    text-decoration: underline;
}

/* ============================================================
   TECH THEME — Frontend overrides (scoped to .site-wrapper)
   Dark, technical aesthetic for SaaS, dev tools, AI, startups.
   Admin panel is NOT affected by these styles.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --tech-bg: #0b1120;
    --tech-bg-card: #111827;
    --tech-bg-elevated: #1a2332;
    --tech-text: #e2e8f0;
    --tech-text-soft: #94a3b8;
    --tech-text-muted: #64748b;
    --tech-border: rgba(148, 163, 184, 0.1);
    --tech-glow: color-mix(in srgb, var(--primary) 15%, transparent);
    --tech-glow-strong: color-mix(in srgb, var(--primary) 25%, transparent);
    --tech-font-display: 'DM Sans', -apple-system, sans-serif;
    --tech-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --tech-font-body: 'DM Sans', -apple-system, sans-serif;
    --tech-radius: 8px;
    --tech-radius-lg: 12px;
    --tech-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tech-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --tech-shadow-glow: 0 0 30px color-mix(in srgb, var(--primary) 10%, transparent);
}

/* --- Fade-in --- */
.site-wrapper {
    opacity: 0;
    transition: opacity 0.4s ease;
}
body.js-ready .site-wrapper { opacity: 1; }

/* --- Base --- */
.site-wrapper {
    background-color: var(--tech-bg);
    background-image: 
        linear-gradient(color-mix(in srgb, var(--tech-border) 40%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--tech-border) 40%, transparent) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
    color: var(--tech-text);
    font-family: var(--tech-font-body);
    font-weight: 400;
    line-height: 1.7;
}

.site-wrapper a { color: var(--primary); }
.site-wrapper a:hover { color: var(--accent); }

/* Grid pattern is applied via background-image on .site-wrapper base block above */

/* --- Header: sleek dark --- */
.site-wrapper header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: none;
    border-bottom: 1px solid var(--tech-border);
    transition: all var(--tech-transition);
}

.site-wrapper header.scrolled {
    background: rgba(11, 17, 32, 0.95);
    box-shadow: 0 1px 0 var(--tech-border);
}

.site-wrapper .site-title {
    font-family: var(--tech-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tech-text);
    letter-spacing: -0.02em;
}

/* --- Nav --- */
.site-wrapper .hamburger-btn {
    background: var(--tech-bg-elevated);
    border: 1px solid var(--tech-border);
    color: var(--tech-text);
    padding: 0.5rem 1.2rem;
    border-radius: var(--tech-radius);
    font-family: var(--tech-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all var(--tech-transition);
}

.site-wrapper .hamburger-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--tech-shadow-glow);
    color: var(--primary);
}

.site-wrapper .dropdown-menu {
    background: var(--tech-bg-card);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius-lg);
    box-shadow: var(--tech-shadow);
}

.site-wrapper .dropdown-menu a {
    color: var(--tech-text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--tech-radius);
    transition: all var(--tech-transition);
    font-family: var(--tech-font-body);
}

.site-wrapper .dropdown-menu a:hover,
.site-wrapper .dropdown-menu a.active {
    background: var(--tech-glow);
    color: var(--primary);
}

.site-wrapper .dropdown-submenu { padding-left: 0.75rem !important; }
.site-wrapper .dropdown-subsubmenu { padding-left: 1.5rem !important; }

/* --- Hero: terminal-inspired --- */
.site-wrapper .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--tech-bg);
    position: relative;
    overflow: hidden;
}

.site-wrapper .hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 8%, transparent) 0%, transparent 60%);
    border-radius: 50%;
}

.site-wrapper .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.site-wrapper .hero .container {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
}

.site-wrapper .hero h1 {
    font-family: var(--tech-font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--tech-text);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.hero-subtitle {
    font-family: var(--tech-font-body);
    font-size: 1.1rem;
    color: var(--tech-text-soft);
    max-width: 560px;
    margin: 1.5rem auto 2rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-tag {
    display: inline-block;
    font-family: var(--tech-font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--tech-glow);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    padding: 0.3rem 1rem;
    border-radius: var(--tech-radius);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* --- Breadcrumbs --- */
.site-wrapper .breadcrumbs {
    padding-top: 5.5rem;
    background: var(--tech-bg);
    color: var(--tech-text-muted);
    font-family: var(--tech-font-mono);
    font-size: 0.8rem;
}

.site-wrapper .breadcrumbs a { color: var(--tech-text-muted); }
.site-wrapper .breadcrumbs a:hover { color: var(--primary); }
.site-wrapper .breadcrumbs strong { color: var(--tech-text); }
.site-wrapper .breadcrumbs span { color: var(--tech-text-muted); opacity: 0.5; }

/* --- Content --- */
.site-wrapper .content-section {
    background: var(--tech-bg);
}

.site-wrapper .content-section h1 {
    font-family: var(--tech-font-display);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--tech-text);
    letter-spacing: -0.02em;
}

.site-wrapper .content-section h2 {
    font-family: var(--tech-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.site-wrapper .content-section p {
    color: var(--tech-text-soft);
}

/* --- Page cards: terminal cards --- */
.site-wrapper .page-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 3rem 0;
}

.site-wrapper .page-card {
    background: var(--tech-bg-card);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius-lg);
    overflow: hidden;
    transition: all var(--tech-transition);
    position: relative;
}

.site-wrapper .page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--tech-transition);
}

.site-wrapper .page-card:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    box-shadow: var(--tech-shadow-glow);
    transform: translateY(-4px);
}

.site-wrapper .page-card:hover::before {
    opacity: 1;
}

.site-wrapper .page-card-image {
    height: 200px;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.9);
    transition: filter var(--tech-transition);
}

.site-wrapper .page-card:hover .page-card-image {
    filter: brightness(1) saturate(1);
}

.site-wrapper .page-card-content {
    padding: 1.5rem;
}

.site-wrapper .page-card-title {
    font-family: var(--tech-font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tech-text);
    margin-bottom: 0.5rem;
}

.site-wrapper .page-card-excerpt {
    color: var(--tech-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.site-wrapper .page-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--tech-font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    transition: all var(--tech-transition);
}

.site-wrapper .page-card-link::before { content: '$ '; opacity: 0.5; }
.site-wrapper .page-card-link::after { content: ' _'; animation: blink 1s step-end infinite; }
.site-wrapper .page-card-link:hover { color: var(--accent); gap: 0.7rem; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Gallery --- */
.site-wrapper .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.site-wrapper .gallery-item {
    border-radius: var(--tech-radius);
    overflow: hidden;
    border: 1px solid var(--tech-border);
    transition: all var(--tech-transition);
    aspect-ratio: 16/10;
}

.site-wrapper .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.site-wrapper .gallery-item:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    box-shadow: var(--tech-shadow-glow);
}

.site-wrapper .gallery-item:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

/* --- Price: tech badge --- */
.site-wrapper .price-tag {
    display: inline-block;
    background: var(--tech-bg-elevated);
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    padding: 0.75rem 2.5rem;
    border-radius: var(--tech-radius);
    font-family: var(--tech-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--tech-transition);
    box-shadow: var(--tech-shadow-glow);
}

.site-wrapper .price-tag:hover {
    background: var(--primary);
    color: var(--tech-bg);
    border-color: var(--primary);
    box-shadow: 0 0 40px color-mix(in srgb, var(--primary) 30%, transparent);
    transform: scale(1.05);
}

/* --- CTA: glowing button --- */
.site-wrapper .cta-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--tech-radius);
    font-family: var(--tech-font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 25%, transparent);
    transition: all var(--tech-transition);
}

.site-wrapper .cta-button:hover {
    box-shadow: 0 0 40px color-mix(in srgb, var(--primary) 40%, transparent);
    transform: translateY(-2px);
}

/* --- Testimonials --- */
.site-wrapper .testimonials-section {
    background: var(--tech-bg-card);
    padding: 4rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--tech-border);
    border-bottom: 1px solid var(--tech-border);
}

.site-wrapper .testimonials-section h2 {
    color: var(--tech-text) !important;
    font-family: var(--tech-font-display) !important;
}

.site-wrapper .testimonials-grid {
    gap: 1.5rem;
}

.site-wrapper .testimonial-card {
    background: var(--tech-bg-elevated);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius-lg);
    padding: 1.5rem;
    transition: all var(--tech-transition);
}

.site-wrapper .testimonial-card:hover {
    border-color: color-mix(in srgb, var(--primary) 25%, transparent);
    box-shadow: var(--tech-shadow-glow);
}

.site-wrapper .testimonial-rating {
    color: var(--accent);
    letter-spacing: 3px;
}

.site-wrapper .testimonial-text {
    color: var(--tech-text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: normal;
}

.site-wrapper .testimonial-author {
    color: var(--primary);
    font-family: var(--tech-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Contact form --- */
.site-wrapper .contact-form {
    background: var(--tech-bg-card);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius-lg);
    max-width: 540px;
}

.site-wrapper .contact-form h2 {
    font-family: var(--tech-font-display);
    color: var(--tech-text);
    font-weight: 600;
}

.site-wrapper .form-group label {
    color: var(--tech-text-muted);
    font-family: var(--tech-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-wrapper .form-group input,
.site-wrapper .form-group textarea,
.site-wrapper .form-group select {
    background: var(--tech-bg);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    color: var(--tech-text);
    font-family: var(--tech-font-body);
}

.site-wrapper .form-group input:focus,
.site-wrapper .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--tech-glow);
    outline: none;
}

.site-wrapper .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--tech-radius);
    font-weight: 600;
    box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 20%, transparent);
    transition: all var(--tech-transition);
}

.site-wrapper .btn:hover {
    box-shadow: 0 0 32px color-mix(in srgb, var(--primary) 35%, transparent);
    transform: translateY(-1px);
}

.site-wrapper .success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-radius: var(--tech-radius);
}

.site-wrapper .error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: var(--tech-radius);
}

/* --- Footer --- */
.site-wrapper footer {
    background: var(--tech-bg-card) !important;
    border-top: 1px solid var(--tech-border);
    margin-top: 4rem;
    color: var(--tech-text-soft);
}

.site-wrapper .footer-section h3 {
    font-family: var(--tech-font-display);
    color: var(--tech-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-wrapper .footer-section p { color: var(--tech-text-muted); }
.site-wrapper .footer-menu a { color: var(--tech-text-muted); }
.site-wrapper .footer-menu a:hover { color: var(--primary); }

.site-wrapper .social-links a {
    background: var(--tech-bg-elevated);
    border: 1px solid var(--tech-border);
    color: var(--tech-text-muted);
    border-radius: var(--tech-radius);
    font-family: var(--tech-font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    transition: all var(--tech-transition);
}

.site-wrapper .social-links a:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    color: var(--primary);
    box-shadow: var(--tech-shadow-glow);
}

.site-wrapper .copyright {
    border-top: 1px solid var(--tech-border);
    color: var(--tech-text-muted);
}

.site-wrapper .copyright a { color: var(--tech-text-muted); }
.site-wrapper .copyright a:hover { color: var(--primary); }

/* --- Lightbox --- */
.site-wrapper .lightbox {
    background: rgba(0, 0, 0, 0.95);
}

.site-wrapper .lightbox img { border-radius: var(--tech-radius); }

.site-wrapper .lightbox-close,
.site-wrapper .lightbox-nav {
    background: var(--tech-bg-elevated);
    border: 1px solid var(--tech-border);
    color: var(--tech-text);
    border-radius: var(--tech-radius);
}

.site-wrapper .lightbox-close:hover,
.site-wrapper .lightbox-nav:hover {
    border-color: var(--primary);
    box-shadow: var(--tech-shadow-glow);
}

.site-wrapper .lightbox-counter {
    color: var(--tech-text-muted);
    font-family: var(--tech-font-mono);
    font-size: 0.8rem;
}

/* --- Dark mode toggle --- */
.site-wrapper .dark-mode-toggle {
    background: var(--tech-bg-card);
    border: 1px solid var(--tech-border);
    color: var(--tech-text);
    border-radius: var(--tech-radius);
}

.site-wrapper .dark-mode-toggle:hover {
    border-color: var(--primary);
    box-shadow: var(--tech-shadow-glow);
}

/* --- Animations --- */
.site-wrapper .animate-on-scroll {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-wrapper .hero { min-height: 75vh; }
    .site-wrapper .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .site-wrapper .page-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .site-wrapper .hero { min-height: 65vh; }
}

/* --- RTL --- */
[dir="rtl"] .site-wrapper .page-card-link::before { content: ''; }
[dir="rtl"] .site-wrapper .page-card-link::after { content: ' $'; }
