/* Accessibility utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Color themes */
:root {
    /* Spacing scale (golden ratio: each step ≈ prev × 1.618) */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 0.809rem;  /* 13px */
    --space-lg: 1.309rem;  /* 21px */
    --space-xl: 2.118rem;  /* 34px */
    --space-2xl: 3.427rem; /* 55px */
    --space-3xl: 5.545rem; /* 89px */
    --phi: 1.618;

    /* Dark theme (default) - Updated with vibrant color palette */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1f2430;
    --border-color: #30363d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #888;
    --text-muted: #666;
    --accent-primary: #FF5964;
    --accent-primary-hover: #ff7d85;
    --accent-secondary: #1BE7FF;
    --accent-secondary-hover: #5BEDFF;
    --accent-tertiary: #E4FF1A;
    --accent-tertiary-hover: #ecff5c;
    --accent-green: #6EEB83;
    --accent-green-hover: #8ef09d;
    --accent-coral: #FF8360;
    --accent-coral-hover: #ff9d7f;
    --code-bg: #161b22;
    --code-text: #1BE7FF;
    --success-bg: #166534;
    --success-text: #6EEB83;
}

/* Light theme */
html[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e5e5e5;
    --border-color: #d4d4d4;
    --text-primary: #1a1a1a;
    --text-secondary: #404040;
    --text-tertiary: #737373;
    --text-muted: #a3a3a3;
    --accent-primary: #FF5964;
    --accent-primary-hover: #ff3d4a;
    --accent-secondary: #0ac4d9;
    --accent-secondary-hover: #089eb0;
    --accent-tertiary: #c9e004;
    --accent-tertiary-hover: #a8bd03;
    --accent-green: #6EEB83;
    --accent-green-hover: #4fd86a;
    --accent-coral: #FF8360;
    --accent-coral-hover: #ff6a41;
    --code-bg: #f5f5f5;
    --code-text: #0ac4d9;
    --success-bg: #6EEB83;
    --success-text: #166534;
}

html[data-theme="light"] body {
    background: linear-gradient(to bottom, rgba(27, 231, 255, 0.08) 0%, rgba(110, 235, 131, 0.08) 50%, rgba(255, 131, 96, 0.08) 100%);
}

html[data-theme="light"] header {
    background: linear-gradient(135deg, rgba(27, 231, 255, 0.15) 0%, rgba(110, 235, 131, 0.15) 100%);
    border-bottom: 1px solid rgba(27, 231, 255, 0.3);
}

html[data-theme="light"] footer {
    background: linear-gradient(135deg, rgba(255, 89, 100, 0.15) 0%, rgba(255, 131, 96, 0.15) 100%);
    border-top: 1px solid rgba(255, 131, 96, 0.3);
}

/* Light theme - darker tag colors for readability */
html[data-theme="light"] .tag,
html[data-theme="light"] .tech-tag,
html[data-theme="light"] .post-item .tag,
html[data-theme="light"] .post-tags .tag {
    color: #6b5c00;
    background-color: rgba(201, 224, 4, 0.15);
    border-color: rgba(201, 224, 4, 0.3);
}

/* Sepia theme */
html[data-theme="sepia"] {
    --bg-primary: #f4ecd8;
    --bg-secondary: #e8dcc4;
    --bg-tertiary: #d4c4a8;
    --border-color: #c4b59a;
    --text-primary: #3e2723;
    --text-secondary: #5d4037;
    --text-tertiary: #8d6e63;
    --text-muted: #a1887f;
    --accent-primary: #FF5964;
    --accent-primary-hover: #e54450;
    --accent-secondary: #0ac4d9;
    --accent-secondary-hover: #089eb0;
    --accent-tertiary: #c9e004;
    --accent-tertiary-hover: #a8bd03;
    --accent-green: #6EEB83;
    --accent-green-hover: #4fd86a;
    --accent-coral: #FF8360;
    --accent-coral-hover: #ff6a41;
    --code-bg: #e8dcc4;
    --code-text: #0ac4d9;
    --success-bg: #6EEB83;
    --success-text: #33691e;
}

