﻿/* root & Reset */
:root {
    --bg-color: #0B0F19;
    --bg-alt: #111827;
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

body.light-mode {
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

body.light-mode .hero-title {
    background: linear-gradient(to right, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: #f1f5f9;
}

body.light-mode .tag:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    gap: 12px;
    color: var(--accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Gradients */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: -1;
    filter: blur(50px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    z-index: -1;
    filter: blur(50px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-position {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.hero-image-bg {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: -20px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.5;
}

.result-item {
    cursor: pointer;
    /* Indicate clickability */
    position: relative;
    /* Ensure absolute children are positioned relative to this */
}

.result-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darker background to hide image */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* Visible by default as requested */
    transition: background 0.3s ease;
    z-index: 2;
    text-align: center;
    /* Ensure text centering */
}

.result-item:hover .result-overlay {
    background: rgba(0, 0, 0, 0.4);
    /* Lighten slightly on hover to hint at content */
}

.result-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    transform: translateY(0);
    /* No movement, just centered */
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Ensure text doesn't overflow */
    white-space: nowrap;
    pointer-events: none;
    /* Let clicks pass through to the parent div if needed, though div click works too */
}

.result-item:hover .result-overlay span {
    transform: scale(1.05);
    /* subtle zoom effect */
    background: var(--accent);
}

/* Initial Blur on Image */
.result-item img {
    filter: blur(3px);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.result-item:hover img {
    filter: blur(0);
    /* Unblur on hover */
    transform: scale(1.03);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Sections Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.about-text-column p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.1);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Experience - Vertical Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 8px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.project-content {
    padding: 30px;
}

.project-tags {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Objective Highlight */
.highlight-bg {
    background: linear-gradient(to right, var(--bg-alt), #161b2c);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    padding-right: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item .details span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item .details a {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item .details a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.back-to-top {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.9rem;
    align-items: center;
    gap: 5px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-image {
        width: 300px;
        height: 380px;
    }
}

/* Skills Split Layout */
.skills-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skills-column>.skill-card:only-child {
    flex: 1;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.column-title i {
    color: var(--primary);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.review-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.review-info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.review-service {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.review-stars {
    margin-top: 10px;
    color: #fbbf24;
    /* Amber/Gold color */
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Mobile Responsive Updates */
@media (max-width: 992px) {
    .skills-split-container {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher */
.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 15px;
}

.lang-btn:hover {
    background: var(--card-bg);
    border-color: var(--primary);
}

/* RTL Support */
html[lang="ar"] {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
    font-family: 'Cairo', sans-serif;
}

/* RTL Specific Adjustments */
html[lang="ar"] .nav-links {
    margin-left: 0;
    margin-right: auto;
}

html[lang="ar"] .nav-links a {
    margin-left: 20px;
    margin-right: 0;
}

html[lang="ar"] .lang-btn {
    margin-right: 0;
    margin-left: 15px;
}

html[lang="ar"] .timeline-item {
    padding-left: 0;
    padding-right: 30px;
    border-left: none;
    border-right: 2px solid var(--primary);
}

html[lang="ar"] .timeline-dot {
    left: auto;
    right: -6px;
}

html[lang="ar"] .project-content .btn-text i {
    transform: rotate(180deg);
    margin-left: 0;
    margin-right: 8px;
}

html[lang="ar"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

/* Fix Hero stats/buttons direction if flexed */
html[lang="ar"] .hero-buttons {
    flex-direction: row;
    /* Default is row, but RTL makes it R-L. */
    gap: 20px;
}

/* If skills tags have margin right, flip them */
html[lang="ar"] .tags .tag {
    margin-right: 0;
    margin-left: 10px;
}

/* Client Grid Section */
.clients-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
    justify-content: center;
}

.client-card {
    background: var(--card-bg);
    width: 100%;
    height: 140px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.client-card img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .clients-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .client-card {
        height: 120px;
        padding: 15px;
    }
}


/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.result-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    /* Ensure content is focused */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.result-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Add a subtle overlay gradient on hover to make it feel premium */
.result-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-item:hover::after {
    opacity: 1;
}

.result-item:hover img {
    transform: scale(1.03);
}


/* Make results distinctive */
.results .section-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Result Overlay */
.result-item {
    cursor: pointer;
    /* Indicate clickability */
    position: relative;
}

.result-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darker background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    /* Visible by default */
    transition: background 0.3s ease;
    z-index: 2;
    text-align: center;
}

.result-item:hover .result-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.result-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
}

.result-item:hover .result-overlay span {
    transform: scale(1.05);
    background: var(--accent);
}

/* Initial Blur on Image */
.result-item img {
    filter: blur(3px);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.result-item:hover img {
    filter: blur(0);
    transform: scale(1.03);
}

/* Remove previous overlay */
.result-item::after {
    display: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--primary);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   Blog Section
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Blog Post Page */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-meta {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.blog-post-title {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.blog-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 50px;
}

.blog-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.blog-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--text-main);
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-body li {
    margin-bottom: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary);
}

/* Share Buttons */
.share-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.share-label {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #000;
    border: 1px solid #333;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* In Light Mode, Twitter icon should be visible */
body.light-mode .share-btn.twitter {
    background: #000;
    border-color: #000;
}

/* =========================================
   Fixed Client Slider (Marquee)
   ========================================= */
/* =========================================
   Static Client Grid (New Design)
   ========================================= */
.clients-grid-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.client-card-static {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle card background */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.client-card-static:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.client-card-static img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    /* Clean look: no filters by default, just pure logos */
    filter: brightness(1.1);
    transition: var(--transition);
}

.client-card-static:hover img {
    transform: scale(1.1);
    filter: brightness(1.3);
}

/* Mobile Responsiveness for Grid */
@media (max-width: 768px) {
    .clients-grid-static {
        gap: 15px;
    }

    .client-card-static {
        width: calc(50% - 15px);
        /* 2 cards per row on mobile */
        height: 90px;
    }

    .client-card-static img {
        max-height: 50px;
    }
}