/* ===== SITEFA THEME - Modern & Professional ===== */

:root {
    --primary: #002388;
    --primary-light: #0038d1;
    --primary-dark: #001655;
    --accent: #00C6FF;
    --gold: #FFD700;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    
    /* Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 30px rgba(0, 35, 136, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0B1221;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --card-bg: #1f2937;
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(17, 24, 39, 0.8);
    --glass-border: rgba(55, 65, 81, 0.5);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 35, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 35, 136, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

[data-theme="dark"] .btn-outline {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

/* Header for Internal Pages */
.header-inner,
.header-inner.scrolled {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
}

/* Body padding for fixed header on internal pages */
body:not(.home) {
    padding-top: 80px;
}

.header-inner .logo {
    color: var(--primary);
}

[data-theme="dark"] .header-inner .logo {
    color: var(--accent);
}

.header-inner .nav-menu a {
    color: var(--text-primary);
}

.header-inner .nav-menu a:hover {
    color: var(--primary);
}

[data-theme="dark"] .header-inner .nav-menu a:hover {
    color: var(--accent);
}

.header-inner .theme-toggle {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.header-inner .hamburger span {
    background: var(--text-primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

[data-theme="dark"] .logo {
    color: var(--accent);
}

.logo svg {
    color: currentColor;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(0, 35, 136, 0.05);
}

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active {
    color: var(--accent);
    background: rgba(0, 198, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(0, 35, 136, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 80%, rgba(0, 198, 255, 0.1) 0%, transparent 40%);
}

[data-theme="dark"] .hero-gradient {
    background: radial-gradient(ellipse at 70% 20%, rgba(0, 35, 136, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 80%, rgba(0, 198, 255, 0.2) 0%, transparent 40%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.typewriter {
    display: block;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-right: 10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-clients {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatars {
    display: flex;
}

.client-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    margin-right: -12px;
    object-fit: cover;
}

.client-avatars .more {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: -12px;
}

.hero-clients p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.floating-card svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

[data-theme="dark"] .floating-card svg {
    color: var(--accent);
}

.floating-card span {
    font-weight: 600;
    white-space: nowrap;
}

.card-1 { top: 10%; right: 10%; animation-delay: 0s; }
.card-2 { top: 45%; left: 5%; animation-delay: 1s; }
.card-3 { bottom: 15%; right: 20%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
}

.mockup-browser {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 35, 136, 0.2);
}

.browser-dots {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-content {
    padding: 20px;
}

.mock-header {
    height: 16px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.mock-hero {
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-grid div {
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0; }
}

/* ===== STATS ===== */
.stats {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

[data-theme="dark"] .stat-number {
    color: var(--accent);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: var(--gradient);
    border: none;
    color: white;
}

.service-card.featured::before {
    display: none;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.featured .service-link {
    color: white;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 35, 136, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

[data-theme="dark"] .service-icon {
    background: rgba(0, 198, 255, 0.1);
}

[data-theme="dark"] .service-icon svg {
    color: var(--accent);
}

.service-card.featured .service-icon svg {
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .service-link {
    color: var(--accent);
}

.service-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.service-link:hover svg {
    transform: translateX(-5px);
}

/* ===== PROCESS ===== */
.process {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 60px;
}

.process-line {
    position: absolute;
    top: 85px;
    right: 60px;
    left: 60px;
    height: 3px;
    background: var(--border-color);
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: var(--gradient);
    animation: progressLine 3s ease-out forwards;
}

@keyframes progressLine {
    to { width: 100%; }
}

.process-item {
    position: relative;
    text-align: center;
    flex: 1;
}

.process-number {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 35, 136, 0.3);
}

.process-content {
    padding: 40px 20px 20px;
}

.process-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.process-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

[data-theme="dark"] .process-icon svg {
    color: var(--accent);
}

.process-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.process-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 100px 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 35, 136, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link,
.portfolio-details {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    transform: translateY(20px);
}

.portfolio-item:hover .portfolio-link,
.portfolio-item:hover .portfolio-details {
    transform: translateY(0);
}

.portfolio-link:hover,
.portfolio-details:hover {
    background: var(--accent);
    color: white;
}

.portfolio-link svg,
.portfolio-details svg {
    width: 22px;
    height: 22px;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 1.125rem;
    margin-bottom: 6px;
}

.portfolio-cat {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.portfolio-more {
    text-align: center;
    margin-top: 50px;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.gallery-thumbs img {
    flex: 1;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.gallery-thumbs img:hover {
    opacity: 1;
}

.modal-info {
    padding: 30px;
}

.modal-info h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    gap: 8px;
}

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    font-weight: 600;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.modal-tech span {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

[data-theme="dark"] .pricing-card.popular {
    border-color: var(--accent);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-icon.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
}

.pricing-icon.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
}

.pricing-icon.gold {
    background: var(--gradient-gold);
}

.pricing-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
}

.pricing-price {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
}

[data-theme="dark"] .pricing-price .amount {
    color: var(--accent);
}

.pricing-price .currency {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.pricing-features .included svg {
    color: #10b981;
}

.pricing-features .excluded {
    color: var(--text-muted);
}

.pricing-features .excluded svg {
    color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 100px 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    transition: var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
}

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

/* ===== ORDER FORM ===== */
.order {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.order-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.order-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.order-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-feature svg {
    width: 24px;
    height: 24px;
    color: #10b981;
}

.order-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group.full {
    grid-column: span 2;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
}

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

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--accent);
}

.form-group label {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: var(--bg-secondary);
    padding: 0 8px;
}

.form-group textarea + label {
    top: 24px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary);
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group textarea:focus + label {
    color: var(--accent);
}

.order-form button[type="submit"] {
    grid-column: span 2;
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    font-weight: 600;
    text-align: right;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

[data-theme="dark"] .faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== BLOG ===== */
.blog {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-cat {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.blog-link {
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .blog-link {
    color: var(--accent);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: right;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-cta {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    max-width: 300px;
}

.about-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-card-info {
    padding: 24px;
    text-align: center;
}

.about-card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.about-card-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--primary);
}

[data-theme="dark"] .contact-item a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

[data-theme="dark"] .social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-trust {
    display: flex;
    gap: 16px;
}

.footer-trust img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--primary);
    padding-right: 8px;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        height: 350px;
    }
    
    .hero-desc {
        margin: 0 auto 36px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-clients {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .process-line {
        display: none;
    }
    
    .process-item {
        flex: 0 0 calc(33.333% - 30px);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: none;
        order: -1;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .order-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .about-cta {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 100px 30px 30px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .floating-card {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .floating-card svg {
        width: 24px;
        height: 24px;
    }
    
    .hero-mockup {
        width: 240px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-item {
        flex: 0 0 100%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .order-form {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .form-group.full,
    .order-form button[type="submit"] {
        grid-column: span 1;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-trust {
        justify-content: center;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .client-avatars img,
    .client-avatars .more {
        width: 36px;
        height: 36px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .portfolio-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== INNER PAGES STYLES ===== */

/* Main Content - Critical Base Styles */
.main-content,
.single-post,
.page-content,
.archive-content,
.search-content,
.error-404,
.portfolio-single {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 70vh;
    background: var(--bg-primary);
}

/* Container Fix for Inner Pages */
.main-content .container,
.single-post .container,
.page-content .container,
.archive-content .container,
.portfolio-single .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header,
.archive-header,
.search-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-title,
.archive-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.archive-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient);
    color: white;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 16px;
}

.archive-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-cat,
.post-card-type {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.post-card-content {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--primary);
}

[data-theme="dark"] .post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.post-card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .post-card-link {
    color: var(--accent);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
}

/* Single Post */
.single-post .container {
    max-width: 900px;
}

.post-article,
.page-article {
    display: block !important;
    visibility: visible !important;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 35, 136, 0.1);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.post-header {
    padding: 50px 50px 30px;
    text-align: center;
}

.post-meta-top {
    margin-bottom: 16px;
}

.post-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient);
    color: white;
    font-size: 0.875rem;
    border-radius: 50px;
    margin: 0 4px;
}

.post-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.4;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-thumbnail {
    margin: 0 50px 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    padding: 0 50px 40px;
    font-size: 1.0625rem;
    line-height: 2;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    background: var(--bg-secondary);
    border-right: 4px solid var(--primary);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.post-footer {
    padding: 30px 50px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags span {
    color: var(--text-secondary);
}

.post-tags a {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-share span {
    color: var(--text-secondary);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.twitter {
    background: #000;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: scale(1.1);
}

/* Author Box */
.author-box {
    margin: 40px 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 24px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.author-info p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Posts */
.related-posts {
    margin: 40px 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.related-card h4 {
    padding: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.related-card a {
    color: var(--text-primary);
}

.related-card a:hover h4 {
    color: var(--primary);
}

/* Comments */
.comments-section {
    margin: 40px 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

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

.comment-body {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    font-style: normal;
    margin-left: 12px;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-text {
    line-height: 1.8;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-actions a {
    color: var(--primary);
    font-size: 0.875rem;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: vertical;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Page Content */
.page-content .container {
    max-width: 900px;
}

.page-header {
    padding: 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-thumbnail {
    margin: 0;
}

.page-thumbnail img {
    width: 100%;
}

.page-body {
    padding: 50px;
    font-size: 1.0625rem;
    line-height: 2;
    color: var(--text-primary);
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-body p {
    margin-bottom: 20px;
}

.page-body a {
    color: var(--primary);
}

[data-theme="dark"] .page-body a {
    color: var(--accent);
}

.page-body img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.page-body ul,
.page-body ol {
    margin: 20px 0;
    padding-right: 30px;
}

.page-body li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.page-body ol li {
    list-style-type: decimal;
}

/* 404 Page */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content {
    max-width: 500px;
}

.error-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

[data-theme="dark"] .error-icon {
    color: var(--accent);
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Search Form */
.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form button {
    padding: 16px 32px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    transform: translateY(-2px);
}

.no-results,
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.no-results h2,
.no-posts h2 {
    margin-bottom: 16px;
}

.no-results p,
.no-posts p {
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Portfolio Single */
.portfolio-single {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 70vh;
}

.portfolio-single .container {
    max-width: 1100px;
}

.portfolio-article {
    display: block !important;
    visibility: visible !important;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 35, 136, 0.1);
    border: 1px solid var(--border-color);
}

.portfolio-header {
    padding: 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient);
    color: white;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 16px;
}

.portfolio-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.gallery-main {
    padding: 0 50px;
}

.gallery-main img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.portfolio-details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 50px;
}

.portfolio-content {
    font-size: 1.0625rem;
    line-height: 2;
}

.project-info-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.project-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tech-tag {
    padding: 4px 12px;
    background: var(--card-bg);
    border-radius: 50px;
    font-size: 0.8125rem;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.portfolio-content h2,
.portfolio-content h3,
.portfolio-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.portfolio-content p {
    margin-bottom: 20px;
}

.portfolio-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.portfolio-content ul,
.portfolio-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.portfolio-content li {
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Responsive */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-details-grid {
        grid-template-columns: 1fr;
    }
    
    .project-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 0 60px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header,
    .post-content,
    .post-footer,
    .author-box,
    .related-posts,
    .comments-section,
    .page-header,
    .page-body,
    .portfolio-header,
    .portfolio-details-grid,
    .gallery-main {
        padding: 30px 20px;
    }
    
    .post-thumbnail {
        margin: 0 20px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .error-title {
        font-size: 5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .search-form {
        flex-direction: column;
    }
}

/* ===== FLOATING CONTACT ===== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.floating-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 35, 136, 0.4);
    transition: var(--transition);
    border: none;
}

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

.floating-toggle .icon-close {
    display: none;
}

.floating-contact.active .floating-toggle .icon-open {
    display: none;
}

.floating-contact.active .floating-toggle .icon-close {
    display: block;
}

.floating-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-contact.active .floating-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-item:hover {
    transform: scale(1.15);
}

.floating-item.phone {
    background: var(--primary);
}

.floating-item.whatsapp {
    background: #25D366;
}

.floating-item.telegram {
    background: #0088cc;
}

.floating-item.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ===== SIDEBAR STYLES ===== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px !important;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: var(--primary);
}

[data-theme="dark"] .widget ul li a:hover {
    color: var(--accent);
}

.widget ul li span {
    background: var(--bg-tertiary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8125rem;
}

/* Popular Posts Widget */
.popular-posts .post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts .post-item:last-child {
    border-bottom: none;
}

.popular-posts .post-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-posts .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-posts .post-info h5 {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-posts .post-info h5 a {
    color: var(--text-primary);
}

.popular-posts .post-info h5 a:hover {
    color: var(--primary);
}

.popular-posts .post-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* CTA Widget */
.widget-cta {
    background: var(--gradient);
    color: white;
    text-align: center;
    border: none;
}

.widget-cta h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.widget-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.widget-cta .btn {
    background: white;
    color: var(--primary);
}

.widget-cta .btn:hover {
    background: rgba(255,255,255,0.9);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.trust-badge {
    max-width: 100px;
}

.trust-badge img {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-toggle {
        width: 55px;
        height: 55px;
    }
    
    .floating-item {
        width: 45px;
        height: 45px;
    }
}


/* ===== FLOATING THEME TOGGLE ===== */
.floating-theme-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #005db2;
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.floating-theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.floating-theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.floating-theme-toggle .moon-icon {
}

[data-theme="dark"] .floating-theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .floating-theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .floating-theme-toggle {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--accent);
}

[data-theme="dark"] .floating-theme-toggle:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ===== PORTFOLIO SINGLE REDESIGN ===== */
.portfolio-single {
    padding: 40px 0 100px;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.portfolio-article {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
}

.portfolio-header {
    padding: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #001655 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.portfolio-header .portfolio-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.portfolio-header .portfolio-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-gallery {
    padding: 0;
    margin: 0;
}

.portfolio-gallery .gallery-main {
    overflow: hidden;
}

.portfolio-gallery .gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-gallery .gallery-main:hover img {
    transform: scale(1.02);
}

.portfolio-details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 50px;
}

.portfolio-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

.portfolio-content h2,
.portfolio-content h3,
.portfolio-content h4 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.portfolio-content p {
    margin-bottom: 20px;
}

.portfolio-content ul,
.portfolio-content ol {
    padding-right: 25px;
    margin-bottom: 20px;
}

.portfolio-content li {
    margin-bottom: 10px;
}

.portfolio-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.project-info-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-info-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.project-info-card .info-item {
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.project-info-card .info-item:last-of-type {
    border-bottom: none;
}

.project-info-card .info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.project-info-card .info-value {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.project-info-card .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-info-card .tech-tag {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-info-card .btn {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .portfolio-details-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .portfolio-sidebar {
        position: static;
    }
    
    .portfolio-header {
        padding: 40px 30px;
    }
    
    .portfolio-header .portfolio-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .floating-theme-toggle {
        width: 44px;
        height: 44px;
        left: 15px;
    }
    
    .floating-theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}