/* Sepia theme - darker tag colors for readability */
html[data-theme="sepia"] .tag,
html[data-theme="sepia"] .tech-tag,
html[data-theme="sepia"] .post-item .tag,
html[data-theme="sepia"] .post-tags .tag {
    color: #5d4900;
    background-color: rgba(168, 189, 3, 0.2);
    border-color: rgba(168, 189, 3, 0.4);
}

/* Gruvbox theme */
html[data-theme="gruvbox"] {
    --bg-primary: #282828;
    --bg-secondary: #1d2021;
    --bg-tertiary: #3c3836;
    --border-color: #504945;
    --text-primary: #ebdbb2;
    --text-secondary: #d5c4a1;
    --text-tertiary: #bdae93;
    --text-muted: #928374;
    --accent-primary: #FF5964;
    --accent-primary-hover: #ff7d85;
    --accent-secondary: #1BE7FF;
    --accent-secondary-hover: #5BEDFF;
    --accent-tertiary: #E4FF1A;
    --accent-tertiary-hover: #ecff5c;
    --accent-green: #6EEB83;
    --accent-green-hover: #8ef09d;
    --accent-coral: #FF8360;
    --accent-coral-hover: #ff9d7f;
    --code-bg: #1d2021;
    --code-text: #1BE7FF;
    --success-bg: #98971a;
    --success-text: #6EEB83;
}

/* Dracula theme */
html[data-theme="dracula"] {
    --bg-primary: #282a36;
    --bg-secondary: #1e1f29;
    --bg-tertiary: #373844;
    --border-color: #44475a;
    --text-primary: #f8f8f2;
    --text-secondary: #e6e6dc;
    --text-tertiary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #FF5964;
    --accent-primary-hover: #ff7d85;
    --accent-secondary: #1BE7FF;
    --accent-secondary-hover: #5BEDFF;
    --accent-tertiary: #E4FF1A;
    --accent-tertiary-hover: #ecff5c;
    --accent-green: #6EEB83;
    --accent-green-hover: #8ef09d;
    --accent-coral: #FF8360;
    --accent-coral-hover: #ff9d7f;
    --code-bg: #1e1f29;
    --code-text: #1BE7FF;
    --success-bg: #6EEB83;
    --success-text: #1e1f29;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: linear-gradient(to bottom,
        rgba(27, 231, 255, 0.03) 0%,
        rgba(110, 235, 131, 0.02) 50%,
        rgba(255, 131, 96, 0.03) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.618;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(27, 231, 255, 0.15) 0%, rgba(110, 235, 131, 0.15) 100%);
    border-bottom: 1px solid rgba(27, 231, 255, 0.3);
    padding: 1rem 0;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.logo-icon {
    width: 40px;
    height: auto;
    color: var(--accent-primary);
    transition: color 0.2s ease, transform 0.2s ease;
    transform: rotate(0deg);
}

.logo a:hover .logo-icon {
    color: var(--accent-primary-hover);
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.logo-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1;
    margin: 0;
    color: var(--accent-primary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.logo a:hover .logo-ascii {
    color: var(--accent-primary-hover);
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

nav a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent-secondary-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* GitHub icon */
.github-link {
    display: flex;
    align-items: center;
}

.github-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}

.github-link:hover .github-icon {
    color: var(--accent-secondary-hover);
    transform: scale(1.1);
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'Courier New', monospace;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    line-height: 1.618;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.cta-button {
    display: inline-block;
    padding: 0.809rem 1.309rem;
    border-radius: 1.309rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.cta-button.primary:hover {
    background: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 89, 100, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.cta-button.secondary:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 231, 255, 0.3);
    text-decoration: none;
}

/* Section Titles - Hierarchy */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    margin-top: 0;
    text-align: center;
    letter-spacing: -0.01em;
}

.section-title--primary {
    font-size: 2rem;
    color: var(--accent-primary);
}

.section-title--large {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Section subtitle for additional context */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: -1rem auto var(--space-xl);
    line-height: 1.6;
}

/* Projects Showcase */
.projects-showcase {
    margin-bottom: var(--space-3xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
    font-style: italic;
}

.project-badge {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Coming Soon card variant */
.project-card--coming-soon {
    border-style: dashed;
    border-color: var(--accent-coral);
    position: relative;
    overflow: hidden;
}

.project-card--coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 131, 96, 0.05), rgba(255, 89, 100, 0.08));
    pointer-events: none;
}

.project-badge--soon {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-primary));
    animation: pulse-badge 2s ease-in-out infinite;
}

