/* ========================================
   AnqaCode — Premium Dark Theme
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base, 16px);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: var(--font-body-ar);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: var(--font-heading-ar);
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.logo-img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

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

.lang-switch {
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.lang-switch:hover {
    background: var(--primary);
    color: #fff;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

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

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15), transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

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

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

/* Code Window in Hero */
.hero-card {
    perspective: 1000px;
}

.code-window {
    background: var(--bg-darker);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.code-window:hover { transform: rotateY(0) rotateX(0); }

.code-dots {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.3);
}
.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-block {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e06c75; }
.code-prop { color: #e5c07b; }
.code-string { color: #98c379; }

/* === Section Styles === */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 16px auto 0;
    border-radius: 2px;
}

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

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

.services-grid-lg {
    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

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

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-icon-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

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

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-link:hover { gap: 10px; }

/* === Stats Section === */
.stats-section {
    background: var(--bg-darker);
    padding: 80px 0;
}

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

.stat-item {
    padding: 30px;
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Testimonials === */
.testimonials-section {
    background: var(--bg-darker);
}

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

.testimonial-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.testimonial-author strong { display: block; }
.testimonial-author span { color: var(--text-secondary); font-size: 0.85rem; }

/* === CTA Section === */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 60px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* === Page Header === */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1), transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* === Contact Grid === */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    background: var(--bg-darker);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-error { color: #ef4444; font-size: 0.85rem; margin-top: 5px; display: block; }

.info-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}
.info-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.info-card h4 { font-size: 1rem; margin-bottom: 8px; }
.info-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* === Portfolio Grid === */
.filter-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(var(--primary-rgb), 0.3);
    background: var(--bg-card);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover .portfolio-img { transform: scale(1.05); }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }

.portfolio-overlay h3 { margin-bottom: 8px; font-size: 1.2rem; }
.portfolio-overlay p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; }

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

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.blog-img { width: 100%; height: 200px; object-fit: cover; }
.blog-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    color: rgba(var(--primary-rgb), 0.3);
    font-size: 2.5rem;
}

.blog-body {
    padding: 24px;
}
.blog-body time {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}
.blog-body h3 {
    font-size: 1.15rem;
    margin: 10px 0;
}
.blog-body h3 a { color: var(--text-primary); }
.blog-body h3 a:hover { color: var(--primary); }
.blog-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; }
.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.read-more:hover { gap: 10px; }

/* === Content Wrapper === */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-featured-img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 30px;
}

.rich-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
}
.rich-content h2 { color: var(--text-primary); font-size: 1.8rem; margin: 30px 0 15px; }
.rich-content h3 { color: var(--text-primary); font-size: 1.4rem; margin: 25px 0 12px; }
.rich-content p { margin-bottom: 16px; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin-bottom: 16px; }
.rich-content li { margin-bottom: 8px; }

.service-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

/* === Footer === */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.footer-links a:hover { color: var(--primary); padding-left: 6px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 6px; }

.footer-contact { list-style: none; }
.footer-contact li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.footer-contact i { color: var(--primary); margin-top: 4px; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* === Alert === */
.alert {
    padding: 14px 0;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
}
.alert-success {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === No Items === */
.no-items {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

/* === Responsive === */
.mobile-lang-switch { display: none; }
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .hero-title { font-size: 2.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-actions { display: none; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .mobile-lang-switch { display: block; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding-top: 8px; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        gap: 4px;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-link { width: 100%; padding: 12px 16px; }

    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-title { font-size: 2rem; }
    .services-grid,
    .testimonials-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-header { padding: 120px 0 40px; }
    .page-header h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .cta-content { padding: 40px 24px; }
    .services-grid-lg { grid-template-columns: 1fr; }
}

/* === Pagination === */
nav[role="navigation"] {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
nav[role="navigation"] .flex {
    display: flex;
    gap: 8px;
}
nav[role="navigation"] a,
nav[role="navigation"] span {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}
nav[role="navigation"] a:hover { background: var(--primary); color: #fff; }
nav[role="navigation"] span.bg-white,
nav[role="navigation"] span[aria-current] { background: var(--primary); color: #fff; }

/* === Section Utilities === */
.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* === Homepage Portfolio Section === */
.portfolio-section .portfolio-card {
    height: auto;
    display: flex;
    flex-direction: column;
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-image img { transform: scale(1.08); }

.portfolio-section .portfolio-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
}

.portfolio-section .portfolio-overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    justify-content: flex-start;
    align-items: flex-end;
    padding: 12px 16px;
}

.portfolio-category {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(var(--primary-rgb), 0.9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info {
    padding: 20px;
}
.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.portfolio-client {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
}

/* === Team Section === */
.team-section {
    background: var(--bg-darker);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: center;
}

.team-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.4s ease;
    position: relative;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid rgba(var(--primary-rgb), 0.3);
    transition: border-color 0.3s ease;
}
.team-card:hover .team-avatar {
    border-color: var(--primary);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.team-name {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.team-position {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.team-email:hover {
    background: var(--primary);
    color: #fff;
}

/* === Homepage Blog Cards === */
.blog-card-image {
    height: 200px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
    color: rgba(var(--primary-rgb), 0.3);
    font-size: 2.5rem;
}

.blog-card-body {
    padding: 24px;
}

.blog-meta {
    margin-bottom: 10px;
}
.blog-meta span {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-body h3 a { color: var(--text-primary); }
.blog-card-body h3 a:hover { color: var(--primary); }

.blog-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-read-more:hover { gap: 10px; }

/* Team grid responsive */
.mobile-lang-switch { display: none; }
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