.project-link--soon {
    color: var(--text-tertiary);
    font-style: italic;
    cursor: default;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--space-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.project-link {
    display: inline-block;
    color: var(--accent-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--accent-tertiary-hover);
}

.project-store-badge {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.project-store-badge:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.project-store-badge img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
}

/* Skills Section */
.skills-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--space-sm);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Posts */
.post {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--bg-tertiary);
}

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

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 1rem;
    justify-content: center;
}

.post-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.post-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Post badges */
.post-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.post-badge-new {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-coral) 100%);
    color: #ffffff;
    animation: pulse-badge 2s ease-in-out infinite;
}

.post-badge-updated {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

.post-badge-featured {
    background: var(--accent-tertiary);
    color: var(--bg-primary);
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.read-more {
    display: inline-block;
    color: var(--accent-tertiary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post .read-more {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.read-more:hover {
    color: var(--accent-tertiary-hover);
}

/* View All Posts */
.view-all-posts {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

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

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

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(255, 89, 100, 0.15) 0%, rgba(255, 131, 96, 0.15) 100%);
    border-top: 1px solid rgba(255, 131, 96, 0.3);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-3xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1.618fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

/* Footer Newsletter */
.footer-newsletter h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.footer-newsletter-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.footer-newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.footer-newsletter-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    min-width: 0;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.footer-newsletter-input::placeholder {
    color: var(--text-muted);
}

.footer-newsletter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--space-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
}

.footer-newsletter-btn:active {
    transform: translateY(0);
}

.footer-newsletter-status {
    font-size: 0.85rem;
    margin-top: var(--space-sm);
    min-height: 1.2em;
}

.footer-newsletter-status.success {
    color: var(--accent-green);
}

.footer-newsletter-status.error {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Code blocks with copy button */
.code-block {
    position: relative;
    margin: 1.5rem 0;
}

pre {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

code {
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    direction: ltr;
}

/* Syntax highlighting styles (VS Code Dark+ inspired) */
.token.keyword,
.token.control,
.token.directive,
.token.unit { color: #569cd6; }  /* Keywords: if, for, const, function */

.token.string,
.token.regex { color: #ce9178; }   /* Strings */

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata { color: #6a9955; font-style: italic; }  /* Comments */

.token.number,
.token.boolean { color: #b5cea8; }   /* Numbers and booleans */

.token.function,
.token.function-name { color: #dcdcaa; } /* Function names */

.token.operator,
.token.entity,
.token.url { color: #d4d4d4; } /* Operators: +, -, =, etc */

.token.property,
.token.tag,
.token.constant,
.token.symbol { color: #9cdcfe; } /* Properties and tags */

.token.punctuation,
.token.selector { color: #d4d4d4; } /* Brackets, commas */

.token.attr-name,
.token.char,
.token.builtin,
.token.inserted { color: #4ec9b0; }

.token.class-name,
.token.maybe-class-name { color: #4ec9b0; }

.token.deleted { color: #f44747; }

/* Terminal-style prompt for bash/shell code blocks */
pre[class*="language-bash"]::before,
pre[class*="language-shell"]::before,
pre[class*="language-sh"]::before {
    content: "$ ";
    color: #6EEB83;
    font-weight: 600;
    user-select: none;
}

.copy-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.copy-btn.copied {
    background-color: rgba(110, 235, 131, 0.2);
    color: #6EEB83;
    border-color: rgba(110, 235, 131, 0.4);
}

/* Image lightbox */
.gallery-image {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.gallery-image:hover {
    opacity: 0.85;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-primary);
}

/* Posts List Page */
.posts-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.posts-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.posts-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent-primary);
}

.posts-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.post-item {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
}

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

.post-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-sm);
}

.post-item-meta time {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.post-item h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.post-item h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item h2 a:hover {
    color: var(--accent-primary);
}

.post-item-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.post-item .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.post-item .tag {
    background-color: var(--bg-tertiary);
    color: var(--accent-tertiary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--space-sm);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.post-item-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.post-item-link:hover {
    color: var(--accent-primary-hover);
}

/* Individual Post Page */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-header time {
    display: block;
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}


.post-content {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: left;
}

.post-content h1,
.post-content h2 {
    text-align: left;
}

.post-content h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--accent-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: var(--accent-secondary-hover);
    border-bottom-color: var(--accent-secondary);
}

.post-content code {
    background-color: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-footer a {
    color: var(--accent-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Theme switcher */
.theme-switcher {
    position: relative;
}

.theme-button {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-secondary);
}

.theme-button:hover {
    background: var(--bg-tertiary);
    color: var(--accent-secondary-hover);
}

.theme-icon {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    font-family: inherit;
}

.theme-menu {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-sm);
    display: none;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 140px;
    box-shadow: 0 var(--space-sm) var(--space-lg) rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.theme-menu.active {
    display: flex;
}

.theme-option {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    cursor: pointer;
    border-radius: var(--space-sm);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.theme-option:hover {
    background: var(--bg-tertiary);
    color: var(--accent-secondary);
}

.theme-option.active {
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Donation Button */
.donate-button {
    background: transparent;
    border: none;
    color: var(--accent-coral);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.donate-icon {
    width: 20px;
    height: 20px;
    color: #FF8360;
    transition: transform 0.2s ease, color 0.2s ease;
}

.donate-icon path {
    fill: #FF8360 !important;
    stroke: none !important;
}

.donate-button:hover .donate-icon {
    transform: scale(1.1);
    color: #ff9d7f;
}

.donate-button:hover .donate-icon path {
    fill: #ff9d7f !important;
}

/* Donation Modal */
.donate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.donate-modal.active {
    display: flex;
}

.donate-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .donate-modal-content {
        width: 100%;
    }
}

.donate-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bg-tertiary);
    border: none;
    font-size: 1.75rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}

.donate-modal-close:hover {
    color: var(--accent-primary);
}

.donate-modal-content h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.donate-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Donation Tabs */
.donate-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.donate-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.donate-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

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

.donate-tab-content {
    position: relative;
}

.donate-tab-panel {
    display: none;
}

.donate-tab-panel.active {
    display: block;
}

.donate-address-section {
    margin-bottom: 1.5rem;
}

.donate-address-section label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.donate-address-wrapper {
    display: flex;
    gap: 0.5rem;
}

.donate-address-wrapper input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.85rem;
}

.copy-address-btn {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-address-btn:hover {
    background: var(--accent-secondary-hover);
    transform: translateY(-1px);
}

.copy-address-btn.copied {
    background: var(--accent-green);
}

.donate-qr-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.donate-qr-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.donate-qr-image {
    max-width: 250px !important;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}

.donate-qr-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    color: var(--text-tertiary);
}

.donate-qr-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.donate-qr-placeholder small {
    font-size: 0.85rem;
}

.donate-footer {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
        max-width: 100%;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-actions {
        margin-top: 2rem;
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
    }

    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-bottom {
        padding: 1.5rem 1.25rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.25rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-section {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .copy-btn {
        top: 0.3rem;
        right: 0.3rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .posts-list h1,
    .post-header h1 {
        font-size: 2rem;
    }

    .post-item h2 {
        font-size: 1.4rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }
}

/* Services Page */
.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-link {
    text-decoration: none;
}

.service-card:hover .service-link {
    color: var(--accent-primary-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--accent-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: 1rem;
    transition: color 0.2s ease;
}

.services-cta {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.services-cta h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: none;
}

/* Service Modals */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.service-modal.active {
    display: flex;
}

.service-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-xl) var(--space-2xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: auto;
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: none;
    font-size: 1.75rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-modal-close:hover {
    color: var(--accent-primary);
    background: var(--bg-primary);
}

.service-icon-large {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.service-modal-content h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-modal-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.service-features {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-features h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

.service-features li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Pricing Tiers */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-tier {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.pricing-tier.featured {
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    position: relative;
}

.pricing-tier h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pricing-tier .price {
    color: var(--accent-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-tier .tier-description {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0;
}

.service-detail-link {
    display: inline-block;
    background: var(--accent-primary);
    color: #ffffff;
    text-decoration: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--space-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.service-detail-link:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 89, 100, 0.3);
    text-decoration: none;
    color: #ffffff;
}

/* Responsive for modals */
@media (max-width: 768px) {
    .service-modal-content {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }

    .pricing-tiers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-tier.featured::before {
        top: -8px;
    }

    .service-icon-large {
        font-size: 3rem;
    }

    .service-modal-content h2 {
        font-size: 1.5rem;
    }

    .service-modal-description {
        font-size: 1rem;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--space-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 89, 100, 0.15);
    background: var(--bg-primary);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: var(--text-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
}

.submit-button:hover:not(:disabled) {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 89, 100, 0.3);
}

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

.submit-button.loading {
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#form-status {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--space-xs);
    display: none;
}

#form-status.success {
    display: block;
    background: var(--success-bg);
    color: var(--success-text);
}

#form-status.error {
    display: block;
    background: #991b1b;
    color: #fca5a5;
}

/* Contact Section Redesign */
.contact-section {
    position: relative;
    min-height: calc(100vh - 200px);
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.contact-bg-graphics {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.contact-grid-fade {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--accent-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.12;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 70%);
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header .section-title {
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-xl) var(--space-2xl);
    box-shadow: 0 var(--space-sm) 32px rgba(0, 0, 0, 0.12);
}

.contact-card-accent {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    border-radius: 0 0 4px 4px;
}

.contact-card .contact-form {
    max-width: none;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group .required {
    color: var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.button-icon {
    flex-shrink: 0;
}

/* Contact page responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 1.5rem;
        border-radius: 16px;
        margin: 0 0.5rem;
    }

    .contact-grid-fade {
        background-size: 40px 40px;
    }

    .contact-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.25rem;
    }

    .contact-card-accent {
        left: 16px;
        right: 16px;
    }

    .contact-grid-fade {
        background-size: 30px 30px;
        opacity: 0.08;
    }
}

/* new section
/* About Page Content */
.container h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.container p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.container ul {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.container li {
    margin-bottom: 0.75rem;
}

.container a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Only add underline to inline text links, not cards or buttons */
.container p a:hover,
.container li a:hover {
    text-decoration: underline;
}

/* XMR Special Page Styles */
.xmr-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5a1 50%, #d4af37 100%);
    color: #1a1a1a;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--space-lg);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.xmr-special-card {
    background: var(--bg-secondary);
    border: 2px solid #d4af37;
    border-radius: var(--space-lg);
    overflow: hidden;
    margin: var(--space-xl) auto;
    max-width: 900px;
    box-shadow: 0 var(--space-sm) var(--space-lg) rgba(0, 0, 0, 0.3);
}

.xmr-special-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5a1 50%, #d4af37 100%);
    color: #1a1a1a;
    padding: 2rem;
    text-align: center;
}

.xmr-special-header h2 {
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    font-size: 2rem;
}

.xmr-special-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-xmr {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.xmr-special-body {
    padding: 2rem;
}

.xmr-special-body h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.xmr-special-body h3:first-child {
    margin-top: 0;
}

.benefit-list,
.feature-list,
.limitation-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.benefit-list li,
.feature-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.benefit-list li::before,
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

.limitation-list li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.timeline-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg);
    margin-top: var(--space-xl);
    text-align: center;
}

.timeline-info p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.upgrade-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.upgrade-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    transition: all 0.3s ease;
}

.upgrade-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.upgrade-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upgrade-price {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.upgrade-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.upgrade-card li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.upgrade-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.upgrade-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.upgrade-link:hover {
    color: var(--accent-primary-hover);
    transform: translateX(4px);
}

.payment-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
}

.payment-info-card {
    max-width: 700px;
    margin: 0 auto;
}

.payment-info-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.payment-note {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* Service Detail Pages */
.service-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.service-detail-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 1rem auto;
    line-height: 1.6;
}

.service-detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-section {
    margin-bottom: 4rem;
}

.detail-section h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Pricing Section on Detail Pages */
.pricing-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

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

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.featured-card {
    border: 2px solid var(--accent-primary);
    background: var(--bg-primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #ffffff;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.package-price {
    color: var(--accent-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.package-subtitle {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.package-features li {
    color: var(--text-secondary);
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

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

.package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.package-timeline {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
    padding: var(--space-lg);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    color: #ffffff;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.tech-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.faq-item h3 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Service CTA */
.service-cta {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-2xl) var(--space-xl);
    margin-top: var(--space-2xl);
}

.service-cta h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: none;
}

/* Portfolio Page */
.portfolio-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.portfolio-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--space-lg);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.portfolio-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.618 / 1;
    background: var(--bg-tertiary);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

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

.portfolio-info {
    padding: var(--space-md) var(--space-lg);
}

.portfolio-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tags .tech-tag {
    font-size: 0.75rem;
    padding: 0.15rem var(--space-xs);
}

.portfolio-cta {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--space-lg);
    padding: var(--space-2xl);
}

.portfolio-cta h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.portfolio-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: none;
}

/* Portfolio preview section (for service pages) */
.portfolio-preview {
    margin-top: var(--space-xl);
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.portfolio-preview-item {
    border-radius: var(--space-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.portfolio-preview-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-preview-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
}

.view-portfolio-link {
    display: inline-block;
    margin-top: var(--space-xl);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.view-portfolio-link:hover {
    color: var(--accent-primary-hover);
}

/* Portfolio Preview Pages */
.preview-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.preview-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.preview-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.preview-back:hover {
    color: var(--accent-secondary-hover);
}

.preview-site-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.preview-site-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.preview-fullscreen {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-primary);
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preview-fullscreen:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 89, 100, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.preview-iframe-container {
    width: 100%;
    height: calc(100vh - 120px);
    background: var(--bg-tertiary);
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Live Preview Badge on portfolio cards */
.live-preview-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(13, 17, 23, 0.8);
    color: var(--accent-green);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(110, 235, 131, 0.3);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-preview-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Portfolio item as link */
a.portfolio-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.portfolio-item:hover {
    text-decoration: none;
}

a.portfolio-item:hover h3,
a.portfolio-item:hover p {
    text-decoration: none;
}

/* Gradient placeholder for sites without screenshots */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .preview-bar-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .preview-site-info {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }

    .preview-tags {
        display: none;
    }

    .preview-iframe-container {
        height: calc(100vh - 150px);
    }

    .preview-fullscreen span {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for detail pages */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .service-detail-intro {
        font-size: 1rem;
    }

    .package-price {
        font-size: 2rem;
    }
}
